EmployeePosition.cs 790 B

1234567891011121314151617181920212223242526
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Employee))]
  5. [Caption("Position")]
  6. public class EmployeePosition : Entity, IPersistent, IRemotable, IOrgChart<EmployeePositionLink>, ILicense<HumanResourcesLicense>, IExportable,
  7. IImportable, IMergeable
  8. {
  9. [EditorSequence(1)]
  10. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  11. public string Code { get; set; }
  12. [EditorSequence(2)]
  13. [TextBoxEditor]
  14. public string Description { get; set; }
  15. public OrgChartSettings<EmployeePositionLink> OrgChart { get; set; }
  16. protected override void Init()
  17. {
  18. base.Init();
  19. OrgChart = new OrgChartSettings<EmployeePositionLink>();
  20. }
  21. }
  22. }