2022-03-18 21:54:25 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-03 22:04:11 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2022-03-18 21:54:25 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение связи преподавателя с должностью
|
|
|
|
|
/// </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>
|
2022-03-18 21:54:25 +04:00
|
|
|
|
public class LecturerPostSetBindingModel : SetBindingModel, ILecturerPostModel
|
2021-04-05 12:25:10 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public Guid LecturerId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public Guid PostId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public decimal Rate { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsInternalCombination { get; set; }
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
public bool IsExternalCombination { get; set; }
|
|
|
|
|
}
|
2021-04-03 22:04:11 +04:00
|
|
|
|
}
|