From 87634062888fac7b4aa5057bd3f61ffa87204aed 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: Wed, 24 Apr 2024 18:34:15 +0400 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D1=8B=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D1=8B?= =?UTF-8?q?-=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D1=82=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PolyclinicContracts.csproj | 6 ----- .../ViewModels/MedicamentView.cs | 23 ++++++++++++++++++ .../ViewModels/ProcedureView.cs | 24 +++++++++++++++++++ .../ViewModels/RecipeView.cs | 23 ++++++++++++++++++ .../ViewModels/SuretorView.cs | 24 +++++++++++++++++++ 5 files changed, 94 insertions(+), 6 deletions(-) create mode 100644 Polyclinic/PolyclinicContracts/ViewModels/MedicamentView.cs create mode 100644 Polyclinic/PolyclinicContracts/ViewModels/ProcedureView.cs create mode 100644 Polyclinic/PolyclinicContracts/ViewModels/RecipeView.cs create mode 100644 Polyclinic/PolyclinicContracts/ViewModels/SuretorView.cs diff --git a/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj b/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj index acf6006..5a9101d 100644 --- a/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj +++ b/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj @@ -6,12 +6,6 @@ enable - - - - - - diff --git a/Polyclinic/PolyclinicContracts/ViewModels/MedicamentView.cs b/Polyclinic/PolyclinicContracts/ViewModels/MedicamentView.cs new file mode 100644 index 0000000..345e93d --- /dev/null +++ b/Polyclinic/PolyclinicContracts/ViewModels/MedicamentView.cs @@ -0,0 +1,23 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.ViewModels +{ + public class MedicamentView : IMedicamentModel + { + public int Id { get; set; } + + [DisplayName("Название медикамента")] + public string Name { get; set; } = string.Empty; + + [DisplayName("Комментарий")] + public string Comment { get; set; } = string.Empty; + public Dictionary MedicamentSymptom { get; set; } = new(); + public Dictionary MedicamentProcedure { get; set; } = new(); + } +} diff --git a/Polyclinic/PolyclinicContracts/ViewModels/ProcedureView.cs b/Polyclinic/PolyclinicContracts/ViewModels/ProcedureView.cs new file mode 100644 index 0000000..e7212c2 --- /dev/null +++ b/Polyclinic/PolyclinicContracts/ViewModels/ProcedureView.cs @@ -0,0 +1,24 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.ViewModels +{ + public class ProcedureView : IProcedureModel + { + public int Id { get; set; } + + [DisplayName("Название процедуры")] + public string Name { get; set; } + + [DisplayName("Комментарий")] + public string Comment { get; set; } + + public Dictionary ProcedureCourse { get; set; } = new(); + + } +} \ No newline at end of file diff --git a/Polyclinic/PolyclinicContracts/ViewModels/RecipeView.cs b/Polyclinic/PolyclinicContracts/ViewModels/RecipeView.cs new file mode 100644 index 0000000..083f25e --- /dev/null +++ b/Polyclinic/PolyclinicContracts/ViewModels/RecipeView.cs @@ -0,0 +1,23 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.ViewModels +{ + public class RecipeView : IRecipeModel + { + public int Id { get; set; } + + [DisplayName("Количество процедур")] + public int CountProcedures { get; set; } + + [DisplayName("Комментарий")] + public string Comment { get; set; } = string.Empty; + public Dictionary ProcedureRecipe { get; set; } = new(); + } +} diff --git a/Polyclinic/PolyclinicContracts/ViewModels/SuretorView.cs b/Polyclinic/PolyclinicContracts/ViewModels/SuretorView.cs new file mode 100644 index 0000000..84bfa4d --- /dev/null +++ b/Polyclinic/PolyclinicContracts/ViewModels/SuretorView.cs @@ -0,0 +1,24 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.ViewModels +{ + public class SuretorView : ISuretorModel + { + public int Id { get; set; } + + [DisplayName("ФИО поручителя")] + public string FIO { get; set; } = string.Empty; + + public string Password { get; set; } = "123"; + + [DisplayName("Почта")] + public string Email { get; set; } = string.Empty; + + } +}