2023-06-01 10:26:44 +04:00
|
|
|
|
using AbstractFoodOrdersContracts.Attributes;
|
|
|
|
|
using AbstractFoodOrdersDataModels.Enums;
|
2023-02-06 09:16:53 +04:00
|
|
|
|
using AbstractFoodOrdersDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AbstractFoodOrdersContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2023-06-01 16:18:44 +04:00
|
|
|
|
[Column(title: "Номер", width: 80)]
|
2023-06-01 10:26:44 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int DishId { get; set; }
|
2023-06-01 16:18:44 +04:00
|
|
|
|
[Column(title: "Блюдо", width: 90)]
|
2023-06-01 10:26:44 +04:00
|
|
|
|
public string DishName { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
2023-05-14 18:42:16 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2023-06-01 16:18:44 +04:00
|
|
|
|
[Column(title: "Исполнитель", width: 120)]
|
2023-05-14 18:42:16 +04:00
|
|
|
|
public string? ImplementerFIO { get; set; }
|
2023-06-01 10:26:44 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-05-14 18:42:16 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2023-06-01 16:18:44 +04:00
|
|
|
|
[Column(title: "ФИО клиента", width: 120)]
|
2023-06-01 10:26:44 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
2023-05-30 14:01:59 +04:00
|
|
|
|
public string ClientEmail { get; set; } = string.Empty;
|
2023-06-01 10:26:44 +04:00
|
|
|
|
[Column(title: "Количество", width: 100)]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
[Column(title: "Сумма", width: 100)]
|
|
|
|
|
public double Sum { get; set; }
|
2023-06-01 16:18:44 +04:00
|
|
|
|
[Column(title: "Статус", width: 100)]
|
2023-06-01 10:26:44 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
[Column(title: "Дата создания", width: 120)]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
[Column(title: "Дата выполнения", width: 120)]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
2023-02-06 09:16:53 +04:00
|
|
|
|
}
|