using InABox.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Comal.Classes { [Caption("Allocation")] public class PurchaseOrderItemAllocation : Entity, IRemotable, IPersistent, ILicense , IOneToMany, IOneToMany, IOneToMany { [EntityRelationship(DeleteAction.Cascade)] public PurchaseOrderItemLink Item { get; set; } /// /// This may not be blank. /// [EntityRelationship(DeleteAction.Cascade)] public JobLink Job { get; set; } /// /// This may be an empty link. The interface is as such: if there is no JRI, then we are creating a reserve and allocation just against the job. If there is a JRI, /// then received stock is reserved and allocated for the JRI. /// [EntityRelationship(DeleteAction.Cascade)] public JobRequisitionItemLink JobRequisitionItem { get; set; } public double Quantity { get; set; } [CheckBoxEditor] public bool Nominated { get; set; } } public class PurchaseOrderItemAllocationJobLink : EntityLink { [NullEditor] public override Guid ID { get; set; } public LightJobLink Job { get; set; } public LightPurchaseOrderItemLink Item { get; set; } } }