PIbd-21_Pyatakov_K.M._Secure/Secure/SecureShopContracts/ViewModels/OrderViewModel.cs

32 lines
960 B
C#
Raw Normal View History

2023-03-09 08:39:13 +04:00
using SecureShopDataModels.Enums;
2023-03-06 23:23:24 +04:00
using SecureShopDataModels.Models;
using System.ComponentModel;
namespace SecureShopContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[DisplayName("Номер")]
public int Id { get; set; }
2023-03-09 08:39:13 +04:00
2023-03-06 23:23:24 +04:00
public int SecureId { get; set; }
2023-03-09 08:39:13 +04:00
[DisplayName("Система безопасности")]
2023-03-06 23:23:24 +04:00
public string SecureName { get; set; } = string.Empty;
2023-03-09 08:39:13 +04:00
2023-03-06 23:23:24 +04:00
[DisplayName("Количество")]
public int Count { get; set; }
2023-03-09 08:39:13 +04:00
2023-03-06 23:23:24 +04:00
[DisplayName("Сумма")]
public double Sum { get; set; }
2023-03-09 08:39:13 +04:00
2023-03-06 23:23:24 +04:00
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2023-03-09 08:39:13 +04:00
2023-03-06 23:23:24 +04:00
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
2023-03-09 08:39:13 +04:00
2023-03-06 23:23:24 +04:00
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
}
2023-03-09 08:39:13 +04:00
}