using AcademicProgressBusinessLogic.Enums;
using DepartmentBusinessLogic.Enums;
using ModuleTools.Attributes;
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace AcademicProgressBusinessLogic.BindingModels
{
///
/// Получение записи успеваемости студента
///
public class StudentAcademicProgressGetBindingModel : GetBindingModel
{
public Guid? StudentId { get; set; }
public Guid? DisciplineId { get; set; }
}
///
/// Сохранение записи успеваемости студента
///
public class StudentAcademicProgressSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
[MapConfiguration("StudentId")]
public Guid StudentId { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("DisciplineId")]
public Guid DisciplineId { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Semester")]
public Semester Semester { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Score")]
public ExamScores Score { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("AffixingDate")]
public DateTime AffixingDate { get; set; }
///
/// Является повышением оценки
///
[MapConfiguration("IsIncreaseScore")]
public bool IsIncreaseScore { get; set; }
///
/// Является сдачей по направлению
///
[MapConfiguration("IsResit")]
public bool IsResit { get; set; }
}
}