36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using ElectronicsShopDataModels.Enums;
|
||
using ElectronicsShopDataModels.Models;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace ElectronicsShopContracts.ViewModels
|
||
{
|
||
public class OrderViewModel : IOrderModel
|
||
{
|
||
public int ID { get; set; }
|
||
[DisplayName("Клиент ID")]
|
||
public int UserID { get; set; }
|
||
|
||
[DisplayName("Сумма")]
|
||
public double Sum { get; set; }
|
||
|
||
[DisplayName("Статус")]
|
||
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
||
|
||
[DisplayName("Стутус оплаты")]
|
||
public PaymeantOption PaymeantOption { get; set; } = PaymeantOption.Неизвестно;
|
||
|
||
[DisplayName("Дата создания")]
|
||
public DateTime DateCreate { get; set; } = DateTime.Now;
|
||
|
||
[DisplayName("Дата выполнения")]
|
||
public DateTime? DateImplement { get; set; }
|
||
|
||
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
|
||
}
|
||
}
|