ISEbd-21.Gordeev.I.V.SushiB.../SushiBar/SushiBarContracts/ViewModels/OrderViewModel.cs

44 lines
1.5 KiB
C#
Raw Normal View History

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
{
[Column(title: "Номер", width: 150)]
2024-02-09 15:31:49 +04:00
public int Id { get; set; }
[Column(visible: false)]
2024-05-12 19:04:40 +04:00
public int? ImplementerId { get; set; }
[Column(title: "Исполнитель", width: 150)]
2024-05-12 19:04:40 +04:00
public string? ImplementerFIO { get; set; } = null;
[Column(visible: false)]
2024-02-09 15:31:49 +04:00
public int SushiId { get; set; }
[Column(visible: false)]
2024-05-12 20:03:46 +04:00
public int ClientId { get; set; }
[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
[Column(title: "Клиент", width: 150)]
2024-05-12 20:03:46 +04:00
public string ClientFIO { get; set; } = string.Empty;
[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
[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
[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
[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
[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
[Column(title: "Дата выполнения", width: 150)]
2024-02-09 15:31:49 +04:00
public DateTime? DateImplement { get; set; }
}
}