private void WFRuntime_RunSuccess(object sender, WorkFlowEventArgs e) { string taskToWhoMsg = RDIFrameworkService.Instance.WorkFlowInstanceService.GetTaskToWhoMsg(this.UserInfo, WorkTaskInsId); string resultMsg = e.ResultMsg; //WorkTaskInstance.GetResultMsg(WorkTaskInsId); string title = "操作结果:" + resultMsg; if (taskToWhoMsg.Length <= 0) { taskToWhoMsg = "未提交至任何人,请检查流程模板和组织机构配置是否正确!"; if (resultMsg == WorkFlowConst.WorkflowOverMsg)//流程结束 { taskToWhoMsg = "流程结束!"; } if (resultMsg == WorkFlowConst.TaskBackMsg) { taskToWhoMsg = WorkFlowConst.TaskBackMsg; } } taskToWhoMsg = "成功提交至:" + taskToWhoMsg + "。你已完成该任务处理,可以关闭该窗口。"; MessageBoxHelper.ShowWarningMsg("提交成功!" + taskToWhoMsg); this.DialogResult = DialogResult.OK; this.Close(); }
private void wfruntime_RunSuccess(object sender, WorkFlowEventArgs e) { var TaskToWhoMsg = RDIFrameworkService.Instance.WorkFlowInstanceService.GetTaskToWhoMsg(this.UserInfo, WorkTaskInsId); var ResultMsg = e.ResultMsg; //RDIFrameworkService.Instance.WorkFlowInstanceService.GetResultMsg(this.UserInfo,WorkTaskInsId); var title = "操作结果:" + ResultMsg; if (TaskToWhoMsg.Length <= 0) { TaskToWhoMsg = "未提交至任何人,请检查流程模板和组织机构配置是否正确!"; if (ResultMsg == WorkFlowConst.WorkflowOverMsg)//流程结束 { TaskToWhoMsg = "流程结束!"; } if (ResultMsg == WorkFlowConst.TaskBackMsg) { TaskToWhoMsg = WorkFlowConst.TaskBackMsg; } } TaskToWhoMsg = "成功提交至:" + TaskToWhoMsg + "。你已完成该任务处理,可以关闭该窗口。"; MessageBoxHelper.ShowSuccessMsg("提交成功!" + TaskToWhoMsg); this.DialogResult = System.Windows.Forms.DialogResult.OK; }
private void WFRuntime_RunFail(object sender, WorkFlowEventArgs e) { MessageBoxHelper.ShowWarningMsg("提交失败!" + e.ResultMsg); }
private void wfruntime_RunFail(object sender, WorkFlowEventArgs e) { MessageBoxHelper.ShowWarningMsg("提交失败!" + e.ResultMsg); this.DialogResult = System.Windows.Forms.DialogResult.OK; }