PIbd21_Makarov_DV_FlowerShop/FlowerShop/FlowerShopContracts/ViewModels/OrderViewModel.cs

37 lines
1.6 KiB
C#
Raw Normal View History

2024-05-16 17:03:51 +04:00
using FlowerShopContracts.Attributes;
using FlowerShopDataModels.Enums;
2024-02-24 09:40:58 +04:00
using FlowerShopDataModels.Models;
namespace FlowerShopContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2024-05-16 17:03:51 +04:00
[Column(title: "Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-24 09:40:58 +04:00
public int Id { get; set; }
2024-05-16 17:03:51 +04:00
[Column(visible: false)]
2024-02-24 09:40:58 +04:00
public int FlowerId { get; set; }
2024-05-16 17:03:51 +04:00
[Column(visible: false)]
public int ClientId { get; set; }
[Column(visible: false)]
public int? ImplementerId { get; set; }
[Column(title: "Изделие", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-24 09:40:58 +04:00
public string FlowerName { get; set; } = string.Empty;
2024-05-16 17:03:51 +04:00
[Column(title: "ФИО клиента", width: 120)]
2024-04-04 18:22:29 +04:00
public string ClientFIO { get; set; } = string.Empty;
2024-05-16 17:38:35 +04:00
[Column(title: "Почта клиента", width: 190)]
2024-05-02 19:55:52 +04:00
public string ClientEmail { get; set; } = string.Empty;
2024-05-16 17:03:51 +04:00
[Column(title: "ФИО исполнителя", width: 120)]
2024-04-18 18:48:25 +04:00
public string ImplementerFIO { get; set; }=string.Empty;
2024-05-16 17:03:51 +04:00
[Column(title: "Количество", width: 100)]
2024-04-18 18:48:25 +04:00
public int Count { get; set; }
2024-05-16 17:03:51 +04:00
[Column(title: "Сумма", width: 75)]
2024-02-24 09:40:58 +04:00
public double Sum { get; set; }
2024-05-16 17:03:51 +04:00
[Column(title: "Статус", width:70)]
2024-02-24 09:40:58 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-05-16 17:03:51 +04:00
[Column(title: "Дата создания", width: 120)]
2024-02-24 09:40:58 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-05-16 17:03:51 +04:00
[Column(title: "Дата выполнения", width:120)]
2024-02-24 09:40:58 +04:00
public DateTime? DateImplement { get; set; }
}
}