ISEbd-21_Khaliullov_R.A._Co.../Canteen/CanteenContracts/ViewModels/OrderViewModel.cs
Руслан Халиуллов 0cf8214b3e 2 этап
2024-04-30 18:48:42 +04:00

39 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}