using PlumbingRepairContracts.Attributes; using PlumbingRepairDataModels.Enums; using PlumbingRepairDataModels.Models; using System.ComponentModel; namespace PlumbingRepairContracts.ViewModels { public class OrderViewModel : IOrderModel { [Column(title: "Номер", width: 100)] public int Id { get; set; } [Column(visible: false)] public int WorkId { get; set; } [Column(visible: false)] public int ClientId { get; set; } [Column(title: "ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] public string ClientFIO { get; set; } = string.Empty; [Column(title: "Почта клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] public string ClientEmail { get; set; } = string.Empty; [Column(visible: false)] public int? ImplementerId { get; set; } [Column(title: "ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] public string? ImplementerFIO { get; set; } = string.Empty; [Column(title: "Работа", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] public string WorkName { get; set; } = string.Empty; [Column(title: "Количество", width: 150)] public int Count { get; set; } [Column(title: "Сумма", width: 150, formattedNumber: true)] public double Sum { get; set; } [Column(title: "Статус", width: 150)] public OrderStatus Status { get; set; } = OrderStatus.Неизвестен; [Column(title: "Дата создания", width: 200, formatDate: "dd MMMM YY, HH:mm:ss")] public DateTime DateCreate { get; set; } = DateTime.Now; [Column(title: "Дата выполнения", width: 200, formatDate: "dd MMMM YY, HH:mm:ss")] public DateTime? DateImplement { get; set; } } }