Пример #1
0
 public IDictionary <int, QuantifyedReagent> GetSuppliesForecasted()
 {
     foreach (PrimeryQuantifyedReagent pr in _listofPQR)
     {
         if (_listofSupplies.ContainsKey(pr.ProductId))
         {
             _listofSupplies[pr.ProductId].QuantityNeeded = _listofSupplies[pr.ProductId].QuantityNeeded + pr.Value;
         }
         else
         {
             QuantifyedReagent qr = new QuantifyedReagent(_platform, pr.ProductId, pr.MinimumQuantity);
             qr.UnitCost       = pr.UnitCost;
             qr.Unit           = pr.Unit;
             qr.PackSize       = pr.PackSize;
             qr.QuantityNeeded = pr.Value;
             _listofSupplies.Add(pr.ProductId, qr);
         }
     }
     return(_listofSupplies);
 }
Пример #2
0
 public IDictionary<int, QuantifyedReagent> GetSuppliesForecasted()
 {
     foreach (PrimeryQuantifyedReagent pr in _listofPQR)
     {
         if (_listofSupplies.ContainsKey(pr.ProductId))
         {
             _listofSupplies[pr.ProductId].QuantityNeeded = _listofSupplies[pr.ProductId].QuantityNeeded + pr.Value;
         }
         else
         {
             QuantifyedReagent qr = new QuantifyedReagent(_platform, pr.ProductId, pr.MinimumQuantity);
             qr.UnitCost = pr.UnitCost;
             qr.Unit = pr.Unit;
             qr.PackSize = pr.PackSize;
             qr.QuantityNeeded = pr.Value;
             _listofSupplies.Add(pr.ProductId, qr);
         }
     }
     return _listofSupplies;
 }