using System; using Comal.Classes; using InABox.Mobile; namespace PRS.Mobile { public class PurchaseOrderItemShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(JobNumber), x => x.Job.JobNumber) .Map(nameof(ProductCode), x => x.Product.Code) .Map(nameof(Description), x => x.Description) .Map(nameof(Qty), x => x.Qty) .Map(nameof(ReceivedDate), x => x.ReceivedDate) .Map(nameof(EstimatedWarehouseArrival), x=>x.Consignment.EstimatedWarehouseArrival) .Map(nameof(SupplierName), x=>x.PurchaseOrderLink.SupplierLink.Name) ; } public string JobNumber => Get(); public string ProductCode => Get(); public string Description => Get(); public double Qty => Get(); public DateTime ReceivedDate => Get(); public DateTime EstimatedWarehouseArrival => Get(); public String SupplierName => Get(); } }