/// <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> /// 获得请假的方法 /// </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; }
/// <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 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; }
/// <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; }
/// <summary> /// for test /// </summary> /// <param name="leaveRequestType"></param> /// <param name="mockILeaveRequestType"></param> public AddLeaveRequestType(Model.Request.LeaveRequestType leaveRequestType, ILeaveRequestType mockILeaveRequestType) : this(leaveRequestType) { _LeaveRequestTypeDal = mockILeaveRequestType; }
/// <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; }
/// <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> /// test /// </summary> /// <param name="leaveRequestType"></param> /// <param name="iLeaveRequestType"></param> public UpdateLeaveRequestType(LeaveRequestType leaveRequestType, ILeaveRequestType iLeaveRequestType) : this(leaveRequestType) { _LeaveRequestTypeDal = iLeaveRequestType; }