42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using ModuleTools.Attributes;
|
|
using ModuleTools.BindingModels;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
{
|
|
/// <summary>
|
|
/// Получение учебного года
|
|
/// </summary>
|
|
public class AcademicPlanGetBindingModel : GetBindingModel
|
|
{
|
|
public Guid? EducationDirectionId { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Сохранение учебного года
|
|
/// </summary>
|
|
public class AcademicPlanSetBindingModel : SetBindingModel
|
|
{
|
|
[MapConfiguration("EducationDirectionId")]
|
|
public Guid? EducationDirectionId { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("YearEntrance")]
|
|
public int YearEntrance { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("YearFinish")]
|
|
public int YearFinish { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Модель для зазгрузки планов
|
|
/// </summary>
|
|
public class AcademicPlanLoadPlxModel
|
|
{
|
|
public Guid AcademicPlanId { get; set; }
|
|
|
|
public string FileName { get; set; }
|
|
}
|
|
} |