DepartmentProject/DepartmentPortal/Department/DepartmentContract/BindingModels/EmployeePostBindingModels.cs

36 lines
979 B
C#
Raw Permalink Normal View History

using CoreModels.ModelsDepartment;
using System;
using System.ComponentModel.DataAnnotations;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение связи сотрудника с должностью
/// </summary>
public class EmployeePostGetBindingModel : GetBindingModel
{
public Guid? EmployeeId { get; set; }
public Guid? PostId { get; set; }
}
/// <summary>
/// Сохранение связи сотрудника с должностью
/// </summary>
public class EmployeePostSetBindingModel : SetBindingModel, IEmployeePostModel
{
[Required(ErrorMessage = "required")]
public Guid EmployeeId { get; set; }
[Required(ErrorMessage = "required")]
public Guid PostId { get; set; }
[Required(ErrorMessage = "required")]
public decimal Rate { get; set; }
public bool IsInternalCombination { get; set; }
public bool IsExternalCombination { get; set; }
}
}