2024-06-21 21:49:35 +04:00
|
|
|
|
using ShipyardContracts.Attributes;
|
|
|
|
|
using ShipyardDataModels.Enums;
|
2024-04-27 18:26:46 +04:00
|
|
|
|
using ShipyardDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
namespace ShipyardContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-06-21 21:49:35 +04:00
|
|
|
|
[Column(title: "Номер", gridViewAutoSize: GridViewAutoSize.AllCells,
|
|
|
|
|
isUseAutoSize: true)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
2024-06-02 18:04:23 +04:00
|
|
|
|
public int? ImplementerId { get; set; } = null;
|
2024-06-21 21:49:35 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-06-02 17:42:31 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-06-21 21:49:35 +04:00
|
|
|
|
[Column(title: "Клиент", gridViewAutoSize: GridViewAutoSize.Fill,
|
|
|
|
|
isUseAutoSize: true)]
|
2024-06-02 17:42:31 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-06-21 21:49:35 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int ShipId { get; set; }
|
|
|
|
|
[Column(title: "корабль", gridViewAutoSize: GridViewAutoSize.AllCells,
|
|
|
|
|
isUseAutoSize: true)]
|
|
|
|
|
public string ShipName { get; set; } = string.Empty;
|
|
|
|
|
[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: "Исполнитель", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-06-02 18:04:23 +04:00
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
2024-06-21 21:49:35 +04:00
|
|
|
|
[Column(title: "Дата создания", width: 100)]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
2024-06-02 17:42:31 +04:00
|
|
|
|
}
|
2024-04-27 18:26:46 +04:00
|
|
|
|
}
|