Пример #1
0
        public WorldRecordingContext(ILongTimeAbsenceService longabsenceService,
            IAbsenceService absenceService,
            IWorkingModelService wmManager,
            IColouringService colorManager,
            IEmployeeService emplService,
            IStoreService storeService,
            IWorkingTimePlanningService workingTimePlanningService,
            IAbsenceTimePlanningService absenceTimePlanningService,
            IWorkingTimeRecordingService workingTimeRecordingService,
            IAbsenceTimeRecordingService absenceTimeRecordingService
            )
        {
            _EmployeeService = emplService;
            _StoreService = storeService;
            _WorkingTimePlanningService = workingTimePlanningService;
            _AbsenceTimePlanningService = absenceTimePlanningService;

            _WorkingTimeRecordingService = workingTimeRecordingService;
            _AbsenceTimeRecordingService = absenceTimeRecordingService;

            m_countryabsences = new AbsenceManager(absenceService);
            m_longabsences = new LongTimeAbsenceManager(longabsenceService);
            m_workingmodelmanager = new WorkingModelManagerNew(wmManager);
            m_colormanager = new CountryColorManager(colorManager);

            _ViewDate = DateTime.Today;
            _BeginWeekDate = DateTimeHelper.GetMonday(DateTime.Today);
            _EndWeekDate = DateTimeHelper.GetSunday(DateTime.Today);
            _ViewDate = DateTime.Today;
        }
Пример #2
0
        public WorldPlanningContext()
        {
            m_begintime = DateTime.Today;

            m_begintime = DateTimeHelper.GetMonday(m_begintime);

            m_endtime = DateTimeHelper.GetSunday(m_begintime);
            ViewDate = DateTime.Today;

            m_countryabsences = new AbsenceManager(ClientEnvironment.AbsenceService);
            m_longabsences = new LongTimeAbsenceManager(ClientEnvironment.LongTimeAbsenceService);
            m_workingmodelmanager = new WorkingModelManager(ClientEnvironment.WorkingModelService);
            m_colormanager = new CountryColorManager(ClientEnvironment.ColouringService);
        }
        public WorldsTimeRecordingPrintoutContext(long countryID, long storeID, DateTime startDate, DateTime viewDate)
        {
            _countryID = countryID;
            _storeID = storeID;

            _countryAbsences = new AbsenceManager(ClientEnvironment.AbsenceService);
            _countryAbsences.CountryId = _countryID;

            _longAbsences = new LongTimeAbsenceManager(ClientEnvironment.LongTimeAbsenceService);
            _longAbsences.CountryId = _countryID;

            _workingModelManager = new WorkingModelManagerNew(ClientEnvironment.WorkingModelService);
            _workingModelManager.CountryId = _countryID;

            _colorManager = new CountryColorManager(ClientEnvironment.ColouringService);
            _colorManager.CountryId = _countryID;

            _beginWeekDate = DateTimeHelper.GetMonday(startDate);
            _endWeekDate = DateTimeHelper.GetSunday(startDate);
            _viewDate = viewDate;

            LoadStoreDayInfo();
        }
Пример #4
0
 private void BuildTestAbsenceList()
 {
     m_ListAbsence = new LongTimeAbsenceManager(Context.CurrentCountryID);
     lookUpAbsence.Properties.DataSource = ListAbsence;
     if(ListAbsence.Count > 0)
     {
         lookUpAbsence.EditValue = ListAbsence[0].ID;
     }
 }
Пример #5
0
        private void LoadCountryEnvironment()
        {
            if (_absencemanager == null)
                _absencemanager = new AbsenceManager(ClientEnvironment.AbsenceService, CurrentCountryId);

            _absencemanager.CountryId = CurrentCountryId;

            if (_longabsencesmanager == null)
                _longabsencesmanager = new LongTimeAbsenceManager(ClientEnvironment.LongTimeAbsenceService);

            _longabsencesmanager.CountryId = CurrentCountryId;

            BuildQuickAbsenceMenus();
        }