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