1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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<ProjectManagementLicense>
- , IOneToMany<JobRequisitionItem>, IOneToMany<Job>, IOneToMany<PurchaseOrderItem>
- {
- [EntityRelationship(DeleteAction.Cascade)]
- public PurchaseOrderItemLink Item { get; set; }
-
- /// <summary>
- /// This may not be blank.
- /// </summary>
- [EntityRelationship(DeleteAction.Cascade)]
- public JobLink Job { get; set; }
-
- /// <summary>
- /// 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.
- /// </summary>
- [EntityRelationship(DeleteAction.Cascade)]
- public JobRequisitionItemLink JobRequisitionItem { get; set; }
-
- public double Quantity { get; set; }
- [CheckBoxEditor]
- public bool Nominated { get; set; }
- }
-
-
- public class PurchaseOrderItemAllocationJobLink : EntityLink<PurchaseOrderItemAllocation>
- {
- [NullEditor]
- public override Guid ID { get; set; }
-
- public LightJobLink Job { get; set; }
-
- public LightPurchaseOrderItemLink Item { get; set; }
-
- }
- }
|