DepartmentProject/DepartmentPortal/Department/DepartmentContract/ViewModels/LecturerAcademicRankViewModels.cs

27 lines
1.3 KiB
C#
Raw Normal View History

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