| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 | using System;using InABox.Core;namespace Comal.Classes{    public class OrgChartSettings<TEntityLink> : EnclosedEntity        where TEntityLink : IEntityLink, new()    {        [EditorSequence("Org Chart", 1)]        [Caption("Reports To", IncludePath = false)]        public TEntityLink ReportsTo { get; set; }        [EditorSequence("Org Chart", 2)]        [ColorEditor]        [Caption("Color", IncludePath = false)]        public string Color { get; set; } = "#00000000";        [EditorSequence("Org Chart", 3)]        [CheckBoxEditor]        [Caption("Visible", IncludePath = false)]        public bool Visible { get; set; } = true;    }    public interface IOrgChart<TEntityLink> where TEntityLink : IEntityLink, new()    {        OrgChartSettings<TEntityLink> OrgChart { get; set; }    }    [UserTracking(typeof(Employee))]    public class Role : Entity, IPersistent, IRemotable, IOrgChart<RoleLink>, ILicense<CoreLicense>, IExportable, IImportable    {        [EditorSequence(1)]        [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]        public string Code { get; set; }        [EditorSequence(2)]        [TextBoxEditor]        public string Name { get; set; }                [MemoEditor]        [EditorSequence("Standards",1)]        public String Description { get; set; }                [MemoEditor]        [EditorSequence("Standards",2)]        public String JobKnowledge { get; set; }                [MemoEditor]        [EditorSequence("Standards",3)]        public String WorkQuality { get; set; }                [MemoEditor]        [EditorSequence("Standards",3)]        public String Productivity { get; set; }                        [MemoEditor]        [EditorSequence("Standards",4)]        public String Relationships { get; set; }                public OrgChartSettings<RoleLink> OrgChart { get; set; }        public override string ToString()        {            return Name;        }    }}
 |