2024-02-27 23:28:34 +04:00
|
|
|
|
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;
|
2024-04-22 20:40:33 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор клиента
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ClientId { get; set; }
|
2024-02-27 23:28:34 +04:00
|
|
|
|
|
2024-04-22 20:40:33 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ФИО клиента
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DisplayName("ФИО клиента")]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
|
2024-02-27 23:28:34 +04:00
|
|
|
|
/// <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; }
|
|
|
|
|
}
|
|
|
|
|
}
|