CompanyInformation.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 => InitializeField(ref _logo, nameof(Logo));
  22. private ImageDocumentLink? _logo;
  23. [EditorSequence("Postal Address", 1)]
  24. [Caption("")]
  25. public Address PostalAddress => InitializeField(ref _postalAddress, nameof(PostalAddress));
  26. private Address? _postalAddress;
  27. [EditorSequence("Delivery Address", 1)]
  28. [Caption("")]
  29. public Address DeliveryAddress => InitializeField(ref _deliveryAddress, nameof(DeliveryAddress));
  30. private Address? _deliveryAddress;
  31. [MemoEditor]
  32. [EditorSequence("Invoice Note", 1)]
  33. [Caption("")]
  34. public string InvoiceNote { get; set; }
  35. [MemoEditor]
  36. [EditorSequence("Purchase Note", 2)]
  37. [Caption("")]
  38. public string PurchaseNote { get; set; }
  39. }
  40. }