2022-03-18 21:34:16 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-03 13:41:19 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-03 13:41:19 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.BindingModels
|
2021-04-03 13:41:19 +04:00
|
|
|
|
{
|
2021-04-05 14:20:07 +04:00
|
|
|
|
/// <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-05 14:20:07 +04:00
|
|
|
|
}
|
2021-04-03 13:41:19 +04:00
|
|
|
|
|
2021-04-05 14:20:07 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение аудитории
|
|
|
|
|
/// </summary>
|
2022-03-18 21:34:16 +04:00
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|