12345678910111213141516171819202122232425262728293031323334 |
- 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; }
- [NullEditor]
- public bool IsCanonical { get; set; }
- }
- }
|