2023-04-23 23:23:08 +04:00
|
|
|
|
using FlowerShopContracts.Attributes;
|
|
|
|
|
using FlowerShopDataModels.Enums;
|
2023-01-29 19:21:11 +04:00
|
|
|
|
using FlowerShopDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public int BouquetId { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-03-26 23:04:44 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("ФИО клиента", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-03-26 23:04:44 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-04-10 01:13:25 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-04-10 01:13:25 +04:00
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Букет", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public string BouquetName { get; set; } = string.Empty;
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public int Count { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public double Sum { get; set; }
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-02-12 23:20:34 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Дата создания", width: 100)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2023-04-23 23:23:08 +04:00
|
|
|
|
[Column("Дата выполнения", width: 100)]
|
2023-01-29 19:21:11 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|