Мелкая правка
This commit is contained in:
parent
3ed0568644
commit
dd8c769984
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user