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

60 lines
1.8 KiB
C#
Raw Permalink Normal View History

2022-12-21 09:32:44 +04:00
using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using System;
using System.ComponentModel.DataAnnotations;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение оценки студента за дисциплину
/// </summary>
public class StudentMarkPassedDisciplineGetBindingModel : GetBindingModel
{
public Guid? StudentGroupId { get; set; }
public Guid? StudentId { get; set; }
public Guid? DisciplineId { get; set; }
public Guid? LecturerId { get; set; }
public DateTime? DateStart { get; set; }
2022-12-21 09:32:44 +04:00
public DateTime? DateFinish { get; set; }
}
/// <summary>
/// Сохранение оценки студента за дисциплину
/// </summary>
public class StudentMarkPassedDisciplineSetBindingModel : SetBindingModel, IStudentMarkPassedDisciplineModel
{
[Required(ErrorMessage = "required")]
public Guid StudentId { get; set; }
[Required(ErrorMessage = "required")]
public Guid DisciplineId { get; set; }
public Guid? LecturerId { get; set; }
2022-12-21 09:32:44 +04:00
[Required(ErrorMessage = "required")]
public Semester Semester { get; set; }
[Required(ErrorMessage = "required")]
public DisciplineReportingType DisciplineReportingType { get; set; }
2022-12-21 09:32:44 +04:00
[Required(ErrorMessage = "required")]
public MarkDisciplinePassedType Mark { get; set; }
[Required(ErrorMessage = "required")]
public DateTime DateAffixing { get; set; }
[Required(ErrorMessage = "required")]
public bool IsIncreaseMark { get; set; }
[Required(ErrorMessage = "required")]
public bool IsDirection { get; set; }
public string AddiionalInfo { get; set; }
2022-12-21 09:32:44 +04:00
}
}