From 4ac3b10bb2356bdb4297a9556d7051b738510978 Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Tue, 28 May 2024 17:02:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=A1?= =?UTF-8?q?=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=BD?= =?UTF-8?q?=D0=BA=D0=BE=D0=B2=D1=81=D0=BA=D0=BE=D0=B9=20=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 4 +- .../Home/{Cards.cshtml => CardsList.cshtml} | 0 .../Views/Home/CreateCard.cshtml | 12 +- .../BankClientApp/Views/Shared/_Layout.cshtml | 2 +- .../20240528115207_init.Designer.cs | 454 ------------------ .../Migrations/20240528115207_init.cs | 324 ------------- 6 files changed, 10 insertions(+), 786 deletions(-) rename Bank/BankClientApp/Views/Home/{Cards.cshtml => CardsList.cshtml} (100%) delete mode 100644 Bank/BankDatabaseImplement/Migrations/20240528115207_init.Designer.cs delete mode 100644 Bank/BankDatabaseImplement/Migrations/20240528115207_init.cs diff --git a/Bank/BankClientApp/Controllers/HomeController.cs b/Bank/BankClientApp/Controllers/HomeController.cs index ace2fe7..13c10b2 100644 --- a/Bank/BankClientApp/Controllers/HomeController.cs +++ b/Bank/BankClientApp/Controllers/HomeController.cs @@ -173,7 +173,7 @@ namespace BankClientApp.Controllers return Redirect("~/Home/Enter"); } - return View(APIClient.GetRequest>($"api/Card/GetUsersCardsList?id={APIClient.Client.Id}")); + return View(APIClient.GetRequest>($"api/Card/GetClientsCardsList?id={APIClient.Client.Id}")); } [HttpGet] @@ -184,7 +184,7 @@ namespace BankClientApp.Controllers return Redirect("~/Home/Enter"); } - ViewBag.Accounts = APIClient.GetRequest>($"api/Account/SearchAccountsOfCLient?clientId={APIClient.Client.Id}"); + ViewBag.Accounts = APIClient.GetRequest>($"api/Account/SearchAccountsOfClient?clientId={APIClient.Client.Id}"); return View(); } diff --git a/Bank/BankClientApp/Views/Home/Cards.cshtml b/Bank/BankClientApp/Views/Home/CardsList.cshtml similarity index 100% rename from Bank/BankClientApp/Views/Home/Cards.cshtml rename to Bank/BankClientApp/Views/Home/CardsList.cshtml diff --git a/Bank/BankClientApp/Views/Home/CreateCard.cshtml b/Bank/BankClientApp/Views/Home/CreateCard.cshtml index 4424d9d..881299f 100644 --- a/Bank/BankClientApp/Views/Home/CreateCard.cshtml +++ b/Bank/BankClientApp/Views/Home/CreateCard.cshtml @@ -7,15 +7,15 @@
-
Клиент:
+
Номер счёта:
- +
Номер карты:
- +
@@ -49,6 +49,8 @@ return str; } - document.getElementById("CardNumber").value = createNum(16); - document.getElementById("password").value = createNum(4); + document.getElementById("cardnumber").value = createNum(16); + let year = new Date(); + year.setFullYear(year.getFullYear() + 5) + document.getElementById("period").valueAsDate = new Date(year); \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Shared/_Layout.cshtml b/Bank/BankClientApp/Views/Shared/_Layout.cshtml index adb352f..86a762d 100644 --- a/Bank/BankClientApp/Views/Shared/_Layout.cshtml +++ b/Bank/BankClientApp/Views/Shared/_Layout.cshtml @@ -23,7 +23,7 @@