using System; using Comal.Classes; using InABox.Mobile; namespace PRS.Mobile { public class ManufacturingPacketShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(Title), x => x.Title) .Map(nameof(Quantity), x => x.Quantity) .Map(nameof(DrawingID), x => x.Drawing.ID) .Map(nameof(JobNumber), x => x.SetoutLink.JobLink.JobNumber) .Map(nameof(JobID), x => x.SetoutLink.JobLink.ID) .Map(nameof(ITPCode), x => x.ITP.Code) .Map(nameof(Created), x => x.Created) .Map(nameof(Issued), x => x.Issued) .Map(nameof(DueDate), x => x.DueDate) .Map(nameof(StageLinkSectionID), x => x.StageLink.ID) .Map(nameof(StageLinkSection), x => x.StageLink.Section) .Map(nameof(StageLinkStation), x => x.StageLink.Station) .Map(nameof(StageLinkPercentage), x => x.StageLink.PercentageComplete) .Map(nameof(FactoryID), x => x.ManufacturingTemplateLink.Factory.ID) .Map(nameof(FactoryName), x => x.ManufacturingTemplateLink.Factory.Name) .Map(nameof(Location), x => x.Location) .Map(nameof(Serial), x => x.Serial) .Map(nameof(SetoutID), x => x.SetoutLink.ID) .Map(nameof(SetoutNumber), x => x.SetoutLink.Number) .Map(nameof(TemplateLinkCode), x => x.ManufacturingTemplateLink.Code) .Map(nameof(JobName), x => x.SetoutLink.JobLink.Name) .Map(nameof(WaterMark), x => x.WaterMark) .Map(nameof(Issues), x => x.Problem.Notes) .Map(nameof(OrderID), x => x.OrderItem.ID) .Map(nameof(OrderRecDate), x => x.OrderItem.ReceivedDate) .Map(nameof(OrderETA), x => x.OrderItem.Consignment.EstimatedWarehouseArrival) ; } public string Title => Get(); public int Quantity => Get(); public Guid DrawingID => Get(); public string JobNumber => Get(); public Guid JobID => Get(); public string ITPCode => Get(); public string Created => Get(); public DateTime Issued => Get(); public string DueDate => Get(); public Guid StageLinkSectionID => Get(); public string StageLinkSection => Get(); public int StageLinkStation => Get(); public double StageLinkPercentage => Get(); public Guid FactoryID => Get(); public string FactoryName => Get(); public string Location => Get(); public string Serial => Get(); public Guid SetoutID => Get(); public string SetoutNumber => Get(); public string TemplateLinkCode => Get(); public string JobName => Get(); public string WaterMark => Get(); public Guid OrderID => Get(); public DateTime OrderRecDate => Get(); public DateTime OrderETA => Get(); public String Issues => string.Join("\n",Get()); } }