From d30bf4f7ecc62b767b45637b83b88705af0e76d3 Mon Sep 17 00:00:00 2001 From: Marselchi Date: Wed, 29 May 2024 12:51:14 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D1=8B=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=D0=B6=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Home/CreatePresale.cshtml | 190 ++++++++++++++++++ .../Views/Home/IndexPresale.cshtml | 82 ++++++++ .../Views/Home/PresaleCreate.cshtml | 31 --- .../Views/Home/PresaleDelete.cshtml | 19 -- .../Views/Home/PresaleUpdate.cshtml | 45 ----- .../Views/Home/Presales.cshtml | 60 ------ 6 files changed, 272 insertions(+), 155 deletions(-) create mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/CreatePresale.cshtml create mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/IndexPresale.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/PresaleCreate.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/PresaleDelete.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/PresaleUpdate.cshtml delete mode 100644 CarCenter/CarCenterWorkerApp/Views/Home/Presales.cshtml diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/CreatePresale.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/CreatePresale.cshtml new file mode 100644 index 0000000..3f2fa89 --- /dev/null +++ b/CarCenter/CarCenterWorkerApp/Views/Home/CreatePresale.cshtml @@ -0,0 +1,190 @@ +@using CarCenterContracts.ViewModels; +@using CarCenterDataModels.Enums; + +@model PresaleViewModel + +@{ + ViewData["Title"] = "CreatePresale"; + ViewBag.Bundlings = Model.PresaleBundlings; +} +
+

Создание предпродажной работы

+
+
+
+
Статус:
+
+ + +
+
+
+
Описание:
+
+ + +
+
+
+
Выполнить до:
+
+ + +
+
+
+
Комплектации
+
+ + + + + + + + + + + + @foreach (var bundling in ViewBag.Bundlings) + { + + + + + + + + } + +
ID комплектации Стоимость Удалить
+ @bundling.Value.Id + @bundling.Value.Price
+
+ + +
+
+
Цена предпродажной работы:
+
+ + +
+
+
+
Сумма:
+
+
+
+
+
+
+
+ + + + + diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/IndexPresale.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/IndexPresale.cshtml new file mode 100644 index 0000000..4b6ea47 --- /dev/null +++ b/CarCenter/CarCenterWorkerApp/Views/Home/IndexPresale.cshtml @@ -0,0 +1,82 @@ +@using CarCenterContracts.ViewModels; + +@model List + +@{ + ViewData["Title"] = "Presales"; +} + +
+

Предпродажные работы

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

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

+ return; + } +

+ Создать предпродажную работу +

+ + + + + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + + + } + +
+ Номер + + Статус работы + + Описание + + Выполнить до + + Цена + + Изменить работу + + Удалить работу +
+ @Html.DisplayFor(modelItem => item.Id) + + @Html.DisplayFor(modelItem => item.PresaleStatus) + + @Html.DisplayFor(modelItem => item.Description) + + @Html.DisplayFor(modelItem => item.DueTill) + + @Html.DisplayFor(modelItem => item.Price) + + Изменить + +
+ + +
+
+ } +
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/PresaleCreate.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/PresaleCreate.cshtml deleted file mode 100644 index 81f40e4..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/PresaleCreate.cshtml +++ /dev/null @@ -1,31 +0,0 @@ -@using CarCenterContracts.ViewModels; -@using CarCenterDataModels.Enums; -@{ - ViewData["Title"] = "PresaleCreate"; -} - -
-

Создание предпродажной работы

-
- -
-
-
Выполнить до:
-
-
-
-
Цена:
-
-
-
-
Комплектации:
- - -
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/PresaleDelete.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/PresaleDelete.cshtml deleted file mode 100644 index d39888f..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/PresaleDelete.cshtml +++ /dev/null @@ -1,19 +0,0 @@ -@{ - ViewData["Title"] = "PresaleDelete"; -} -
-

Удалить предпродажную работу

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

Обновить предпродажную работу

-
-
-
-
Предпродажная работа:
-
- -
-
-
-
Статус:
-
- -
-
-
-
Выполнить до:
-
-
-
-
Цена:
-
-
-
-
Комплектации:
- - -
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/CarCenter/CarCenterWorkerApp/Views/Home/Presales.cshtml b/CarCenter/CarCenterWorkerApp/Views/Home/Presales.cshtml deleted file mode 100644 index de90b14..0000000 --- a/CarCenter/CarCenterWorkerApp/Views/Home/Presales.cshtml +++ /dev/null @@ -1,60 +0,0 @@ -@using CarCenterContracts.ViewModels; -@model List -@{ - ViewData["Title"] = "Presales"; -} -
-

Предпродажные работы

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

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

- return; - } -

- Создать предпродажную работу - Изменить предпродажную работу - Удалить предпродажную работу -

- - - - - - - - - - - - @foreach (var presale in Model) - { - - - - - - - } - -
- Статус предпродажной работы - - Описание предпродажной работы - - Выполнить до - - Цена -
- @Html.DisplayFor(modelItem => presale.PresaleStatus) - - @Html.DisplayFor(modelItem => presale.Description) - - @Html.DisplayFor(modelItem => presale.DueTill) - - @Html.DisplayFor(modelItem => presale.Price) -
- } -