2022-03-18 21:34:16 +04:00
|
|
|
|
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
|
|
|
|
|
2022-03-19 22:48:13 +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>
|
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-27 01:20:51 +04:00
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Года поступления", Order = 1, ParentPropertyName = "AcademicPlanId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlEnrollmentYearList, 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("Направление")]
|
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; }
|
|
|
|
|
|
2022-03-29 13:33:32 +04:00
|
|
|
|
[ViewModelControlListProperty("Дата создания", ColumnWidth = 120, DefaultCellStyleFormat = "dd.MM.yyyy")]
|
2022-03-27 01:20:51 +04:00
|
|
|
|
[ViewModelControlElementProperty("Дата создания", ControlType.ControlDateTime, MustHaveValue = true)]
|
|
|
|
|
public DateTime CreateDate { get; set; }
|
2021-04-06 22:07:11 +04:00
|
|
|
|
|
2022-03-29 13:33:32 +04:00
|
|
|
|
[ViewModelControlListProperty("Дата последнего изменения", ColumnWidth = 120, DefaultCellStyleFormat = "dd.MM.yyyy")]
|
2022-03-27 01:20:51 +04:00
|
|
|
|
[ViewModelControlElementProperty("Дата последнего изменения", ControlType.ControlDateTime, MustHaveValue = true)]
|
|
|
|
|
public DateTime LastUpdateDate { get; set; }
|
2021-04-06 22:07:11 +04:00
|
|
|
|
}
|
|
|
|
|
}
|