Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mockEmployeeAttendance"></param>
 /// <param name="mockLeaveRequest"></param>
 /// <param name="mockLeaveRequestFlow"></param>
 public GetAdjustRest(IAdjustRest mockEmployeeAttendance, ILeaveRequestDal mockLeaveRequest,
                      ILeaveRequestFlowDal mockLeaveRequestFlow)
 {
     _IAdjustRestDal       = mockEmployeeAttendance;
     _ILeaveRequestDal     = mockLeaveRequest;
     _ILeaveRequestFlowDal = mockLeaveRequestFlow;
 }
Example #2
0
 /// <summary>
 /// 获得请假的方法
 /// </summary>
 /// <param name="mockLeaveRequest"></param>
 /// <param name="mockLeaveRequestFlow"></param>
 /// <param name="mockILeaveRequestType"></param>
 /// <param name="mockIAccountBll"></param>
 /// <param name="mockIDepartmentBll"></param>
 public GetLeaveRequest(ILeaveRequestDal mockLeaveRequest, ILeaveRequestFlowDal mockLeaveRequestFlow,
                        ILeaveRequestType mockILeaveRequestType, IAccountBll mockIAccountBll,
                        IDepartmentBll mockIDepartmentBll)
 {
     _DalLeaveRequest     = mockLeaveRequest;
     _DalLeaveRequestFlow = mockLeaveRequestFlow;
     _DalLeaveRequestType = mockILeaveRequestType;
     _IAccountBll         = mockIAccountBll;
     _IDepartmentBll      = mockIDepartmentBll;
 }
Example #3
0
        /// <summary>
        /// 取消整张请假单
        /// </summary>
        public CancelAllLeaveRequest(int leaveRequestID, RequestStatus requestStatus, string reason,
                                     ILeaveRequestDal mockILeaveRequestDal, ILeaveRequestFlowDal mockILeaveRequestFlowDal,
                                     IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal)
        {
            _LeaveRequestID = leaveRequestID;
            _RequestStatus  = requestStatus;
            _Reason         = reason;

            _DalLeaveRequest       = mockILeaveRequestDal;
            _DalLeaveRequestFlow   = mockILeaveRequestFlowDal;
            _DalEmployeeDiyProcess = mockIEmployeeDiyProcessDal;
        }
Example #4
0
        /// <summary>
        /// 因为流程中断,审批不通过整张请假单
        /// </summary>
        public ApproveFailLeaveRequestItem(int leaveRequestID, int leaveRequestItemID, int operatorID,
                                           RequestStatus requestStatus, string reason,
                                           ILeaveRequestDal mockILeaveRequestDal,
                                           ILeaveRequestFlowDal mockILeaveRequestFlowDal)
        {
            _LeaveRequestID     = leaveRequestID;
            _LeaveRequestItemID = leaveRequestItemID;
            _RequestStatus      = requestStatus;
            _Reason             = reason;
            _OperatorID         = operatorID;

            _DalLeaveRequest     = mockILeaveRequestDal;
            _DalLeaveRequestFlow = mockILeaveRequestFlowDal;
        }
        /// <summary>
        /// 取消整张请假单
        /// </summary>
        public ApproveLeaveRequestItem(int leaveRequestID, int leaveRequestItemID, int operatorID,
                                       RequestStatus requestStatus, string reason,
                                       ILeaveRequestDal mockILeaveRequestDal, ILeaveRequestFlowDal mockILeaveRequestFlowDal,
                                       IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal, IVacation mockIVacation,
                                       IAdjustRest mockIAdjustRest, IPlanDutyDal mockIPlanDutyDal, ILeaveRequestType mockILeaveRequestType)
        {
            _LeaveRequestID     = leaveRequestID;
            _LeaveRequestItemID = leaveRequestItemID;
            _RequestStatus      = requestStatus;
            _Reason             = reason;
            _OperatorID         = operatorID;

            _DalLeaveRequest       = mockILeaveRequestDal;
            _DalLeaveRequestFlow   = mockILeaveRequestFlowDal;
            _DalEmployeeDiyProcess = mockIEmployeeDiyProcessDal;
        }
        /// <summary>
        /// 取消整张请假单
        /// </summary>
        public FastApproveWholeLeaveRequest(int leaveRequestID, int accountID, string reason,
                                            ILeaveRequestDal mockILeaveRequestDal, ILeaveRequestFlowDal mockILeaveRequestFlowDal,
                                            IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal, IVacation mockIVacation,
                                            IAdjustRest mockIAdjustRest, IPlanDutyDal mockIPlanDutyDal, ILeaveRequestType mockILeaveRequestType)
        {
            _AccountID      = accountID;
            _LeaveRequestID = leaveRequestID;
            _Reason         = reason;

            _DalLeaveRequest       = mockILeaveRequestDal;
            _DalLeaveRequestFlow   = mockILeaveRequestFlowDal;
            _DalEmployeeDiyProcess = mockIEmployeeDiyProcessDal;
            _DalVacation           = mockIVacation;
            _IAdjustRestDal        = mockIAdjustRest;
            _DalPlanDutyDal        = mockIPlanDutyDal;
            _DalLeaveRequestType   = mockILeaveRequestType;
        }
Example #7
0
 /// <summary>
 /// 新增请假单
 /// </summary>
 public AddLeaveRequest(LeaveRequest leaveRequest, bool ifSubmit, IVacation mockIVacation,
                        IAdjustRest mockIAdjustRest, ILeaveRequestDal mockILeaveRequestDal,
                        ILeaveRequestFlowDal mockILeaveRequestFlowDal,
                        IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal,
                        IOverWork mockIOverWork, IOutApplication mockIOutApplication,
                        IPlanDutyDal mockIPlanDutyDal,
                        ILeaveRequestType mockILeaveRequestType, IEmployee mockIEmployee)
 {
     _LeaveRequest          = leaveRequest;
     _IfSubmit              = ifSubmit;
     _IVacationDal          = mockIVacation;
     _IAdjustRestDal        = mockIAdjustRest;
     _DalLeaveRequest       = mockILeaveRequestDal;
     _DalLeaveRequestFlow   = mockILeaveRequestFlowDal;
     _DalEmployeeDiyProcess = mockIEmployeeDiyProcessDal;
     _OverWorkDal           = mockIOverWork;
     _DalOutApplication     = mockIOutApplication;
     _DalPlanDutyDal        = mockIPlanDutyDal;
     _DalLeaveRequestType   = mockILeaveRequestType;
     _DalEmployee           = mockIEmployee;
 }
Example #8
0
 /// <summary>
 /// 获得请假的方法
 /// </summary>
 /// <param name="mockLeaveRequest"></param>
 /// <param name="mockLeaveRequestFlow"></param>
 public GetLeaveRequest(ILeaveRequestDal mockLeaveRequest, ILeaveRequestFlowDal mockLeaveRequestFlow)
 {
     _DalLeaveRequest     = mockLeaveRequest;
     _DalLeaveRequestFlow = mockLeaveRequestFlow;
 }