From 6454d992ea0c6d10a225d939283804c48973d732 Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Sun, 26 May 2024 18:08:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20IReportLogic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs | 2 +- .../BusinessLogicsContracts/IReportLogic.cs | 13 +++++++++++-- Bank/BankRestApi/Controllers/ReportController.cs | 7 +++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs index f0deebd..7c7bdf4 100644 --- a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs +++ b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs @@ -54,7 +54,7 @@ namespace BankBusinessLogic.BusinessLogic }); } - public void SaveRequestsComponentsToExcelFile(ReportBindingModel model) + public void SaveRequestsToExcelFile(ReportBindingModel model) { _saveToExcel.CreateRequestsDoc(new ExcelInfo { diff --git a/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs index 5756725..8247263 100644 --- a/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs +++ b/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs @@ -1,4 +1,5 @@ -using BankContracts.SearchModels; +using BankContracts.BindingModels; +using BankContracts.SearchModels; using BankContracts.ViewModels; using System; using System.Collections.Generic; @@ -14,5 +15,13 @@ namespace BankContracts.BusinessLogicsContracts List CreateReportOperationsRequests(CardSearchModel model); List CreateReportRequests(AccountSearchModel model); List CreateReportTransfersWithdrawals(AccountSearchModel model); - } + void SaveRequestsToExcelFile(ReportBindingModel model); + void SaveRequestsToWordFile(ReportBindingModel model); + void SaveTransfersToWordFile(ReportBindingModel model); + void SaveTransfersToExcelFile(ReportBindingModel model); + void SaveOperationsRequestsToPdfFile(ReportBindingModel model); + void SaveTransfersWithdrawalsToPdfFile(ReportBindingModel model); + + + } } diff --git a/Bank/BankRestApi/Controllers/ReportController.cs b/Bank/BankRestApi/Controllers/ReportController.cs index 7682a05..6d1cd25 100644 --- a/Bank/BankRestApi/Controllers/ReportController.cs +++ b/Bank/BankRestApi/Controllers/ReportController.cs @@ -30,7 +30,14 @@ namespace BankRestApi.Controllers [HttpPost] public void SaveTransfersToWord(ReportBindingModel? model) { + try + { + _logic.(model); + } + catch(Exception ex) + { + } } [HttpPost] public void SaveTransfersToExcel(ReportBindingModel? model)