BillApprovalSet.cs 963 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Comal.Classes
  6. {
  7. public class BillApprovalSet : Entity, IRemotable, IPersistent, ILicense<AccountsPayableLicense>
  8. {
  9. [UniqueCodeEditor]
  10. [EditorSequence(1)]
  11. public string Code { get; set; }
  12. [EditorSequence(2)]
  13. public string Description { get; set; }
  14. [EditorSequence(3)]
  15. [Editable(Editable.Hidden)]
  16. public bool IsDefault { get; set; }
  17. static BillApprovalSet()
  18. {
  19. DefaultColumns.Add<BillApprovalSet>(x => x.Code);
  20. DefaultColumns.Add<BillApprovalSet>(x => x.Description);
  21. }
  22. }
  23. public class BillApprovalSetLink : EntityLink<BillApprovalSet>
  24. {
  25. [LookupEditor(typeof(BillApprovalSet))]
  26. public override Guid ID { get; set; }
  27. public string Code { get; set; }
  28. public string Description { get; set; }
  29. }
  30. }