Ejemplo n.º 1
0
 protected virtual void Init()
 {
     _weekplanningservice = _timeservice.EmployeeWeekTimePlanningService as EmployeeWeekTimePlanningService;
     _dayplanningservice  = _timeservice.EmployeeDayStatePlanningService as EmployeeDayStatePlanningService;
     _worktimeservice     = _timeservice.WorkingTimePlanningService as WorkingTimePlanningService;
     _absencetimeservice  = _timeservice.AbsenceTimePlanningService as AbsenceTimePlanningService;
 }
Ejemplo n.º 2
0
        private static void TestServices()
        {
            RoleService.Init();
            UserService.Init();
            CountryService.Init();
            LanguageService.Init();
            AvgAmountService.Init();
            CountryAdditionalHourService.Init();
            ColouringService.Init();
            FeastService.Init();
            AbsenceService.Init();
            WorkingModelService.Init();
            YearlyWorkingDayService.Init();
            EmployeeService.Init();
            EmployeeRelationService.Init();
            EmployeeContractService.Init();
            LongTimeAbsenceService.Init();
            EmployeeLongTimeAbsenceService.Init();
            StoreService.Init();
            WGRService.Init();
            HWGRService.Init();
            WorldService.Init();
            StoreToWorldService.Init();
            WorldToHWGRService.Init();
            HwgrToWgrService.Init();
            StoreWorkingTimeService.Init();
            StoreAdditionalHourService.Init();
            BufferHoursService.Init();
            BenchmarkService.Init();
            TrendCorrectionService.Init();
            PersonMinMaxService.Init();
            RegionService.Init();

            AbsenceTimePlanningService.Init();
            AbsenceTimeRecordingService.Init();
            WorkingTimePlanningService.Init();
            WorkingTimeRecordingService.Init();
            EmployeeTimeService.Init();
            AvgWorkingDaysInWeekService.Init();
            EmployeeDayStatePlanningService.Init();
            EmployeeDayStateRecordingService.Init();
            EmployeeWeekTimePlanningService.Init();
            EmployeeWeekTimeRecordingService.Init();
            EmployeePlanningWorkingModelService.Init();
            EmployeeRecordingWorkingModelService.Init();
        }
Ejemplo n.º 3
0
 protected virtual void Init()
 {
     _weekplanningservice = _timeservice.EmployeeWeekTimePlanningService as EmployeeWeekTimePlanningService;
     _dayplanningservice = _timeservice.EmployeeDayStatePlanningService as EmployeeDayStatePlanningService;
     _worktimeservice = _timeservice.WorkingTimePlanningService as WorkingTimePlanningService;
     _absencetimeservice = _timeservice.AbsenceTimePlanningService as AbsenceTimePlanningService;
 }
Ejemplo n.º 4
0
        public ExPlanningWorkingTime()
        {
            _service = ServerEnvironment.WorkingTimePlanningService as WorkingTimePlanningService;

            Debug.Assert(Service != null);
        }
Ejemplo n.º 5
0
        public ExPlanningWorkingTime()
        {
            _service = ServerEnvironment.WorkingTimePlanningService as WorkingTimePlanningService;

            Debug.Assert(Service != null);
        }
Ejemplo n.º 6
0
        public static void InitServices()
        {
            // when connection is lost, it seems old references are no longer valid
            _ImportParam.CountryService  = null;
            _ImportParam.EmployeeService = null;
            _ImportParam.RegionService   = null;
            _ImportParam.StoreService    = null;
            _UserService     = null;
            _CountryService  = null;
            _LanguageService = null;
            _EmployeeService = null;
            _StoreService    = null;
            _RegionService   = null;
            _AuthService     = null;
            _RoleService     = null;

            RoleService.Init();
            UserService.Init();
            CountryService.Init();
            LanguageService.Init();
            AvgAmountService.Init();
            CountryAdditionalHourService.Init();
            ColouringService.Init();
            FeastService.Init();
            AbsenceService.Init();
            WorkingModelService.Init();
            YearlyWorkingDayService.Init();
            EmployeeService.Init();
            EmployeeRelationService.Init();
            EmployeeAllInService.Init();
            EmployeeContractService.Init();
            LongTimeAbsenceService.Init();
            EmployeeLongTimeAbsenceService.Init();
            StoreService.Init();
            WGRService.Init();
            HWGRService.Init();
            WorldService.Init();
            StoreToWorldService.Init();
            WorldToHWGRService.Init();
            HwgrToWgrService.Init();
            StoreWorkingTimeService.Init();
            StoreAdditionalHourService.Init();
            BufferHoursService.Init();
            BufferHourAvailableService.Init();
            BenchmarkService.Init();
            TrendCorrectionService.Init();
            PersonMinMaxService.Init();
            RegionService.Init();

            AbsenceTimePlanningService.Init();
            AbsenceTimeRecordingService.Init();
            WorkingTimePlanningService.Init();
            WorkingTimeRecordingService.Init();
            EmployeeTimeService.Init();
            AvgWorkingDaysInWeekService.Init();
            EmployeeDayStatePlanningService.Init();
            EmployeeDayStateRecordingService.Init();
            EmployeeWeekTimePlanningService.Init();
            EmployeeWeekTimeRecordingService.Init();
            EmployeePlanningWorkingModelService.Init();
            EmployeeRecordingWorkingModelService.Init();
            EmployeeHolidaysInfoService.Init();

            _ImportParam.CountryService  = CountryService;
            _ImportParam.EmployeeService = EmployeeService;
            _ImportParam.RegionService   = RegionService;
            _ImportParam.StoreService    = StoreService;
        }