QuoteTakeoffLink.cs 748 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class QuoteTakeoffLink : EntityLink<QuoteTakeoff>, IQuoteTakeoff
  6. {
  7. [LookupEditor(typeof(QuoteTakeoff))]
  8. public override Guid ID { get; set; }
  9. [TextBoxEditor(Visible = Visible.Default, Editable = Editable.Hidden)]
  10. public string Description { get; set; }
  11. [NullEditor]
  12. public QuoteTakeOffDimensions Dimensions { get; set; }
  13. [NullEditor]
  14. public QuoteTakeOffFactorLink Factor { get; set; }
  15. protected override void Init()
  16. {
  17. base.Init();
  18. Dimensions = new QuoteTakeOffDimensions(LinkedEntity);
  19. Factor = new QuoteTakeOffFactorLink();
  20. }
  21. }
  22. }