Compare commits
2 Commits
7fff7351f4
...
4dc0725936
Author | SHA1 | Date | |
---|---|---|---|
4dc0725936 | |||
d7a85e2d65 |
@ -53,6 +53,19 @@ namespace BankBusinessLogic.BusinessLogic
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
public void SaveRequestsComponentsToExcelFile(ReportBindingModel model)
|
||||
{
|
||||
_saveToExcel.CreateDoc(new ExcelInfo
|
||||
{
|
||||
FileName = model.FileName,
|
||||
Title = "Список заявок",
|
||||
Requests = CreateReportRequests(new AccountSearchModel
|
||||
{
|
||||
SelectedAccountIds = model.SelectedAccountIds,
|
||||
}),
|
||||
});
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region//списки переводов по выбранным картам в формате word и excel
|
||||
@ -87,6 +100,22 @@ namespace BankBusinessLogic.BusinessLogic
|
||||
{
|
||||
return _accountStorage.GetTransfersWithdrawalsReport(model);
|
||||
}
|
||||
|
||||
public void SaveTransfersWithdrawalsToPdfFile(ReportBindingModel model)
|
||||
{
|
||||
_saveToPdf.CreateDoc(new PdfInfo
|
||||
{
|
||||
FileName = model.FileName,
|
||||
Title = "Отчёт по счетам",
|
||||
DateFrom = model.DateFrom!.Value,
|
||||
DateTo = model.DateTo!.Value,
|
||||
TransfersWithdrawals = CreateReportTransfersWithdrawals(new AccountSearchModel
|
||||
{
|
||||
DateFrom = model.DateFrom.Value,
|
||||
DateTo = model.DateTo.Value,
|
||||
})
|
||||
});
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ namespace BankBusinessLogic.OfficePackage
|
||||
/// Создание отчета
|
||||
/// </summary>
|
||||
/// <param name="info"></param>
|
||||
public void CreateReport(ExcelInfo info)
|
||||
public void CreateDoc(ExcelInfo info)
|
||||
{
|
||||
CreateExcel(info);
|
||||
InsertCellInWorksheet(new ExcelCellParameters
|
||||
|
@ -11,11 +11,7 @@ namespace BankBusinessLogic.OfficePackage.DocumentModels
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public List<ReportTransfersViewModel> Transfers
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} = new();
|
||||
|
||||
}
|
||||
public List<ReportTransfersViewModel> Transfers { get; set; } = new();
|
||||
public List<ReportRequestsViewModel> Requests { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
@ -14,5 +14,6 @@ namespace BankBusinessLogic.OfficePackage.DocumentModels
|
||||
public DateTime DateFrom { get; set; }
|
||||
public DateTime DateTo { get; set; }
|
||||
public List<ReportOperationsRequestsViewModel> OperationsRequests { get; set; } = new();
|
||||
}
|
||||
public List<ReportTransfersWithdrawalsViewModel> TransfersWithdrawals { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user