using InABox.Core; namespace Comal.Classes { [UserTracking(typeof(ManufacturingPacket))] [Caption("Components")] public class ManufacturingPacketComponent : DimensionedEntity, IRemotable, IPersistent, IOneToMany, ILicense { [EntityRelationship(DeleteAction.Cascade)] public ManufacturingPacketLink Packet { get; set; } [EntityRelationship(DeleteAction.SetNull)] public ProductLink Product { get; set; } [TextBoxEditor] [EditorSequence(1)] public string Description { get; set; } public int Quantity { get; set; } public override ProductDimensions Dimensions { get; set; } /// /// When a picking list is creating for a , we save a link to the requisition, /// so that we don't require the same component twice. /// [NullEditor] public RequisitionLink Requisition { get; set; } static ManufacturingPacketComponent() { LinkedProperties.Register(x => x.Product, x => x.Name, x => x.Description); } } }