2024-02-25 19:29:35 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
using SushiBarDataModels.Enums;
|
|
|
|
|
using SushiBarDataModels;
|
2024-05-16 23:58:39 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
2024-02-25 19:29:35 +04:00
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Номер", width: 10)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-05-16 23:58:39 +04:00
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public int SushiId { get; set; }
|
2024-05-16 23:58:39 +04:00
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
2024-04-06 15:53:34 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-02-25 19:29:35 +04:00
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int? ImplementerId { get; set; }
|
2024-02-25 19:29:35 +04:00
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Имя клиента", width: 150)]
|
2024-04-06 15:53:34 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-05-16 23:58:39 +04:00
|
|
|
|
|
|
|
|
|
[Column(title: "Имя исполнителя", width: 150)]
|
2024-04-22 12:11:57 +04:00
|
|
|
|
public string? ImplementerFIO { get; set; }
|
2024-04-06 15:53:34 +04:00
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Суши", width: 50)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public string SushiName { get; set; } = string.Empty;
|
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Количество", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Сумма", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Статус", width: 30)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Дата создания", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
|
2024-05-16 23:58:39 +04:00
|
|
|
|
[Column(title: "Дата выполнения", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-25 19:29:35 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
2024-04-06 21:47:06 +04:00
|
|
|
|
}
|