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

43 lines
1.2 KiB
C#
Raw Normal View History

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
2021-04-13 12:52:45 +04:00
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
/// <summary>
/// Получение записи приказа по студенту
/// </summary>
public class OrderStudentRecordGetBindingModel : GetBindingModel
2021-04-13 12:52:45 +04:00
{
public Guid? OrderId { get; set; }
public Guid? StudentId { get; set; }
public Guid? StudentGroupId { get; set; }
public OrderStudentMoveType? OrderStudentMoveType { get; set; }
2021-04-13 12:52:45 +04:00
}
/// <summary>
/// Сохранение записи приказа по студенту
/// </summary>
public class OrderStudentRecordSetBindingModel : SetBindingModel, IOrderStudentRecordModel
2021-04-13 12:52:45 +04:00
{
[Required(ErrorMessage = "required")]
public Guid OrderId { get; set; }
[Required(ErrorMessage = "required")]
public Guid StudentId { get; set; }
public Guid? StudentGroupFromId { get; set; }
public Guid? StudentGroupToId { get; set; }
[Required(ErrorMessage = "required")]
public OrderStudentMoveType OrderStudentMoveType { get; set; }
public string Info { get; set; }
}
}