PurchaseOrderItemAllocation.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace Comal.Classes
  7. {
  8. [Caption("Allocation")]
  9. public class PurchaseOrderItemAllocation : Entity, IRemotable, IPersistent, ILicense<ProjectManagementLicense>
  10. , IOneToMany<JobRequisitionItem>, IOneToMany<Job>, IOneToMany<PurchaseOrderItem>
  11. {
  12. [EntityRelationship(DeleteAction.Cascade)]
  13. public PurchaseOrderItemLink Item { get; set; }
  14. /// <summary>
  15. /// This may not be blank.
  16. /// </summary>
  17. [EntityRelationship(DeleteAction.Cascade)]
  18. public JobLink Job { get; set; }
  19. /// <summary>
  20. /// 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,
  21. /// then received stock is reserved and allocated for the JRI.
  22. /// </summary>
  23. [EntityRelationship(DeleteAction.Cascade)]
  24. public JobRequisitionItemLink JobRequisitionItem { get; set; }
  25. public double Quantity { get; set; }
  26. [CheckBoxEditor]
  27. public bool Nominated { get; set; }
  28. }
  29. public class PurchaseOrderItemAllocationJobLink : EntityLink<PurchaseOrderItemAllocation>
  30. {
  31. [NullEditor]
  32. public override Guid ID { get; set; }
  33. public LightJobLink Job { get; set; }
  34. public LightPurchaseOrderItemLink Item { get; set; }
  35. }
  36. }