using System; using Comal.Classes; using InABox.Mobile; namespace PRS.Mobile { public class PurchaseOrderShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(PONumber), x => x.PONumber) .Map(nameof(SupplierID), x => x.SupplierLink.ID) .Map(nameof(SupplierName), x => x.SupplierLink.Name) .Map(nameof(Notes), x => x.Notes) .Map(nameof(DueDate), x => x.DueDate) .Map(nameof(IssuedDate), x=>x.IssuedDate) .Map(nameof(ClosedDate), x => x.ClosedDate) .Map(nameof(CancelledDate), x=>x.CancelledDate) .Map(nameof(Unreceived), x=>x.Unreceived) .Map(nameof(Received), x=>x.Received) ; } public string PONumber => Get(); public Guid SupplierID => Get(); public string SupplierName => Get(); public String Notes => Get(); public DateTime DueDate => Get(); public DateTime IssuedDate => Get(); public double Received => Get(); public double Unreceived => Get(); public DateTime ClosedDate => Get(); public DateTime CancelledDate => Get(); public PurchaseOrderStatus Status => Get(); } }