59 lines
1.8 KiB
C#
59 lines
1.8 KiB
C#
using DepartmentBusinessLogic.Enums;
|
|
using ModuleTools.Attributes;
|
|
using ModuleTools.BindingModels;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
{
|
|
public class ClassroomGetBindingModel : GetBindingModel
|
|
{
|
|
/// <summary>
|
|
/// Используется для вывода в расписании
|
|
/// </summary>
|
|
public bool? UseInSchedule { get; set; }
|
|
|
|
/// <summary>
|
|
/// Вывод аудиторий, закрепленных за сотрудником
|
|
/// </summary>
|
|
public Guid? EmployeeId { get; set; }
|
|
}
|
|
|
|
public class ClassroomSetBindingModel : SetBindingModel
|
|
{
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("Number")]
|
|
public string Number { get; set; }
|
|
|
|
[MapConfiguration("Title")]
|
|
public string Title { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("EmployeeId")]
|
|
public Guid EmployeeId { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("ClassroomType")]
|
|
public ClassroomType ClassroomType { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("Square")]
|
|
public decimal Square { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
[MapConfiguration("Capacity")]
|
|
public int Capacity { get; set; }
|
|
|
|
[MapConfiguration("SecurityCode")]
|
|
public string SecurityCode { get; set; }
|
|
|
|
[MapConfiguration("HaveProjector")]
|
|
public bool HaveProjector { get; set; }
|
|
|
|
[MapConfiguration("Description")]
|
|
public string Description { get; set; }
|
|
|
|
[MapConfiguration("Photo")]
|
|
public byte[] Photo { get; set; }
|
|
}
|
|
} |