private void FillShipmentIndicators(CompositeQuantityIndicators shipment) { shipment.AddIndicators(new CompositeQuantityIndicators(_indicatorsNames[OperationGroups.Shipment])); (( CompositeQuantityIndicators )shipment[_indicatorsNames[OperationGroups.Shipment]]) .AddIndicators(new WeightIndicators("Объём")); (( CompositeQuantityIndicators )shipment[_indicatorsNames[OperationGroups.Shipment]]) .AddIndicators(new CargoIndicators("Места")); }
private void FillGetheringIndicators(CompositeQuantityIndicators gathered) { // gathering gathered.AddIndicators(new CompositeQuantityIndicators(_indicatorsNames[OperationGroups.Gathering])); (( CompositeQuantityIndicators )gathered[_indicatorsNames[OperationGroups.Gathering]]) .AddIndicators(new LineIndicators("Строчки")); (( CompositeQuantityIndicators )gathered[_indicatorsNames[OperationGroups.Gathering]]) .AddIndicators(new VolumeIndicators("Объём")); // // client gathering // gathered.AddIndicators( new CompositeQuantityIndicators( _indicatorsNames[ OperationGroups.ClientGathering ] ) ); // ( ( CompositeQuantityIndicators )gathered[ _indicatorsNames[ OperationGroups.ClientGathering ] ] ) // .AddIndicators( new LineIndicators( "Строчки" ) ); // ( ( CompositeQuantityIndicators )gathered[ _indicatorsNames[ OperationGroups.ClientGathering ] ] ) // .AddIndicators( new VolumeIndicators( "Объём" ) ); // // shopper gathering // gathered.AddIndicators( new CompositeQuantityIndicators( _indicatorsNames[ OperationGroups.ShopperGathering ] ) ); // ( ( CompositeQuantityIndicators )gathered[ _indicatorsNames[ OperationGroups.ShopperGathering ] ] ) // .AddIndicators( new LineIndicators( "Строчки" ) ); // ( ( CompositeQuantityIndicators )gathered[ _indicatorsNames[ OperationGroups.ShopperGathering ] ] ) // .AddIndicators( new VolumeIndicators( "Объём" ) ); //} //private void FillScanningIndicators ( CompositeQuantityIndicators scanned ) //{ // scanned.AddIndicators( new CompositeQuantityIndicators( _indicatorsNames[ OperationGroups.Scanning ] ) ); // ( ( CompositeQuantityIndicators )scanned[ _indicatorsNames[ OperationGroups.Scanning ] ] ) // .AddIndicators( new LineIndicators( "Строчки" ) ); // ( ( CompositeQuantityIndicators )scanned[ _indicatorsNames[ OperationGroups.Scanning ] ] ) // .AddIndicators( new VolumeIndicators( "Объём" ) ); // scanned.AddIndicators( new CompositeQuantityIndicators( _indicatorsNames[ OperationGroups.ClientScanning ] ) ); // ( ( CompositeQuantityIndicators )scanned[ _indicatorsNames[ OperationGroups.ClientScanning ] ] ) // .AddIndicators( new LineIndicators( "Строчки" ) ); // ( ( CompositeQuantityIndicators )scanned[ _indicatorsNames[ OperationGroups.ClientScanning ] ] ) // .AddIndicators( new VolumeIndicators( "Объём" ) ); }
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 ); }