Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
develop
Branches (3)
develop
forVS2010
ccbpm2021
develop
Branches (3)
develop
forVS2010
ccbpm2021
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
develop
Branches (3)
develop
forVS2010
ccbpm2021
ccflow
/
CCFlow
/
DataUser
/
HandlerAPI.ashx.cs
ccflow
/
CCFlow
/
DataUser
/
HandlerAPI.ashx.cs
HandlerAPI.ashx.cs 9.12 KB
Copy Edit Raw Blame History
驰骋BPM-敏捷开发平台 authored 2020年06月05日 14:04 +08:00 . no commit message
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
using System;
using System.Collections.Generic;
using BP.WF;
using BP.WF.Template;
using BP.DA;
using BP.Web;
using System.Web;
using System.Web.SessionState;
namespace CCFlow.DataUser
{
/// <summary>
/// HandlerAPI 的摘要说明
/// 1. 遵守gener.js 的开发规范.
/// 2. 返回err@xxx就是错误信息,返回info@xxx输出执行信息. 其他的返回就是json格式.
/// </summary>
public class HandlerAPI : IHttpHandler, IRequiresSessionState, IReadOnlySessionState
{
public HttpContext context = null;
public void ProcessRequest(HttpContext _context)
{
context = _context;
//让其支持跨域访问.
string origin = _context.Request.Headers["Origin"];
if (!string.IsNullOrEmpty(origin))
{
var allAccess_Control_Allow_Origin = System.Web.Configuration.WebConfigurationManager.AppSettings["Access-Control-Allow-Origin"];
_context.Response.Headers["Access-Control-Allow-Origin"] = origin;
_context.Response.Headers["Access-Control-Allow-Credentials"] = "true";
_context.Response.Headers["Access-Control-Allow-Headers"] = "x-requested-with,content-type";
}
string doType = context.Request.QueryString["DoType"];
try
{
switch (doType)
{
case "CC_BatchCheckOver": //批量抄送审核.
this.CC_BatchCheckOver();
break;
case "Flow_BatchDeleteByFlag": //批量删除.
this.Flow_BatchDeleteByFlag();
break;
case "Flow_BatchDeleteByReal": //批量删除.
this.Flow_BatchDeleteByReal();
break;
case "Flow_BatchDeleteByFlagAndUnDone": //恢复批量删除.
this.Flow_BatchDeleteByFlagAndUnDone();
break;
case "Flow_DoUnSend": //撤销发送..
this.Flow_DoUnSend();
break;
case "Flow_DeleteDraft": //删除草稿箱..
this.Flow_DeleteDraft();
break;
case "Flow_DoFlowOver": //批量结束.
this.Flow_DoFlowOver();
break;
case "Flow_NeiFa": //个性化:转内发.
this.Flow_NeiFa();
break;
default:
break;
}
}
catch (Exception ex)
{
this.Output("err@错误:执行标记DoType=" + doType + "," + ex.Message);
}
}
/// <summary>
/// 转内发.
/// </summary>
public void Flow_NeiFa()
{
BP.DOC.App_Page page = new BP.DOC.App_Page();
int WorkID = Convert.ToInt32(this.WorkID);
string str=page.NeiFa_Init_To(WorkID);
Output(str);
}
public void Flow_DoFlowOver()
{
string workids = this.GetValString("WorkIDs");
string[] strs = workids.Split(',');
string info = "";
foreach (string workidStr in strs)
{
if (BP.DA.DataType.IsNullOrEmpty(workidStr) == true)
continue;
BP.WF.Dev2Interface.Flow_DoFlowOver( Int64.Parse(workidStr),"批量结束",1);
}
Output("删除成功.");
}
/// <summary>
/// 删除草稿
/// </summary>
public void Flow_DeleteDraft()
{
string workids = this.GetValString("WorkIDs");
string[] strs = workids.Split(',');
string info = "";
foreach (string workidStr in strs)
{
if (BP.DA.DataType.IsNullOrEmpty(workidStr) == true)
continue;
BP.WF.Dev2Interface.Node_DeleteDraft(Int64.Parse(workidStr));
}
Output("删除成功.");
}
/// <summary>
/// 撤销发送
/// </summary>
public void Flow_DoUnSend()
{
string workids = this.GetValString("WorkIDs");
string[] strs = workids.Split(',');
string info = "";
foreach (string workidStr in strs)
{
if (BP.DA.DataType.IsNullOrEmpty(workidStr) == true)
continue;
info += BP.WF.Dev2Interface.Flow_DoUnSend(null, Int64.Parse(workidStr));
}
Output(info);
}
public void Flow_BatchDeleteByReal()
{
string workids = this.GetValString("WorkIDs");
string[] strs = workids.Split(',');
foreach (string workidStr in strs)
{
if (BP.DA.DataType.IsNullOrEmpty(workidStr) == true)
continue;
string st1r = BP.WF.Dev2Interface.Flow_DoDeleteFlowByReal(Int64.Parse(workidStr),true);
}
Output("删除成功.");
}
/// <summary>
/// 删除功能
/// </summary>
public void Flow_BatchDeleteByFlag()
{
string workids = this.GetValString("WorkIDs");
string[] strs = workids.Split(',');
foreach (string workidStr in strs)
{
if (BP.DA.DataType.IsNullOrEmpty(workidStr) == true)
continue;
string st1r = BP.WF.Dev2Interface.Flow_DoDeleteFlowByFlag(null, Int64.Parse(workidStr), "删除", true);
}
Output("删除成功.");
}
/// <summary>
/// 恢复删除功能
/// </summary>
public void Flow_BatchDeleteByFlagAndUnDone()
{
string workids = this.GetValString("WorkIDs");
string[] strs = workids.Split(',');
foreach (string workidStr in strs)
{
if (BP.DA.DataType.IsNullOrEmpty(workidStr) == true)
continue;
string st1r = BP.WF.Dev2Interface.Flow_DoUnDeleteFlowByFlag(null,int.Parse(workidStr), "删除");
}
Output("恢复成功.");
}
/// <summary>
/// 查看工作
/// </summary>
/// <returns></returns>
public void CC_BatchCheckOver()
{
string workids = this.GetValString("WorkIDs");
string str = BP.WF.Dev2Interface.Node_CC_SetCheckOverBatch(workids);
Output(str);
}
public void Output(string info)
{
context.Response.ContentType = "text/plain";
//context.Response.Headers.Add( = "Access - Control - Allow - Origin: *";
context.Response.Write(info);
}
#region 参数.
public string MyPK
{
get
{
string flow = this.context.Request.QueryString["MyPK"];
if (BP.DA.DataType.IsNullOrEmpty(flow) == true)
flow = this.context.Request.QueryString["PK"];
return flow;
}
}
public string FlowNo
{
get
{
string flow = this.context.Request.QueryString["FK_Flow"];
if (BP.DA.DataType.IsNullOrEmpty(flow) == true)
flow = this.context.Request.QueryString["FlowNo"];
return flow;
}
}
public Int64 WorkID
{
get
{
string var = this.context.Request.QueryString["WorkID"];
if (BP.DA.DataType.IsNullOrEmpty(var) == true)
var = this.context.Request.QueryString["WorkID"];
return Int64.Parse(var);
}
}
public int FK_Node
{
get
{
string var = this.context.Request.QueryString["FK_Node"];
if (BP.DA.DataType.IsNullOrEmpty(var) == true)
var = this.context.Request.QueryString["NodeID"];
return int.Parse(var);
}
}
public string GetValString(string key)
{
return this.context.Request.QueryString[key];
}
public int GetValInt(string key)
{
return int.Parse(this.context.Request.QueryString[key]);
}
public Int64 GetValInt64(string key)
{
return Int64.Parse(this.context.Request.QueryString[key]);
}
public float GetValFloat(string key)
{
return float.Parse(this.context.Request.QueryString[key]);
}
#endregion 参数.
public bool IsReusable
{
get
{
return false;
}
}
}
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

驰骋BPM系统包含表单引擎+流程引擎+权限控制,方便集成,配置灵活,功能强大,适合中国国情的工作流引擎.演示:http://demo.ccflow.org,右上角点star方可加群:787427590
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/codingstudio/ccflow.git
git@gitee.com:codingstudio/ccflow.git
codingstudio
ccflow
CCFlow
develop
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /