DepartmentProject/DepartmentPortal/Department/DepartmentBusinessLogic/BindingModels/OrderBindingModels.cs

33 lines
838 B
C#

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
/// <summary>
/// Получение приказа
/// </summary>
public class OrderGetBindingModel : GetBindingModel
{
public string OrderNumber { get; set; }
public DateTime? OrderDate { get; set; }
}
/// <summary>
/// Сохранение приказа
/// </summary>
public class OrderSetBindingModel : SetBindingModel, IOrderModel
{
[Required(ErrorMessage = "required")]
public string OrderNumber { get; set; }
[Required(ErrorMessage = "required")]
public DateTime OrderDate { get; set; }
[Required(ErrorMessage = "required")]
public OrderType OrderType { get; set; }
}
}