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(); }
public void Calculate() { TargetedHours.Calculate(); PlannedHours.Calculate(); Percents.BuildPercent(TargetedHours, PlannedHours); if (ExistBufferHours) { CurrentBufferHours = AvailableWorldBufferHours + (SumTargetedHours - SumPlannedHours); } else { CurrentBufferHours = 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(); }
public StoreWorldPlanningInfo() { TargetedHours.Clear(); }