/// <summary> /// 【具体业务根据需要重写】执行工作流终止操作后 - 默认什么也没做 /// </summary> /// <param name="condtion">审批请求</param> /// <param name="nowTaskUsers">步骤全部审批人</param> /// <param name="taskUserInfo">步骤当前审批人</param> /// <param name="stepInfo">步骤信息</param> /// <param name="userInfo">当前步骤审批人的其他信息</param> protected virtual void DoWorkFlowTerminationAfter(BaseWorkOrderUserConfirmReqeust condtion, List <BaseWorkOrderTaskUserInfo> nowTaskUsers, BaseWorkOrderTaskUserInfo taskUserInfo, WorkFlowDefStep stepInfo, ICommunicationable userInfo) { return; }
/// <summary> /// 【具体业务根据需要重写】工单用户审批后 - 默认为判断是否会签 并执行下一步 /// </summary> /// <param name="condtion">审批请求</param> /// <param name="nowTaskUsers">步骤全部审批人</param> /// <param name="taskUserInfo">步骤当前审批人</param> /// <param name="stepInfo">步骤信息</param> /// <param name="nextLines">步骤的下一步信息</param> /// <param name="userInfo">当前步骤审批人的其他信息</param> protected virtual void DoWorkFlowUserConfirmAfter(BaseWorkOrderUserConfirmReqeust condtion, List <BaseWorkOrderTaskUserInfo> nowTaskUsers, BaseWorkOrderTaskUserInfo taskUserInfo, WorkFlowDefStep stepInfo, List <WorkFlowDefLineDetail> nextLines, ICommunicationable userInfo) { if (nextLines.Count > 0) { if (!stepInfo.IsCountersign) { UserLog.create("非会签任务节点,开始执行下一步", "工作流", adminUser, this); //不是会签执行下一步 DoWorkFlowConfim(nextLines.First()); } else { //是会签 //判断是否都已经审批过了 如果是 执行下一步 if (!nowTaskUsers.Any(p => p.IsConfirm == false)) { UserLog.create("会签节点,全部用户完成审批,开始执行下一步", "工作流", adminUser, this); DoWorkFlowConfim(nextLines.First()); } else { UserLog.create("会签节点,等待其他用户审批", "工作流", adminUser, this); } } } }