From 04febd3ec7a1c27b6dc31a38e02d8a274d935770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D1=88=D0=B8=D0=BD=20=D0=9C=D0=B0=D0=BA=D1=81?= =?UTF-8?q?=D0=B8=D0=BC?= Date: Thu, 6 Apr 2023 19:55:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=82=D1=87=D0=B5=D1=82=D0=B0,=20?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 13 +++- .../Views/Home/Index.cshtml | 67 +++++++++++++++++++ .../Views/Home/Register.cshtml | 12 +++- .../Views/Home/Report.cshtml | 47 +++++++++++++ .../Views/Shared/_Layout.cshtml | 4 +- 5 files changed, 138 insertions(+), 5 deletions(-) create mode 100644 Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml create mode 100644 Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml diff --git a/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs b/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs index 1471168..c5ff2aa 100644 --- a/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs +++ b/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs @@ -18,11 +18,22 @@ namespace HostrelHeadwaiterApp.Controllers return View(); } - public IActionResult Privacy() + public IActionResult Register() { return View(); } + public IActionResult Enter() + { + return View(); + } + + public IActionResult Report() + { + return View(); + } + + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml new file mode 100644 index 0000000..8a07631 --- /dev/null +++ b/Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml @@ -0,0 +1,67 @@ +@using HotelContracts.ViewModels + + +@model List + +@{ + ViewData["Title"] = "Home Page"; +} + +
+

Заказы

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

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

+ return; + } + +

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

+ + + + + + + + + + + + + @foreach (var item in Model) + { + + + + + + } + +
+ Номер + + Изделие + + Дата создания + + Количество + + Сумма + + Статус +
+ @Html.DisplayFor(modelItem => item.Id) + + @Html.DisplayFor(modelItem => item.DinnerName) + + @Html.DisplayFor(modelItem => item.DinnetPrice) +
+ } +
\ No newline at end of file diff --git a/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml index 77fe64e..69b3425 100644 --- a/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml +++ b/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml @@ -6,6 +6,10 @@

Регистрация

+
+
ФИО:
+
+
Логин:
@@ -15,8 +19,12 @@
-
ФИО:
-
+
Электронная почта:
+
+
+
+
Номер телефона:
+
diff --git a/Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml new file mode 100644 index 0000000..31d8287 --- /dev/null +++ b/Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml @@ -0,0 +1,47 @@ +@{ + ViewData["Title"] = "Report"; +} + +
+

Создание отчёта

+
+ +
+
+
+
С
+
+
+
+ + +
+
+
+
по
+
+
+
+ + +
+
+
+
+ +
+
+
+
+
+
Отчёт:
+
+ \ No newline at end of file diff --git a/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml index 1ad6aca..0ca0e17 100644 --- a/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml +++ b/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml @@ -26,7 +26,7 @@ Аутентификация