2023-05-01 02:10:15 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
|
|
|
|
using SushiBarDataModels.Enums;
|
2023-01-31 15:23:18 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Номер", width: 50)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public int SushiId { get; set; }
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-03-25 00:57:08 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-04-10 22:46:23 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Суши", width: 100)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public string SushiName { get; set; } = string.Empty;
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[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;
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Количество", width: 100)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public int Count { get; set; }
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Сумма", width: 50)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public double Sum { get; set; }
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Статус", width: 50)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Дата создания", width: 100)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2023-05-01 02:10:15 +04:00
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|