Фикс
This commit is contained in:
parent
7fff7351f4
commit
d08448f7dc
@ -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
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user