using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using System;
using System.ComponentModel.DataAnnotations;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.BindingModels
{
///
/// Получение приказа
///
public class OrderGetBindingModel : GetBindingModel
{
public string OrderNumber { get; set; }
public DateTime? OrderDate { get; set; }
public OrderType? OrderType { get; set; }
}
///
/// Сохранение приказа
///
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; }
}
}