コード例 #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;
 }
コード例 #2
0
 /// <summary>
 /// 测试专用
 /// </summary>
 public ApplicationSearch(
     ILeaveRequestDal iLeaveRequestDal,
     IOutApplication iOutApplication, IOverWork iOverWork)
 {
     _DalLeaveRequest   = iLeaveRequestDal;
     _DalOutApplication = iOutApplication;
     _DalOverWork       = iOverWork;
 }
コード例 #3
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;
 }
コード例 #4
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;
        }
コード例 #5
0
 /// <summary>
 /// 测试LeaveRequest调用
 /// </summary>
 public ValidateRequestItemRepeat(IOverWork overwork,
                                  ILeaveRequestDal leaveRequestdal, IOutApplication outApplication,
                                  LeaveRequest leaveRequest, bool isAdd)
 {
     _IsAdd                 = isAdd;
     _Request               = new Request(leaveRequest);
     _DalOverWork           = overwork;
     _DalOutApplication     = outApplication;
     _DalLeaveRequest       = leaveRequestdal;
     _IsOverWorkJoinToCheck = true;
     _IsLeaveJoinToCheck    = true;
     //_IsOutJoinToCheck = true;
 }
コード例 #6
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;
        }
コード例 #7
0
        /// <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;
        }
コード例 #8
0
        /// <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;
        }
コード例 #9
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;
 }
コード例 #10
0
 /// <summary>
 /// ɾ³ýÇë¼Ùµ¥
 /// </summary>
 public DeleteLeaveRequest(int leaveRequestID, ILeaveRequestDal mockILeaveRequestDal)
 {
     _LeaveRequestID  = leaveRequestID;
     _DalLeaveRequest = mockILeaveRequestDal;
 }
コード例 #11
0
 /// <summary>
 /// 获得请假的方法
 /// </summary>
 /// <param name="mockLeaveRequest"></param>
 /// <param name="mockLeaveRequestFlow"></param>
 public GetLeaveRequest(ILeaveRequestDal mockLeaveRequest, ILeaveRequestFlowDal mockLeaveRequestFlow)
 {
     _DalLeaveRequest     = mockLeaveRequest;
     _DalLeaveRequestFlow = mockLeaveRequestFlow;
 }
コード例 #12
0
 /// <summary>
 ///  test
 /// </summary>
 /// <param name="leaveRequestTypeId"></param>
 /// <param name="mockILeaveRequestType"></param>
 /// <param name="mockILeaveRequestDal"></param>
 public DeleteLeaveRequestType(int leaveRequestTypeId, ILeaveRequestType mockILeaveRequestType,
                               ILeaveRequestDal mockILeaveRequestDal) : this(leaveRequestTypeId)
 {
     _LeaveRequestTypeDal = mockILeaveRequestType;
     _LeaveRequestDal     = mockILeaveRequestDal;
 }
 public LeaveRequestManager(IGenericDal <LeaveRequest> genericDal, ILeaveRequestDal leaveRequestDal) : base(genericDal)
 {
     _leaveRequestDal = leaveRequestDal;
     _genericDal      = genericDal;
 }