PIbd-22_Karamushko_M_K_Pizz.../Pizzeria/PizzeriaContracts/ViewModels/OrderViewModel.cs

45 lines
1.8 KiB
C#
Raw Normal View History

2023-02-13 20:43:19 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using PizzeriaDataModels;
2023-05-05 00:09:30 +04:00
using PizzeriaContracts.Attributes;
2023-02-13 20:43:19 +04:00
namespace PizzeriaContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2023-05-05 00:09:30 +04:00
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-02-13 20:43:19 +04:00
public int Id { get; set; }
2023-05-05 00:09:30 +04:00
[Column(visible: false)]
2023-02-13 20:43:19 +04:00
public int PizzaId { get; set; }
2023-05-05 00:09:30 +04:00
[Column("Название изделия", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-02-13 20:43:19 +04:00
public string PizzaName { get; set; } = string.Empty;
2023-05-05 00:09:30 +04:00
[Column(visible: false)]
2023-03-27 23:45:02 +04:00
public int ClientId { get; set; }
2023-05-05 00:09:30 +04:00
[Column(visible: false)]
2023-04-11 09:29:12 +04:00
public int? ImplementerId { get; set; }
2023-03-27 23:45:02 +04:00
2023-05-05 00:09:30 +04:00
[Column("ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string? ImplementerFIO { get; set; }
[Column("ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2023-03-27 23:45:02 +04:00
public string ClientFIO { get; set; } = string.Empty;
2023-05-05 00:09:30 +04:00
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-02-13 20:43:19 +04:00
public int Count { get; set; }
2023-05-05 00:09:30 +04:00
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-02-13 20:43:19 +04:00
public double Sum { get; set; }
2023-05-05 00:09:30 +04:00
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-02-13 20:43:19 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2023-05-05 00:09:30 +04:00
[Column("Дата создания", width: 100)]
2023-02-13 20:43:19 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2023-05-05 00:09:30 +04:00
[Column("Дата выполнения", width: 100)]
2023-02-13 20:43:19 +04:00
public DateTime? DateImplement { get; set; }
}
}