PIbd-21_RazubaevSM_Plumbing.../PlumbingRepair/PlumbingRepairContracts/ViewModels/OrderViewModel.cs

45 lines
1.8 KiB
C#
Raw Normal View History

2024-05-16 17:00:28 +04:00
using PlumbingRepairContracts.Attributes;
using PlumbingRepairDataModels.Enums;
2024-03-23 11:06:35 +04:00
using PlumbingRepairDataModels.Models;
using System.ComponentModel;
namespace PlumbingRepairContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2024-05-16 17:00:28 +04:00
[Column(title: "Номер", width: 100)]
public int Id { get; set; }
[Column(visible: false)]
public int WorkId { get; set; }
[Column(visible: false)]
public int ClientId { get; set; }
[Column(title: "ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string ClientFIO { get; set; } = string.Empty;
[Column(title: "Почта клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-05-02 22:08:35 +04:00
public string ClientEmail { get; set; } = string.Empty;
2024-04-12 19:30:31 +04:00
2024-05-16 17:00:28 +04:00
[Column(visible: false)]
public int? ImplementerId { get; set; }
[Column(title: "ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string? ImplementerFIO { get; set; } = string.Empty;
2024-04-19 18:02:08 +04:00
2024-05-16 17:00:28 +04:00
[Column(title: "Работа", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string WorkName { get; set; } = string.Empty;
2024-03-23 11:06:35 +04:00
2024-05-16 17:00:28 +04:00
[Column(title: "Количество", width: 150)]
public int Count { get; set; }
2024-03-23 11:06:35 +04:00
2024-05-16 19:02:46 +04:00
[Column(title: "Сумма", width: 150, formattedNumber: true)]
2024-05-16 17:00:28 +04:00
public double Sum { get; set; }
2024-03-23 11:06:35 +04:00
2024-05-16 17:00:28 +04:00
[Column(title: "Статус", width: 150)]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-03-23 11:06:35 +04:00
2024-06-18 14:07:54 +04:00
[Column(title: "Дата создания", width: 200, formatDate: "dd MMMM YY, HH:mm:ss")]
2024-05-16 17:00:28 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-03-23 11:06:35 +04:00
2024-06-18 14:07:54 +04:00
[Column(title: "Дата выполнения", width: 200, formatDate: "dd MMMM YY, HH:mm:ss")]
2024-05-16 17:00:28 +04:00
public DateTime? DateImplement { get; set; }
2024-03-23 11:06:35 +04:00
}
}