PIbd-22_Safiulova_K.N._Airc.../AircraftPlant/AircraftPlantContracts»/ViewModels/OrderViewModel.cs

66 lines
1.9 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 AircraftPlantDataModels.Models;
using AircraftPlantDataModels.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.ViewModels
{
/// <summary>
/// Модель для передачи данных пользователю
/// для отображения для заказов
/// </summary>
public class OrderViewModel : IOrderModel
{
/// <summary>
/// Идентификатор
/// </summary>
[DisplayName("Номер")]
public int Id { get; set; }
/// <summary>
/// Идентификатор изделия
/// </summary>
public int PlaneId { get; set; }
/// <summary>
/// Название изделия
/// </summary>
[DisplayName("Изделие")]
public string PlaneName { get; set; } = string.Empty;
/// <summary>
/// Количество изделий
/// </summary>
[DisplayName("Количество")]
public int Count { get; set; }
/// <summary>
/// Сумма заказа
/// </summary>
[DisplayName("Сумма")]
public double Sum { get; set; }
/// <summary>
/// Статус заказа
/// </summary>
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
/// <summary>
/// Дата создания заказа
/// </summary>
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
/// <summary>
/// Дата выполнения заказа
/// </summary>
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
}
}