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

55 lines
1.6 KiB
C#
Raw Normal View History

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using ToolsModule.BindingModels;
2021-04-03 13:41:19 +04:00
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
/// <summary>
/// Получение аудитории
/// </summary>
public class ClassroomGetBindingModel : GetBindingModel
2021-04-03 13:41:19 +04:00
{
/// <summary>
/// Используется для вывода в расписании
/// </summary>
public bool? UseInSchedule { get; set; }
/// <summary>
/// Вывод аудиторий, закрепленных за сотрудником
/// </summary>
public Guid? EmployeeId { get; set; }
}
2021-04-03 13:41:19 +04:00
/// <summary>
/// Сохранение аудитории
/// </summary>
public class ClassroomSetBindingModel : SetBindingModel, IClassroomModel
2021-04-03 13:41:19 +04:00
{
[Required(ErrorMessage = "required")]
public string Number { get; set; }
public string Title { get; set; }
[Required(ErrorMessage = "required")]
public Guid EmployeeId { get; set; }
[Required(ErrorMessage = "required")]
public ClassroomType ClassroomType { get; set; }
[Required(ErrorMessage = "required")]
public decimal Square { get; set; }
[Required(ErrorMessage = "required")]
public int Capacity { get; set; }
public string SecurityCode { get; set; }
public bool HaveProjector { get; set; }
public string Description { get; set; }
public byte[] Photo { get; set; }
}
}