2021-04-02 22:44:29 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.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
|
|
|
|
|
{
|
2021-04-05 12:25:10 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение связи сотрудника с должностью
|
|
|
|
|
/// </summary>
|
2021-04-02 22:44:29 +04:00
|
|
|
|
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>
|
|
|
|
|
public class EmployeePostSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("EmployeeId")]
|
|
|
|
|
public Guid EmployeeId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("PostId")]
|
|
|
|
|
public Guid PostId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
[MapConfiguration("Rate")]
|
|
|
|
|
public decimal Rate { get; set; }
|
|
|
|
|
|
|
|
|
|
[MapConfiguration("IsInternalCombination")]
|
|
|
|
|
public bool IsInternalCombination { get; set; }
|
|
|
|
|
|
|
|
|
|
[MapConfiguration("IsExternalCombination")]
|
|
|
|
|
public bool IsExternalCombination { get; set; }
|
|
|
|
|
}
|
2021-04-02 22:44:29 +04:00
|
|
|
|
}
|