using System; using InABox.Core; namespace Comal.Classes { public interface IEmployeeGroupLink { Guid ID { get; set; } string Code { get; set; } string Description { get; set; } } public class EmployeeGroupLink : EntityLink, IEmployeeGroupLink { [LookupEditor(typeof(EmployeeGroup))] public override Guid ID { get; set; } [CodeEditor(Visible = Visible.Default, Editable = Editable.Hidden)] public string Code { get; set; } [TextBoxEditor(Editable = Editable.Hidden)] public string Description { get; set; } public override string ToString() { return string.Format("{0}: {1}", Code, Description); } } }