2022-03-18 21:34:16 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-03 19:03:56 +04:00
|
|
|
|
using ModuleTools.BindingModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
|
|
|
{
|
2022-03-18 21:34:16 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение дисциплины
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DisciplineGetBindingModel : GetBindingModel
|
2021-04-03 19:03:56 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Выбрка по блокам
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid? DisciplineBlockId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Поиск по названию
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DisciplineName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение дисциплины
|
|
|
|
|
/// </summary>
|
2022-03-18 21:34:16 +04:00
|
|
|
|
public class DisciplineSetBindingModel : SetBindingModel, IDisciplineModel
|
2021-04-03 19:03:56 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public Guid DisciplineBlockId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string DisciplineName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string DisciplineShortName { get; set; }
|
|
|
|
|
|
2021-04-04 18:49:04 +04:00
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
2021-04-03 19:03:56 +04:00
|
|
|
|
public string DisciplineBlueAsteriskName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Используется только в расчетах, не сохраняется
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DisciplineBlueAsteriskCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Используется только в расчетах, не сохраняется
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DisciplineBlueAsteriskPracticCode { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|