2024-05-13 02:01:32 +04:00
|
|
|
|
using AircraftPlantContracts.Attributes;
|
|
|
|
|
using AircraftPlantDataModels.Enums;
|
2024-02-21 01:42:28 +04:00
|
|
|
|
using AircraftPlantDataModels.Models;
|
|
|
|
|
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
|
|
|
|
|
{
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "Номер", width: 50)]
|
|
|
|
|
public int Id { get; set; }
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор изделия
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int PlaneId { get; set; }
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название изделия
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "Изделие", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string PlaneName { get; set; } = string.Empty;
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор клиента
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int ClientId { get; set; }
|
2024-04-07 00:02:29 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ФИО клиента
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-04-07 00:02:29 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор исполнителя
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int? ImplementerId { get; set; }
|
2024-04-20 22:35:38 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ФИО клиента
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
2024-04-20 22:35:38 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Количество изделий
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "Количество", width: 100)]
|
|
|
|
|
public int Count { get; set; }
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сумма заказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "Сумма", width: 100)]
|
|
|
|
|
public double Sum { get; set; }
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Статус заказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "Статус", width: 70)]
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
2024-05-13 02:01:32 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата создания заказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Column(title: "Дата создания", width: 100)]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2024-02-21 01:42:28 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата выполнения заказа
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
2024-02-21 01:42:28 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|