39 lines
1.8 KiB
C#
39 lines
1.8 KiB
C#
using ConfectioneryDataModels.Enums;
|
||
using ConfectioneryDataModels.Models;
|
||
using ConfectioneryContracts.Attributes;
|
||
namespace ConfectioneryContracts.ViewModels
|
||
{
|
||
public class OrderViewModel : IOrderModel
|
||
{
|
||
[Column(title: "Номер", gridViewAutoSize: GridViewAutoSize.AllCells,
|
||
isUseAutoSize: true)]
|
||
public int Id { get; set; }
|
||
[Column(visible: false)]
|
||
public int PastryId { get; set; }
|
||
[Column(title: "Кондитерское изделие", gridViewAutoSize:
|
||
GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
||
public string PastryName { get; set; } = string.Empty;
|
||
[Column(visible: false)]
|
||
public int ClientId { get; set; }
|
||
[Column(title: "ФИО клиента", width: 250)]
|
||
public string ClientFIO { get; set; } = string.Empty;
|
||
[Column(visible: false)]
|
||
public int? ImplementerId { get; set; } = null;
|
||
[Column(title: "ФИО исполнителя", width: 250)]
|
||
public string ImplementerFIO { get; set; } = string.Empty;
|
||
[Column(title: "Количество", gridViewAutoSize:
|
||
GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
||
public int Count { get; set; }
|
||
[Column(title: "Сумма", gridViewAutoSize:
|
||
GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
||
public double Sum { get; set; }
|
||
[Column(title: "Статус", gridViewAutoSize:
|
||
GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
||
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
||
[Column(title: "Дата создания", width: 150)]
|
||
public DateTime DateCreate { get; set; } = DateTime.Now;
|
||
[Column(title: "Дата выполнения", width: 150)]
|
||
public DateTime? DateImplement { get; set; }
|
||
}
|
||
}
|