using DepartmentBusinessLogic.Enums;
using ModuleTools.Attributes;
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
///
/// Получение записи учебного плана
///
public class AcademicPlanRecordGetBindingModel : GetBindingModel
{
public Guid? AcademicPlanId { get; set; }
public Guid? DisciplineId { get; set; }
public Semester? Semester { get; set; }
}
///
/// Сохранение записи учебного плана
///
public class AcademicPlanRecordSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
[MapConfiguration("AcademicPlanId")]
public Guid AcademicPlanId { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("DisciplineId")]
public Guid DisciplineId { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("InDepartment")]
public bool InDepartment { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Semester")]
public Semester Semester { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Zet")]
public int Zet { get; set; }
[MapConfiguration("AcademicPlanRecordParentId")]
public Guid? AcademicPlanRecordParentId { get; set; }
///
/// Является родительской для дисциплин по выбору
///
[MapConfiguration("IsParent")]
public bool IsParent { get; set; }
///
/// Является факультативной дисциплиной
///
[MapConfiguration("IsFacultative")]
public bool IsFacultative { get; set; }
}
}