///<summary> ///</summary> public MyAttendanceCalendar(Account account) { _GetBadAttendance = new GetBadAttendance(account); _GetOutApplication = new GetOutApplication(); _GetOverWork = new GetOverWork(); _GetLeaveRequest = new GetLeaveRequest(); }
/// <summary> /// /// </summary> /// <param name="leaveRequest"></param> /// <param name="nextStep"></param> /// <returns></returns> public Account GetMailToAccount(LeaveRequest leaveRequest, DiyStep nextStep) { int accountID = new GetLeaveRequest().ChangeOperatorToEmployee(leaveRequest, nextStep); Account account = _AccountBll.GetAccountById(accountID); return(account); }
/// <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(); }
protected override void SendManagerMessage() { LeaveRequest leaveRequest = new GetLeaveRequest().GetLeaveRequestByPKID(PhoneMessage.PhoneMessageType.PKID); StringBuilder answer = new StringBuilder(); answer.AppendFormat("³É¹¦{0}ÁË{1}µÄÇë¼ÙÉêÇë", Operation ? "ͨ¹ý" : "¾Ü¾ø", leaveRequest.Account.Name); _Sms.SendOneMessage( new SendMessageDataModel(-1, PhoneMessage.Assessor.MobileNum, answer.ToString(), SmsClientProcessCenter._HrmisId)); }
///<summary> /// 构造函数 ///</summary> public GetEmployeeAttendanceStatistics() { _GetLeaveRequest = new GetLeaveRequest(); _GetOutApplication = new GetOutApplication(); _GetOverWork = new GetOverWork(); }
///<summary> /// 得到某一员工,某天的所有请假单 ///</summary> ///<param name="employeeID"></param> ///<param name="date"></param> ///<returns></returns> public List <LeaveRequest> GetLeaveRequestListDetailByEmployee(int employeeID, DateTime date) { GetLeaveRequest getLeaveRequest = new GetLeaveRequest(); return(getLeaveRequest.GetLeaveRequestDetailByAccountIDAndDate(employeeID, date)); }