2024-02-12 20:09:21 +04:00
|
|
|
|
|
|
|
|
|
using CarRepairShopDataModels.Enums;
|
|
|
|
|
using CarRepairShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-05-18 23:30:39 +04:00
|
|
|
|
using CarRepairShopContracts.Attributes;
|
2024-02-12 20:09:21 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace CarRepairShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Номер", width: 50)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public int RepairId { get; set; }
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-04-06 20:36:13 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-04-21 00:32:56 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2024-04-06 20:36:13 +04:00
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "ФИО клиента", gridViewAutoSize:GridViewAutoSize.Fill, isUseAutoSize:true)]
|
2024-04-06 20:36:13 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-02-12 20:09:21 +04:00
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-04-21 00:32:56 +04:00
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Ремонт", width: 100)]
|
2024-03-03 00:02:43 +04:00
|
|
|
|
public string RepairName { get; set; } = string.Empty;
|
2024-02-12 20:09:21 +04:00
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Количество", width: 80)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Сумма", width: 100)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Статус", width: 120)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Дата создания", width: 110)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
|
2024-05-18 23:30:39 +04:00
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
2024-02-12 20:09:21 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|