Ejemplo n.º 1
0
 public HolidayCalc(ISystemHoliday systemHolidays, UserManager <HolidayUser> userManager, IHolidayEntitlement _HolidayEntitlement, ISystemSetting systemSetting
                    , IAppointment AppointmentRepository)
 {
     this.systemHolidays    = systemHolidays;
     _holidayEntitlement    = _HolidayEntitlement;
     this.systemSetting     = systemSetting;
     _appointmentRepository = AppointmentRepository;
 }
Ejemplo n.º 2
0
        //        public HomeController(IEvent events, UserManager<IdentityUser> userManager, IHolidayEntitlement _HolidayEntitlement)
        public HomeController(IDepartment department, UserManager <HolidayUser> userManager, IHolidayEntitlement _HolidayEntitlement, IState state,
                              IRuntime _Runtime, IAppointment AppointmentRepository, IHolidayCalc holidayCalc)
        {
            //            _events = events;
            _userManager        = userManager;
            _holidayEntitlement = _HolidayEntitlement;
            _DepartmentList     = department;
            _StateList          = state;
            _runtime            = _Runtime;
            if (_runtime.CurrentDepartmentId == 0)
            {
                _runtime.CurrentDepartmentId = 1;
            }
            _appointmentRepository            = AppointmentRepository;
            _MainViewModel                    = new MainViewModel();
            _MainViewModel.DepartmentList     = _DepartmentList.GetAllDepartment();
            _MainViewModel.StateList          = _StateList.GetAllState();
            _MainViewModel.DepartmentUserList = _userManager.Users.ToList();
            _MainViewModel.UserList           = _userManager.Users.ToList();
            _MainViewModel.AppointmentList    = _appointmentRepository.GetAllAppointment();

            holidayCalc.HolidayRemaining(_MainViewModel.DepartmentUserList, System.DateTime.Now);
        }
Ejemplo n.º 3
0
//        IHolidayEntitlement holidayEntitlement;
        public EntitlementController(IHolidayEntitlement _HolidayEntitlement, UserManager <HolidayUser> userManager)
        {
            _holidayEntitlement = _HolidayEntitlement;
            _userManager        = userManager;
        }