| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class DeliveryItemShell : Shell<DeliveryItemModel, DeliveryItem>
- {
- protected override void ConfigureColumns(ShellColumns<DeliveryItemModel, DeliveryItem> columns)
- {
- columns
- .Map(nameof(DeliveryID), x=>x.Delivery.ID)
- .Map(nameof(Description), x => x.Description)
- .Map(nameof(Barcode), x => x.Barcode)
- .Map(nameof(Rack), x => x.ShipmentLink.Code)
- .Map(nameof(Requi), x => x.RequisitionLink.Number)
-
- .Map(nameof(SerialNumber), x => x.ManufacturingPacketLink.Serial)
- .Map(nameof(Location), x => x.ManufacturingPacketLink.Location)
- .Map(nameof(SetoutID), x => x.ManufacturingPacketLink.SetoutLink.ID)
- .Map(nameof(_setoutnumber), x => x.ManufacturingPacketLink.SetoutLink.Number)
- .Map(nameof(_setoutdescription), x => x.ManufacturingPacketLink.SetoutLink.Description)
-
- .Map(nameof(_jobid), x => x.JobLink.ID)
- .Map(nameof(_jobnumber), x => x.JobLink.JobNumber)
- .Map(nameof(_jobname), x => x.JobLink.Name)
-
- ;
- }
- public Guid DeliveryID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public String Description => Get<String>();
- public String Barcode => Get<String>();
-
- public string Rack => Get<String>();
- public int Requi => Get<int>();
-
- public String SerialNumber => Get<String>();
- public String Location => Get<String>();
-
- public Guid SetoutID => Get<Guid>();
- public string _setoutnumber => Get<String>();
- private String _setoutdescription => Get<String>();
-
- private Guid _jobid => Get<Guid>();
- private String _jobnumber => Get<String>();
- private String _jobname => Get<String>();
-
- public String Setout => SetoutID != Guid.Empty
- ? $"{_setoutnumber}: {_setoutdescription}"
- : "";
-
- public String Reference => Requi == 0
- ? $"Rack {Rack}"
- : $"Req. {Requi}";
- public String Job => _jobid != Guid.Empty
- ? $"{_jobnumber}: {_jobname}"
- : "";
- }
-
- }
|