StockLocationLink.cs 962 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class StockLocationLink : EntityLink<StockLocation>, IStockLocation
  6. {
  7. public StockLocationLink() : this(null)
  8. {
  9. }
  10. public StockLocationLink(Func<BaseObject>? entity) : base(entity)
  11. {
  12. }
  13. public StockAreaLink Area { get; set; }
  14. [CodePopupEditor(typeof(StockLocation))]
  15. public override Guid ID { get; set; }
  16. [CodeEditor(Visible = Visible.Default, Editable = Editable.Hidden)]
  17. public string Code { get; set; }
  18. [TextBoxEditor(Editable = Editable.Hidden)]
  19. public string Description { get; set; }
  20. public JobLink Job { get; set; }
  21. [NullEditor]
  22. public bool Active { get; set; }
  23. protected override void Init()
  24. {
  25. base.Init();
  26. Area = new StockAreaLink();
  27. Job = new JobLink();
  28. }
  29. }
  30. }