2021-04-03 22:04:11 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using ModuleTools.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список должностей преподавателей
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class LecturerAcademicDegreeListViewModel : ListViewModel<LecturerAcademicDegreeViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент должности преподавателей
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
2021-04-04 21:09:39 +04:00
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Преподаватели", Order = 1, ParentPropertyName = "LecturerAcademicDegreeId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlLecturerList, DepartmentWindowsDesktop")]
|
2021-04-03 22:04:11 +04:00
|
|
|
|
public class LecturerAcademicDegreeViewModel : ElementViewModel
|
|
|
|
|
{
|
|
|
|
|
[ViewModelControlListProperty("Ученая степень")]
|
|
|
|
|
[ViewModelControlElementProperty("Ученая степень", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
[MapConfiguration("LecturerAcademicDegreeName")]
|
|
|
|
|
public string LecturerAcademicDegreeName { get; set; }
|
|
|
|
|
|
2021-04-04 09:32:36 +04:00
|
|
|
|
[ViewModelControlListProperty("Описание")]
|
|
|
|
|
[ViewModelControlElementProperty("Описание", ControlType.ControlString)]
|
|
|
|
|
[MapConfiguration("Description")]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
[ViewModelControlListProperty("Порядок", ColumnWidth = 100)]
|
|
|
|
|
[ViewModelControlElementProperty("Порядок", ControlType.ControlInt, MustHaveValue = true)]
|
|
|
|
|
[MapConfiguration("Order")]
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|