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; } + } +}