ConsignmentShell.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class ConsignmentShell : Shell<ConsignmentModel, Consignment>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<ConsignmentModel, Consignment> columns)
  9. {
  10. columns
  11. .Map(nameof(Number), x => x.Number)
  12. .Map(nameof(Description), x => x.Description)
  13. .Map(nameof(SupplierID), x => x.Supplier.ID)
  14. .Map(nameof(SupplierName), x => x.Supplier.Name)
  15. .Map(nameof(TypeID), x => x.Type.ID)
  16. .Map(nameof(TypeDescription), x => x.Type.Description)
  17. .Map(nameof(EstimatedWarehouseArrival), x => x.EstimatedWarehouseArrival)
  18. .Map(nameof(ActualWarehouseArrival), x => x.ActualWarehouseArrival);
  19. }
  20. public string Number
  21. {
  22. get => Get<string>();
  23. set => Set(value);
  24. }
  25. public string Description
  26. {
  27. get => Get<string>();
  28. set => Set(value);
  29. }
  30. public Guid SupplierID
  31. {
  32. get => Get<Guid>();
  33. set => Set(value);
  34. }
  35. public string SupplierName
  36. {
  37. get => Get<string>();
  38. set => Set(value);
  39. }
  40. public Guid TypeID
  41. {
  42. get => Get<Guid>();
  43. set => Set(value);
  44. }
  45. public string TypeDescription
  46. {
  47. get => Get<string>();
  48. set => Set(value);
  49. }
  50. public DateTime EstimatedWarehouseArrival {
  51. get => Get<DateTime>();
  52. set => Set(value);
  53. }
  54. public DateTime ActualWarehouseArrival {
  55. get => Get<DateTime>();
  56. set => Set(value);
  57. }
  58. }
  59. }