46 lines
2.4 KiB
C#
46 lines
2.4 KiB
C#
using CoreModels.Enums.Department;
|
|
using CoreModels.ModelsDepartment;
|
|
using System;
|
|
using ToolsModule.ManagmentEntity;
|
|
using ToolsModule.ManagmentMapping;
|
|
|
|
namespace DepartmentContract.ViewModels
|
|
{
|
|
/// <summary>
|
|
/// Список учбеных планов
|
|
/// </summary>
|
|
public class AcademicPlanListViewModel : ListViewModel<AcademicPlanViewModel> { }
|
|
|
|
/// <summary>
|
|
/// Элемент учебного плана
|
|
/// </summary>
|
|
[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, IAcademicPlanModel
|
|
{
|
|
[ViewModelControlElementProperty("Направление", ControlType.ControlGuid, MustHaveValue = false, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlEducationDirectionList, DepartmentWindowsDesktop")]
|
|
public Guid? EducationDirectionId { get; set; }
|
|
|
|
[ViewModelControlListProperty("Направление")]
|
|
[MapConfiguration("EducationDirection.Cipher")]
|
|
public string EducationDirectionCipher { get; set; }
|
|
|
|
[ViewModelControlListProperty("Профиль")]
|
|
[MapConfiguration("EducationDirection.Profile")]
|
|
public string EducationDirectionProfile { get; set; }
|
|
[MapConfiguration("EducationDirection.Qualification")]
|
|
public EducationDirectionQualification EducationDirectionQualification { get; set; }
|
|
|
|
[ViewModelControlListProperty("Год начала", ColumnWidth = 120)]
|
|
[ViewModelControlElementProperty("Год начала", ControlType.ControlInt, MustHaveValue = true)]
|
|
public int YearStart { get; set; }
|
|
|
|
[ViewModelControlListProperty("Дата последнего изменения", ColumnWidth = 120, DefaultCellStyleFormat = "dd.MM.yyyy")]
|
|
[ViewModelControlElementProperty("Дата последнего изменения", ControlType.ControlDateTime, MustHaveValue = true)]
|
|
public DateTime LastUpdateDate { get; set; }
|
|
|
|
}
|
|
} |