PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopContracts/ViewModels/OrderViewModel.cs

47 lines
1.6 KiB
C#
Raw Normal View History

2024-05-17 13:28:57 +04:00
using GiftShopContracts.Attributes;
using GiftShopDataModels.Enums;
2024-02-06 12:37:25 +04:00
using GiftShopDataModels.Models;
using System.ComponentModel;
namespace GiftShopContracts.ViewModels
{
public class OrderViewModel : IOrderModel
2024-05-17 13:28:57 +04:00
{
[Column(visible: false)]
public int GiftId { get; set; }
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column(visible: false)]
2024-04-09 17:02:29 +04:00
public int ClientId { get; set; }
2024-05-17 13:28:57 +04:00
[Column(visible: false)]
public int? ImplementerId { get; set; }
2024-05-15 15:07:11 +04:00
2024-05-17 13:28:57 +04:00
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public int Id { get; set; }
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string ImplementerFIO { get; set; } = string.Empty;
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Название изделия", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public string GiftName { get; set; } = string.Empty;
2024-05-15 15:07:11 +04:00
2024-05-17 13:28:57 +04:00
[Column("ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-04-09 17:02:29 +04:00
public string ClientFIO { get; set; } = string.Empty;
2024-05-17 13:28:57 +04:00
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public int Count { get; set; }
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public double Sum { get; set; }
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Дата создания", width: 100)]
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Дата выполнения", width: 100)]
public DateTime? DateImplement { get; set; }
}
2024-02-06 12:37:25 +04:00
}