diff --git a/Polyclinic/PolyclinicWebView/SiteMenuItems.cs b/Polyclinic/PolyclinicWebView/SiteMenuItems.cs
new file mode 100644
index 0000000..60ba040
--- /dev/null
+++ b/Polyclinic/PolyclinicWebView/SiteMenuItems.cs
@@ -0,0 +1,19 @@
+namespace PolyclinicWebView
+{
+ public static class SiteMenuItems
+ {
+ public static (string Url, string Title) Index = ("", "Главная");
+ public static (string Url, string Title) Courses = ("Courses", "Курсы");
+ public static (string Url, string Title) Diagnoses = ("Diagnoses", "Болезни");
+ public static (string Url, string Title) Medicaments = ("Medicaments", "Лекарства");
+ public static (string Url, string Title) Procedures = ("Procedures", "Процедуры");
+ public static (string Url, string Title) Recipes = ("Recipes", "Рецепты");
+ public static (string Url, string Title) Symptomes = ("Symptomes", "Симптомы");
+ public static (string Url, string Title) Users = ("Users", "Пользователи");
+
+ public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)>
+ {
+ Index, Courses, Diagnoses, Medicaments, Procedures, Recipes, Symptomes, Users
+ };
+ }
+}
diff --git a/Polyclinic/PolyclinicWebView/Views/Home/Courses.cshtml b/Polyclinic/PolyclinicWebView/Views/Home/Courses.cshtml
index 12c53bc..6fee98f 100644
--- a/Polyclinic/PolyclinicWebView/Views/Home/Courses.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Home/Courses.cshtml
@@ -2,8 +2,14 @@
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
+ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Courses;
}
+
+
+
@@ -12,16 +18,35 @@
Количество препаратов в день |
Комментарий |
Рецепт-комментарий |
+ |
-
- 1 |
- 12 |
- 3 |
- Очень хороший курс приема |
- Рецепт отличный |
-
+ @{
+ int count = 20;
+ for (int i = 0; i < count; i++)
+ {
+
+ @i |
+ 12 |
+ 3 |
+ Очень хороший курс приема |
+ Рецепт отличный |
+
+
+
+
+
+
+
+ |
+
+ }
+ }
\ No newline at end of file
diff --git a/Polyclinic/PolyclinicWebView/Views/Home/Diagnoses.cshtml b/Polyclinic/PolyclinicWebView/Views/Home/Diagnoses.cshtml
index e1dd794..e39cdf3 100644
--- a/Polyclinic/PolyclinicWebView/Views/Home/Diagnoses.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Home/Diagnoses.cshtml
@@ -2,4 +2,5 @@
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
+ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Diagnoses;
}
diff --git a/Polyclinic/PolyclinicWebView/Views/Home/Index.cshtml b/Polyclinic/PolyclinicWebView/Views/Home/Index.cshtml
index bcfd79a..4c22120 100644
--- a/Polyclinic/PolyclinicWebView/Views/Home/Index.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Home/Index.cshtml
@@ -1,5 +1,5 @@
@{
- ViewData["Title"] = "Home Page";
+ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Index;
}
diff --git a/Polyclinic/PolyclinicWebView/Views/Home/Medicaments.cshtml b/Polyclinic/PolyclinicWebView/Views/Home/Medicaments.cshtml
index 001c00e..413529f 100644
--- a/Polyclinic/PolyclinicWebView/Views/Home/Medicaments.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Home/Medicaments.cshtml
@@ -1,7 +1,7 @@
@using PolyclinicContracts.ViewModels
@model List
@{
- ViewData["Title"] = "Medicaments";
+ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Medicaments;
}
Препараты
diff --git a/Polyclinic/PolyclinicWebView/Views/Home/Symptomes.cshtml b/Polyclinic/PolyclinicWebView/Views/Home/Symptomes.cshtml
index e1dd794..abe41e2 100644
--- a/Polyclinic/PolyclinicWebView/Views/Home/Symptomes.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Home/Symptomes.cshtml
@@ -2,4 +2,5 @@
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
+ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Symptomes;
}
diff --git a/Polyclinic/PolyclinicWebView/Views/Home/Users.cshtml b/Polyclinic/PolyclinicWebView/Views/Home/Users.cshtml
index e1dd794..e07e1fb 100644
--- a/Polyclinic/PolyclinicWebView/Views/Home/Users.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Home/Users.cshtml
@@ -2,4 +2,5 @@
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
+ ViewBag.SelectedSiteMenuItem = SiteMenuItems.Users;
}
diff --git a/Polyclinic/PolyclinicWebView/Views/Shared/_Layout.cshtml b/Polyclinic/PolyclinicWebView/Views/Shared/_Layout.cshtml
index ba0243b..860264b 100644
--- a/Polyclinic/PolyclinicWebView/Views/Shared/_Layout.cshtml
+++ b/Polyclinic/PolyclinicWebView/Views/Shared/_Layout.cshtml
@@ -3,7 +3,16 @@
-
@ViewData["Title"] - PolyclinicWebView
+
+ @if (ViewData.ContainsKey("SelectedSiteMenuItem"))
+ {
+ @ViewBag.SelectedSiteMenuItem.Item2
+ }
+ else if (ViewData.ContainsKey("Title"))
+ {
+ @ViewData["Title"]
+ }
+
@@ -18,33 +27,20 @@