using CoreModels.ModelsDepartment;
using ToolsModule.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentContract.BindingModels
{
///
/// Получение связи сотрудника с должностью
///
public class EmployeePostGetBindingModel : GetBindingModel
{
public Guid? EmployeeId { get; set; }
public Guid? PostId { get; set; }
}
///
/// Сохранение связи сотрудника с должностью
///
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; }
}
}