SupplierProductLink.cs 818 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class SupplierProductLink : EntityLink<SupplierProduct>
  6. {
  7. [LookupEditor(typeof(SupplierProduct), "SupplierLink.Code", "SupplierLink.Name")]
  8. public override Guid ID { get; set; }
  9. public SupplierLink SupplierLink { get; set; }
  10. [NullEditor]
  11. public ProductLink ProductLink { get; set; }
  12. [CodeEditor(Visible = Visible.Default, Editable = Editable.Hidden)]
  13. public string SupplierCode { get; set; }
  14. [TextBoxEditor(Editable = Editable.Hidden)]
  15. public string URL { get; set; }
  16. protected override void Init()
  17. {
  18. base.Init();
  19. SupplierLink = new SupplierLink();
  20. ProductLink = new ProductLink(LinkedEntity);
  21. }
  22. }
  23. }