50 lines
1.5 KiB
C#
Raw Normal View History

2024-02-25 12:18:35 +04:00
using System.ComponentModel;
using TransportCompanyDataModels.Enums;
using TransportCompanyDataModels.Models;
namespace TransportCompanyContracts.ViewModels
{
public class TransportationViewModel : ITransportationModel
{
[DisplayName("Номер")]
public int Id { get; set; }
public int DriverId { get; set; }
[DisplayName("Водитель")]
public string DriverFio { get; set; } = string.Empty;
public int TransportId { get; set; }
[DisplayName("Машина")]
public string Model { get; set; } = string.Empty;
2024-02-25 14:44:58 +04:00
public int CargoId { get; set; }
[DisplayName("Груз")]
public string CargoName { get; set; } = string.Empty;
[DisplayName("Количество")]
public int Count { get; set; }
2024-02-25 12:18:35 +04:00
public int PointToId { get; set; }
[DisplayName("Откуда")]
public string PointNameTo { get; set; } = string.Empty;
public int PointFromId { get; set; }
[DisplayName("Куда")]
public string PointNameFrom { get; set; } = string.Empty;
[DisplayName("Статус")]
public TransportationStatus Status { get; set; } = TransportationStatus.Неизвестен;
[DisplayName("Дата отбытия")]
public DateTime DepartureDate { get; set; } = DateTime.Now;
[DisplayName("Дата прибытия")]
public DateTime? ArrivalDate { get; set; }
}
}