Ejemplo n.º 1
0
        public override void Calculate()
        {
            //EmployeeWeekBuilder builder = new EmployeeWeekBuilder(_employeeservice);
            EmployeeWeekBuilder builder = new EmployeeWeekBuilder();

            builder.LoadWeeks = true;
            _employeeweeks    = builder.BuildAndFillActualWeek(StoreId, -1, BeginDate, EndDate);
            _absencemanager.FillEmployeeWeek(_employeeweeks);
            if (_employeeweeks != null && _employeeweeks.Count > 0)
            {
                foreach (EmployeeWeek ew in _employeeweeks)
                {
                    ew.InitWeekState();
                    ew.PlannedWeek = false;
                    _wmodelmanager.CalculateNew(ew, true);
                }
            }
        }
Ejemplo n.º 2
0
        public virtual void Calculate()
        {
            // EmployeeWeekBuilder builder = new EmployeeWeekBuilder(_employeeservice);
            EmployeeWeekBuilder builder = new EmployeeWeekBuilder();
            builder.LoadWeeks = true;
            _employeeweeks = builder.BuildAndFillPlanningWeek(StoreId, -1, BeginDate, EndDate);
            _absencemanager.FillEmployeeWeek(_employeeweeks);

            if (_employeeweeks != null && _employeeweeks.Count > 0)
            {

                foreach (EmployeeWeek ew in _employeeweeks)
                {
                    ew.InitWeekState();
                    _wmodelmanager.CalculateNew(ew, true);
                }
            }
        }