示例#1
0
        private void button7_Click(object sender, EventArgs e)
        {
            var workflow = WorkflowDefinitionModel.Load("1");

            workflow.StartNew("frank", "1", new GetUser());
            RiskMgr.Model.Menu m = new RiskMgr.Model.Menu();
        }
示例#2
0
 private void button10_Click(object sender, EventArgs e)
 {
     RiskMgr.Model.Menu m = new RiskMgr.Model.Menu();
     string workflowid = txbworkflowid.Text;
     string activityid = txbactivityid.Text;
     string taskid = txbtaskid.Text;
     var workflow = WorkflowModel.Load(workflowid);
     workflow.ProcessActivity(new Approval
     {
         ActivityID = activityid,
         WorkflowID = workflow.Value.ID,
         //Type = (int)ApprovalStatus.Agree,
         Status = (int)ApprovalStatus.Disagree,
         Remark = "不同意",
     }, "1", new GetUser()
     );
 }
示例#3
0
        private void button10_Click(object sender, EventArgs e)
        {
            RiskMgr.Model.Menu m          = new RiskMgr.Model.Menu();
            string             workflowid = txbworkflowid.Text;
            string             activityid = txbactivityid.Text;
            string             taskid     = txbtaskid.Text;
            var workflow = WorkflowModel.Load(workflowid);

            workflow.ProcessActivity(new Approval
            {
                ActivityID = activityid,
                WorkflowID = workflow.Value.ID,
                //Type = (int)ApprovalStatus.Agree,
                Status = (int)ApprovalStatus.Disagree,
                Remark = "不同意",
            }, "1", new GetUser()
                                     );
        }
示例#4
0
 private void button7_Click(object sender, EventArgs e)
 {
     var workflow = WorkflowDefinitionModel.Load("1");
     workflow.StartNew("frank", "1", new GetUser());
     RiskMgr.Model.Menu m = new RiskMgr.Model.Menu();
 }