2022-03-18 21:34:16 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
2022-03-18 22:24:10 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.Attributes;
|
|
|
|
|
using ToolsModule.Enums;
|
|
|
|
|
using ToolsModule.ViewModels;
|
2021-04-06 22:07:11 +04:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.ViewModels
|
2021-04-06 22:07:11 +04:00
|
|
|
|
{
|
2022-03-18 21:34:16 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список норм времени
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class TimeNormListViewModel : ListViewModel<TimeNormViewModel> { }
|
2021-04-06 22:07:11 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент нормы времени
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass(HaveDependenceEntities = true, Width = 800, Height = 500)]
|
|
|
|
|
[ViewModelControlElementDependenceEntity(Title = "Нагрузки в планах", Order = 1, ParentPropertyName = "TimeNormId",
|
|
|
|
|
ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlAcademicPlanRecordTimeNormHourList, DepartmentWindowsDesktop")]
|
2022-03-18 22:24:10 +04:00
|
|
|
|
public class TimeNormViewModel : ElementViewModel, ITimeNormModel
|
|
|
|
|
{
|
2021-04-06 22:07:11 +04:00
|
|
|
|
[ViewModelControlElementProperty("Блок дисциплин", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "DepartmentWindowsDesktop.EntityControls.ControlDisciplineBlockList, DepartmentWindowsDesktop")]
|
|
|
|
|
public Guid DisciplineBlockId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Название")]
|
|
|
|
|
[ViewModelControlElementProperty("Название", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string TimeNormName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Сокращение", ColumnWidth = 100)]
|
|
|
|
|
[ViewModelControlElementProperty("Сокращение", ControlType.ControlString, MustHaveValue = true)]
|
|
|
|
|
public string TimeNormShortName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Порядок", ColumnWidth = 100)]
|
|
|
|
|
[ViewModelControlElementProperty("Порядок", ControlType.ControlInt, MustHaveValue = true)]
|
|
|
|
|
public int TimeNormOrder { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Обучение", ControlType.ControlEnum, MustHaveValue = false)]
|
|
|
|
|
public EducationDirectionQualification? TimeNormEducationDirectionQualification { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Обучение", ColumnWidth = 100)]
|
|
|
|
|
public string TimeNormEducationDirectionQualificationTitle => TimeNormEducationDirectionQualification?.ToString("G") ?? string.Empty;
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Тип нагрузки", ColumnWidth = 300)]
|
|
|
|
|
[ViewModelControlElementProperty("Тип нагрузки", ControlType.ControlString)]
|
|
|
|
|
public string KindOfLoadName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Атрибут для поиска в старой версии", ControlType.ControlString)]
|
|
|
|
|
public string KindOfLoadAttributeName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Название нагрузки в справочнике видов работ", ControlType.ControlString)]
|
|
|
|
|
public string KindOfLoadBlueAsteriskName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Название нагрузки в справочнике видов работ", ControlType.ControlString)]
|
|
|
|
|
public string KindOfLoadBlueAsteriskAttributeName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Название атрибута по которму извлекать часы", ControlType.ControlString)]
|
|
|
|
|
public string KindOfLoadBlueAsteriskPracticName { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Учитывается в учебной нагрузке", ControlType.ControlBool, MustHaveValue = true)]
|
|
|
|
|
public bool UseInLearningProgress { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlElementProperty("Выводить для сайта", ControlType.ControlBool, MustHaveValue = true)]
|
|
|
|
|
public bool UseInSite { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|