コード例 #1
0
ファイル: WorkFlowTest.cs プロジェクト: s7loves/mypowerscgl
    private void button2_Click(object sender, EventArgs e)
    {
       
        WorkFlowRuntime wfruntime = new WorkFlowRuntime();
        wfruntime.UserId = userId;
        
        workTaskInsId = gridView3.GetDataRow(gridView3.FocusedRowHandle)["WorkTaskInsId"].ToString();
        operatorInsId = gridView3.GetDataRow(gridView3.FocusedRowHandle)["OperatorInsId"].ToString(); 
        wfruntime.WorkTaskInstanceId = workTaskInsId;
        wfruntime.OperatorInstanceId = operatorInsId;
        wfruntime.TaskClaim();

        //tooltip.Text = toollips();
    }
コード例 #2
0
ファイル: WorkFlowTest.cs プロジェクト: s7loves/mypowerscgl
 /// <summary>
 /// 认领任务
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void claimButtonEvent(object sender, EventArgs e)
 {
     WorkFlowRuntime wfruntime = new WorkFlowRuntime();
     wfruntime.UserId = userId;
     // wfruntime.WorkTaskInstanceId = WorktaskInsId;
     wfruntime.OperatorInstanceId = operatorInsId;
     wfruntime.TaskClaim();
    
 }