2022-03-18 21:54:25 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.BindingModels;
|
2021-04-03 22:04:11 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
|
|
|
{
|
2022-03-18 21:54:25 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение преподавателя
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class LecturerGetBindingModel : GetBindingModel
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
|
|
|
|
public Guid? UserId { get; set; }
|
2021-04-03 23:46:48 +04:00
|
|
|
|
|
|
|
|
|
public Guid? LecturerAcademicRankId { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid? LecturerAcademicDegreeId { get; set; }
|
2021-04-03 22:04:11 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение преподавателя
|
|
|
|
|
/// </summary>
|
2022-03-18 21:54:25 +04:00
|
|
|
|
public class LecturerSetBindingModel : SetBindingModel, ILecturerModel
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid? LecturerAcademicRankId { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid? LecturerAcademicDegreeId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string LastName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string FirstName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Patronymic { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Abbreviation { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public DateTime DateBirth { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string Address { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string MobileNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public string HomeNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
public byte[] Photo { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool OnlyForPrivate { get; set; }
|
2021-04-05 12:25:10 +04:00
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string GroupElectricalSafety { get; set; }
|
2021-04-03 22:04:11 +04:00
|
|
|
|
}
|
|
|
|
|
}
|