2022-03-18 21:34:16 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
|
|
|
|
using ModuleTools.Attributes;
|
2021-04-06 22:07:11 +04:00
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using ModuleTools.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список учбеных планов
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class AcademicPlanListViewModel : ListViewModel<AcademicPlanViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент учебного плана
|
|
|
|
|
/// </summary>
|
2021-04-11 20:49:26 +04:00
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 1200, Height = 800)]
|
2021-04-06 22:07:11 +04:00
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Записи плана", Order = 1, ParentPropertyName = "AcademicPlanId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlAcademicPlanRecordList, DepartmentWindowsDesktop")]
|
2022-03-18 21:34:16 +04:00
|
|
|
|
public class AcademicPlanViewModel : ElementViewModel, IAcademicPlanModel
|
2021-04-06 22:07:11 +04:00
|
|
|
|
{
|
2021-04-11 20:49:26 +04:00
|
|
|
|
[ViewModelControlElementProperty("Направление", ControlType.ControlGuid, MustHaveValue = false, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlEducationDirectionList, DepartmentWindowsDesktop")]
|
|
|
|
|
public Guid? EducationDirectionId { get; set; }
|
2021-04-06 22:07:11 +04:00
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Направление")]
|
|
|
|
|
[MapConfiguration("EducationDirection.Cipher", IsDifficle = true)]
|
|
|
|
|
public string EducationDirectionCipher { get; set; }
|
|
|
|
|
|
2021-04-12 10:01:42 +04:00
|
|
|
|
[ViewModelControlListProperty("Профиль")]
|
|
|
|
|
[MapConfiguration("EducationDirection.Profile", IsDifficle = true)]
|
|
|
|
|
public string EducationDirectionProfile { get; set; }
|
|
|
|
|
|
2021-04-06 22:07:11 +04:00
|
|
|
|
[ViewModelControlListProperty("Дата начала", ColumnWidth = 120)]
|
2021-04-11 20:49:26 +04:00
|
|
|
|
[ViewModelControlElementProperty("Дата начала", ControlType.ControlInt, MustHaveValue = true)]
|
2021-04-06 22:07:11 +04:00
|
|
|
|
public int YearEntrance { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Дата окончания", ColumnWidth = 120)]
|
2021-04-11 20:49:26 +04:00
|
|
|
|
[ViewModelControlElementProperty("Дата окончания", ControlType.ControlInt, MustHaveValue = true)]
|
2021-04-06 22:07:11 +04:00
|
|
|
|
public int YearFinish { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|