ComputerHardwareStore_YouAr.../ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderViewModel.cs

27 lines
964 B
C#
Raw Permalink Normal View History

2024-04-29 20:51:55 +04:00
using ComputerHardwareStoreDataModels.Enums;
using ComputerHardwareStoreDataModels.Models;
2024-04-18 15:03:40 +04:00
using System.ComponentModel;
namespace ComputerHardwareStoreContracts.ViewModels
{
public class OrderViewModel : IOrderModel
2024-04-18 15:03:40 +04:00
{
2024-04-29 20:51:55 +04:00
[DisplayName("Номер")]
2024-04-18 15:03:40 +04:00
public int Id { get; set; }
2024-05-30 07:44:40 +04:00
public int ProductId { get; set; }
[DisplayName("Товар")]
public string ProductName { get; set; } = string.Empty;
[DisplayName("Количество")]
public int Count { get; set; }
[DisplayName("Сумма")]
2024-04-29 20:51:55 +04:00
public double Sum { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; }
2024-04-18 15:03:40 +04:00
[DisplayName("Дата создания")]
2024-04-29 12:18:09 +04:00
public DateTime DateCreate { get; set; }
2024-04-29 20:51:55 +04:00
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
2024-05-30 07:44:40 +04:00
// public Dictionary<int, (IProductModel, int)> OrderProducts { get; set; } = new();
2024-04-18 15:03:40 +04:00
}
}