Compare commits

...

2 Commits

4 changed files with 35 additions and 9 deletions

View File

@ -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
}
}

View File

@ -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

View File

@ -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();
}
}

View File

@ -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();
}
}