CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/ViewModels/OrderViewModel.cs
Илья Федотов be5db49184 fix
2024-05-19 17:52:59 +04:00

40 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 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 ClientID { get; set; }
[DisplayName("Исполнитель ID")]
public int? ImplementerID { get; set; }
[DisplayName("Оплата ID")]
public int PaymentID { 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; }
[DisplayName("Корзина")]
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
}
}