Kit.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. public interface IKit : IEntity
  5. {
  6. string Code { get; set; }
  7. string Description { get; set; }
  8. }
  9. [UserTracking(typeof(Quote))]
  10. public class Kit : Entity, IKit, IRemotable, IPersistent, IIssues, ILicense<QuotesManagementLicense>
  11. {
  12. //public KitGroupLink Group { get; set; }
  13. [EditorSequence(3)]
  14. public CostSheetSectionLink Section { get; set; }
  15. [EditorSequence(4)]
  16. public bool Active { get; set; }
  17. [NullEditor]
  18. public string Issues { get; set; }
  19. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  20. [EditorSequence(1)]
  21. public string Code { get; set; }
  22. [TextBoxEditor]
  23. [EditorSequence(2)]
  24. public string Description { get; set; }
  25. protected override void Init()
  26. {
  27. base.Init();
  28. //Group = new KitGroupLink();
  29. Section = new CostSheetSectionLink();
  30. Active = true;
  31. }
  32. public override string ToString()
  33. {
  34. return string.Format("{0}: {1}", Code, Description);
  35. }
  36. }
  37. }