2024-05-16 16:10:32 +04:00
|
|
|
|
using PrecastConcretePlantContracts.Attributes;
|
|
|
|
|
using PrecastConcretePlantDataModels.Enums;
|
2024-02-09 16:47:02 +04:00
|
|
|
|
using PrecastConcretePlantDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace PrecastConcretePlantContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-04-12 21:59:39 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Фамилия клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-04-12 21:59:39 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-01 19:44:12 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Фамилия исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-05-01 19:44:12 +04:00
|
|
|
|
public string? ImplementerFIO { get; set; } = string.Empty;
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public int ReinforcedId { get; set; }
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Изделие", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public string ReinforcedName { get; set; } = string.Empty;
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public int Count { get; set; }
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public double Sum { get; set; }
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Дата создания", width: 100)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2024-05-16 16:10:32 +04:00
|
|
|
|
[Column("Дата выполнения", width: 100)]
|
2024-02-09 16:47:02 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|