BillApproval.cs 862 B

123456789101112131415161718192021222324252627282930
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Comal.Classes
  6. {
  7. public class BillApproval : Entity, ISequenceable, IRemotable, IPersistent, IOneToMany<Bill>, ILicense<AccountsPayableLicense>
  8. {
  9. [EditorSequence(1)]
  10. public EmployeeLink Employee { get; set; }
  11. [NullEditor]
  12. public BillLink Bill { get; set; }
  13. [EditorSequence(2)]
  14. public DateTime Approved { get; set; }
  15. [NullEditor]
  16. public long Sequence { get; set; }
  17. static BillApproval()
  18. {
  19. DefaultColumns.Add<BillApproval>(x => x.Bill.Number);
  20. DefaultColumns.Add<BillApproval>(x => x.Employee.Code);
  21. DefaultColumns.Add<BillApproval>(x => x.Employee.Name);
  22. DefaultColumns.Add<BillApproval>(x => x.Approved);
  23. }
  24. }
  25. }