2022-03-18 22:08:29 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-12 16:57:29 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-12 16:57:29 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.BindingModels
|
2021-04-12 16:57:29 +04:00
|
|
|
|
{
|
2022-03-18 22:08:29 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение студента
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class StudentGetBindingModel : GetBindingModel
|
2021-04-12 16:57:29 +04:00
|
|
|
|
{
|
|
|
|
|
public Guid? UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid? StudentGroupId { get; set; }
|
|
|
|
|
|
|
|
|
|
public StudentState? StudentState { get; set; }
|
2021-04-28 17:58:52 +04:00
|
|
|
|
|
|
|
|
|
public string NumberOfBook { get; set; }
|
2021-04-12 16:57:29 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение студента
|
|
|
|
|
/// </summary>
|
2022-03-18 22:08:29 +04:00
|
|
|
|
public class StudentSetBindingModel : SetBindingModel, IStudentModel
|
2021-04-12 16:57:29 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid? StudentGroupId { get; set; }
|
|
|
|
|
|
2021-04-28 17:58:52 +04:00
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string Iduniv { get; set; }
|
|
|
|
|
|
2021-04-12 16:57:29 +04:00
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string NumberOfBook { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string FirstName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string LastName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Patronymic { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public StudentState StudentState { get; set; }
|
|
|
|
|
|
|
|
|
|
public byte[] Photo { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsSteward { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|