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

40 lines
1.9 KiB
C#
Raw Normal View History

using CoreModels.ModelsDepartment;
2021-04-06 22:07:11 +04:00
using System;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
using ToolsModule.ManagmentMapping;
2021-04-06 22:07:11 +04:00
namespace DepartmentContract.ViewModels
2021-04-06 22:07:11 +04:00
{
2022-03-20 10:10:44 +04:00
/// <summary>
/// Список учбеных планов
/// </summary>
public class AcademicPlanListViewModel : ListViewModel<AcademicPlanViewModel> { }
2021-04-06 22:07:11 +04:00
/// <summary>
/// Элемент учебного плана
/// </summary>
[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")]
public class AcademicPlanViewModel : ElementViewModel, IAcademicPlanModel
2021-04-06 22:07:11 +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)]
[ViewModelControlElementProperty("Дата начала", ControlType.ControlInt, MustHaveValue = true)]
2021-04-06 22:07:11 +04:00
public int YearEntrance { get; set; }
[ViewModelControlListProperty("Дата окончания", ColumnWidth = 120)]
[ViewModelControlElementProperty("Дата окончания", ControlType.ControlInt, MustHaveValue = true)]
2021-04-06 22:07:11 +04:00
public int YearFinish { get; set; }
}
}