2021-04-03 19:03:56 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using ModuleTools.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список дисциплин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DisciplineListViewModel : ListViewModel<DisciplineViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент дисциплина
|
|
|
|
|
/// </summary>
|
2021-04-06 22:07:11 +04:00
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Записи учебного плана", Order = 1, ParentPropertyName = "DisciplineId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlAcademicPlanRecordList, DepartmentWindowsDesktop")]
|
2021-04-03 19:03:56 +04:00
|
|
|
|
public class DisciplineViewModel : ElementViewModel
|
|
|
|
|
{
|
|
|
|
|
[ViewModelControlElementProperty("Блок дисциплин", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlDisciplineBlockList, DepartmentWindowsDesktop")]
|
|
|
|
|
[MapConfiguration("DisciplineBlockId")]
|
|
|
|
|
public Guid DisciplineBlockId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Название дисциплины")]
|
|
|
|
|
[ViewModelControlElementProperty("Название дисциплины", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
[MapConfiguration("DisciplineName")]
|
|
|
|
|
public string DisciplineName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Краткое название дисциплины")]
|
|
|
|
|
[ViewModelControlElementProperty("Краткое нисциплины", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
[MapConfiguration("DisciplineShortName")]
|
|
|
|
|
public string DisciplineShortName { get; set; }
|
|
|
|
|
|
2021-04-05 14:20:07 +04:00
|
|
|
|
[ViewModelControlListProperty("Описание")]
|
2021-04-04 18:49:04 +04:00
|
|
|
|
[ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 200, MustHaveValue = true)]
|
|
|
|
|
[MapConfiguration("Description")]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
2021-04-03 19:03:56 +04:00
|
|
|
|
[ViewModelControlElementProperty("Название в планах", ControlType.ControlString)]
|
|
|
|
|
[MapConfiguration("DisciplineBlueAsteriskName")]
|
|
|
|
|
public string DisciplineBlueAsteriskName { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString() => DisciplineName;
|
|
|
|
|
}
|
|
|
|
|
}
|