51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System.ComponentModel;
|
||
using ConstructionCompanyDataModels.Enums;
|
||
using ConstructionCompanyDataModels.Models;
|
||
|
||
namespace ConstructionCompanyContracts.ViewModels
|
||
{
|
||
public class StructureViewModel : IStructureModel
|
||
{
|
||
[DisplayName("Номер")]
|
||
public int Id { get; set; }
|
||
|
||
public int DriverId { get; set; }
|
||
|
||
[DisplayName("Заказчик")]
|
||
public string DriverFio { get; set; } = string.Empty;
|
||
|
||
public int ConstructionId { 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 StructureStatus Status { get; set; } = StructureStatus.Неизвестен;
|
||
|
||
[DisplayName("Дата начала работ")]
|
||
public DateTime DepartureDate { get; set; } = DateTime.Now;
|
||
|
||
[DisplayName("Дата окончания работ")]
|
||
public DateTime? ArrivalDate { get; set; }
|
||
}
|
||
}
|
||
|