2024-02-18 00:35:38 +04:00
|
|
|
|
using FoodOrdersDataModels.Enums;
|
|
|
|
|
using FoodOrdersDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace FoodOrdersContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Номер")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public int DishId { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Еда")]
|
|
|
|
|
public string DishName { get; set; } = string.Empty;
|
2024-04-08 12:09:09 +04:00
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[DisplayName("Клиент")]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-05-05 21:45:07 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Исполнитель")]
|
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
2024-02-18 00:35:38 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Количество")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Сумма")]
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Статус")]
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата создания")]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата выполнения")]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|