2022-03-18 21:44:04 +04:00
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.BindingModels;
|
2021-04-05 12:25:10 +04:00
|
|
|
|
using System;
|
2021-04-02 22:44:29 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
|
|
|
{
|
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
|
|
|
|
}
|