public commonResult ReceiveDone(OAMessageVM p) { if (p == null || string.IsNullOrWhiteSpace(p.syscode) || string.IsNullOrWhiteSpace(p.flowid) || string.IsNullOrWhiteSpace(p.nodename) || string.IsNullOrWhiteSpace(p.receiver)) { return(commonResult.NullParameter()); } string res = OAMessageBuilder.ReceiveDone(p.syscode, p.flowid, p.nodename, p.receiver); return(commonResult.Success(res)); }
public void TestOver() { string flowid = "f06c7113-ef64-4983-be56-4ade5160a629"; string receiver = "yangxiaogang"; string flowtitle = "测试发送待办1"; string workflowname = "收集任务填报"; string nodename1 = "填报"; string nodename2 = "审批"; OAMessageBuilder.ReceiveOver(flowid, flowtitle, nodename2, receiver, "", ""); }
public commonResult CancelProcess(OAMessageVM p) { if (p == null || string.IsNullOrWhiteSpace(p.syscode) || string.IsNullOrWhiteSpace(p.flowid)) { return(commonResult.NullParameter()); } string res = OAMessageBuilder.CancelProcess(p.syscode, p.flowid); return(commonResult.Success(res)); }
public void TestCancelProcess() { string flowid = "d87a7991-843e-4c70-abdc-007a435b32ef"; string flowtitle = "测试发送待办2"; string workflowname = "收集任务填报"; string nodename1 = "填报"; string nodename2 = "审批"; var url = "/Application/Task/TaskList.aspx"; string creator = "chengeng"; string receiver1 = "wangxin"; string receiver2 = "yangxiaogang"; OAMessageBuilder.CancelProcess(flowid); }
public void TestCancel() { string flowid = "3fff5873-b9c4-4b7d-9f8b-f972ed21073b"; string flowtitle = "测试发送待办2"; string workflowname = "收集任务填报"; string nodename1 = "填报"; string nodename2 = "审批"; var url = "/Application/Task/TaskList.aspx"; string creator = "chengeng"; string receiver1 = "wangxin"; string receiver2 = "yangxiaogang"; OAMessageBuilder.Cancel(flowid, receiver2); }
public void TestTodo() { string flowid = Guid.NewGuid().ToString(); string flowtitle = "测试发送待办5"; string workflowname = "收集任务填报"; string nodename1 = "填报"; string nodename2 = "审批"; var url = "/Application/Task/TaskList.aspx"; string creator = "chengeng"; string receiver1 = "wangxin"; string receiver2 = "yangxiaogang"; OAMessageBuilder.ReceiveTodo(flowid, flowtitle, workflowname, nodename1, url, url, creator, receiver1); OAMessageBuilder.ReceiveTodo(flowid, flowtitle, workflowname, nodename2, url, url, creator, receiver2); }
static void Main(string[] args) { //string flowid = Guid.NewGuid().ToString(); string flowid = "25B32D78-CBB0-4FD8-AFED-4151D28F6695"; Console.WriteLine(flowid); string title = "测试-直接办结"; string workflowName = "测试-流程名称"; string nodeName = "创建"; string pcurl = "192.168.50.82:84"; string appurl = ""; string createor = "zhengguilong"; string reciever = "fanbing"; //OAMessageBuilder.ReceiveTodo(flowid, title, workflowName, nodeName, pcurl, appurl, createor, reciever); //OAMessageBuilder.ReceiveDone(flowid, nodeName, reciever); OAMessageBuilder.ReceiveOver(flowid, nodeName, reciever); Console.ReadKey(); }
public commonResult ReceiveTodo(OAMessageVM p) { if (p == null || string.IsNullOrWhiteSpace(p.syscode) || string.IsNullOrWhiteSpace(p.flowid) || string.IsNullOrWhiteSpace(p.workflowname) || string.IsNullOrWhiteSpace(p.nodename) || string.IsNullOrWhiteSpace(p.pcurl) || string.IsNullOrWhiteSpace(p.creator) || string.IsNullOrWhiteSpace(p.receiver) || string.IsNullOrWhiteSpace(p.requestname)) { return(commonResult.NullParameter()); } if (p.createdatetime == null) { p.createdatetime = DateTime.Now; } if (p.receivedatetime == null) { p.receivedatetime = DateTime.Now; } string res = OAMessageBuilder.ReceiveTodo(p.syscode, p.flowid, p.requestname, p.workflowname, p.nodename, p.pcurl, p.appurl, p.creator, p.receiver); return(commonResult.Success(res)); }