using ConstructionCompanyDataModels.Enums; using ConstructionCompanyDataModels.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConstructionCompanyContracts.ViewModels { public class OrderViewModel : IOrderModel { [DisplayName("Описание")] public string Description {get;set;} = string.Empty; [DisplayName("Адрес")] public string Adress {get;set;} = string.Empty; [DisplayName("Стоимость")] public double Price { get; set; } [DisplayName("Статус")] public OrderStatus Status { get; set; } = OrderStatus.Неизвестен; [DisplayName("Телефон заказчика")] public string CustomerNumber { get; set; } = string.Empty; [DisplayName("Дата создания")] public DateTime DateBegin { get; set; } = DateTime.Now.Date; [DisplayName("Дата выполнения")] public DateTime? DateEnd { get; set; } [DisplayName("Номер")] public int Id { get; set; } public Dictionary OrderEmployees { get; set; } = new(); public Dictionary OrderMaterials { get; set; } = new(); } }