Merge branch 'ManagersApp' of https://git.is.ulstu.ru/Artyom_Yashin/PIbd-23_Yashin_A_Zakharov_R_CourseWork_Bank into ManagersApp
This commit is contained in:
commit
37dd35b29c
@ -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
|
||||
@ -116,6 +129,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