using ModuleTools.Attributes; using ModuleTools.Enums; using ModuleTools.ViewModels; namespace DepartmentBusinessLogic.ViewModels { /// /// Список должностей преподавателей /// public class LecturerAcademicDegreeListViewModel : ListViewModel { } /// /// Элемент должности преподавателей /// [ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)] [ViewModelControlElementDependenceEntity(Title = "Преподаватели", Order = 1, ParentPropertyName = "LecturerPostId", ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlLecturerPostEmployeeList, DepartmentWindowsDesktop")] public class LecturerAcademicDegreeViewModel : ElementViewModel { [ViewModelControlListProperty("Ученая степень")] [ViewModelControlElementProperty("Ученая степень", ControlType.ControlString, MustHaveValue = true)] [MapConfiguration("LecturerAcademicDegreeName")] public string LecturerAcademicDegreeName { get; set; } [ViewModelControlListProperty("Описание")] [ViewModelControlElementProperty("Описание", ControlType.ControlString)] [MapConfiguration("Description")] public string Description { get; set; } [ViewModelControlListProperty("Порядок", ColumnWidth = 100)] [ViewModelControlElementProperty("Порядок", ControlType.ControlInt, MustHaveValue = true)] [MapConfiguration("Order")] public int Order { get; set; } public override string ToString() => LecturerAcademicDegreeName; } }