| 1234567891011121314151617181920212223242526272829303132 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class PurchaseOrderItemShell : Shell<PurchaseOrderItemModel, PurchaseOrderItem>
- {
- protected override void ConfigureColumns(ShellColumns<PurchaseOrderItemModel, PurchaseOrderItem> 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<String>();
- public string ProductCode => Get<String>();
- public string Description => Get<String>();
- public double Qty => Get<double>();
- public DateTime ReceivedDate => Get<DateTime>();
- public DateTime EstimatedWarehouseArrival => Get<DateTime>();
- public String SupplierName => Get<String>();
- }
- }
|