From 852cb2e9a73b4fd8d5f9dafaa758bc613c545a4c Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Wed, 1 May 2024 21:26:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=BA=D0=B8=D0=BD=D1=83=D0=BB=20?= =?UTF-8?q?=D0=BE=D1=82=D1=87=D0=B5=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bank/BankClientApp/BankClientApp.csproj | 5 - .../Controllers/HomeController.cs | 102 ++++++++++++++++-- Bank/BankClientApp/Views/Home/Index.cshtml | 11 +- .../BankClientApp/Views/Home/Operation.cshtml | 2 +- .../Views/Home/OperationDelete.cshtml | 20 ++++ .../Views/Home/OperationUpdate.cshtml | 20 ++++ Bank/BankClientApp/Views/Home/Report.cshtml | 59 ++++++++++ .../Views/Home/RequestCreate.cshtml | 19 ++-- .../Views/Home/RequestDelete.cshtml | 20 ++++ .../Views/Home/RequestUpdate.cshtml | 68 ++++++++++++ .../Views/Home/TransferListReport.cshtml | 27 +++++ 11 files changed, 320 insertions(+), 33 deletions(-) create mode 100644 Bank/BankClientApp/Views/Home/OperationDelete.cshtml create mode 100644 Bank/BankClientApp/Views/Home/OperationUpdate.cshtml create mode 100644 Bank/BankClientApp/Views/Home/Report.cshtml create mode 100644 Bank/BankClientApp/Views/Home/RequestDelete.cshtml create mode 100644 Bank/BankClientApp/Views/Home/RequestUpdate.cshtml create mode 100644 Bank/BankClientApp/Views/Home/TransferListReport.cshtml diff --git a/Bank/BankClientApp/BankClientApp.csproj b/Bank/BankClientApp/BankClientApp.csproj index 57b588b..86e6b9a 100644 --- a/Bank/BankClientApp/BankClientApp.csproj +++ b/Bank/BankClientApp/BankClientApp.csproj @@ -8,7 +8,6 @@ - @@ -33,10 +32,6 @@ <_ContentIncludedByDefault Remove="Views\Home\Requests.cshtml" /> - - - - diff --git a/Bank/BankClientApp/Controllers/HomeController.cs b/Bank/BankClientApp/Controllers/HomeController.cs index 0cd76f1..f6ea58d 100644 --- a/Bank/BankClientApp/Controllers/HomeController.cs +++ b/Bank/BankClientApp/Controllers/HomeController.cs @@ -16,25 +16,105 @@ namespace BankClientApp.Controllers public IActionResult Index() { - if (APIClient.Client == null) - { - return Redirect("~/Home/Enter"); - } + return View(new List()); + } + public IActionResult Privacy() + { return View(); } - [HttpGet] + [HttpGet] public IActionResult Enter() { return View(); } - [HttpPost] - public void Enter(string login, string password) - { - - } - public IActionResult Privacy() + [HttpGet] + public IActionResult Register() + { + return View(); + } + + [HttpGet] + public IActionResult CardCreate() + { + return View(); + } + + [HttpGet] + public IActionResult CardUpdate() + { + return View(); + } + + [HttpGet] + public IActionResult CardDelete() + { + return View(); + } + + [HttpGet] + public IActionResult Operation() + { + return View(); + } + + [HttpGet] + public IActionResult OperationCreate() + { + return View(); + } + + [HttpGet] + public IActionResult OperationUpdate() + { + return View(); + } + + [HttpGet] + public IActionResult OperationDelete() + { + return View(); + } + + [HttpGet] + public IActionResult OperationTransfer() + { + return View(); + } + + [HttpGet] + public IActionResult Requests() + { + return View(); + } + + [HttpGet] + public IActionResult RequestCreate() + { + return View(); + } + + [HttpGet] + public IActionResult RequestUpdate() + { + return View(); + } + + [HttpGet] + public IActionResult RequestDelete() + { + return View(); + } + + [HttpGet] + public IActionResult Report() + { + return View(); + } + + [HttpGet] + public IActionResult TransferListReport() { return View(); } diff --git a/Bank/BankClientApp/Views/Home/Index.cshtml b/Bank/BankClientApp/Views/Home/Index.cshtml index 6094c12..d2f2d2f 100644 --- a/Bank/BankClientApp/Views/Home/Index.cshtml +++ b/Bank/BankClientApp/Views/Home/Index.cshtml @@ -8,15 +8,14 @@
@{ - if (Model == null) - { -

Авторизируйтесь

- return; - } + // if (Model == null) + // { + //

Авторизируйтесь

+ // return; + // }

Создать карту Обновить карту - //todo мб убрать Удалить карту

diff --git a/Bank/BankClientApp/Views/Home/Operation.cshtml b/Bank/BankClientApp/Views/Home/Operation.cshtml index f618055..cdc11ff 100644 --- a/Bank/BankClientApp/Views/Home/Operation.cshtml +++ b/Bank/BankClientApp/Views/Home/Operation.cshtml @@ -1,4 +1,4 @@ -@using BankContracts.ViewModels +@using BankContracts.ViewModels, @model List @{ ViewData["Title"] = "Operation"; diff --git a/Bank/BankClientApp/Views/Home/OperationDelete.cshtml b/Bank/BankClientApp/Views/Home/OperationDelete.cshtml new file mode 100644 index 0000000..46e360e --- /dev/null +++ b/Bank/BankClientApp/Views/Home/OperationDelete.cshtml @@ -0,0 +1,20 @@ +//todo выводить список только для выбранного клиента + +@{ + ViewData["Title"] = "OperationDelete"; +} +
+

Удаление операции

+
+
+
+
Операция:
+
+ +
+
+
+
+
+
+ \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/OperationUpdate.cshtml b/Bank/BankClientApp/Views/Home/OperationUpdate.cshtml new file mode 100644 index 0000000..bdcd950 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/OperationUpdate.cshtml @@ -0,0 +1,20 @@ +//todo выводить список только для выбранного клиента + +@{ + ViewData["Title"] = "OperationDelete"; +} +
+

Удаление операции

+
+
+
+
Карта:
+
+ +
+
+
+
+
+
+ \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/Report.cshtml b/Bank/BankClientApp/Views/Home/Report.cshtml new file mode 100644 index 0000000..8cc7a5e --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Report.cshtml @@ -0,0 +1,59 @@ +@{ + ViewData["Title"] = "Report"; +} +
+

Список карт с расшифровкой по операциям и заявкам

+
+
+ @{ + if (Model == null) + { +

Авторизуйтесь!

+ return; + } +
+
Начальная дата:
+
+ +
+
+
+
Конечная дата:
+
+ +
+
+
+ + + + + + + + + + + будет заполняться вьюшками отчета + +
+ Номер + + Дата + + Карта + + Операция + + Заявка +
+
+
+
+
+
+
+
+
+ } +
\ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/RequestCreate.cshtml b/Bank/BankClientApp/Views/Home/RequestCreate.cshtml index a1a8d93..32a3e4c 100644 --- a/Bank/BankClientApp/Views/Home/RequestCreate.cshtml +++ b/Bank/BankClientApp/Views/Home/RequestCreate.cshtml @@ -6,21 +6,20 @@
-
Номер:
+
Сумма:
- +
-
CVV:
+
Карты:
- -
-
-
-
PIN:
-
- +
diff --git a/Bank/BankClientApp/Views/Home/RequestDelete.cshtml b/Bank/BankClientApp/Views/Home/RequestDelete.cshtml new file mode 100644 index 0000000..3d913a2 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/RequestDelete.cshtml @@ -0,0 +1,20 @@ +//todo выводить список только для выбранного клиента + +@{ + ViewData["Title"] = "RequestDelete"; +} +
+

Удаление запрос

+
+ +
+
Запрос:
+
+ +
+
+
+
+
+
+ \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/RequestUpdate.cshtml b/Bank/BankClientApp/Views/Home/RequestUpdate.cshtml new file mode 100644 index 0000000..f9abe26 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/RequestUpdate.cshtml @@ -0,0 +1,68 @@ +@{ + ViewData["Title"] = "CardCreate"; +} +
+

Создание карты

+
+
+
+
Услуга:
+
+ +
+
+
+
Сумма:
+
+ +
+
+
+
Карты:
+
+ +
+
+
+
+
+ +
+
+
+ +@section Scripts + { + +} \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/TransferListReport.cshtml b/Bank/BankClientApp/Views/Home/TransferListReport.cshtml new file mode 100644 index 0000000..76b797b --- /dev/null +++ b/Bank/BankClientApp/Views/Home/TransferListReport.cshtml @@ -0,0 +1,27 @@ +@using BankContracts.ViewModels; + +@{ + ViewData["Title"] = "TransferListReport"; +} + +
+

Создать списки переводов по картам

+
+
+
+
Карты:
+
+ +
+
+
+
+
+
+
+
\ No newline at end of file