PIbd-23_Abazov_A.A._Constru.../ConstructionCompany/ConstructionCompanyContracts/ViewModels/OrderViewModel.cs

35 lines
1.3 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 ConstructionCompanyDataModels.Enums;
using ConstructionCompanyDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConstructionCompanyContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[DisplayName("Описание")]
public string Description {get;set;} = string.Empty;
[DisplayName("Адрес")]
public string Adress {get;set;} = string.Empty;
[DisplayName("Стоимость")]
public double Price { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Телефон заказчика")]
public string CustomerNumber { get; set; } = string.Empty;
[DisplayName("Дата создания")]
public DateTime DateBegin { get; set; } = DateTime.Now.Date;
[DisplayName("Дата выполнения")]
public DateTime? DateEnd { get; set; }
[DisplayName("Номер")]
public int Id { get; set; }
public Dictionary<int, IEmployeeModel> OrderEmployees { get; set; } = new();
public Dictionary<int, (IMaterialModel, int)> OrderMaterials { get; set; } = new();
}
}