コード例 #1
0
 /// <summary>
 /// 新增培训申请
 /// </summary>
 public AddTraineeApplication(
     TraineeApplication traineeApplication, ITraineeApplication iTraineeApplicationMock,
     IEmployeeDiyProcessDal iEmployeeDiyProcess)
 {
     _DalTraineeApplication = iTraineeApplicationMock;
     _TraineeApplication    = traineeApplication;
     _DalEmployeeDiyProcess = iEmployeeDiyProcess;
 }
コード例 #2
0
 /// <summary>
 /// 构造函数 为测试
 /// </summary>
 /// <param name="mockIDiyProcessDal"></param>
 /// <param name="mockIEmployeeDiyProcessDal"></param>
 /// <param name="mockIAccountBll"></param>
 /// <param name="mockIDepartmentBll"></param>
 public GetDiyProcess(IDiyProcessDal mockIDiyProcessDal, IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal,
                      IAccountBll mockIAccountBll, IDepartmentBll mockIDepartmentBll)
 {
     _DiyProcessDal         = mockIDiyProcessDal;
     _DiyEmployeeProcessDal = mockIEmployeeDiyProcessDal;
     _IAccountBll           = mockIAccountBll;
     _IDepartmentBll        = mockIDepartmentBll;
 }
コード例 #3
0
 ///<summary>
 ///</summary>
 ///<param name="loginUser"></param>
 ///<param name="TraineeApplicationID"></param>
 ///<param name="iTraineeApplicationMock"></param>
 ///<param name="iEmployeeDiyProcessMock"></param>
 ///<param name="status"></param>
 ///<param name="remark"></param>
 public ApproveTraineeApplication(Account loginUser, int TraineeApplicationID,
                                  ITraineeApplication iTraineeApplicationMock, IEmployeeDiyProcessDal iEmployeeDiyProcessMock,
                                  TraineeApplicationStatus status, string remark)
 {
     _DalTraineeApplication = iTraineeApplicationMock;
     _DalEmployeeDiyProcess = iEmployeeDiyProcessMock;
     _TraineeApplicationID  = TraineeApplicationID;
     _LoginUser             = loginUser;
     _Status = status;
     _Remark = remark;
 }
コード例 #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>
        /// 取消整张请假单
        /// </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;
        }
コード例 #6
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;
        }
コード例 #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;
 }
コード例 #8
0
 ///<summary>
 ///</summary>
 ///<param name="TraineeApplication"></param>
 ///<param name="iTraineeApplicationMock"></param>
 ///<param name="iEmployeeDiyProcessMock"></param>
 public UpdateTraineeApplication(TraineeApplication TraineeApplication, ITraineeApplication iTraineeApplicationMock, IEmployeeDiyProcessDal iEmployeeDiyProcessMock)
 {
     _DalTraineeApplication = iTraineeApplicationMock;
     _DalEmployeeDiyProcess = iEmployeeDiyProcessMock;
     _TraineeApplication    = TraineeApplication;
 }
コード例 #9
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public GetDiyProcess(IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal)
 {
     _DiyEmployeeProcessDal = mockIEmployeeDiyProcessDal;
 }
コード例 #10
0
 /// <summary>
 ///
 /// </summary>
 public DeleteDiyProcess(int diyProcessID, IDiyProcessDal mockIDiyProcessDal, IEmployeeDiyProcessDal mockIEmployeeDiyProcessDal)
 {
     _DiyProcessID           = diyProcessID;
     _IDiyProcessDal         = mockIDiyProcessDal;
     _IEmployeeDiyProcessDal = mockIEmployeeDiyProcessDal;
 }