From 9a17320d5622e79a705f4905613c846caac47f9d Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 1 May 2024 12:52:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=83=20=D1=81=20?= =?UTF-8?q?=D0=BE=D1=82=D1=87=D0=B5=D1=82=D0=BE=D0=BC=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=B8=D0=B0=D0=B3=D0=BD=D0=BE=D0=B7=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 14 ++++++++++++++ .../PolyclinicWebAppImplementer/SiteMenuItems.cs | 3 ++- .../Views/Home/DiagnosesReport.cshtml | 3 +++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicWebAppImplementer/Views/Home/DiagnosesReport.cshtml diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index 1ffe34d..551fa8a 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -117,6 +117,20 @@ namespace PolyclinicWebAppImplementer.Controllers return View(); } } + [HttpGet] + [HttpPost] + public IActionResult DiagnosesReport() + { + 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 aac6884..b821c8a 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs @@ -14,10 +14,11 @@ 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 (string Url, string Title) DiagnosesReport = ("DiagnosesReport", "Отчет по болезням"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse, GetMedicamentsByDiagnoses + Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse, GetMedicamentsByDiagnoses, DiagnosesReport }; } } diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/DiagnosesReport.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/DiagnosesReport.cshtml new file mode 100644 index 0000000..9c2dc91 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/DiagnosesReport.cshtml @@ -0,0 +1,3 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Diagnose; +}