From ec7b0ce804ffda93f9ab010e02582d355f52bcab Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 1 May 2024 00:16:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=20=D1=84=D0=BE=D1=80=D0=BC=D1=83=20=D0=BE?= =?UTF-8?q?=D1=82=D1=87=D0=B5=D1=82=D0=B0=20=D0=BB=D0=B5=D0=BA=D0=B0=D1=80?= =?UTF-8?q?=D1=81=D1=82=D0=B2=20=D0=BF=D0=BE=20=D0=B1=D0=BE=D0=BB=D0=B5?= =?UTF-8?q?=D0=B7=D0=BD=D1=8F=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 14 +++++++ .../SiteMenuItems.cs | 3 +- .../Home/GetMedicamentsByDiagnoses.cshtml | 40 +++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index 13ecb68..1ffe34d 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -104,6 +104,20 @@ namespace PolyclinicWebAppImplementer.Controllers } } + [HttpGet] + [HttpPost] + public IActionResult GetMedicamentsByDiagnoses() + { + if (HttpContext.Request.Method == "POST") + { + return View(); + } + else + { + return View(); + } + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs index 17a027e..aac6884 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs @@ -13,10 +13,11 @@ public static (string Url, string Title) Register = ("Register", "Регистрация"); public static (string Url, string Title) Privacy = ("Privacy", "Политика приватности"); public static (string Url, string Title) AddRecipeToCourse = ("AddRecipeToCourse", "Привязка рецепта"); + public static (string Url, string Title) GetMedicamentsByDiagnoses = ("GetMedicamentsByDiagnoses", "Лекарства по болезням"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse + Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse, GetMedicamentsByDiagnoses }; } } diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml new file mode 100644 index 0000000..7b2c33a --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml @@ -0,0 +1,40 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.GetMedicamentsByDiagnoses; +} +

Список лекарств по болезням

+
+
Выберите болезни
+
+
    + @{ + for(int i = 0; i < 10; i++) + { +
  • + + +
  • + } + } +
+
+
+
Укажите формат файла
+
+
+ + +
+
+ + +
+
+
+
+
Укажите название файла
+ +
+ +
\ No newline at end of file