SUBD_TransportCompany/TransportCompany/TransportCompanyContracts/ViewModels/TransportationViewModel.cs

50 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}