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("Количество")]
|
2023-04-08 16:56:53 +04:00
|
|
|
|
public int Count { get; set; }
|
2023-04-01 16:33:03 +04:00
|
|
|
|
[DisplayName("Сумма")]
|
2023-04-08 16:56:53 +04:00
|
|
|
|
public double Sum { get; set; }
|
2023-04-01 16:33:03 +04:00
|
|
|
|
[DisplayName("Статус")]
|
2023-04-08 16:56:53 +04:00
|
|
|
|
public OrderStatus Status { get; set; }
|
2023-04-01 16:33:03 +04:00
|
|
|
|
[DisplayName("Дата создания")]
|
2023-04-08 16:56:53 +04:00
|
|
|
|
public DateTime DateCreate { get; set; }
|
2023-04-01 16:33:03 +04:00
|
|
|
|
[DisplayName("Дата выполнения")]
|
2023-04-08 16:56:53 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
2023-04-01 12:26:05 +04:00
|
|
|
|
}
|
|
|
|
|
}
|