2021-04-13 12:52:45 +04:00
|
|
|
|
using DepartmentBusinessLogic.Enums;
|
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.BindingModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение приказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrderGetBindingModel : GetBindingModel
|
|
|
|
|
{
|
2021-04-27 15:14:35 +04:00
|
|
|
|
public string OrderNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public DateTime? OrderDate { get; set; }
|
2021-04-13 12:52:45 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение приказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrderSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("OrderNumber")]
|
|
|
|
|
public string OrderNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("OrderDate")]
|
|
|
|
|
public DateTime OrderDate { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("OrderType")]
|
|
|
|
|
public OrderType OrderType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|