From a08da28bfbcea78e24467e3a62bbde2cf7004ec7 Mon Sep 17 00:00:00 2001 From: Ivan_Starostin Date: Sun, 2 Jun 2024 17:28:06 +0400 Subject: [PATCH] Upload files to 'ShipyardClientApp/Views/Home' --- ShipyardClientApp/Views/Home/Create.cshtml | 57 ++++++++++++++ ShipyardClientApp/Views/Home/Create.cshtml.cs | 12 +++ ShipyardClientApp/Views/Home/Enter.cshtml | 20 +++++ ShipyardClientApp/Views/Home/Enter.cshtml.cs | 12 +++ ShipyardClientApp/Views/Home/Index.cshtml | 75 +++++++++++++++++++ 5 files changed, 176 insertions(+) create mode 100644 ShipyardClientApp/Views/Home/Create.cshtml create mode 100644 ShipyardClientApp/Views/Home/Create.cshtml.cs create mode 100644 ShipyardClientApp/Views/Home/Enter.cshtml create mode 100644 ShipyardClientApp/Views/Home/Enter.cshtml.cs create mode 100644 ShipyardClientApp/Views/Home/Index.cshtml diff --git a/ShipyardClientApp/Views/Home/Create.cshtml b/ShipyardClientApp/Views/Home/Create.cshtml new file mode 100644 index 0000000..7002223 --- /dev/null +++ b/ShipyardClientApp/Views/Home/Create.cshtml @@ -0,0 +1,57 @@ +@{ + ViewData["Title"] = "Create"; +} + +
+

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

+
+
+
+
корабль:
+
+ +
+
+
+
Количество:
+
+ +
+
+
+
Сумма:
+
+ +
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/ShipyardClientApp/Views/Home/Create.cshtml.cs b/ShipyardClientApp/Views/Home/Create.cshtml.cs new file mode 100644 index 0000000..f12b982 --- /dev/null +++ b/ShipyardClientApp/Views/Home/Create.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace ShipyardClientApp.Views.Home +{ + public class CreateModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/ShipyardClientApp/Views/Home/Enter.cshtml b/ShipyardClientApp/Views/Home/Enter.cshtml new file mode 100644 index 0000000..e7ec1eb --- /dev/null +++ b/ShipyardClientApp/Views/Home/Enter.cshtml @@ -0,0 +1,20 @@ +@{ + ViewData["Title"] = "Enter"; +} +
+

Вход в приложение

+
+
+
+
Логин:
+
+
+
+
Пароль:
+
+
+
+
+
+
+
diff --git a/ShipyardClientApp/Views/Home/Enter.cshtml.cs b/ShipyardClientApp/Views/Home/Enter.cshtml.cs new file mode 100644 index 0000000..cd0a967 --- /dev/null +++ b/ShipyardClientApp/Views/Home/Enter.cshtml.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace ShipyardClientApp.Views.Home +{ + public class EnterModel : PageModel + { + public void OnGet() + { + } + } +} diff --git a/ShipyardClientApp/Views/Home/Index.cshtml b/ShipyardClientApp/Views/Home/Index.cshtml new file mode 100644 index 0000000..529af24 --- /dev/null +++ b/ShipyardClientApp/Views/Home/Index.cshtml @@ -0,0 +1,75 @@ +@using ShipyardContracts.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.ShipName) + + @Html.DisplayFor(modelItem => + item.DateCreate) + + @Html.DisplayFor(modelItem => + item.Count) + + @Html.DisplayFor(modelItem => + item.Sum) + + @Html.DisplayFor(modelItem => + item.Status) +
+ } +