Example #1
0
        public void TestToDo1()
        {
            string flowid       = "3fff5873-b9c4-4b7d-9f8b-f972ed21073";
            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.ReceiveTodo(flowid, flowtitle, workflowname, nodename2, url, url, creator, receiver2);
        }
Example #2
0
        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);
        }
Example #3
0
        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));
        }