From 5d987e670b27501d509b53f868e172a7f9ce3a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Mon, 6 Mar 2023 13:17:07 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82=D1=8C?= =?UTF-8?q?=20"=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/ImplementerBindingModel.cs | 25 ++++++++++++++++ .../BusinessLogicsContracts/Class1.cs | 12 ++++++++ .../SearchModels/ImplementerSearchModel.cs | 17 +++++++++++ .../StoragesContract/IImplementerStorage.cs | 12 ++++++++ .../ViewModels/ImplementerViewModel.cs | 30 +++++++++++++++++++ ConfectioneryDataModels/IImplementerModel.cs | 16 ++++++++++ 6 files changed, 112 insertions(+) create mode 100644 ConfectioneryContracts/BindingModels/ImplementerBindingModel.cs create mode 100644 ConfectioneryContracts/BusinessLogicsContracts/Class1.cs create mode 100644 ConfectioneryContracts/SearchModels/ImplementerSearchModel.cs create mode 100644 ConfectioneryContracts/StoragesContract/IImplementerStorage.cs create mode 100644 ConfectioneryContracts/ViewModels/ImplementerViewModel.cs create mode 100644 ConfectioneryDataModels/IImplementerModel.cs diff --git a/ConfectioneryContracts/BindingModels/ImplementerBindingModel.cs b/ConfectioneryContracts/BindingModels/ImplementerBindingModel.cs new file mode 100644 index 0000000..bcf2fde --- /dev/null +++ b/ConfectioneryContracts/BindingModels/ImplementerBindingModel.cs @@ -0,0 +1,25 @@ +using ConfectioneryDataModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BindingModels +{ + /// + /// Исполнитель, выполняющий заказы + /// + public class ImplementerBindingModel : IImplementerModel + { + public int Id { get; set; } + + public string ImplementerFIO { get; set; } = string.Empty; + + public string Password { get; set; } = string.Empty; + + public int WorkExperience { get; set; } + + public int Qualification { get; set; } + } +} diff --git a/ConfectioneryContracts/BusinessLogicsContracts/Class1.cs b/ConfectioneryContracts/BusinessLogicsContracts/Class1.cs new file mode 100644 index 0000000..9dbbbb2 --- /dev/null +++ b/ConfectioneryContracts/BusinessLogicsContracts/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BusinessLogicsContracts +{ + internal class Class1 + { + } +} diff --git a/ConfectioneryContracts/SearchModels/ImplementerSearchModel.cs b/ConfectioneryContracts/SearchModels/ImplementerSearchModel.cs new file mode 100644 index 0000000..0554d59 --- /dev/null +++ b/ConfectioneryContracts/SearchModels/ImplementerSearchModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.SearchModels +{ + public class ImplementerSearchModel + { + public int? Id { get; set; } + + public string? ImplementerFIO { get; set; } + + public string? Password { get; set; } + } +} diff --git a/ConfectioneryContracts/StoragesContract/IImplementerStorage.cs b/ConfectioneryContracts/StoragesContract/IImplementerStorage.cs new file mode 100644 index 0000000..304b9d6 --- /dev/null +++ b/ConfectioneryContracts/StoragesContract/IImplementerStorage.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.StoragesContract +{ + internal class IImplementerStorage + { + } +} diff --git a/ConfectioneryContracts/ViewModels/ImplementerViewModel.cs b/ConfectioneryContracts/ViewModels/ImplementerViewModel.cs new file mode 100644 index 0000000..d712215 --- /dev/null +++ b/ConfectioneryContracts/ViewModels/ImplementerViewModel.cs @@ -0,0 +1,30 @@ +using ConfectioneryDataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.ViewModels +{ + /// + /// Исполнитель, выполняющий заказы + /// + public class ImplementerViewModel : IImplementerModel + { + public int Id { get; set; } + + [DisplayName("ФИО исполнителя")] + public string ImplementerFIO { get; set; } = string.Empty; + + [DisplayName("Пароль")] + public string Password { get; set; } = string.Empty; + + [DisplayName("Стаж работы")] + public int WorkExperience { get; set; } + + [DisplayName("Квалификация")] + public int Qualification { get; set; } + } +} diff --git a/ConfectioneryDataModels/IImplementerModel.cs b/ConfectioneryDataModels/IImplementerModel.cs new file mode 100644 index 0000000..0f1df0e --- /dev/null +++ b/ConfectioneryDataModels/IImplementerModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels +{ + public interface IImplementerModel : IId + { + string ImplementerFIO { get; } + string Password { get; } + int WorkExperience { get; } + int Qualification { get; } + } +}