From 6e7d7a8dfd43f098cd40d731a0a1f004edf39662 Mon Sep 17 00:00:00 2001 From: ekallin Date: Wed, 17 Apr 2024 18:23:27 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B5=D0=BD=D0=B0.=20=D0=94=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20BindingModels=20=D0=B2=20?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=B5=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BA=D1=82=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F=205=20=D1=8D?= =?UTF-8?q?=D1=82=D0=B0=D0=BF=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/MedicamentBindingModel.cs | 16 ++++++++++++++++ .../BindingModels/ProcedureBindingModel.cs | 16 ++++++++++++++++ .../BindingModels/RecieptBindingModel.cs | 16 ++++++++++++++++ .../BindingModels/SuretorBindingModel.cs | 18 ++++++++++++++++++ .../PolyclinicContracts.csproj | 5 ++++- 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicContracts/BindingModels/MedicamentBindingModel.cs create mode 100644 Polyclinic/PolyclinicContracts/BindingModels/ProcedureBindingModel.cs create mode 100644 Polyclinic/PolyclinicContracts/BindingModels/RecieptBindingModel.cs create mode 100644 Polyclinic/PolyclinicContracts/BindingModels/SuretorBindingModel.cs diff --git a/Polyclinic/PolyclinicContracts/BindingModels/MedicamentBindingModel.cs b/Polyclinic/PolyclinicContracts/BindingModels/MedicamentBindingModel.cs new file mode 100644 index 0000000..79c9e22 --- /dev/null +++ b/Polyclinic/PolyclinicContracts/BindingModels/MedicamentBindingModel.cs @@ -0,0 +1,16 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.BindingModels +{ + public class MedicamentBindingModel : IMedicament + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public string Comment { get; set; } = string.Empty; + } +} \ No newline at end of file diff --git a/Polyclinic/PolyclinicContracts/BindingModels/ProcedureBindingModel.cs b/Polyclinic/PolyclinicContracts/BindingModels/ProcedureBindingModel.cs new file mode 100644 index 0000000..7fb1f61 --- /dev/null +++ b/Polyclinic/PolyclinicContracts/BindingModels/ProcedureBindingModel.cs @@ -0,0 +1,16 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.BindingModels +{ + public class ProcedureBindingModel : IProcedure + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public string Comment { get; set; } = string.Empty; + } +} \ No newline at end of file diff --git a/Polyclinic/PolyclinicContracts/BindingModels/RecieptBindingModel.cs b/Polyclinic/PolyclinicContracts/BindingModels/RecieptBindingModel.cs new file mode 100644 index 0000000..61c4221 --- /dev/null +++ b/Polyclinic/PolyclinicContracts/BindingModels/RecieptBindingModel.cs @@ -0,0 +1,16 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.BindingModels +{ + public class RecieptBindingModel : IReciept + { + public int Id { get; set; } + public int CountProcedures { get; set; } + public string Comment { get; set; } = string.Empty; + } +} \ No newline at end of file diff --git a/Polyclinic/PolyclinicContracts/BindingModels/SuretorBindingModel.cs b/Polyclinic/PolyclinicContracts/BindingModels/SuretorBindingModel.cs new file mode 100644 index 0000000..bf021ea --- /dev/null +++ b/Polyclinic/PolyclinicContracts/BindingModels/SuretorBindingModel.cs @@ -0,0 +1,18 @@ +using PolyclinicDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.BindingModels +{ + public class SuretorBindingModel : ISuretor + { + public int Id { get; set; } + public string FIO { get; set; } = string.Empty; + public DateTime BirthDay { get; set; } + public string Password { get; set; } = "123"; + public string RepeatPassword { get; set; } = "123"; + } +} \ No newline at end of file diff --git a/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj b/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj index d7f6b16..8eca715 100644 --- a/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj +++ b/Polyclinic/PolyclinicContracts/PolyclinicContracts.csproj @@ -7,11 +7,14 @@ - + + + +