PIbd-21_Balberova_D.N._Sush.../SushiBar/SushiBarContracts/ViewModels/OrderViewModel.cs

34 lines
1.5 KiB
C#
Raw Normal View History

using SushiBarContracts.Attributes;
using SushiBarDataModels.Enums;
2023-01-31 15:23:18 +04:00
using SushiBarDataModels.Models;
namespace SushiBarContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[Column(title: "Номер", width: 50)]
2023-01-31 15:23:18 +04:00
public int Id { get; set; }
[Column(visible: false)]
2023-01-31 15:23:18 +04:00
public int SushiId { get; set; }
[Column(visible: false)]
public int ClientId { get; set; }
[Column(visible: false)]
2023-04-10 22:46:23 +04:00
public int? ImplementerId { get; set; }
[Column(title: "Суши", width: 100)]
2023-01-31 15:23:18 +04:00
public string SushiName { get; set; } = string.Empty;
[Column(title: "Клиент", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string ClientFIO { get; set; } = string.Empty;
[Column(title: "Исполнитель", width: 130)]
2023-04-10 22:46:23 +04:00
public string ImplementerFIO { get; set; } = string.Empty;
[Column(title: "Количество", width: 100)]
2023-01-31 15:23:18 +04:00
public int Count { get; set; }
[Column(title: "Сумма", width: 50)]
2023-01-31 15:23:18 +04:00
public double Sum { get; set; }
[Column(title: "Статус", width: 50)]
2023-01-31 15:23:18 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[Column(title: "Дата создания", width: 100)]
2023-01-31 15:23:18 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
[Column(title: "Дата выполнения", width: 100)]
2023-01-31 15:23:18 +04:00
public DateTime? DateImplement { get; set; }
}
}