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

59 lines
1.8 KiB
C#
Raw Normal View History

using CoreModels.ModelsDepartment;
2021-04-03 19:03:56 +04:00
using System;
using System.ComponentModel.DataAnnotations;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
2021-04-03 19:03:56 +04:00
namespace DepartmentContract.BindingModels
2021-04-03 19:03:56 +04:00
{
/// <summary>
/// Получение дисциплины
/// </summary>
public class DisciplineGetBindingModel : GetBindingModel
2021-04-03 19:03:56 +04:00
{
/// <summary>
/// Выбрка по блокам
/// </summary>
public Guid? DisciplineBlockId { get; set; }
2022-03-27 14:51:27 +04:00
/// <summary>
/// Выбрка по базовым кафедрам
/// </summary>
public Guid? BasicDepartmentId { get; set; }
2021-04-03 19:03:56 +04:00
/// <summary>
/// Поиск по названию
/// </summary>
public string DisciplineName { get; set; }
}
/// <summary>
/// Сохранение дисциплины
/// </summary>
public class DisciplineSetBindingModel : SetBindingModel, IDisciplineModel
2021-04-03 19:03:56 +04:00
{
[Required(ErrorMessage = "required")]
public Guid DisciplineBlockId { get; set; }
2022-03-27 14:51:27 +04:00
public Guid? BasicDepartmentId { get; set; }
2021-04-03 19:03:56 +04:00
[Required(ErrorMessage = "required")]
public string DisciplineName { get; set; }
[Required(ErrorMessage = "required")]
public string DisciplineShortName { get; set; }
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; }
}
}