56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
|
using ModuleTools.Attributes;
|
|||
|
using ModuleTools.BindingModels;
|
|||
|
using System;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace DepartmentBusinessLogic.BindingModels
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Получение дисциплины
|
|||
|
/// </summary>
|
|||
|
public class DisciplineGetBindingModel : GetBindingModel
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Выбрка по блокам
|
|||
|
/// </summary>
|
|||
|
public Guid? DisciplineBlockId { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Поиск по названию
|
|||
|
/// </summary>
|
|||
|
public string DisciplineName { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Сохранение дисциплины
|
|||
|
/// </summary>
|
|||
|
public class DisciplineSetBindingModel : SetBindingModel
|
|||
|
{
|
|||
|
[Required(ErrorMessage = "required")]
|
|||
|
[MapConfiguration("DisciplineBlockId")]
|
|||
|
public Guid DisciplineBlockId { get; set; }
|
|||
|
|
|||
|
[Required(ErrorMessage = "required")]
|
|||
|
[MapConfiguration("DisciplineName")]
|
|||
|
public string DisciplineName { get; set; }
|
|||
|
|
|||
|
[Required(ErrorMessage = "required")]
|
|||
|
[MapConfiguration("DisciplineShortName")]
|
|||
|
public string DisciplineShortName { get; set; }
|
|||
|
|
|||
|
[MapConfiguration("DisciplineBlueAsteriskName")]
|
|||
|
public string DisciplineBlueAsteriskName { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Используется только в расчетах, не сохраняется
|
|||
|
/// </summary>
|
|||
|
[MapConfiguration("DisciplineBlueAsteriskCode")]
|
|||
|
public string DisciplineBlueAsteriskCode { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Используется только в расчетах, не сохраняется
|
|||
|
/// </summary>
|
|||
|
[MapConfiguration("DisciplineBlueAsteriskPracticCode")]
|
|||
|
public string DisciplineBlueAsteriskPracticCode { get; set; }
|
|||
|
}
|
|||
|
}
|