public Productivity2(Employee employee) { Employee = employee ?? throw new ArgumentNullException(); _timeConstraints = new DefaultTimeConstraints(); _categoryConstraints = new DefaultCategoryConstraints(); _times = new TimeIndicators("Рабочее время", _timeConstraints); _gathered = new CompositeQuantityIndicators("Набор", _categoryConstraints); FillGetheringIndicators(_gathered); _placed = new LineIndicators(_indicatorsNames[OperationGroups.Placing], _categoryConstraints); _defragment = new LineIndicators(_indicatorsNames[OperationGroups.Defragmentation], _categoryConstraints); _inventory = new LineIndicators(_indicatorsNames[OperationGroups.Inventory], _categoryConstraints); _scanned = new CompositeQuantityIndicators("Сканирование"); //FillScanningIndicators( _scanned ); _shipment = new CompositeQuantityIndicators(_indicatorsNames[OperationGroups.Shipment]); //FillShipmentIndicators( _shipment ); }
public TimeIndicators(string name, ITimeConstraints timeConstraint) : base(name) { _timeConstraint = timeConstraint ?? throw new ArgumentNullException(); }