PIbd-22-Stroev-V.M.-Plumbin.../PlumbingRepair/PlumbingRepairContracts/ViewModels/OrderViewModel.cs

43 lines
2.1 KiB
C#
Raw Normal View History

2024-05-21 20:02:14 +04:00
using PlumbingRepairContracts.Attributes;
using PlumbingRepairDataModels.Enums;
2024-02-27 22:51:12 +04:00
using PlumbingRepairDataModels.Models;
2024-02-13 23:15:11 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlumbingRepairContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2024-05-21 20:02:14 +04:00
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-13 23:15:11 +04:00
public int Id { get; set; }
2024-05-21 20:02:14 +04:00
[Column(visible: false)]
2024-02-14 11:14:37 +04:00
public int WorkId { get; set; }
2024-05-21 20:02:14 +04:00
[Column("Название изделия", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-14 11:14:37 +04:00
public string WorkName { get; set; } = string.Empty;
2024-05-21 20:02:14 +04:00
[Column(visible: false)]
public int ClientId { get; set; }
2024-05-21 20:02:14 +04:00
[Column("ФИО клиента", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public string ClientFIO { get; set; } = string.Empty;
2024-05-21 20:02:14 +04:00
[Column(visible: false)]
public int? ImplementerId { get; set; }
2024-05-21 20:02:14 +04:00
[Column("ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
public string ImplementerFIO { get; set; } = string.Empty;
2024-05-21 20:02:14 +04:00
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-13 23:15:11 +04:00
public int Count { get; set; }
2024-05-21 20:02:14 +04:00
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-13 23:15:11 +04:00
public double Sum { get; set; }
2024-05-21 20:02:14 +04:00
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2024-02-13 23:15:11 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-05-21 20:02:14 +04:00
[Column("Дата создания", width: 130)]
2024-04-09 13:35:33 +04:00
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
2024-05-21 20:02:14 +04:00
[Column("Дата выполнения", width: 130)]
2024-02-13 23:15:11 +04:00
public DateTime? DateImplement { get; set; }
2024-05-22 09:58:59 +04:00
[Column("Почта пользователя", width: 250)]
public string ClientEmail { get; set; } = string.Empty;
2024-02-13 23:15:11 +04:00
}
}