using InABox.Core; using System; using System.Collections.Generic; using System.Text; namespace Comal.Classes { public interface IScanTag { public Guid ID { get; set; } public string Name { get; set; } public string AppliesTo { get; set; } } public class ScanTag : Entity, IScanTag, IRemotable, IPersistent, ILicense { [EditorSequence(1)] [TextBoxEditor] public string Name { get; set; } [EditorSequence(2)] [ComboLookupEditor(typeof(ScannableLookups), Visible = Visible.Default)] public string AppliesTo { get; set; } protected override void Init() { base.Init(); Name = ""; AppliesTo = ""; } } public class ScanTagLookups : EntityLookup { public override Columns DefineColumns() => new Columns(x => x.ID).Add(x => x.Name); public override Filter? DefineFilter() => null; public override SortOrder DefineSortOrder() => new SortOrder(x => x.Name); } }