StockHoldingLink.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. // Because StockHolding is now Automagically Generated (Yay for Views)
  6. // There is no such thing anymore as a StockHoldingLink (no ID)
  7. // So this needs to be changed to a StockLocationLink
  8. [Obsolete("Replaced with StockLocationLink")]
  9. public class StockHoldingLink : EntityLink<StockHolding>, IStockHolding
  10. {
  11. [LookupEditor(typeof(StockHolding))]
  12. public override Guid ID { get; set; }
  13. [NullEditor]
  14. public JobLink Job { get; set; }
  15. [NullEditor]
  16. public StockLocationLink Location { get; set; }
  17. [NullEditor]
  18. public ProductLink Product { get; set; }
  19. [NullEditor]
  20. public ProductStyleLink Style { get; set; }
  21. [NullEditor]
  22. public StockDimensions Dimensions { get; set; }
  23. protected override void Init()
  24. {
  25. base.Init();
  26. Job = new JobLink();
  27. Location = new StockLocationLink();
  28. Product = new ProductLink();
  29. Style = new ProductStyleLink();
  30. Dimensions = new StockDimensions(LinkedEntity);
  31. }
  32. }
  33. }