public bool ContainsAttendance(IAttendance attendance) { if (attendance == null) throw new ArgumentNullException(nameof(attendance)); return personAttendanceCache.ContainsKey(attendance.Attendee); }
public RtLeaveApiController() { _leaveRepository = RTUnityMapper.GetInstance <IEmployeeLeave>(); _departmentRepository = RTUnityMapper.GetInstance <IDepartment>(); _noticeBoardRepository = RTUnityMapper.GetInstance <INoticeBoard>(); _attendance = RTUnityMapper.GetInstance <IAttendance>(); }
public EventManagementReportController ( DataContext context, IEmployee employee, IWorkOrderParent work, IEventSetup setup, IEventService service, IEventMiscellaneous miscellaneous, IWorkOrderManpower manpower, IWorkOrderSetup orderSetup, IWorkOrderService orderService, IWorkOrderMiscellaneous orderMiscellaneous, IDefaultSetting setting, IAttendance attendance, ITransaction transaction, IEventReport report ) { _context = context; _employee = employee; _work = work; _setup = setup; _service = service; _miscellaneous = miscellaneous; _manpower = manpower; _orderSetup = orderSetup; _orderService = orderService; _orderMiscellaneous = orderMiscellaneous; _setting = setting; _attendance = attendance; _transaction = transaction; _report = report; }
public AttendancesController(IEmployeeInfoRepository e, IAttendance a, IBranchRepository b, IDepartmentRepository d) { this.attendanceRepository = a; this.employeeInfoRepository = e; this.branchRepository = b; this.departmentRepository = d; }
public void RemoveAttendance(IAttendance attendance) { if (attendance == null) throw new ArgumentNullException(nameof(attendance)); personAttendanceCache.Remove(attendance.Attendee); PersonCollectionControl.RemovePerson(attendance.Attendee); }
public void AddAttendance(IAttendance attendance) { if (attendance == null) throw new ArgumentNullException(nameof(attendance)); personAttendanceCache.Add(attendance.Attendee, attendance); PersonCollectionControl.AddPerson(attendance.Attendee); }
public AttendancesController(IEmployeeInfoRepository e, IAttendance a, IBranchRepository b, IDepartmentRepository d, IHttpContextAccessor k) { this.attendanceRepository = a; this.employeeInfoRepository = e; this.branchRepository = b; this.departmentRepository = d; this.httpContextAccessor = k; }
public Hac(IAttendance attendance, ICourses courses, IIpr ipr, IReportCard reportCard, IStudentInfo studentInfo, ITranscript transcript) { _attendance = attendance; _courses = courses; _ipr = ipr; _reportCard = reportCard; _studentInfo = studentInfo; _transcript = transcript; }
public AttendanceViewModel(IAttendance attendanceStore, IPageService pageService) { _attendanceStore = attendanceStore; _pageService = pageService; LoadDataCommand = new Command(async() => await LoadData()); AddAttendance = new Command(async() => await AddAttendances()); SelectAttendance = new Command <AttendanceTableViewModel>(async c => await SelectAttendances(c)); DeleteAttendance = new Command <AttendanceTableViewModel>(async c => await DeleteAttendances(c)); }
private IAttendance[] DeserializeAttendances(XmlReader reader) { var attendanceCount = reader.ReadElementContentAsInt(nameof(AttendancesCount), string.Empty); var attendanceArray = new IAttendance[attendanceCount]; for (int i = 0; i < attendanceCount; i++) { var serializer = SerializationHelper.ReadTypeInformationAndGetSerializer(reader); var currentAttendance = (IAttendance)serializer.Deserialize(reader); attendanceArray[i] = currentAttendance; } return attendanceArray; }
public AttendanceController(IHubContext <SignalRHub, ITypedHubClient> hubContext, IAttendance attendance, IEvent eventBusiness, IFirstTimer firstTimer) { this.attendanceBusiness = attendance; this.eventBusiness = eventBusiness; this.firstTimerBusiness = firstTimer; _hubContext = hubContext; }
public AttendanceDetailViewModel(AttendanceTableViewModel viewModel, IAttendance attendanceStore, IPageService pageService) { if (viewModel == null) { throw new ArgumentNullException(nameof(viewModel)); } _pageService = pageService; _attendanceStore = attendanceStore; SaveCommand = new Command(async() => await Save()); Attendance = new Attendance { id = viewModel.Id, studentID = viewModel.StudentID, moduleID = viewModel.ModuleID, date = viewModel.Date, present = viewModel.Present, late = viewModel.Late, absent = viewModel.Absent, excused = viewModel.Excused }; }
public AttendanceService(IAttendance iAttendance) { _iattendance = iAttendance; }
public override string ToString() { stamps = new List <SingleStamp>(); IApplicationAction appaction = IOCFactory.GetInstance <IApplicationAction>(); IApplication application = IOCFactory.GetInstance <IApplication>(); ApplicationUI app = application.GetpplicationByID(this.applicationId); List <ApplicationActionUI> appcationList = appaction.GetApplicationActionByAppID(this.applicationId, action); if (appcationList != null && appcationList.Count > 0) { foreach (var item in appcationList) { var actionuser = item.ActionUserName; if (item.Action == (int)ApprovalAction.Create && !string.IsNullOrEmpty(item.AgentToUserName) && item.AgentToUserName != item.ActionUserName) { actionuser = item.AgentToUserName.Trim(); } stamps.Add(new SingleStamp() { ImgPath = imgPathBase + GetAppActionPicture((ApprovalAction)item.Action), Line1 = actionuser, Line2 = item.ActionTime.ToString("yyyy-MM-dd"), ToolTips = EnumDataSource <ApprovalAction> .GetDisplayValue(item.Action, "zh-cn") }); } if (action != ApprovalAction.Approve) { IAttendance leave = IOCFactory.GetInstance <IAttendance>(); IApplication iapplication = IOCFactory.GetInstance <IApplication>(); List <TaskUserExtendUI> taskListuser = iapplication.GetApplicationToDoTaskWithUser(this.applicationId); List <TaskGroupExtendUI> taskListgroup = iapplication.GetApplicationToDoTaskWithGroup(this.applicationId); if (app.Status == (int)ApplicationStatus.Pending) { string todouser = string.Empty; if (taskListuser != null && taskListuser.Count > 0) { int length = taskListuser.Count; for (int i = 0; i < length; i++) { todouser = todouser + taskListuser[i].vwEmpBasicInfo.ChineseName + ";"; } } if (taskListgroup != null && taskListgroup.Count > 0) { int length = taskListgroup.Count; for (int i = 0; i < length; i++) { todouser = todouser + taskListgroup[i].AuthorizationGroup.NAME + ";"; } } todouser = todouser.Trim(';'); stamps.Add(new SingleStamp() { ImgPath = imgPathBase + imgPending, Line1 = todouser, Line2 = "", ToolTips = "待处理" }); } } //string CNTitle = "<p>" + Resources.NameResource.Process + " (" + Resources.NameResource.Current + ":"; //int count = appcationList.Count - 1; //string Status = appcationList[count].ActionUserName + " " + EnumDataSource<ApprovalAction>.GetDisplayValue(appcationList[count].Action, "zh-cn"); //string TotalContent = CNTitle + Status + ")</p>"; //return TotalContent + base.ToString(); return(base.ToString()); } else { return(string.Empty); } }
public AttendanceController(UserManager <NewUser> userManager, IAttendance attendance, ICategoryItems categoryItems) { _userManager = userManager; _attendance = attendance; _categoryItems = categoryItems; }
public AttendanceController(IAttendance attendance) { _attendance = attendance; }
public RtAttendanceApiController() { _attendance = RTUnityMapper.GetInstance <IAttendance>(); _company = RTUnityMapper.GetInstance <ICompany>(); }