From 296ec5bfde288ac884680f406a787b196103fb6f Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Sun, 26 May 2024 15:32:11 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BankBusinessLogic/BusinessLogic/ReportLogic.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs index 7c7b043..5ca4ead 100644 --- a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs +++ b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs @@ -1,5 +1,6 @@ using BankBusinessLogic.OfficePackage; using BankBusinessLogic.OfficePackage.DocumentModels; +using BankContracts.BindingModels; using BankContracts.BusinessLogicsContracts; using BankContracts.SearchModels; using BankContracts.StoragesContracts; @@ -56,6 +57,19 @@ namespace BankBusinessLogic.BusinessLogic { return _cardStorage.GetReportTransfersList(model); } + + public void SaveTransfersToWordFile(ReportBindingModel model) + { + _saveToWord.CreateDoc(new WordInfo + { + FileName = model.FileName, + Title = "Список кузнечных изделий", + Transfers = CreateReportTransfers(new CardSearchModel + { + SelectedCardIds = model.S + }) + }); + } #endregion #region//отчеты по картам за период с расшифровкой по заявкам и операциям в формате pdf