From 786d2de66902f0168b3693151c0b574d2556d335 Mon Sep 17 00:00:00 2001 From: dasha Date: Wed, 17 May 2023 15:37:25 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B0=20=D0=BC=D0=BE=D0=B6=D0=B5=D1=82=20?= =?UTF-8?q?=D0=B4=D0=B0=D0=B6=D0=B5=20=D1=82=D0=B0=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Storekeeper/ReportStorekeeperLogic.cs | 13 +++++++++---- .../IReportStorekeeperLogic.cs | 8 ++++---- 2 files changed, 13 insertions(+), 8 deletions(-) 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); } }