示例#1
0
        public BaseResponse WorkFlowAdminUserTermination(BaseWorkOrderUserConfirmReqeust condtion)
        {
            var info = new BaseWorkOrder(condtion.Id);

            info.WorkFlowTerminationForAdmin(UserManager.getUserById(User.Identity.Name), condtion);
            return(BaseResponse.getResult("工作流已终止"));
        }
示例#2
0
        public BaseResponse WorkFlowUserConfim(BaseWorkOrderUserConfirmReqeust condtion)
        {
            var info = GetWorkOrderById(condtion.Id);

            info.DoWorkFlowUserConfirm(condtion, UserManager.getUserById(User.Identity.Name));
            return(BaseResponse.getResult("审批成功"));
        }
示例#3
0
 /// <summary>
 /// 终止前
 /// </summary>
 /// <param name="condtion"></param>
 /// <param name="nowTaskUsers"></param>
 /// <param name="userInfo"></param>
 /// <param name="stepInfo"></param>
 /// <returns></returns>
 protected override bool DoWorkFlowTerminationBefore(BaseWorkOrderUserConfirmReqeust condtion, List <BaseWorkOrderTaskUserInfo> nowTaskUsers, ICommunicationable userInfo, WorkFlowDefStep stepInfo)
 {
     UserLog.create("【自定义】请假申请审批即将被终止", "请假申请", userInfo, this);
     return(base.DoWorkFlowTerminationBefore(condtion, nowTaskUsers, userInfo, stepInfo));
 }
示例#4
0
 /// <summary>
 /// 终止后
 /// </summary>
 /// <param name="condtion"></param>
 /// <param name="nowTaskUsers"></param>
 /// <param name="taskUserInfo"></param>
 /// <param name="stepInfo"></param>
 /// <param name="userInfo"></param>
 protected override void DoWorkFlowTerminationAfter(BaseWorkOrderUserConfirmReqeust condtion, List <BaseWorkOrderTaskUserInfo> nowTaskUsers, BaseWorkOrderTaskUserInfo taskUserInfo, WorkFlowDefStep stepInfo, ICommunicationable userInfo)
 {
     UserLog.create("【自定义】请假申请已经被终止", "请假申请", userInfo, this);
     base.DoWorkFlowTerminationAfter(condtion, nowTaskUsers, taskUserInfo, stepInfo, userInfo);
 }
示例#5
0
 /// <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 override void DoWorkFlowUserConfirmAfter(BaseWorkOrderUserConfirmReqeust condtion, List <BaseWorkOrderTaskUserInfo> nowTaskUsers, BaseWorkOrderTaskUserInfo taskUserInfo, WorkFlowDefStep stepInfo, List <WorkFlowDefLineDetail> nextLines, ICommunicationable userInfo)
 {
     UserLog.create("【自定义】请假申请用户已审批", "请假申请", userInfo, this);
     base.DoWorkFlowUserConfirmAfter(condtion, nowTaskUsers, taskUserInfo, stepInfo, nextLines, userInfo);
 }