2021-04-03 22:04:11 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.BindingModels;
|
2021-04-05 12:25:10 +04:00
|
|
|
|
using System;
|
2021-04-03 22:04:11 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2021-04-05 12:25:10 +04:00
|
|
|
|
/// Получение связи преподавателя с должностью
|
2021-04-03 22:04:11 +04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class LecturerPostGetBindingModel : GetBindingModel
|
2021-04-05 12:25:10 +04:00
|
|
|
|
{
|
|
|
|
|
public Guid? LecturerId { get; set; }
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
public Guid? PostId { get; set; }
|
|
|
|
|
}
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение связи преподавателя с должностью
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class LecturerPostSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("LecturerId")]
|
|
|
|
|
public Guid LecturerId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("PostId")]
|
|
|
|
|
public Guid PostId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("Rate")]
|
|
|
|
|
public decimal Rate { get; set; }
|
|
|
|
|
|
|
|
|
|
[MapConfiguration("IsInternalCombination")]
|
|
|
|
|
public bool IsInternalCombination { get; set; }
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
[MapConfiguration("IsExternalCombination")]
|
|
|
|
|
public bool IsExternalCombination { get; set; }
|
|
|
|
|
}
|
2021-04-03 22:04:11 +04:00
|
|
|
|
}
|