2023-05-04 23:45:15 +04:00
|
|
|
|
using ConfectioneryContracts.Attributes;
|
|
|
|
|
using ConfectioneryDataModels.Enums;
|
2023-01-31 13:12:06 +04:00
|
|
|
|
using ConfectioneryDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ConfectioneryContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-31 13:12:06 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-02-14 00:08:23 +04:00
|
|
|
|
public int PastryId { get; set; }
|
2023-01-31 13:12:06 +04:00
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-04-11 00:52:16 +04:00
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Данные клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-04-11 00:52:16 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-05-03 23:15:51 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Данные исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-05-03 23:15:51 +04:00
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Изделие", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-02-14 00:08:23 +04:00
|
|
|
|
public string PastryName { get; set; } = string.Empty;
|
2023-01-31 13:12:06 +04:00
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-31 13:12:06 +04:00
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-31 13:12:06 +04:00
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2023-01-31 13:12:06 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Дата создания", width: 100)]
|
2023-01-31 13:12:06 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
|
2023-05-04 23:45:15 +04:00
|
|
|
|
[Column("Дата выполнения", width: 100)]
|
2023-01-31 13:12:06 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|