SUBD_TransportCompany/TransportCompany/TransportCompanyContracts/ViewModels/TransportationViewModel.cs

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