ISEbd-21_Khaliullov_R.A._Co.../Canteen/CanteenContracts/ViewModels/OrderViewModel.cs

39 lines
1.3 KiB
C#
Raw Normal View History

2024-04-30 18:48:42 +04:00
using CanteenDataModels.Enums;
using CanteenDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CanteenContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[DisplayName("Номер")]
public int Id { get; set; }
public int ClientId { get; set; }
[DisplayName("ФИО Клиента")]
public string ClientFIO { get; set; } = string.Empty;
public int? CookId { get; set; }
[DisplayName("ФИО повара")]
public string? CookFIO { get; set; } = string.Empty;
public int DishId { get; set; }
[DisplayName("Блюдо")]
public string DishName { get; set; } = string.Empty;
[DisplayName("Количество блюд")]
public int DishCount { get; set; }
[DisplayName("Цена заказа")]
public double OrderPrice { get; set; }
[DisplayName("Статус заказа")]
public OrderStatus OrderStatus { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Статус оплаты")]
public PaymentStatus PaymentStatus { get; set; } = PaymentStatus.Неизвестно;
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
}
}