PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantContracts/BindingModels/OrderBindingModel.cs
2024-04-07 00:02:29 +04:00

58 lines
1.6 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 AircraftPlantDataModels.Enums;
using AircraftPlantDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.BindingModels
{
/// <summary>
/// Модель для передачи данных пользователя
/// в методы для сохранения данных для заказов
/// </summary>
public class OrderBindingModel : IOrderModel
{
/// <summary>
/// Идентификатор
/// </summary>
public int Id { get; set; }
/// <summary>
/// Идентификатор изделия
/// </summary>
public int PlaneId { get; set; }
/// <summary>
/// Идентификатор клиента
/// </summary>
public int ClientId { get; set; }
/// <summary>
/// Количество изделий
/// </summary>
public int Count { get; set; }
/// <summary>
/// Сумма заказа
/// </summary>
public double Sum { get; set; }
/// <summary>
/// Статус заказа
/// </summary>
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
/// <summary>
/// Дата создания заказа
/// </summary>
public DateTime DateCreate { get; set; } = DateTime.Now;
/// <summary>
/// Дата выполнения заказа
/// </summary>
public DateTime? DateImplement { get; set; }
}
}