diff --git a/BankYouBankrupt/BankYouBankruptCashierApp/Controllers/HomeController.cs b/BankYouBankrupt/BankYouBankruptCashierApp/Controllers/HomeController.cs index 1a00ba6..9f1f207 100644 --- a/BankYouBankrupt/BankYouBankruptCashierApp/Controllers/HomeController.cs +++ b/BankYouBankrupt/BankYouBankruptCashierApp/Controllers/HomeController.cs @@ -447,5 +447,18 @@ namespace BankYouBankruptCashierApp.Controllers Response.Redirect("Index"); } - } + + [HttpGet] + public IActionResult ReportWithAccounts() + { + if (APICashier.Cashier == null) + { + return Redirect("~/Home/Enter"); + } + + ViewBag.Accounts = APICashier.GetRequest>("/api/Account/GetAllAccounts"); + + return View(); + } + } } \ No newline at end of file diff --git a/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/ReportWithAccounts.cshtml b/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/ReportWithAccounts.cshtml new file mode 100644 index 0000000..23818d8 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptCashierApp/Views/Home/ReportWithAccounts.cshtml @@ -0,0 +1,60 @@ +@using BankYouBankruptContracts.ViewModels + +@model ReportClientCardsViewModel + +@{ + ViewData["Title"] = "Отчет по аккаунтам"; +} + +
+

Отчет

+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + +
+ Номер карты + + Тип операции + + Сумма + + Статус + + Дата открытия + + Дата закрытия +
+
+
+
+
\ No newline at end of file diff --git a/BankYouBankrupt/BankYouBankruptContracts/ViewModels/ReportCashierAccountsViewModel.cs b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/ReportCashierAccountsViewModel.cs new file mode 100644 index 0000000..56e6d70 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptContracts/ViewModels/ReportCashierAccountsViewModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptContracts.ViewModels +{ + public class ReportCashierAccountsViewModel + { + public List? Accounts { get; set; } = new(); + + public List? Operations { get; set; } = new(); + } +}