PIbd22_Kuznetsov_A.V._Sewin.../SewingDresses/SewingDressesContracts/ViewModels/OrderViewModel.cs

36 lines
1.4 KiB
C#

using System.ComponentModel;
using SewingDressesContracts.Attributes;
using SewingDressesDataModels.Enums;
using SewingDressesDataModels.Models;
namespace SewingDressesContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[Column(title: "Номер", width: 70)]
public int Id { get; set; }
[Column(visible: false)]
public int DressId { get; set; }
[Column(visible: false)]
public int? ImplementId { get; set; }
[Column(visible: false)]
public int ClientId { get; set; }
[Column(title: "Имя клиента", width: 150)]
public string ClientFIO { get; set; } = string.Empty;
[Column(title: "Имя исполнителя", width: 150)]
public string? ImplementFIO { get; set; } = string.Empty;
[Column(title: "Платье", width: 150)]
public string DressName { get; set; } = string.Empty;
[Column(title: "Количество", width: 100)]
public int Count { get; set; }
[Column(title:"Сумма", width: 70)]
public double Sum { get; set; }
[Column(title: "Статус", width: 100)]
public OrderStatus Status { get; set; }
[Column(title: "Дата создания", width: 150)]
public DateTime DateCreate { get; set; } = DateTime.Now;
[Column(title: "Дата выполнения", width: 150)]
public DateTime? DateImplement { get; set; }
}
}