コード例 #1
0
 public ParserEx(IAbsenceManager manager, int opentime, int closetime, int daytime)
 {
     _manager   = manager;
     _opentime  = opentime;
     _closetime = closetime;
     _daytime   = daytime;
 }
コード例 #2
0
        public TimePlanningReportContext(long countryID, long storeID, DateTime startDate, DateTime endDate)
        {
            _countryID = countryID;
            _storeID   = storeID;
            _startDate = startDate;
            _endDate   = endDate;

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

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

            _workingModels           = new WorkingModelManager(ClientEnvironment.WorkingModelService);
            _workingModels.CountryId = _countryID;

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

            _storeDays = ClientEnvironment.StoreService.GetStoreDays(_storeID, StartDate, EndDate);

            _storeEmployees = ClientEnvironment.EmployeeService.GetTimePlannignEmployee2(_storeID, StartDate, EndDate);

            if (_storeEmployees != null)
            {
                foreach (EmployeePlanningWeek week in _storeEmployees)
                {
                    if (_storeDays.AvgDayInWeek == 0)
                    {
                        week.AvgDaysWeek = 5;
                    }
                    else
                    {
                        week.AvgDaysWeek = _storeDays.AvgDayInWeek;
                    }
                    week.InitWeekState();
                }
            }
            LoadWorkingAndAbsencesHours();
            ApplyStoreDays();
        }
コード例 #3
0
        public virtual void OnChangedContext()
        {
            if (Context != null)
            {
                m_absenceList = Context.Absences;


                m_viewDate      = Context.ViewDate;
                deDate.DateTime = m_viewDate;


                OnChangedDate();
            }
            else
            {
                gridControl.DataSource = null;

                m_dailyView           = null;
                panelControl4.Visible = false;
            }

            UpdatePersonMinMaxInfo();
        }
コード例 #4
0
        public TimePlanningReportContext(long countryID, long storeID, DateTime startDate, DateTime endDate)
        {
            _countryID = countryID;
            _storeID = storeID;
            _startDate = startDate;
            _endDate = endDate;

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

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

            _workingModels = new WorkingModelManager(ClientEnvironment.WorkingModelService);
            _workingModels.CountryId = _countryID;

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

            _storeDays = ClientEnvironment.StoreService.GetStoreDays(_storeID, StartDate, EndDate);

            _storeEmployees = ClientEnvironment.EmployeeService.GetTimePlannignEmployee2(_storeID, StartDate, EndDate);

            if (_storeEmployees != null)
            {
                foreach (EmployeePlanningWeek week in _storeEmployees)
                {
                    if (_storeDays.AvgDayInWeek == 0)
                        week.AvgDaysWeek = 5;
                    else
                        week.AvgDaysWeek = _storeDays.AvgDayInWeek;
                    week.InitWeekState();
                }
            }
            LoadWorkingAndAbsencesHours();
            ApplyStoreDays();
        }