From abf550a6bd4766efbc8bea684cdb84823e3fce53 Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Tue, 30 Apr 2024 18:42:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B4=D0=BE=D0=BB=D0=B6?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessLogic/RequestLogic.cs | 2 +- Bank/BankClientApp/BankClientApp.csproj | 21 +++++ .../Views/Home/CardCreate.cshtml | 32 ++++++++ .../Views/Home/CardDelete.cshtml | 20 +++++ .../Views/Home/CardUpdate.cshtml | 78 +++++++++++++++++++ Bank/BankClientApp/Views/Home/Index.cshtml | 5 +- .../BankClientApp/Views/Home/Operation.cshtml | 68 ++++++++++++++++ .../Views/Home/OperationCreate.cshtml | 32 ++++++++ Bank/BankClientApp/Views/Home/Privacy.cshtml | 39 +++++++++- 9 files changed, 291 insertions(+), 6 deletions(-) create mode 100644 Bank/BankClientApp/Views/Home/CardCreate.cshtml create mode 100644 Bank/BankClientApp/Views/Home/CardDelete.cshtml create mode 100644 Bank/BankClientApp/Views/Home/CardUpdate.cshtml create mode 100644 Bank/BankClientApp/Views/Home/Operation.cshtml create mode 100644 Bank/BankClientApp/Views/Home/OperationCreate.cshtml diff --git a/Bank/BankBusinessLogic/BusinessLogic/RequestLogic.cs b/Bank/BankBusinessLogic/BusinessLogic/RequestLogic.cs index 8aa75cc..31c95de 100644 --- a/Bank/BankBusinessLogic/BusinessLogic/RequestLogic.cs +++ b/Bank/BankBusinessLogic/BusinessLogic/RequestLogic.cs @@ -103,7 +103,7 @@ namespace BankBusinessLogic.BusinessLogic private bool ChangeStatus(RequestBindingModel model, RequestStatus status) { - //поменять + //todo поменять model.Status = status; _requestStorage.Update(model); return true; diff --git a/Bank/BankClientApp/BankClientApp.csproj b/Bank/BankClientApp/BankClientApp.csproj index 091403d..1fc7dcf 100644 --- a/Bank/BankClientApp/BankClientApp.csproj +++ b/Bank/BankClientApp/BankClientApp.csproj @@ -6,6 +6,11 @@ enable + + + + + @@ -16,4 +21,20 @@ + + + + + + <_ContentIncludedByDefault Remove="Views\Home\CardCreate.cshtml" /> + + + + + + + + + + diff --git a/Bank/BankClientApp/Views/Home/CardCreate.cshtml b/Bank/BankClientApp/Views/Home/CardCreate.cshtml new file mode 100644 index 0000000..a1a8d93 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/CardCreate.cshtml @@ -0,0 +1,32 @@ +@{ + ViewData["Title"] = "CardCreate"; +} +
+

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

+
+
+
+
Номер:
+
+ +
+
+
+
CVV:
+
+ +
+
+
+
PIN:
+
+ +
+
+
+
+
+ +
+
+
diff --git a/Bank/BankClientApp/Views/Home/CardDelete.cshtml b/Bank/BankClientApp/Views/Home/CardDelete.cshtml new file mode 100644 index 0000000..3078c96 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/CardDelete.cshtml @@ -0,0 +1,20 @@ +//todo выводить список только для выбранного клиента + +@{ + ViewData["Title"] = "CardDelete"; +} +
+

Удаление карты

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

Редактирование карты

+
+
+
+
Карта:
+
+ +
+
+
+
Номер:
+
+
+
+
CVV:
+
+
+
+
PIN:
+
+
+
+
Срок действия:
+
+
+ + + + + + + + + + +
+ Компьютеры + + Количество +
+
+
+
+
+
+ +@section Scripts + { + +} \ No newline at end of file diff --git a/Bank/BankClientApp/Views/Home/Index.cshtml b/Bank/BankClientApp/Views/Home/Index.cshtml index a36411a..6094c12 100644 --- a/Bank/BankClientApp/Views/Home/Index.cshtml +++ b/Bank/BankClientApp/Views/Home/Index.cshtml @@ -14,7 +14,10 @@ return; }

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

diff --git a/Bank/BankClientApp/Views/Home/Operation.cshtml b/Bank/BankClientApp/Views/Home/Operation.cshtml new file mode 100644 index 0000000..f618055 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Operation.cshtml @@ -0,0 +1,68 @@ +@using BankContracts.ViewModels +@model List +@{ + ViewData["Title"] = "Operation"; +} +
+

Операции

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

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

+ return; + } +

+ Создать операцию +

+
+ + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + } + +
+ Номер + + Сумма + + Время выполнения + + Отправитель + + Получатель +
+ @Html.DisplayFor(modelItem => + item.Id) + + @Html.DisplayFor(modelItem => + item.Sum) + + @Html.DisplayFor(modelItem => + item.OperationTime) + + @Html.DisplayFor(modelItem => + item.SenderCardNumber) + + @Html.DisplayFor(modelItem => + item.RecipientCardNumber) +
+ } + diff --git a/Bank/BankClientApp/Views/Home/OperationCreate.cshtml b/Bank/BankClientApp/Views/Home/OperationCreate.cshtml new file mode 100644 index 0000000..fa3cfae --- /dev/null +++ b/Bank/BankClientApp/Views/Home/OperationCreate.cshtml @@ -0,0 +1,32 @@ +@{ + ViewData["Title"] = "OperationCreate"; +} +
+

Создание операции

+
+
+
+
Сумма:
+
+ +
+
+
+
CVV:
+
+ +
+
+
+
Отправитель:
+
+ +
+
+
+
Получатель:
+
+ +
+
+
diff --git a/Bank/BankClientApp/Views/Home/Privacy.cshtml b/Bank/BankClientApp/Views/Home/Privacy.cshtml index af4fb19..1a65a68 100644 --- a/Bank/BankClientApp/Views/Home/Privacy.cshtml +++ b/Bank/BankClientApp/Views/Home/Privacy.cshtml @@ -1,6 +1,37 @@ -@{ +@using BankContracts.ViewModels +@model ClientViewModel +@{ ViewData["Title"] = "Privacy Policy"; } -

@ViewData["Title"]

- -

Use this page to detail your site's privacy policy.

+
+

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

+
+
+
+
Логин:
+
+ +
+
+
+
Пароль:
+
+ +
+
+
+
ФИО:
+
+ +
+
+
+
+
+ +
+
+
\ No newline at end of file