using AutomobilePlantDataModels.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using AutomobilePlantDataModels.Enums; using AutomobilePlantContracts.Attributes; namespace AutomobilePlantContracts.ViewModel { public class OrderViewModel : IOrderModel { [Column(visible: false)] public int Id { get; set; } [Column(title: "Клиент", width: 150)] public string ClientName { get; set; } = string.Empty; [Column(visible: false)] public int ClientId { get; set; } [Column(visible: false)] public int? ImplementerId { get; set; } [Column(title: "Исполнитель", width: 150)] public string? ImplementerName { get; set; } = string.Empty; [Column(visible: false)] public int CarId { get; set; } [Column(title: "Машина", width: 150)] public string CarName { get; set; } = string.Empty; [Column(title: "Кол-во", width: 150)] public int Count { get; set; } [Column(title: "Сумма", width: 150)] public double Sum { get; set; } [Column(title: "Статус", width: 150)] public OrderStatus Status { get; set; } = OrderStatus.Неизвестен; [Column(title: "Дата создания", width: 150)] public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); [Column(title: "Дата выполнения", width: 150)] public DateTime? DateImplement { get; set; } } }