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(); }
/// <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(); }