diff --git a/HardwareShop/HardwareShopBusinessLogic/BusinessLogics/Storekeeper/ReportStorekeeperLogic.cs b/HardwareShop/HardwareShopBusinessLogic/BusinessLogics/Storekeeper/ReportStorekeeperLogic.cs index cb63b86..2fb9627 100644 --- a/HardwareShop/HardwareShopBusinessLogic/BusinessLogics/Storekeeper/ReportStorekeeperLogic.cs +++ b/HardwareShop/HardwareShopBusinessLogic/BusinessLogics/Storekeeper/ReportStorekeeperLogic.cs @@ -78,19 +78,24 @@ namespace HardwareShopBusinessLogic.BusinessLogics.Storekeeper return result; } - public void SaveBuildGoodToExcelFile(ReportBindingModel model) + public void SaveBuildGoodToExcelFile(ReportBindingModel model, List goods) { _saveToExcel.CreateGoodBuildReport(new ExcelInfo { FileName = model.FileName, Title = "Список суши", - + BuildGood = GetBuildGood(goods) }); } - public void SaveBuildGoodToWordFile(ReportBindingModel model) + public void SaveBuildGoodToWordFile(ReportBindingModel model, List goods) { - throw new NotImplementedException(); + _saveToWord.CreateGoodBuildReport(new WordInfo + { + FileName = model.FileName, + Title = "Список суши", + BuildGood = GetBuildGood(goods) + }); } } } diff --git a/HardwareShop/HardwareShopContracts/BusinessLogicsContracts/IReportStorekeeperLogic.cs b/HardwareShop/HardwareShopContracts/BusinessLogicsContracts/IReportStorekeeperLogic.cs index 6201133..148398b 100644 --- a/HardwareShop/HardwareShopContracts/BusinessLogicsContracts/IReportStorekeeperLogic.cs +++ b/HardwareShop/HardwareShopContracts/BusinessLogicsContracts/IReportStorekeeperLogic.cs @@ -21,15 +21,15 @@ namespace HardwareShopContracts.BusinessLogicsContracts List GetComponents(UserBindingModel user, ReportBindingModel model); /// - /// Сохранение комплектующих с указаеним товара/сборки в файл-Word + /// Сохранение списка сборок по выбранным товарам в файл-Word /// /// - void SaveBuildGoodToWordFile(ReportBindingModel model); + void SaveBuildGoodToWordFile(ReportBindingModel model, List goods); /// - /// Сохранение комплектующих с указаеним товара/сборки в файл-Excel + /// Сохранение списка сборок по выбранным товарам в файл-Excel /// /// - void SaveBuildGoodToExcelFile(ReportBindingModel model); + void SaveBuildGoodToExcelFile(ReportBindingModel model, List goods); } }