diff --git a/PrecastConcretePlant/PrecastConcretePlantBusinessLogic/ShopLogic.cs b/PrecastConcretePlant/PrecastConcretePlantBusinessLogic/ShopLogic.cs index 86cba03..ed8fabd 100644 --- a/PrecastConcretePlant/PrecastConcretePlantBusinessLogic/ShopLogic.cs +++ b/PrecastConcretePlant/PrecastConcretePlantBusinessLogic/ShopLogic.cs @@ -155,6 +155,7 @@ namespace PrecastConcretePlantBusinessLogic Id = element.Id, Address = element.Address, Name = element.Name, + MaxCountReinforceds = element.MaxCountReinforceds, DateOpening = element.DateOpening, Reinforceds = element.Reinforceds }); diff --git a/PrecastConcretePlant/PrecastConcretePlantFileImplement/Shop.cs b/PrecastConcretePlant/PrecastConcretePlantFileImplement/Shop.cs index ce969c9..1c105ed 100644 --- a/PrecastConcretePlant/PrecastConcretePlantFileImplement/Shop.cs +++ b/PrecastConcretePlant/PrecastConcretePlantFileImplement/Shop.cs @@ -81,6 +81,7 @@ namespace PrecastConcretePlantFileImplement Name = model.Name; Address = model.Address; DateOpening = model.DateOpening; + MaxCountReinforceds = model.MaxCountReinforceds; CountReinforceds = model.Reinforceds.ToDictionary(x => x.Key, x => x.Value.Item2); _cachedReinforceds = null; } diff --git a/PrecastConcretePlant/PrecastConcretePlantFileImplement/ShopStorage.cs b/PrecastConcretePlant/PrecastConcretePlantFileImplement/ShopStorage.cs index 45d6baf..92d2ffc 100644 --- a/PrecastConcretePlant/PrecastConcretePlantFileImplement/ShopStorage.cs +++ b/PrecastConcretePlant/PrecastConcretePlantFileImplement/ShopStorage.cs @@ -83,7 +83,7 @@ namespace PrecastConcretePlantFileImplement { var resultCount = _source.Shops .Select(shop => shop.Reinforceds - .FirstOrDefault(x => x.Key == reinforced.Id).Value.Item2) + .FirstOrDefault(x => x.Key == reinforced.Id).Value.Item2) .Sum(); if (resultCount < needCount) {