PIbd-21_Zaharchenko_M.I._Pi.../Pizzeria/PizzeriaContracts/ViewModels/OrderViewModel.cs

50 lines
1.6 KiB
C#
Raw Normal View History

2023-05-14 07:44:14 +04:00
using PizzeriaContracts.Attributes;
using PizzeriaDataModels.Enums;
2023-02-16 08:52:03 +04:00
using PizzeriaDataModels.Models;
2023-02-12 20:11:02 +04:00
using System.ComponentModel;
2023-02-16 08:52:03 +04:00
namespace PizzeriaContracts.ViewModels
2023-02-12 20:11:02 +04:00
{
public class OrderViewModel : IOrderModel
{
2023-05-14 07:44:14 +04:00
[Column(title: "Номер", width: 90)]
2023-02-12 20:11:02 +04:00
public int Id { get; set; }
2023-05-14 07:44:14 +04:00
[Column(visible: false)]
2023-03-27 01:22:49 +04:00
public int ClientId { get; set; }
2023-03-26 19:05:49 +04:00
2023-05-14 07:44:14 +04:00
[Column(title: "Имя клиента", width: 190)]
2023-03-27 01:22:49 +04:00
public string? ClientFIO { get; set; } = string.Empty;
2023-03-26 19:05:49 +04:00
2023-05-14 07:44:14 +04:00
[Column(visible: false)]
2023-05-03 22:06:56 +04:00
public string ClientEmail { get; set; } = string.Empty;
2023-05-14 07:44:14 +04:00
[Column(visible: false)]
2023-02-16 08:52:03 +04:00
public int PizzaId { get; set; }
2023-02-12 20:11:02 +04:00
2023-05-14 07:44:14 +04:00
[Column(title: "Пицца", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2023-02-16 08:52:03 +04:00
public string PizzaName { get; set; } = string.Empty;
2023-02-12 20:11:02 +04:00
2023-05-14 07:44:14 +04:00
[Column(visible: false)]
2023-04-18 10:41:11 +04:00
public int? ImplementerId { get; set; }
2023-05-14 07:44:14 +04:00
[Column(title: "Исполнитель", width: 150)]
2023-04-18 10:41:11 +04:00
public string? ImplementerFIO { get; set; } = null;
2023-05-14 07:44:14 +04:00
[Column(title: "Количество", width: 100)]
2023-02-12 20:11:02 +04:00
public int Count { get; set; }
2023-05-14 07:44:14 +04:00
[Column(title: "Сумма", width: 120)]
2023-02-12 20:11:02 +04:00
public double Sum { get; set; }
2023-05-14 07:44:14 +04:00
[Column(title: "Статус", width: 70)]
2023-02-12 20:11:02 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2023-05-14 07:44:14 +04:00
[Column(title: "Дата создания", width: 120)]
2023-02-12 20:11:02 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2023-05-14 07:44:14 +04:00
[Column(title: "Дата выполнения", width: 120)]
2023-02-12 20:11:02 +04:00
public DateTime? DateImplement { get; set; }
}
}