12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class PurchaseOrderShell : Shell<PurchaseOrderModel, PurchaseOrder>
- {
- protected override void ConfigureColumns(ShellColumns<PurchaseOrderModel, PurchaseOrder> 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<String>();
- public Guid SupplierID => Get<Guid>();
- public string SupplierName => Get<String>();
- public String Notes => Get<String>();
- public DateTime DueDate => Get<DateTime>();
- public DateTime IssuedDate => Get<DateTime>();
- public double Received => Get<double>();
- public double Unreceived => Get<double>();
- public DateTime ClosedDate => Get<DateTime>();
- public DateTime CancelledDate => Get<DateTime>();
- public PurchaseOrderStatus Status => Get<PurchaseOrderStatus>();
-
- }
- }
|