コード例 #1
0
        public bool ContainsAttendance(IAttendance attendance)
        {
            if (attendance == null)
                throw new ArgumentNullException(nameof(attendance));

            return personAttendanceCache.ContainsKey(attendance.Attendee);
        }
コード例 #2
0
 public RtLeaveApiController()
 {
     _leaveRepository       = RTUnityMapper.GetInstance <IEmployeeLeave>();
     _departmentRepository  = RTUnityMapper.GetInstance <IDepartment>();
     _noticeBoardRepository = RTUnityMapper.GetInstance <INoticeBoard>();
     _attendance            = RTUnityMapper.GetInstance <IAttendance>();
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public AttendancesController(IEmployeeInfoRepository e, IAttendance a, IBranchRepository b, IDepartmentRepository d)
 {
     this.attendanceRepository   = a;
     this.employeeInfoRepository = e;
     this.branchRepository       = b;
     this.departmentRepository   = d;
 }
コード例 #5
0
        public void RemoveAttendance(IAttendance attendance)
        {
            if (attendance == null)
                throw new ArgumentNullException(nameof(attendance));

            personAttendanceCache.Remove(attendance.Attendee);
            PersonCollectionControl.RemovePerson(attendance.Attendee);
        }
コード例 #6
0
        public void AddAttendance(IAttendance attendance)
        {
            if (attendance == null)
                throw new ArgumentNullException(nameof(attendance));

            personAttendanceCache.Add(attendance.Attendee, attendance);
            PersonCollectionControl.AddPerson(attendance.Attendee);
        }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
        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));
        }
コード例 #10
0
ファイル: BusinessDay.cs プロジェクト: Mirandatz/Bentham
 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;
 }
コード例 #11
0
        public AttendanceController(IHubContext <SignalRHub,
                                                 ITypedHubClient> hubContext,
                                    IAttendance attendance,
                                    IEvent eventBusiness,
                                    IFirstTimer firstTimer)
        {
            this.attendanceBusiness = attendance;
            this.eventBusiness      = eventBusiness;
            this.firstTimerBusiness = firstTimer;

            _hubContext = hubContext;
        }
コード例 #12
0
        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
            };
        }
コード例 #13
0
 public AttendanceService(IAttendance iAttendance)
 {
     _iattendance = iAttendance;
 }
コード例 #14
0
ファイル: MDStamp.cs プロジェクト: yangyang01/Hrbu
        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 + "&nbsp;(" + 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);
            }
        }
コード例 #15
0
 public AttendanceController(UserManager <NewUser> userManager, IAttendance attendance, ICategoryItems categoryItems)
 {
     _userManager   = userManager;
     _attendance    = attendance;
     _categoryItems = categoryItems;
 }
コード例 #16
0
 public AttendanceController(IAttendance attendance)
 {
     _attendance = attendance;
 }
コード例 #17
0
 public RtAttendanceApiController()
 {
     _attendance = RTUnityMapper.GetInstance <IAttendance>();
     _company    = RTUnityMapper.GetInstance <ICompany>();
 }