2022-03-18 21:44:04 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2021-04-05 12:25:10 +04:00
|
|
|
|
using System;
|
2021-04-02 22:44:29 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2021-04-02 22:44:29 +04:00
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.BindingModels
|
2021-04-02 22:44:29 +04:00
|
|
|
|
{
|
2022-03-18 21:44:04 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение связи сотрудника с должностью
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EmployeePostGetBindingModel : GetBindingModel
|
2021-04-05 12:25:10 +04:00
|
|
|
|
{
|
|
|
|
|
public Guid? EmployeeId { get; set; }
|
2021-04-02 22:44:29 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
public Guid? PostId { get; set; }
|
|
|
|
|
}
|
2021-04-02 22:44:29 +04:00
|
|
|
|
|
2021-04-05 12:25:10 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение связи сотрудника с должностью
|
|
|
|
|
/// </summary>
|
2022-03-18 21:44:04 +04:00
|
|
|
|
public class EmployeePostSetBindingModel : SetBindingModel, IEmployeePostModel
|
2021-04-05 12:25:10 +04:00
|
|
|
|
{
|
|
|
|
|
[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; }
|
|
|
|
|
}
|
2021-04-02 22:44:29 +04:00
|
|
|
|
}
|