42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
|
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;
|
|||
|
|
|||
|
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; }
|
|||
|
}
|
|||
|
}
|