From cfbf844e4002b344ed58c41e3af9158bb00be3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=91=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D1=81=D0=BA=D0=B0=D1=8F?= Date: Tue, 30 Apr 2024 21:24:45 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=8B=D1=82=D0=B0=D1=8E=D1=81=D1=8C=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=82=D1=8C=20=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D1=83=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=80=D0=B5=D1=86=D0=B5=D0=BF=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 5 ++ .../Models/SelectItems.cs | 20 ++++++++ .../Views/Home/CreateProcedureModal.cshtml | 5 ++ .../Views/Home/CreateRecipe.cshtml | 46 +++++++++++++++++++ .../Views/Home/Recipes.cshtml | 6 ++- 5 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicWebAppSuretor/Models/SelectItems.cs create mode 100644 Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateProcedureModal.cshtml create mode 100644 Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateRecipe.cshtml diff --git a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs index b1807e8..175cb86 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs @@ -38,6 +38,11 @@ namespace PolyclinicWebAppSuretor.Controllers return View(); } + public IActionResult CreateRecipe() + { + return View(); + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Polyclinic/PolyclinicWebAppSuretor/Models/SelectItems.cs b/Polyclinic/PolyclinicWebAppSuretor/Models/SelectItems.cs new file mode 100644 index 0000000..24729ba --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Models/SelectItems.cs @@ -0,0 +1,20 @@ +namespace PolyclinicWebAppSuretor.Models +{ + public class SelectItems + { + public List Items + { + get; set; + } + string[] arr = ["1", "2", "3"]; + + public void AddItems() + { + foreach (var item in arr) + { + Items.Add(item); + } + } + + } +} diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateProcedureModal.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateProcedureModal.cshtml new file mode 100644 index 0000000..e1dd794 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateProcedureModal.cshtml @@ -0,0 +1,5 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ +} diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateRecipe.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateRecipe.cshtml new file mode 100644 index 0000000..6100d10 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/CreateRecipe.cshtml @@ -0,0 +1,46 @@ +@using PolyclinicContracts.ViewModels +@model List +@{ + ViewData["Title"] = "CreateRecipe"; +} + +
+

Создание рецепта

+
+ +
+ +
+
Количество процедур:
+
+ +
+
+ +
+
Комментарий:
+
+ +
+
+ +
+
Процедуры:
+
+ +
+
+ +
+
+
+ +
+
+
\ No newline at end of file diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Recipes.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Recipes.cshtml index 82c52c9..9a12383 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Recipes.cshtml +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Recipes.cshtml @@ -14,9 +14,13 @@ //

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

// return; // } +

- Создать рецепт + + Открыть модальное окно +

+