50 lines
1.5 KiB
C#
50 lines
1.5 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 CargoId { get; set; }
|
||
|
||
[DisplayName("Груз")]
|
||
public string CargoName { get; set; } = string.Empty;
|
||
|
||
[DisplayName("Количество")]
|
||
public int Count { get; set; }
|
||
|
||
public int PointFromId { get; set; }
|
||
|
||
[DisplayName("Откуда")]
|
||
public string PointNameFrom { get; set; } = string.Empty;
|
||
|
||
public int PointToId { get; set; }
|
||
|
||
[DisplayName("Куда")]
|
||
public string PointNameTo { 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; }
|
||
}
|
||
}
|