From 391de9d2eaf5d27cd860f571dd648f0c20daecde Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Wed, 1 May 2024 22:14:11 +0400 Subject: [PATCH] =?UTF-8?q?ClientApp=20(Cards,=20Login,=20Register,=20Priv?= =?UTF-8?q?acy=20=D0=B8=20View-=D1=8B=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B0?= =?UTF-8?q?=D0=BD=D0=BD=D1=8B=D0=B5=20=D1=81=20=D0=BE=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=D0=BC=D0=B8,=20Layout=20=D0=B8=20HomeC?= =?UTF-8?q?ontroller)=20P.S.=20=D0=BD=D0=B0=D0=B4=D0=B8=D0=B7=D0=B0=D0=B9?= =?UTF-8?q?=D0=BD=D0=B8=D0=BB=D0=B8=D1=81=D1=8C,=20=D0=BF=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=BC=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE?= =?UTF-8?q?=20=D1=87=D1=82=D0=BE-=D1=82=D0=BE=20=D0=B4=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D0=B4=D1=83=D0=BC=D0=B0=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 50 +++++++++++++++++ Bank/BankClientApp/Views/Home/Cards.cshtml | 2 +- .../Views/Home/CreateCard.cshtml | 54 +++++++++++++++++++ .../BankClientApp/Views/Home/Crediting.cshtml | 5 ++ Bank/BankClientApp/Views/Home/Debiting.cshtml | 5 ++ Bank/BankClientApp/Views/Home/Index.cshtml | 18 +++++-- Bank/BankClientApp/Views/Home/Login.cshtml | 17 ++++-- .../Views/Home/MoneyTransfers.cshtml | 29 ++++++++++ Bank/BankClientApp/Views/Home/Privacy.cshtml | 17 +++--- Bank/BankClientApp/Views/Home/Register.cshtml | 17 +++--- .../Views/Home/ReportBankCard.cshtml | 5 ++ .../BankClientApp/Views/Shared/_Layout.cshtml | 19 ++++--- 12 files changed, 204 insertions(+), 34 deletions(-) create mode 100644 Bank/BankClientApp/Views/Home/CreateCard.cshtml create mode 100644 Bank/BankClientApp/Views/Home/Crediting.cshtml create mode 100644 Bank/BankClientApp/Views/Home/Debiting.cshtml create mode 100644 Bank/BankClientApp/Views/Home/MoneyTransfers.cshtml create mode 100644 Bank/BankClientApp/Views/Home/ReportBankCard.cshtml diff --git a/Bank/BankClientApp/Controllers/HomeController.cs b/Bank/BankClientApp/Controllers/HomeController.cs index 1305c26..f15265d 100644 --- a/Bank/BankClientApp/Controllers/HomeController.cs +++ b/Bank/BankClientApp/Controllers/HomeController.cs @@ -23,6 +23,56 @@ namespace BankClientApp.Controllers return View(); } + public IActionResult Enter() + { + return View(); + } + + public IActionResult Login() + { + return View(); + } + + public IActionResult Register() + { + return View(); + } + + public IActionResult CreateCard() + { + return View(); + } + + public IActionResult CreateReport() + { + return View(); + } + + public IActionResult ReportBankCard() + { + return View(); + } + + public IActionResult Crediting() + { + return View(); + } + + public IActionResult Debiting() + { + return View(); + } + + public IActionResult MoneyTransfers() + { + return View(); + } + + public IActionResult Cards() + { + return View(); + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Bank/BankClientApp/Views/Home/Cards.cshtml b/Bank/BankClientApp/Views/Home/Cards.cshtml index 287854a..4b9d277 100644 --- a/Bank/BankClientApp/Views/Home/Cards.cshtml +++ b/Bank/BankClientApp/Views/Home/Cards.cshtml @@ -13,7 +13,7 @@
@{

- Оформить банковскую карту + Оформить банковскую карту

diff --git a/Bank/BankClientApp/Views/Home/CreateCard.cshtml b/Bank/BankClientApp/Views/Home/CreateCard.cshtml new file mode 100644 index 0000000..4424d9d --- /dev/null +++ b/Bank/BankClientApp/Views/Home/CreateCard.cshtml @@ -0,0 +1,54 @@ +@{ + ViewData["Title"] = "Оформление банковской карты"; +} + +
+

Оформление банковской карты

+
+ +
+
Клиент:
+
+ +
+
+
+
Номер карты:
+
+ +
+
+
+
Период:
+
+ +
+
+
+
Баланс:
+
+ +
+
+
+
+
+ +
+
+ + + \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/Crediting.cshtml b/Bank/BankClientApp/Views/Home/Crediting.cshtml new file mode 100644 index 0000000..e1dd794 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Crediting.cshtml @@ -0,0 +1,5 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ +} diff --git a/Bank/BankClientApp/Views/Home/Debiting.cshtml b/Bank/BankClientApp/Views/Home/Debiting.cshtml new file mode 100644 index 0000000..e1dd794 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Debiting.cshtml @@ -0,0 +1,5 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ +} diff --git a/Bank/BankClientApp/Views/Home/Index.cshtml b/Bank/BankClientApp/Views/Home/Index.cshtml index 0416106..709e78c 100644 --- a/Bank/BankClientApp/Views/Home/Index.cshtml +++ b/Bank/BankClientApp/Views/Home/Index.cshtml @@ -4,7 +4,19 @@

