PurchaseOrderItemShell.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class PurchaseOrderItemShell : Shell<PurchaseOrderItemModel, PurchaseOrderItem>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<PurchaseOrderItemModel, PurchaseOrderItem> columns)
  9. {
  10. columns
  11. .Map(nameof(JobNumber), x => x.Job.JobNumber)
  12. .Map(nameof(ProductCode), x => x.Product.Code)
  13. .Map(nameof(Description), x => x.Description)
  14. .Map(nameof(Qty), x => x.Qty)
  15. .Map(nameof(ReceivedDate), x => x.ReceivedDate)
  16. .Map(nameof(EstimatedWarehouseArrival), x=>x.Consignment.EstimatedWarehouseArrival)
  17. .Map(nameof(SupplierName), x=>x.PurchaseOrderLink.SupplierLink.Name)
  18. ;
  19. }
  20. public string JobNumber => Get<String>();
  21. public string ProductCode => Get<String>();
  22. public string Description => Get<String>();
  23. public double Qty => Get<double>();
  24. public DateTime ReceivedDate => Get<DateTime>();
  25. public DateTime EstimatedWarehouseArrival => Get<DateTime>();
  26. public String SupplierName => Get<String>();
  27. }
  28. }