Мелкая правка

This commit is contained in:
Programmist73 2023-05-19 20:40:03 +04:00
parent 3ed0568644
commit dd8c769984
3 changed files with 28 additions and 4 deletions

View File

@ -71,6 +71,21 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
.ToList();
}
//формирование списка выдаци наличных со счёта за период
public List<ReportCashierViewModel>? GetMoneyTransfers(ReportBindingModel model)
{
return _moneyTransferStorage.GetFilteredList(new MoneyTransferSearchModel { ClientId = model.ClientId, DateFrom = model.DateFrom, DateTo = model.DateTo })
.Select(x => new ReportCashierViewModel
{
OperationId = x.Id,
DateComplite = x.DateOperation,
AccountPayeeNumber = x.AccountPayeeNumber,
AccountSenderNumber = x.AccountSenderNumber,
SumOperation = x.Sum
})
.ToList();
}
//формирование полного имени клиента для отчёта
public string GetFullName(ReportBindingModel model)
{
@ -91,7 +106,14 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
//Сохранение заготовок с указаеним изделий в файл-Excel
public void SaveAccountsToExcelFile(ReportBindingModel model)
{
throw new NotImplementedException();
_saveToExcel.CreateReport(new ExcelInfo
{
FileName = model.FileName,
Title = "Заявки на счёт",
Debiting =
});
}
//Сохранение заказов в файл-Pdf

View File

@ -13,6 +13,8 @@ namespace BankYouBankruptContracts.BindingModels
public int? ClientId { get; set; }
public int? AccountId { get; set; }
public List<int>? CardList { get; set; }
public string? ClientFullName { get; set; } = string.Empty;

View File

@ -158,11 +158,11 @@ namespace BankYouBankruptRestAPI.Controllers
{
try
{
_reportCashierLogic.SaveToExcelFile(new ReportBindingModel
_reportCashierLogic.SaveAccountsToExcelFile(new ReportBindingModel
{
FileName = "Отчёт по переводам.xls",
CardList = model.CardList
}, ExcelOperationEnum.Между_cчетами);
AccountId = model.AccountId
});
}
catch (Exception ex)
{