32 lines
1.1 KiB
C#
Raw Normal View History

using MotorPlantDataModels.Enums;
using MotorPlantDataModels.Models;
using System.ComponentModel;
namespace MotorPlantContracts.VeiwModels
{
public class OrderViewModel : IOrderModel
{
2024-05-01 21:20:46 +04:00
[DisplayName("Номер")]
public int Id { get; set; }
public int EngineId { get; set; }
public int ClientId { get; set; }
2024-05-05 21:19:55 +04:00
public int? ImplementerId { get; set; } = null;
2024-05-01 21:20:46 +04:00
[DisplayName("Клиент")]
2024-05-05 21:19:55 +04:00
public string ClientFIO { get; set; } = string.Empty;
2024-05-01 21:20:46 +04:00
[DisplayName("Двигатель")]
public string EngineName { get; set; } = string.Empty;
2024-05-05 21:19:55 +04:00
[DisplayName("Исполнитель")]
public string ImplementerFIO { get; set; } = string.Empty;
2024-05-01 21:20:46 +04:00
[DisplayName("Количество")]
2024-05-05 21:19:55 +04:00
public int Count { get; set; }
2024-05-01 21:20:46 +04:00
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
}
}