2024-06-16 15:28:03 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
|
|
|
|
using SushiBarDataModels.Enums;
|
2024-02-09 15:31:49 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Номер", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-12 19:04:40 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Исполнитель", width: 150)]
|
2024-05-12 19:04:40 +04:00
|
|
|
|
public string? ImplementerFIO { get; set; } = null;
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public int SushiId { get; set; }
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-12 20:03:46 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-13 13:16:59 +04:00
|
|
|
|
public string ClientEmail { get; set; } = string.Empty;
|
2024-05-12 20:03:46 +04:00
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Клиент", width: 150)]
|
2024-05-12 20:03:46 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Сушина", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public string SushiName { get; set; } = string.Empty;
|
2024-05-01 13:12:40 +04:00
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Количество", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public int Count { get; set; }
|
2024-05-12 20:03:46 +04:00
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Сумма", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public double Sum { get; set; }
|
2024-05-12 20:03:46 +04:00
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Статус", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2024-05-12 20:03:46 +04:00
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Дата создания", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2024-05-12 20:03:46 +04:00
|
|
|
|
|
2024-06-16 15:28:03 +04:00
|
|
|
|
[Column(title: "Дата выполнения", width: 150)]
|
2024-02-09 15:31:49 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|