Пример #1
0
        public void SetTargetedHours(IntArrayTP hours)
        {
            if (hours == null || hours.Count != 7)
            {
                Debug.Assert(false);
                return;
            }

            for (int i = 0; i < 7; i++)
            {
                TargetedHours[i] = hours[i];
            }

            TargetedHours.Calculate();
        }
Пример #2
0
        public void Calculate()
        {
            TargetedHours.Calculate();
            PlannedHours.Calculate();
            Percents.BuildPercent(TargetedHours, PlannedHours);

            if (ExistBufferHours)
            {
                CurrentBufferHours = AvailableWorldBufferHours + (SumTargetedHours - SumPlannedHours);
            }
            else
            {
                CurrentBufferHours = 0;
            }
        }
Пример #3
0
        public void SetTargetedHours(int[] hours)
        {
            if (hours == null || hours.Length < 7)
            {
                Debug.Assert(false);
                return;
            }

            for (int i = 0; i < 7; i++)
            {
                TargetedHours[i] = hours[i];
                //_TargetedHours[i] = hours[i];
            }

            TargetedHours.Calculate();
        }
Пример #4
0
 public StoreWorldPlanningInfo()
 {
     TargetedHours.Clear();
 }