示例#1
0
        public void Calculate()
        {
            TargetedHours.Calculate();
            PlannedHours.Calculate();
            Percents.BuildPercent(TargetedHours, PlannedHours);

            if (ExistBufferHours)
            {
                CurrentBufferHours = AvailableWorldBufferHours + (SumTargetedHours - SumPlannedHours);
            }
            else
            {
                CurrentBufferHours = 0;
            }
        }
示例#2
0
        public void Calculate(int[] inputHours)
        {
            if (inputHours == null || inputHours.Length < 7)
            {
                Debug.Assert(false);
                return;
            }

            for (int i = 0; i < 7; i++)
            {
                PlannedHours[i] = inputHours[i];
            }
            PlannedHours.Calculate();

            Calculate();
        }
示例#3
0
        public void Calculate(IntArrayTP inputHours)
        {
            if (inputHours == null || inputHours.Count != 7)
            {
                Debug.Assert(false);
                return;
            }

            for (int i = 0; i < 7; i++)
            {
                PlannedHours[i] = inputHours[i];
            }

            PlannedHours.Calculate();

            Calculate();
        }