Compare commits

...

2 Commits

2 changed files with 32 additions and 2 deletions

View File

@ -79,10 +79,23 @@ namespace BankBusinessLogic.BusinessLogic
_saveToWord.CreateDoc(new WordInfo
{
FileName = model.FileName,
Title = "Список кузнечных изделий",
Title = "Список переводов",
Transfers = CreateReportTransfers(new CardSearchModel
{
SelectedCardIds = model.S
SelectedCardIds = model.SelectedCardIds
})
});
}
public void SaveTransfersToExcelFile(ReportBindingModel model)
{
_saveToExcel.CreateReport(new ExcelInfo
{
FileName = model.FileName,
Title = "Список переводов",
Transfers = CreateReportTransfers(new CardSearchModel
{
SelectedCardIds = model.SelectedCardIds
})
});
}
@ -93,6 +106,22 @@ namespace BankBusinessLogic.BusinessLogic
{
return _cardStorage.GetReportOperationsRequestsList(model);
}
public void SaveOperationsRequestsToPdfFile(ReportBindingModel model)
{
_saveToPdf.CreateDoc(new PdfInfo
{
FileName = model.FileName,
Title = "Отчет по картам",
DateFrom = model.DateFrom!.Value,
DateTo = model.DateTo!.Value,
OperationsRequests = CreateReportOperationsRequests(new CardSearchModel
{
DateFrom = model.DateFrom!.Value,
DateTo = model.DateTo!.Value,
})
});
}
#endregion
#region//отчеты по счетам за период с расшифровкой по переводам и выдачам в формате pdf

View File

@ -12,5 +12,6 @@ namespace BankContracts.BindingModels
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
public List<int>? SelectedAccountIds { get; set; }
public List<int>? SelectedCardIds { get; set; }
}
}