| 1234567891011121314151617181920212223242526272829303132333435363738 | 
							- using System;
 
- using System.Linq;
 
- using InABox.Mobile;
 
- using Xamarin.Forms;
 
- namespace PRS.Mobile
 
- {
 
-     
 
-     public class StockHoldingSelectionPage : SelectionPage
 
-     {
 
-         public StockHoldingSelectionPage(StockHoldingModel model, Action<StockHoldingShell> action)
 
-             : base(
 
-                 "Select Holding",
 
-                 SelectionPageMode.Immediate,
 
-                 (columns, filters) =>
 
-                 {
 
-                     columns
 
-                         .BeginUpdate()
 
-                         .Clear()
 
-                         .Add(new MobileGridTextColumn<StockHoldingShell>()
 
-                             { Column = x => x.JobNumber, Width = 100, Alignment = TextAlignment.Center })
 
-                         .Add(new MobileGridTextColumn<StockHoldingShell>()
 
-                             { Column = x => x.LocationCode, Width = GridLength.Star, Alignment = TextAlignment.Start })
 
-                         .Add(new MobileGridDoubleColumn<StockHoldingShell>()
 
-                             { Column = x => x.Units, Width = 50, Alignment = TextAlignment.Center, Format = "F2", Caption = "Qty"})
 
-                         .EndUpdate();
 
-                 },
 
-                 (args) =>
 
-                 {
 
-                     return model;
 
-                 },
 
-                 (items) => action?.Invoke(items.FirstOrDefault() as StockHoldingShell)
 
-             )
 
-         {
 
-         }
 
-     }
 
- }
 
 
  |