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