From ca728baecab7c539667279f4e8f75618620ca3c1 Mon Sep 17 00:00:00 2001 From: Marselchi Date: Wed, 29 May 2024 13:29:41 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=81=D0=B5=20=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=87=D0=BA=D0=B8=20=D0=B7=D0=B0=D0=BA=D0=BE=D0=BD?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D1=8B=20(=D0=B2=D1=80=D0=BE=D0=B4=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Home/CreateOrder.cshtml | 269 ++++++++++++++++++ .../Views/Home/IndexOrder.cshtml | 94 ++++++ .../Views/Home/OrderCreate.cshtml | 47 --- .../Views/Home/OrderDelete.cshtml | 19 -- .../Views/Home/OrderUpdate.cshtml | 68 ----- .../Views/Home/Orders.cshtml | 78 ----- 6 files changed, 363 insertions(+), 212 deletions(-) create mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/CreateOrder.cshtml create mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/IndexOrder.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/OrderCreate.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/OrderDelete.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/OrderUpdate.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/Orders.cshtml diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/CreateOrder.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/CreateOrder.cshtml new file mode 100644 index 0000000..54d4c18 --- /dev/null +++ b/CarCenter/CarCenterWorkerApp/Views/Home/CreateOrder.cshtml @@ -0,0 +1,269 @@ +@using CarCenterContracts.ViewModels; +@using CarCenterDataModels.Enums; + +@model OrderViewModel + +@{ + ViewData["Title"] = "CreateOrder"; + ViewBag.Presales = Model.OrderPresales; +} +
+

Создание заказа

+
+
+
+
Тип оплаты:
+
+ + +
+
+
+
ФИО покупателя:
+
+ + +
+
+
+
Сумма:
+
+
+
+
Предпродажные работы
+
+ + + + + + + + + + + + @foreach (var presale in ViewBag.Presales) + { + + + + + + + + } + +
ID предпродажной Стоимость Удалить
+ @presale.Value.Id + @presale.Value.Price
+
+ + +
+
+
Машины
+
+ + + + + + + + + + + + @foreach (var car in ViewBag.Cars) + { + + + + + + + + } + +
ID машины Стоимость Удалить
+ @car.Value.Id + @car.Value.Price
+
+ + +
+
+
Сумма:
+
+
+
+
+
+
+
+ + + + + diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/IndexOrder.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/IndexOrder.cshtml new file mode 100644 index 0000000..2718abe --- /dev/null +++ b/CarCenter/CarCenterWorkerApp/Views/Home/IndexOrder.cshtml @@ -0,0 +1,94 @@ +@using CarCenterContracts.ViewModels; + +@model List + +@{ + ViewData["Title"] = "Orders"; +} + +
+

Покупки

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

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

+ return; + } +

+ Создать покупку +

+ + + + + + + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + + + + + } + +
+ Номер + + Тип оплаты + + Статус оплаты + + Дата оплаты + + ФИО покупателя + + Имя работника + + Сумма + + Изменить покупку + + Удалить покупку +
+ @Html.DisplayFor(modelItem => item.Id) + + @Html.DisplayFor(modelItem => item.PaymentType) + + @Html.DisplayFor(modelItem => item.PaymentStatus) + + @Html.DisplayFor(modelItem => item.PaymentDate) + + @Html.DisplayFor(modelItem => item.BuyerFCS) + + @Html.DisplayFor(modelItem => item.WorkerName) + + @Html.DisplayFor(modelItem => item.Sum) + + Изменить + +
+ + +
+
+ } +
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/OrderCreate.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/OrderCreate.cshtml deleted file mode 100644 index cf8063a..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/OrderCreate.cshtml +++ /dev/null @@ -1,47 +0,0 @@ -@using CarCenterContracts.ViewModels; -@using CarCenterDataModels.Enums; -@{ - ViewData["Title"] = "OrderCreate"; -} - -
-

Создание покупки

-
- -
-
-
Тип оплаты:
-
- -
-
-
-
Имя покупателя:
-
-
-
-
Предпродажные работы:
- - -
-
-
Машины:
- - -
-
-
Сумма:
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/OrderDelete.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/OrderDelete.cshtml deleted file mode 100644 index 1e49309..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/OrderDelete.cshtml +++ /dev/null @@ -1,19 +0,0 @@ -@{ - ViewData["Title"] = "OrderDelete"; -} -
-

Удалить покупку

-
-
-
-
- -
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/OrderUpdate.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/OrderUpdate.cshtml deleted file mode 100644 index 94a2f15..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/OrderUpdate.cshtml +++ /dev/null @@ -1,68 +0,0 @@ -@using CarCenterContracts.ViewModels; -@using CarCenterDataModels.Enums; -@{ - ViewData["Title"] = "OrderUpdate"; -} - -
-

Оновить покупку

-
- -
-
-
Покупка:
-
- -
-
-
-
Тип оплаты:
-
- -
-
-
-
Статус оплаты:
-
- -
-
-
-
Имя покупателя:
-
-
-
-
Дата оплаты:
-
-
-
-
Предпродажные работы:
- - -
-
-
Машины:
- - -
-
-
Сумма:
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/Orders.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/Orders.cshtml deleted file mode 100644 index 5a6ba39..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/Orders.cshtml +++ /dev/null @@ -1,78 +0,0 @@ -@using CarCenterContracts.ViewModels -@model List -@{ - ViewData["Title"] = "Orders"; -} -
-

Заказы

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

Надо войти в аккаунт.

- return; - } -

- Создать заказ - Изменить заказ - Удалить заказ -

- - - - - - - - - - - - - - - @foreach (var order in Model) - { - - - - - - - - - - } - -
- Номер заказа - - Имя работника - - Тип оплаты - - Статус оплаты - - Фио покупателя - - Дата оплаты - - Сумма -
- @Html.DisplayFor(modelItem => order.Id) - - @Html.DisplayFor(modelItem => order.WorkerName) - - @Html.DisplayFor(modelItem => order.PaymentType) - - @Html.DisplayFor(modelItem => order.PaymentStatus) - - @Html.DisplayFor(modelItem => order.BuyerFCS) - - @Html.DisplayFor(modelItem => order.PaymentDate) - - @Html.DisplayFor(modelItem => order.Sum) -
- } -