CompanyInformation.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace InABox.Core
  2. {
  3. [UserTracking(typeof(User))]
  4. public class CompanyInformation : Entity, IRemotable, IPersistent, ILicense<CoreLicense>
  5. {
  6. [TextBoxEditor]
  7. [EditorSequence(1)]
  8. [Caption("Name")]
  9. public string CompanyName { get; set; }
  10. [CodeEditor(Editable = Editable.Enabled)]
  11. [EditorSequence(2)]
  12. public string ABN { get; set; }
  13. [TextBoxEditor]
  14. [EditorSequence(3)]
  15. public string Telephone { get; set; }
  16. [TextBoxEditor]
  17. [EditorSequence(4)]
  18. public string Email { get; set; }
  19. [EditorSequence(5)]
  20. [Caption("Logo")]
  21. public ImageDocumentLink Logo { get; set; }
  22. [EditorSequence("Postal Address", 1)]
  23. [Caption("")]
  24. public Address PostalAddress { get; set; }
  25. [EditorSequence("Delivery Address", 1)]
  26. [Caption("")]
  27. public Address DeliveryAddress { get; set; }
  28. [MemoEditor]
  29. [EditorSequence("Invoice Note", 1)]
  30. [Caption("")]
  31. public string InvoiceNote { get; set; }
  32. [MemoEditor]
  33. [EditorSequence("Purchase Note", 2)]
  34. [Caption("")]
  35. public string PurchaseNote { get; set; }
  36. protected override void Init()
  37. {
  38. base.Init();
  39. PostalAddress = new Address();
  40. DeliveryAddress = new Address();
  41. Logo = new ImageDocumentLink();
  42. }
  43. }
  44. }