2022-03-18 21:54:25 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.ViewModels
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
2022-03-18 21:54:25 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список должностей преподавателей
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class LecturerAcademicRankListViewModel : ListViewModel<LecturerAcademicRankViewModel> { }
|
2021-04-03 22:04:11 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент должности преподавателей
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
2021-04-04 21:09:39 +04:00
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Преподаватели", Order = 1, ParentPropertyName = "LecturerAcademicRankId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlLecturerList, DepartmentWindowsDesktop")]
|
2022-03-18 21:54:25 +04:00
|
|
|
|
public class LecturerAcademicRankViewModel : ElementViewModel, ILecturerAcademicRankModel
|
2021-04-03 22:04:11 +04:00
|
|
|
|
{
|
|
|
|
|
[ViewModelControlListProperty("Ученая степень")]
|
|
|
|
|
[ViewModelControlElementProperty("Ученая степень", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string LecturerAcademicRankName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Порядок", ColumnWidth = 100)]
|
|
|
|
|
[ViewModelControlElementProperty("Порядок", ControlType.ControlInt, MustHaveValue = true)]
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|