CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/OrderViewModel.cs

41 lines
1.3 KiB
C#
Raw Normal View History

2024-04-27 13:01:57 +04:00
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; }
2024-04-29 19:34:14 +04:00
[DisplayName("Клиент ID")]
public int UserID { get; set; }
2024-05-19 15:26:28 +04:00
[DisplayName("Исполнитель ID")]
public int ImplementerID { get; set; }
[DisplayName("Оплата ID")]
public int PaymentID { get; set; }
2024-04-27 13:01:57 +04:00
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Статус")]
2024-05-19 15:26:28 +04:00
public OrderStatus OrderStatus { get; set; } = OrderStatus.Неизвестен;
2024-04-27 13:01:57 +04:00
[DisplayName("Стутус оплаты")]
public PaymeantOption PaymeantOption { get; set; } = PaymeantOption.Неизвестно;
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Дата выполнения")]
2024-04-29 01:28:41 +04:00
public DateTime? DateImplement { get; set; }
2024-05-19 15:26:28 +04:00
[DisplayName("Корзина")]
2024-04-27 13:01:57 +04:00
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
2024-05-19 15:26:28 +04:00
2024-04-27 13:01:57 +04:00
}
}