ManufacturingPacketShell.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class ManufacturingPacketShell : Shell<ManufacturingPacketModel, ManufacturingPacket>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<ManufacturingPacketModel, ManufacturingPacket> columns)
  9. {
  10. columns
  11. .Map(nameof(Title), x => x.Title)
  12. .Map(nameof(Quantity), x => x.Quantity)
  13. .Map(nameof(DrawingID), x => x.Drawing.ID)
  14. .Map(nameof(JobNumber), x => x.SetoutLink.JobLink.JobNumber)
  15. .Map(nameof(JobID), x => x.SetoutLink.JobLink.ID)
  16. .Map(nameof(ITPCode), x => x.ITP.Code)
  17. .Map(nameof(Created), x => x.Created)
  18. .Map(nameof(Issued), x => x.Issued)
  19. .Map(nameof(DueDate), x => x.DueDate)
  20. .Map(nameof(StageLinkSectionID), x => x.StageLink.ID)
  21. .Map(nameof(StageLinkSection), x => x.StageLink.Section)
  22. .Map(nameof(StageLinkStation), x => x.StageLink.Station)
  23. .Map(nameof(StageLinkPercentage), x => x.StageLink.PercentageComplete)
  24. .Map(nameof(FactoryID), x => x.ManufacturingTemplateLink.Factory.ID)
  25. .Map(nameof(FactoryName), x => x.ManufacturingTemplateLink.Factory.Name)
  26. .Map(nameof(Location), x => x.Location)
  27. .Map(nameof(Serial), x => x.Serial)
  28. .Map(nameof(SetoutID), x => x.SetoutLink.ID)
  29. .Map(nameof(SetoutNumber), x => x.SetoutLink.Number)
  30. .Map(nameof(TemplateLinkCode), x => x.ManufacturingTemplateLink.Code)
  31. .Map(nameof(JobName), x => x.SetoutLink.JobLink.Name)
  32. .Map(nameof(WaterMark), x => x.WaterMark)
  33. .Map(nameof(Issues), x => x.Problem.Notes)
  34. .Map(nameof(OrderID), x => x.OrderItem.ID)
  35. .Map(nameof(OrderRecDate), x => x.OrderItem.ReceivedDate)
  36. .Map(nameof(OrderETA), x => x.OrderItem.Consignment.EstimatedWarehouseArrival)
  37. ;
  38. }
  39. public string Title => Get<string>();
  40. public int Quantity => Get<int>();
  41. public Guid DrawingID => Get<Guid>();
  42. public string JobNumber => Get<string>();
  43. public Guid JobID => Get<Guid>();
  44. public string ITPCode => Get<string>();
  45. public string Created => Get<string>();
  46. public DateTime Issued => Get<DateTime>();
  47. public string DueDate => Get<string>();
  48. public Guid StageLinkSectionID => Get<Guid>();
  49. public string StageLinkSection => Get<string>();
  50. public int StageLinkStation => Get<int>();
  51. public double StageLinkPercentage => Get<double>();
  52. public Guid FactoryID => Get<Guid>();
  53. public string FactoryName => Get<string>();
  54. public string Location => Get<string>();
  55. public string Serial => Get<string>();
  56. public Guid SetoutID => Get<Guid>();
  57. public string SetoutNumber => Get<string>();
  58. public string TemplateLinkCode => Get<string>();
  59. public string JobName => Get<string>();
  60. public string WaterMark => Get<string>();
  61. public Guid OrderID => Get<Guid>();
  62. public DateTime OrderRecDate => Get<DateTime>();
  63. public DateTime OrderETA => Get<DateTime>();
  64. public String Issues => string.Join("\n",Get<String[]>());
  65. }
  66. }