using InABox.Core; namespace Comal.Classes { [Caption("Manufacturing Sections")] [UserTracking(typeof(ManufacturingPacket))] public class ManufacturingSection : Entity, IRemotable, IPersistent, IOneToMany, ISequenceable, ILicense { [EntityRelationship(DeleteAction.Cascade)] public ManufacturingFactoryLink Factory { get; set; } [TextBoxEditor] public string Name { get; set; } public int Stations { get; set; } public bool Shared { get; set; } public bool Hidden { get; set; } [NullEditor] public string QualityChecks { get; set; } public QAFormLink QAForm { get; set; } public ActivityLink Activity { get; set; } [NullEditor] public long Sequence { get; set; } //[NullEditor] //public string QAData { get; set; } protected override void Init() { base.Init(); Factory = new ManufacturingFactoryLink(); Stations = 1; Shared = false; QAForm = new QAFormLink(); Activity = new ActivityLink(); } public override string ToString() { return string.Format("{0}: {1}", Factory.Name, Name); } } }