| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using Comal.Classes;
- namespace comal.timesheets
- {
- public class DeliveryItemDetailShell : DetailShell<DeliveryItemDetailModel, DeliveryItem>
- {
- static DeliveryItemDetailShell()
- {
- Columns
- .Map(nameof(ID), x=>x.ID)
- .Map(nameof(Description), x => x.Description)
- .Map(nameof(Location), x => x.ManufacturingPacketLink.Location)
- .Map(nameof(_jobid), x => x.JobLink.ID)
- .Map(nameof(_jobnumber), x => x.JobLink.JobNumber)
- .Map(nameof(_jobname), x => x.JobLink.Name)
- .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(SerialNumber), x => x.ManufacturingPacketLink.Serial)
- .Map(nameof(Barcode), x => x.Barcode)
- .Map(nameof(DeliveryID), x=>x.Delivery.ID);
- }
- public Guid ID => Get<Guid>();
- public String Description => Get<String>();
- public String Location => Get<String>();
-
- private Guid _jobid => Get<Guid>();
- private String _jobnumber => Get<String>();
- private String _jobname => Get<String>();
- public String Job => _jobid != Guid.Empty
- ? $"{_jobnumber}: {_jobname}"
- : "";
-
- private Guid _setoutid => Get<Guid>();
- private String _setoutnumber => Get<String>();
- private String _setoutdescription => Get<String>();
- public String Setout => _setoutid != Guid.Empty
- ? $"{_setoutnumber}: {_setoutdescription}"
- : "";
-
- public String SerialNumber => Get<String>();
- public String Barcode => Get<String>();
- public Guid DeliveryID => Get<Guid>();
- }
- }
|