PIbd-23_Yakobchuk_S.V._SUBD/ConstructionCompany/ConstructionCompanyContracts/ViewModels/StructureViewModel.cs

51 lines
1.5 KiB
C#
Raw Permalink 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 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; }
}
}