示例#1
0
 protected override void OnChangeCategoryConstraints(ICategoryConstraints categoryConstraints)
 {
     foreach (var indicators in _indicatorsDictionary.Values)
     {
         indicators.CategoryConstraints = categoryConstraints;
     }
 }
示例#2
0
        public CompositeQuantityIndicators(string name, ICategoryConstraints constraints, IEnumerable <QuantityIndicators> indicatorsList)
            : this(name, constraints)
        {
            var indicators = indicatorsList.ToArray();

            foreach (var quantityIndicators in indicators)
            {
                _indicatorsDictionary[quantityIndicators.Name] = quantityIndicators;
            }
        }
示例#3
0
        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 );
        }
示例#4
0
 protected QuantityIndicators(string name, ICategoryConstraints constraints)
     : base(name)
 {
     _categoryConstraints = constraints ?? throw new ArgumentNullException();
 }
示例#5
0
 protected override void OnChangeCategoryConstraints(ICategoryConstraints categoryConstraints)
 {
     throw new NotImplementedException();
 }
示例#6
0
 protected ValueIndicators(string name, ICategoryConstraints constraints) : base(name, constraints)
 {
     ValueList = new List <double>(_categoryConstraints.Count);
 }
示例#7
0
 public CargoIndicators(string name, ICategoryConstraints constraints) : base(name, constraints)
 {
 }
示例#8
0
 public CompositeQuantityIndicators(string name, ICategoryConstraints constraints)
     : base(name, constraints)
 {
     _indicatorsDictionary = new Dictionary <string, QuantityIndicators>();
 }
示例#9
0
 public WeightIndicators(string name, ICategoryConstraints constraints) : base(name, constraints)
 {
 }
示例#10
0
 public VolumeIndicators(string name, ICategoryConstraints constraints) : base(name, constraints)
 {
 }