DepartmentProject/DepartmentPortal/Department/DepartmentBusinessLogic/BindingModels/AcademicPlanRecordBindingModels.cs

47 lines
1.2 KiB
C#
Raw Normal View History

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using ToolsModule.BindingModels;
2021-04-06 22:07:11 +04:00
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
/// <summary>
/// Получение записи учебного плана
/// </summary>
public class AcademicPlanRecordGetBindingModel : GetBindingModel
2021-04-06 22:07:11 +04:00
{
public Guid? AcademicPlanId { get; set; }
public Guid? DisciplineId { get; set; }
public Semester? Semester { get; set; }
}
/// <summary>
/// Сохранение записи учебного плана
/// </summary>
public class AcademicPlanRecordSetBindingModel : SetBindingModel, IAcademicPlanRecordModel
2021-04-06 22:07:11 +04:00
{
[Required(ErrorMessage = "required")]
public Guid AcademicPlanId { get; set; }
[Required(ErrorMessage = "required")]
public Guid DisciplineId { get; set; }
[Required(ErrorMessage = "required")]
public bool InDepartment { get; set; }
[Required(ErrorMessage = "required")]
public Semester Semester { get; set; }
[Required(ErrorMessage = "required")]
public int Zet { get; set; }
public Guid? AcademicPlanRecordParentId { get; set; }
public bool IsParent { get; set; }
public bool IsFacultative { get; set; }
}
2021-04-06 22:07:11 +04:00
}