2022-03-18 22:24:10 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-13 12:52:45 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-13 12:52:45 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.BindingModels
|
2021-04-13 12:52:45 +04:00
|
|
|
|
{
|
2022-03-18 22:24:10 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение приказа
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrderGetBindingModel : GetBindingModel
|
2021-04-13 12:52:45 +04:00
|
|
|
|
{
|
2021-04-27 15:14:35 +04:00
|
|
|
|
public string OrderNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public DateTime? OrderDate { get; set; }
|
2022-03-29 13:33:32 +04:00
|
|
|
|
|
|
|
|
|
public OrderType? OrderType { get; set; }
|
2021-04-13 12:52:45 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение приказа
|
|
|
|
|
/// </summary>
|
2022-03-18 22:24:10 +04:00
|
|
|
|
public class OrderSetBindingModel : SetBindingModel, IOrderModel
|
2021-04-13 12:52:45 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string OrderNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public DateTime OrderDate { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public OrderType OrderType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|