PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantContracts/ViewModels/OrderViewModel.cs
2024-05-13 02:01:32 +04:00

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