36 lines
1.4 KiB
C#
Raw Permalink Normal View History

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