PIbd-23_Elatomtsev_L.K._Con.../Confectionery/ConfectioneryContracts/ViewModels/OrderViewModel.cs

39 lines
1.8 KiB
C#
Raw Normal View History

2024-03-13 14:54:56 +04:00
using ConfectioneryDataModels.Enums;
using ConfectioneryDataModels.Models;
2024-05-22 14:38:56 +04:00
using ConfectioneryContracts.Attributes;
2024-03-13 14:54:56 +04:00
namespace ConfectioneryContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2024-05-22 14:38:56 +04:00
[Column(title: "Номер", gridViewAutoSize: GridViewAutoSize.AllCells,
isUseAutoSize: true)]
2024-03-13 14:54:56 +04:00
public int Id { get; set; }
2024-05-22 14:38:56 +04:00
[Column(visible: false)]
2024-03-13 14:54:56 +04:00
public int PastryId { get; set; }
2024-05-22 14:38:56 +04:00
[Column(title: "Кондитерское изделие", gridViewAutoSize:
GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-03-13 14:54:56 +04:00
public string PastryName { get; set; } = string.Empty;
2024-05-22 14:38:56 +04:00
[Column(visible: false)]
2024-05-05 03:45:20 +04:00
public int ClientId { get; set; }
2024-05-22 14:38:56 +04:00
[Column(title: "ФИО клиента", width: 250)]
2024-05-05 03:45:20 +04:00
public string ClientFIO { get; set; } = string.Empty;
2024-05-22 14:38:56 +04:00
[Column(visible: false)]
2024-05-08 15:04:44 +04:00
public int? ImplementerId { get; set; } = null;
2024-05-22 14:38:56 +04:00
[Column(title: "ФИО исполнителя", width: 250)]
2024-05-08 15:04:44 +04:00
public string ImplementerFIO { get; set; } = string.Empty;
2024-05-22 14:38:56 +04:00
[Column(title: "Количество", gridViewAutoSize:
GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-03-13 14:54:56 +04:00
public int Count { get; set; }
2024-05-22 14:38:56 +04:00
[Column(title: "Сумма", gridViewAutoSize:
GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-03-13 14:54:56 +04:00
public double Sum { get; set; }
2024-05-22 14:38:56 +04:00
[Column(title: "Статус", gridViewAutoSize:
GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-03-13 14:54:56 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-05-22 14:38:56 +04:00
[Column(title: "Дата создания", width: 150)]
2024-03-13 14:54:56 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-05-22 14:38:56 +04:00
[Column(title: "Дата выполнения", width: 150)]
2024-03-13 14:54:56 +04:00
public DateTime? DateImplement { get; set; }
}
}