ShipmentShell.cs 783 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class ShipmentShell : Shell<ShipmentModel, Shipment>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<ShipmentModel, Shipment> columns)
  9. {
  10. columns
  11. .Map(nameof(Code), x=>x.Code)
  12. .Map(nameof(Description), x => x.Description)
  13. .Map(nameof(ItemCount), x=>x.ItemCount)
  14. .Map(nameof(DeliveryID), x=>x.Delivery.ID);
  15. }
  16. public String Code => Get<String>();
  17. public String Description => Get<String>();
  18. public int ItemCount => Get<int>();
  19. public Guid DeliveryID
  20. {
  21. get => Get<Guid>();
  22. set => Set(value);
  23. }
  24. }
  25. }