add ReportBindingModel

This commit is contained in:
Zakharov_Rostislav 2024-05-26 15:26:28 +04:00
parent 899c490626
commit e0f920010b
2 changed files with 27 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using BankBusinessLogic.OfficePackage;
using BankBusinessLogic.OfficePackage.DocumentModels;
using BankContracts.BusinessLogicsContracts;
using BankContracts.SearchModels;
using BankContracts.StoragesContracts;
@ -37,7 +38,17 @@ namespace BankBusinessLogic.BusinessLogic
public List<ReportRequestsViewModel> CreateReportRequests(AccountSearchModel model)
{
return _accountStorage.GetRequestsReport(model);
}
}
public void SaveRequestsToWordFile(ReportBindingModel model)
{
_saveToWord.CreateDoc(new WordInfo
{
FileName = model.FileName,
Title = "Список кузнечных изделий",
Manufactures = _ManufactureStorage.GetFullList()
});
}
#endregion
#region//списки переводов по выбранным картам в формате word и excel

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BindingModels
{
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
}
}