コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (RequestActionString == "submit")
     {
         StartFlow();
     }
     else if (RequestActionString == "AutoExecuteFlow")
     {
         Task task = Task.FindAllByProperties(Task.Prop_WorkflowInstanceID, this.RequestData.Get <string>("FlowId"))[0];
         //自动执行,关键代码
         Aim.WorkFlow.WorkFlow.AutoExecute(task);
         this.PageState.Add("TaskId", task.ID);
     }
     else if (RequestActionString == "batchdelete")
     {
         DoBatchDelete();
     }
     else if (RequestData.Get <string>("optype") == "getChildData")
     {
         string       oid = RequestData.Get <string>("OId");
         OrdersPart[] ops = OrdersPart.FindAllByProperties("OId", oid);
         PageState.Add("DetailList", ops);
     }
     else
     {
         DoSelect();
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (RequestActionString == "batchdelete")
     {
         DoBatchDelete();
     }
     else if (RequestData.Get <string>("optype") == "getChildData")
     {
         string       oid = RequestData.Get <string>("OId");
         OrdersPart[] ops = OrdersPart.FindAllByProperties("OId", oid);
         PageState.Add("DetailList", ops);
     }
     else
     {
         DoSelect();
     }
 }