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

42 lines
2.2 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")]
[ViewModelControlElementDependenceEntity(Title = "Года поступления", Order = 1, ParentPropertyName = "AcademicPlanId",
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlEnrollmentYearList, 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("Направление")]
2022-03-20 19:27:50 +04:00
[MapConfiguration("EducationDirection.Cipher")]
2021-04-06 22:07:11 +04:00
public string EducationDirectionCipher { get; set; }
2021-04-12 10:01:42 +04:00
[ViewModelControlListProperty("Профиль")]
2022-03-20 19:27:50 +04:00
[MapConfiguration("EducationDirection.Profile")]
2021-04-12 10:01:42 +04:00
public string EducationDirectionProfile { get; set; }
[ViewModelControlListProperty("Дата создания", ColumnWidth = 120)]
[ViewModelControlElementProperty("Дата создания", ControlType.ControlDateTime, MustHaveValue = true)]
public DateTime CreateDate { get; set; }
2021-04-06 22:07:11 +04:00
[ViewModelControlListProperty("Дата последнего изменения", ColumnWidth = 120)]
[ViewModelControlElementProperty("Дата последнего изменения", ControlType.ControlDateTime, MustHaveValue = true)]
public DateTime LastUpdateDate { get; set; }
2021-04-06 22:07:11 +04:00
}
}