2024-05-20 22:12:07 +04:00
|
|
|
|
using CarRepairShopContracts.Attributes;
|
|
|
|
|
using CarRepairShopDataModels;
|
2024-02-09 22:08:31 +04:00
|
|
|
|
using CarRepairShopDataModels.Enums;
|
|
|
|
|
|
|
|
|
|
namespace CarRepairShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-05-20 22:12:07 +04:00
|
|
|
|
[Column(title: "Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int RepairId { get; set; }
|
|
|
|
|
[Column(title: "Ремонт", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public string RepairName { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[Column(title: "ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
2024-04-22 22:29:10 +04:00
|
|
|
|
public int? ImplementerId { get; set; } = null;
|
2024-05-20 22:12:07 +04:00
|
|
|
|
[Column(title: "ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-04-22 22:29:10 +04:00
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
2024-05-20 22:12:07 +04:00
|
|
|
|
[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: 100)]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
2024-02-09 22:08:31 +04:00
|
|
|
|
}
|
|
|
|
|
}
|