2022-03-18 21:34:16 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-05 14:20:07 +04:00
|
|
|
|
using System;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
|
|
|
|
using ToolsModule.ManagmentMapping;
|
2021-04-05 14:20:07 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.ViewModels
|
2021-04-05 14:20:07 +04:00
|
|
|
|
{
|
2022-03-18 21:34:16 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список напарвлений обучений
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EducationDirectionListViewModel : ListViewModel<EducationDirectionViewModel> { }
|
2021-04-05 14:20:07 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент направления обучения
|
|
|
|
|
/// </summary>
|
2021-04-06 22:07:11 +04:00
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Учебные планы", Order = 1, ParentPropertyName = "EducationDirectionId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlAcademicPlanList, DepartmentWindowsDesktop")]
|
2022-03-18 21:34:16 +04:00
|
|
|
|
public class EducationDirectionViewModel : ElementViewModel, IEducationDirectionModel
|
2021-04-05 14:20:07 +04:00
|
|
|
|
{
|
|
|
|
|
[ViewModelControlListProperty("Шифр", ColumnWidth = 80)]
|
|
|
|
|
[ViewModelControlElementProperty("Шифр", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string Cipher { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Сокращение", ColumnWidth = 80)]
|
|
|
|
|
[ViewModelControlElementProperty("Сокращение", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string ShortName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Название")]
|
|
|
|
|
[ViewModelControlElementProperty("Название", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Профиль")]
|
|
|
|
|
[ViewModelControlElementProperty("Профиль", ControlType.ControlString)]
|
|
|
|
|
public string Profile { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Руководитель ОПОП", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlLecturerList, DepartmentWindowsDesktop")]
|
|
|
|
|
public Guid LecturerId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Руководитель ОПОП", ColumnWidth = 120)]
|
2022-03-20 19:27:50 +04:00
|
|
|
|
[MapConfiguration("Lecturer.LastName")]
|
2021-04-05 14:20:07 +04:00
|
|
|
|
public string LecturerName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Уровень обучения", ControlType.ControlEnum, MustHaveValue = true)]
|
|
|
|
|
public EducationDirectionQualification Qualification { get; set; }
|
|
|
|
|
|
2022-03-18 21:34:16 +04:00
|
|
|
|
[ViewModelControlListProperty("Уровень обучения")]
|
2021-04-05 14:20:07 +04:00
|
|
|
|
public string QualificationTitle => Qualification.ToString("G");
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Описание")]
|
|
|
|
|
[ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 80)]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|