PurchaseOrderShell.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class PurchaseOrderShell : Shell<PurchaseOrderModel, PurchaseOrder>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<PurchaseOrderModel, PurchaseOrder> columns)
  9. {
  10. columns
  11. .Map(nameof(PONumber), x => x.PONumber)
  12. .Map(nameof(SupplierID), x => x.SupplierLink.ID)
  13. .Map(nameof(SupplierName), x => x.SupplierLink.Name)
  14. .Map(nameof(Notes), x => x.Notes)
  15. .Map(nameof(DueDate), x => x.DueDate)
  16. .Map(nameof(IssuedDate), x=>x.IssuedDate)
  17. .Map(nameof(ClosedDate), x => x.ClosedDate)
  18. .Map(nameof(CancelledDate), x=>x.CancelledDate)
  19. .Map(nameof(Unreceived), x=>x.Unreceived)
  20. .Map(nameof(Received), x=>x.Received)
  21. ;
  22. }
  23. public string PONumber => Get<String>();
  24. public Guid SupplierID => Get<Guid>();
  25. public string SupplierName => Get<String>();
  26. public String Notes => Get<String>();
  27. public DateTime DueDate => Get<DateTime>();
  28. public DateTime IssuedDate => Get<DateTime>();
  29. public double Received => Get<double>();
  30. public double Unreceived => Get<double>();
  31. public DateTime ClosedDate => Get<DateTime>();
  32. public DateTime CancelledDate => Get<DateTime>();
  33. public PurchaseOrderStatus Status => Get<PurchaseOrderStatus>();
  34. }
  35. }