Esempio n. 1
0
 /// <summary>
 /// for test
 /// </summary>
 public UpdateAdjustRestByOperator(int adjustID, decimal surplusAdjustRest, string remark, int operatorID,
                                   IAdjustRest mockAdjustRest, IAdjustRestHistory mockAdjustRestHistory)
     : this(adjustID, surplusAdjustRest, remark, operatorID)
 {
     _IAdjustRest        = mockAdjustRest;
     _IAdjustRestHistory = mockAdjustRestHistory;
 }
Esempio n. 2
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;
 }
 /// <summary>
 /// for test
 /// </summary>
 public RestoreAdjustRestByLeaveRequest(LeaveRequestItem item, int accountid, int leaveRequestID,
                                        IAdjustRest mockIAdjustRest, IAdjustRestHistory mockIAdjustRestHistory)
     : this(item, accountid, leaveRequestID)
 {
     _IAdjustRest        = mockIAdjustRest;
     _IAdjustRestHistory = mockIAdjustRestHistory;
 }
        /// <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;
        }
Esempio n. 6
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;
 }