using ModuleTools.Attributes; using ModuleTools.Enums; using ModuleTools.ViewModels; using System; namespace DepartmentBusinessLogic.ViewModels { /// /// Список учбеных планов /// public class AcademicPlanListViewModel : ListViewModel { } /// /// Элемент учебного плана /// [ViewModelControlElementClass(HaveDependenceEntities = true, Width = 1200, Height = 800)] [ViewModelControlElementDependenceEntity(Title = "Записи плана", Order = 1, ParentPropertyName = "AcademicPlanId", ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlAcademicPlanRecordList, DepartmentWindowsDesktop")] [ViewModelControlElementDependenceEntity(Title = "Группы", Order = 2, ParentPropertyName = "AcademicPlanId", ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlStudentGroupList, DepartmentWindowsDesktop")] public class AcademicPlanViewModel : ElementViewModel { [ViewModelControlElementProperty("Направление", ControlType.ControlGuid, MustHaveValue = false, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlEducationDirectionList, DepartmentWindowsDesktop")] [MapConfiguration("EducationDirectionId")] public Guid? EducationDirectionId { get; set; } [ViewModelControlListProperty("Направление")] [MapConfiguration("EducationDirection.Cipher", IsDifficle = true)] public string EducationDirectionCipher { get; set; } [ViewModelControlListProperty("Профиль")] [MapConfiguration("EducationDirection.Profile", IsDifficle = true)] public string EducationDirectionProfile { get; set; } [ViewModelControlListProperty("Дата начала", ColumnWidth = 120)] [ViewModelControlElementProperty("Дата начала", ControlType.ControlInt, MustHaveValue = true)] [MapConfiguration("YearEntrance")] public int YearEntrance { get; set; } [ViewModelControlListProperty("Дата окончания", ColumnWidth = 120)] [ViewModelControlElementProperty("Дата окончания", ControlType.ControlInt, MustHaveValue = true)] [MapConfiguration("YearFinish")] public int YearFinish { get; set; } } }