SetoutShell.cs 849 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class SetoutShell : Shell<SetoutModel, Setout>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<SetoutModel, Setout> columns)
  9. {
  10. columns
  11. .Map(nameof(Number), x => x.Number)
  12. .Map(nameof(Description), x => x.Description)
  13. .Map(nameof(JobID), x => x.JobLink.ID)
  14. .Map(nameof(JobNumber), x => x.JobLink.JobNumber)
  15. .Map(nameof(JobName), x => x.JobLink.Name);
  16. }
  17. public string Number => Get<string>();
  18. public string Description => Get<string>();
  19. public Guid JobID => Get<Guid>();
  20. public string JobNumber => Get<string>();
  21. public string JobName => Get<string>();
  22. }
  23. }