DataModelTemplate.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using InABox.Clients;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Reflection;
  5. namespace InABox.Core
  6. {
  7. public class DataModelTemplate : Entity, IRemotable, IPersistent, ISequenceable, ILicense<CoreLicense>
  8. {
  9. [TextBoxEditor(Visible = Core.Visible.Hidden, Editable = Editable.Hidden)]
  10. public string Model { get; set; }
  11. [EditorSequence(1)]
  12. [TextBoxEditor]
  13. public string Name { get; set; }
  14. [EditorSequence(2)]
  15. [ExpressionEditor(null, Editable = Editable.Enabled)]
  16. public string To { get; set; }
  17. [EditorSequence(3)]
  18. [ExpressionEditor(null, Editable = Editable.Enabled)]
  19. public string CC { get; set; }
  20. [EditorSequence(4)]
  21. [ExpressionEditor(null, Editable = Editable.Enabled)]
  22. public string BCC { get; set; }
  23. [EditorSequence(5)]
  24. [ExpressionEditor(null, Editable = Editable.Enabled)]
  25. public string Subject { get; set; }
  26. [EditorSequence(6)]
  27. [ExpressionEditor(null, Editable = Editable.Enabled)]
  28. public string AttachmentName { get; set; }
  29. [EditorSequence(7)]
  30. [ScriptEditor(SyntaxLanguage.HTML, Editable = Editable.Enabled)]
  31. public string Template { get; set; }
  32. [EditorSequence(8)]
  33. [CheckBoxEditor]
  34. public bool Visible { get; set; }
  35. [EditorSequence(9)]
  36. [CheckBoxEditor]
  37. public bool Default { get; set; }
  38. [NullEditor]
  39. public long Sequence { get; set; }
  40. }
  41. }