DepartmentProject/DepartmentPortal/Department/DepartmentContract/BindingModels/TimeNormBindingModels.cs

61 lines
2.2 KiB
C#
Raw Permalink Normal View History

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
2021-04-06 22:07:11 +04:00
using System;
using System.ComponentModel.DataAnnotations;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
2021-04-06 22:07:11 +04:00
namespace DepartmentContract.BindingModels
2021-04-06 22:07:11 +04:00
{
/// <summary>
/// Получение нормы времени
/// </summary>
public class TimeNormGetBindingModel : GetBindingModel
{
public Guid? DisciplineBlockId { get; set; }
}
/// <summary>
/// Сохранение нормы времени
/// </summary>
public class TimeNormSetBindingModel : SetBindingModel, ITimeNormModel
2021-04-06 22:07:11 +04:00
{
[Required(ErrorMessage = "required")]
public Guid DisciplineBlockId { get; set; }
[Required(ErrorMessage = "required")]
public string TimeNormName { get; set; }
[Required(ErrorMessage = "required")]
public string TimeNormShortName { get; set; }
[Required(ErrorMessage = "required")]
public int TimeNormOrder { get; set; }
public EducationDirectionQualification? TimeNormEducationDirectionQualification { get; set; }
[Required(ErrorMessage = "required")]
public string KindOfLoadName { get; set; }
public string KindOfLoadAttributeName { get; set; }
public string KindOfLoadBlueAsteriskName { get; set; }
public string KindOfLoadBlueAsteriskAttributeName { get; set; }
public string KindOfLoadBlueAsteriskPracticName { get; set; }
public bool UseInLearningProgress { get; set; }
public bool UseInSite { get; set; }
/// <summary>
/// Код вида работ в справочнике видов работ в новой версии планов, чтобы потом искать работу в строках плана
/// </summary>
public string KindOfLoadBlueAsteriskCode { get; set; }
/// <summary>
/// Код вида практики в справочнике видов практик в новой версии планов, чтобы потом искать практику в строках плана
/// </summary>
public string KindOfLoadBlueAsteriskPracticCode { get; set; }
}
}