add ReportBindingModel
This commit is contained in:
parent
899c490626
commit
e0f920010b
@ -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
|
||||
|
15
Bank/BankContracts/BindingModels/ReportBindingModel.cs
Normal file
15
Bank/BankContracts/BindingModels/ReportBindingModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user