2022-03-18 21:34:16 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.Attributes;
|
|
|
|
|
using ToolsModule.Enums;
|
|
|
|
|
using ToolsModule.ViewModels;
|
2021-04-03 19:03:56 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.ViewModels
|
2021-04-03 19:03:56 +04:00
|
|
|
|
{
|
2022-03-18 21:34:16 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список блоков дисциплин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DisciplineBlockListViewModel : ListViewModel<DisciplineBlockViewModel> { }
|
2021-04-03 19:03:56 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент блок дисциплины
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Дисципилны", Order = 1, ParentPropertyName = "DisciplineBlockId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlDisciplineList, DepartmentWindowsDesktop")]
|
2021-04-06 22:07:11 +04:00
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Нормы времени", Order = 1, ParentPropertyName = "DisciplineBlockId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlTimeNormList, DepartmentWindowsDesktop")]
|
2022-03-18 21:34:16 +04:00
|
|
|
|
public class DisciplineBlockViewModel : ElementViewModel, IDisciplineBlockModel
|
2021-04-03 19:03:56 +04:00
|
|
|
|
{
|
|
|
|
|
[ViewModelControlListProperty("Название блока")]
|
|
|
|
|
[ViewModelControlElementProperty("Название блока", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Используется для группровки в расчетах", ControlType.ControlBool, MustHaveValue = true)]
|
|
|
|
|
public bool DisciplineBlockUseForGrouping { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Порядок", ColumnWidth = 100)]
|
|
|
|
|
[ViewModelControlElementProperty("Порядок", ControlType.ControlInt, MustHaveValue = true)]
|
|
|
|
|
public int DisciplineBlockOrder { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Назв. в планах", ControlType.ControlString)]
|
|
|
|
|
public string DisciplineBlockBlueAsteriskName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|