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

46 lines
1.3 KiB
C#

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using DepartmentContract.ViewModels;
using System;
using System.ComponentModel.DataAnnotations;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение записи приказа по студенту
/// </summary>
public class OrderStudentRecordGetBindingModel : GetBindingModel
{
public Guid? OrderId { get; set; }
public Guid? StudentId { get; set; }
public Guid? StudentGroupId { get; set; }
public OrderStudentMoveType? OrderStudentMoveType { get; set; }
}
/// <summary>
/// Сохранение записи приказа по студенту
/// </summary>
public class OrderStudentRecordSetBindingModel : SetBindingModel, IOrderStudentRecordModel
{
[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; }
public StudentViewModel StudentModel { get; set; }
}
}