From f09946ecd5416dea4a76f49dbc0aa0892734e5ef Mon Sep 17 00:00:00 2001 From: gg12 darfren Date: Mon, 29 Apr 2024 13:56:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B2=D0=B8=D0=B7=D1=83=D0=B0=D0=BB=20=D0=BA=D1=80=D1=83=D0=B4?= =?UTF-8?q?=D0=BE=D0=B2=20(=D0=BD=D0=B0=D0=B2=D0=B5=D1=80=D0=BD=D0=BE?= =?UTF-8?q?=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VetClinic/PharmacistApp/Controllers/HomeController.cs | 2 +- VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml | 2 +- VetClinic/PharmacistApp/Views/Home/Guidances.cshtml | 7 +++++++ VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml | 8 +++++++- VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml | 2 +- .../Implements/GuidanceStorage.cs | 7 ++++--- VetClinic/VetClinicDataBaseImplement/Models/Guidance.cs | 4 +++- 7 files changed, 24 insertions(+), 8 deletions(-) diff --git a/VetClinic/PharmacistApp/Controllers/HomeController.cs b/VetClinic/PharmacistApp/Controllers/HomeController.cs index e62fbd8..a149f3c 100644 --- a/VetClinic/PharmacistApp/Controllers/HomeController.cs +++ b/VetClinic/PharmacistApp/Controllers/HomeController.cs @@ -557,7 +557,7 @@ View(res); } [HttpPost] - public void DeleteGuidance(int guidance, int service, string text) + public void DeleteGuidance(int guidance) { if (APIPharmacist.Pharmacist == null) { diff --git a/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml b/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml index 5721d3b..f0df23a 100644 --- a/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml +++ b/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml @@ -8,7 +8,7 @@
Рекомендация:
- +
diff --git a/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml b/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml index c30d534..ced9878 100644 --- a/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml +++ b/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml @@ -27,6 +27,9 @@ Дата + + Услуга + Текст @@ -44,6 +47,10 @@ @Html.DisplayFor(modelItem => item.Date) + + @Html.DisplayFor(modelItem => + item.ServiceName) + @Html.DisplayFor(modelItem => item.Text) diff --git a/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml b/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml index 49ff979..f11ef9a 100644 --- a/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml +++ b/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml @@ -15,7 +15,12 @@
Услуга:
- +
@@ -38,6 +43,7 @@ btn-primary" /> function check() { var guidance = $('#guidance').val(); + $("#service option:selected").removeAttr("selected"); if (guidance) { $.ajax({ method: "GET", diff --git a/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml b/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml index fde4176..1e4bdbe 100644 --- a/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml +++ b/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml @@ -13,7 +13,7 @@