2022-03-18 21:44:04 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.BindingModels;
|
2021-04-03 08:05:01 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
|
|
|
{
|
2021-04-03 09:18:19 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение сотрудника
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EmployeeGetBindingModel : GetBindingModel
|
2021-04-03 08:05:01 +04:00
|
|
|
|
{
|
2021-04-03 22:04:11 +04:00
|
|
|
|
public Guid? UserId { get; set; }
|
2021-04-03 08:05:01 +04:00
|
|
|
|
}
|
|
|
|
|
|
2021-04-03 09:18:19 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение сотрудника
|
|
|
|
|
/// </summary>
|
2022-03-18 21:44:04 +04:00
|
|
|
|
public class EmployeeSetBindingModel : SetBindingModel, IEmployeeModel
|
2021-04-03 08:05:01 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string LastName { get; set; }
|
|
|
|
|
|
2021-04-03 22:04:11 +04:00
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string FirstName { get; set; }
|
|
|
|
|
|
2021-04-03 08:05:01 +04:00
|
|
|
|
public string Patronymic { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public DateTime DateBirth { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string Address { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string MobileNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public string HomeNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
public byte[] Photo { get; set; }
|
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-04-03 08:05:01 +04:00
|
|
|
|
public string GroupElectricalSafety { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|