Добро пожаловать

- * - -
+ +
+

Страница пользователя

+ + * + @{ + if (APIClient.Client == null) + { +

Сначала авторизуйся

+ return; + } + +

Здравствуйте, @APIClient.Client.Name @APIClient.Client.Patronymic

+ } +
\ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/Login.cshtml b/Bank/BankClientApp/Views/Home/Login.cshtml index 8fdbbc9..2addc20 100644 --- a/Bank/BankClientApp/Views/Home/Login.cshtml +++ b/Bank/BankClientApp/Views/Home/Login.cshtml @@ -6,9 +6,16 @@

Вход в приложение

- -

Логин

- - - + + +
+ + +
+
+ + +
+ + diff --git a/Bank/BankClientApp/Views/Home/MoneyTransfers.cshtml b/Bank/BankClientApp/Views/Home/MoneyTransfers.cshtml new file mode 100644 index 0000000..553f7c5 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/MoneyTransfers.cshtml @@ -0,0 +1,29 @@ +@{ + ViewData["Title"] = "Переводы меджу счетами"; +} + +
+

Перевод между счетами

+
+ + +
+
Номер счёта для снятия:
+
+
+
+
+
Номер счёта для начисления:
+
+
+
+
+
Сумма перевода:
+
+ +
+
+
+ +
+ diff --git a/Bank/BankClientApp/Views/Home/Privacy.cshtml b/Bank/BankClientApp/Views/Home/Privacy.cshtml index 0a5eb51..9f1ac2b 100644 --- a/Bank/BankClientApp/Views/Home/Privacy.cshtml +++ b/Bank/BankClientApp/Views/Home/Privacy.cshtml @@ -9,28 +9,29 @@

Личные данные

- + +
-
Логин:
+
Логин:
Model.Email) required>
-
Пароль:
+
Пароль:
Model.Password) required>
-
Имя:
+
Имя:
Model.Name) required> -
Фамилия:
+
Фамилия:
Model.Surname) required> -
Отчество:
+
Отчество:
Model.Patronymic) required>
-
+
Телефон:
Model.MobilePhone) required>
-
+
diff --git a/Bank/BankClientApp/Views/Home/Register.cshtml b/Bank/BankClientApp/Views/Home/Register.cshtml index 3573af3..411581b 100644 --- a/Bank/BankClientApp/Views/Home/Register.cshtml +++ b/Bank/BankClientApp/Views/Home/Register.cshtml @@ -3,17 +3,16 @@ }
-

Регистрация

+

Регистрация

- -

Регистрация

- - - - - - + + + + + + + diff --git a/Bank/BankClientApp/Views/Home/ReportBankCard.cshtml b/Bank/BankClientApp/Views/Home/ReportBankCard.cshtml new file mode 100644 index 0000000..e1dd794 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/ReportBankCard.cshtml @@ -0,0 +1,5 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ +} diff --git a/Bank/BankClientApp/Views/Shared/_Layout.cshtml b/Bank/BankClientApp/Views/Shared/_Layout.cshtml index da096c2..adb352f 100644 --- a/Bank/BankClientApp/Views/Shared/_Layout.cshtml +++ b/Bank/BankClientApp/Views/Shared/_Layout.cshtml @@ -12,30 +12,33 @@