Beispiel #1
0
 /// <summary>
 /// 获得请假的方法
 /// </summary>
 /// <param name="mockVacation"></param>
 /// <param name="mockLeaveRequestType"></param>
 /// <param name="mockIPlanDutyDal"></param>
 public GetLeaveRequest(IVacation mockVacation, ILeaveRequestType mockLeaveRequestType,
                        IPlanDutyDal mockIPlanDutyDal)
 {
     _DalVacation         = mockVacation;
     _DalLeaveRequestType = mockLeaveRequestType;
     _DalPlanDutyDal      = mockIPlanDutyDal;
 }
 /// <summary>
 /// for test
 /// </summary>
 /// <param name="mockEmployee"></param>
 /// <param name="mockPlanDuty"></param>
 /// <param name="mockAccount"></param>
 /// <param name="mockInAndOut"></param>
 public GetEmployeeAttendanceStatistics(IEmployee mockEmployee, IPlanDutyDal mockPlanDuty, IAccountBll mockAccount, IAttendanceInAndOutRecord mockInAndOut)
 {
     _dalEmployee  = mockEmployee;
     _IPlanDutyDal = mockPlanDuty;
     _IAccountBll  = mockAccount;
     _dalAttendanceInAndOutRecord = mockInAndOut;
     _GetOutApplication           = new GetOutApplication();
     _GetLeaveRequest             = new GetLeaveRequest();
     _GetOverWork = new GetOverWork();
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 public CalculateCostHour(DateTime from, DateTime to, int accountID, int leaveRequestTypeID,
                          ILeaveRequestType mockILeaveRequestType, IPlanDutyDal mockIPlanDutyDal)
 {
     _From                = from;
     _To                  = to;
     _AccountID           = accountID;
     _LeaveRequestTypeID  = leaveRequestTypeID;
     _LeaveRequestTypeDal = mockILeaveRequestType;
     _PlanDutyDal         = mockIPlanDutyDal;
 }
        /// <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;
        }
Beispiel #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;
 }
Beispiel #7
0
 /// <summary>
 /// 新增班别构造函数,测试
 /// </summary>
 /// <param name="planDutyTable"></param>
 /// <param name="ruleMock"></param>
 public InsertPlanDuty(PlanDutyTable planDutyTable, IPlanDutyDal ruleMock)
 {
     _PlanDutyTable = planDutyTable;
     _DalRull       = ruleMock;
 }
 /// <summary>
 /// 新增班别构造函数,测试
 /// </summary>
 /// <param name="dutyClass"></param>
 /// <param name="ruleMock"></param>
 public InsertDutyClass(DutyClass dutyClass, IPlanDutyDal ruleMock)
 {
     _DutyClass = dutyClass;
     _DalRull = ruleMock;
 }
 /// <summary>
 /// 测试用
 /// </summary>
 public UpdatePlanDuty(PlanDutyTable planDutyTable, IPlanDutyDal ruleMock)
 {
     _PlanDutyTable = planDutyTable;
     _DalRull       = ruleMock;
 }
Beispiel #10
0
 /// <summary>
 /// 测试用
 /// </summary>
 public DeletePlanDuty(int planDutyTableId, IPlanDutyDal ruleMock)
 {
     _PlanDutyTableId = planDutyTableId;
     _DalRull         = ruleMock;
 }
 /// <summary>
 /// 测试用
 /// </summary>
 public UpdateDutyClass(DutyClass rule, IPlanDutyDal ruleMock)
 {
     _DutyClass = rule;
     _DalRull   = ruleMock;
 }
Beispiel #12
0
 /// <summary>
 /// 测试用
 /// </summary>
 public DeleteDutyClass(int dutyClassID, IPlanDutyDal ruleMock)
 {
     _DutyClassID = dutyClassID;
     _DalRull     = ruleMock;
 }