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