From 351cd7930154fe81408b9f30baf0495931341aef Mon Sep 17 00:00:00 2001 From: Kristina Date: Mon, 3 Jun 2024 15:14:13 +0400 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/ImplementerViewModel.cs | 9 -------- .../ViewModels/ManufactureViewModel.cs | 10 --------- .../ViewModels/MessageInfoViewModel.cs | 11 +--------- .../ViewModels/OrderViewModel.cs | 21 ------------------- 4 files changed, 1 insertion(+), 50 deletions(-) diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ImplementerViewModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ImplementerViewModel.cs index 2882272..ed4be13 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ImplementerViewModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ImplementerViewModel.cs @@ -11,15 +11,6 @@ namespace BlacksmithWorkshopContracts.ViewModels { public class ImplementerViewModel : IImplementerModel { - //public int Id { get; set; } - //[DisplayName("ФИО исполнителя")] - //public string ImplementerFIO { get; set; } = string.Empty; - //[DisplayName("Стаж работы")] - //public int WorkExperience { get; set; } = 0; - //[DisplayName("Квалификация")] - //public int Qualification { get; set; } = 0; - //[DisplayName("Пароль")] - //public string Password { get; set; } = string.Empty; [Column(visible: false)] public int Id { get; set; } [Column("FIO", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ManufactureViewModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ManufactureViewModel.cs index 447483d..f9ac906 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ManufactureViewModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/ManufactureViewModel.cs @@ -11,16 +11,6 @@ namespace BlacksmithWorkshopContracts.ViewModels { public class ManufactureViewModel : IManufactureModel { - //public int Id { get; set; } - //[DisplayName("Название кузнечного изделия")] - //public string ManufactureName { get; set; } = string.Empty; - //[DisplayName("Цена")] - //public double Price { get; set; } - //public Dictionary ManufactureComponents - //{ - // get; - // set; - //} = new(); [Column(visible: false)] public int Id { get; set; } [Column("Wood's name", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/MessageInfoViewModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/MessageInfoViewModel.cs index b9989fb..14b30d2 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/MessageInfoViewModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/MessageInfoViewModel.cs @@ -11,16 +11,7 @@ namespace BlacksmithWorkshopContracts.ViewModels { public class MessageInfoViewModel : IMessageInfoModel { - //public string MessageId { get; set; } = string.Empty; - //public int? ClientId { get; set; } - //[DisplayName("Отправитель")] - //public string SenderName { get; set; } = string.Empty; - //[DisplayName("Дата письма")] - //public DateTime DateDelivery { get; set; } - //[DisplayName("Заголовок")] - //public string Subject { get; set; } = string.Empty; - //[DisplayName("Текст")] - //public string Body { get; set; } = string.Empty; + [Column(visible: false)] public string MessageId { get; set; } = string.Empty; [Column(visible: false)] diff --git a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/OrderViewModel.cs b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/OrderViewModel.cs index efada83..fa283d7 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/OrderViewModel.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopContracts/ViewModels/OrderViewModel.cs @@ -12,27 +12,6 @@ namespace BlacksmithWorkshopContracts.ViewModels { public class OrderViewModel : IOrderModel { - //[DisplayName("Номер")] - //public int Id { get; set; } - //public int? ImplementerId { get; set; } = null; - //public int ClientId { get; set; } - //[DisplayName("Клиент")] - //public string ClientFIO { get; set; } = string.Empty; - //public int ManufactureId { get; set; } - //[DisplayName("Кузнечное изделие")] - //public string ManufactureName { get; set; } = string.Empty; - //[DisplayName("Количество")] - //public int Count { get; set; } - //[DisplayName("Сумма")] - //public double Sum { get; set; } - //[DisplayName("Статус")] - //public OrderStatus Status { get; set; } = OrderStatus.Неизвестен; - //[DisplayName("Исполнитель")] - //public string ImplementerFIO { get; set; } = string.Empty; - //[DisplayName("Дата создания")] - //public DateTime DateCreate { get; set; } = DateTime.Now; - //[DisplayName("Дата выполнения")] - //public DateTime? DateImplement { get; set; } [Column("Number", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)] public int Id { get; set; }