60 lines
1.8 KiB
C#
60 lines
1.8 KiB
C#
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; }
|
|
|
|
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; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public Semester Semester { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public DisciplineReportingType DisciplineReportingType { get; set; }
|
|
|
|
[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; }
|
|
}
|
|
} |