This commit is contained in:
Artyom_Yashin 2024-05-26 15:45:33 +04:00
parent 7fff7351f4
commit d08448f7dc
2 changed files with 32 additions and 2 deletions

View File

@ -66,10 +66,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
})
});
}
@ -80,6 +93,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; }
}
}