2023-04-01 13:12:37 +04:00
|
|
|
|
using HardwareShopDataModels.Enums;
|
2023-04-01 12:26:05 +04:00
|
|
|
|
using HardwareShopDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
2023-04-01 16:33:03 +04:00
|
|
|
|
|
2023-04-01 13:12:37 +04:00
|
|
|
|
namespace HardwareShopContracts.ViewModels
|
2023-04-01 12:26:05 +04:00
|
|
|
|
{
|
2023-04-01 13:12:37 +04:00
|
|
|
|
public class OrderViewModel : IOrderModel
|
2023-04-01 12:26:05 +04:00
|
|
|
|
{
|
2023-04-01 16:33:03 +04:00
|
|
|
|
[DisplayName("Номер")]
|
2023-04-01 12:37:25 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-04-01 16:33:03 +04:00
|
|
|
|
public int GoodId { get; set; }
|
|
|
|
|
public int UserId { get; set; }
|
2023-04-02 16:22:58 +04:00
|
|
|
|
[DisplayName("Товар")]
|
|
|
|
|
public string GoodName { get; set; } = string.Empty;
|
2023-04-01 16:33:03 +04:00
|
|
|
|
[DisplayName("Количество")]
|
|
|
|
|
public int Count{ get; set; }
|
|
|
|
|
[DisplayName("Сумма")]
|
|
|
|
|
public double Sum{ get; set; }
|
|
|
|
|
[DisplayName("Статус")]
|
|
|
|
|
public OrderStatus Status{ get; set; }
|
|
|
|
|
[DisplayName("Дата создания")]
|
|
|
|
|
public DateTime DateCreate{ get; set; }
|
|
|
|
|
[DisplayName("Дата выполнения")]
|
|
|
|
|
public DateTime? DateImplement{ get; set; }
|
2023-04-01 12:26:05 +04:00
|
|
|
|
}
|
|
|
|
|
}
|