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")]
|
2024-05-19 17:52:59 +04:00
|
|
|
|
public int ClientID { get; set; }
|
2024-05-19 15:26:28 +04:00
|
|
|
|
[DisplayName("Исполнитель ID")]
|
2024-05-19 17:52:59 +04:00
|
|
|
|
public int? ImplementerID { get; set; }
|
2024-05-19 15:26:28 +04:00
|
|
|
|
[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 17:52:59 +04:00
|
|
|
|
public OrderStatus Status { 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 17:52:59 +04:00
|
|
|
|
}
|
2024-04-27 13:01:57 +04:00
|
|
|
|
}
|