ProductDimensionUnitShell.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class ProductDimensionUnitShell : Shell<ProductDimensionUnitModel, ProductDimensionUnit>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<ProductDimensionUnitModel, ProductDimensionUnit> columns)
  9. {
  10. columns
  11. .Map(nameof(Code), x => x.Code)
  12. .Map(nameof(Description), x => x.Description)
  13. .Map(nameof(HasHeight), x => x.HasHeight)
  14. .Map(nameof(HasLength), x => x.HasLength)
  15. .Map(nameof(HasWidth), x => x.HasWidth)
  16. .Map(nameof(HasWeight), x => x.HasWeight)
  17. .Map(nameof(HasQuantity), x => x.HasQuantity)
  18. .Map(nameof(Formula), x => x.Formula)
  19. .Map(nameof(Format), x => x.Format);
  20. }
  21. public string Code => Get<string>();
  22. public string Description => Get<string>();
  23. public bool HasHeight => Get<bool>();
  24. public bool HasLength => Get<bool>();
  25. public bool HasWidth => Get<bool>();
  26. public bool HasWeight => Get<bool>();
  27. public bool HasQuantity => Get<bool>();
  28. public string Formula => Get<String>();
  29. public string Format => Get<String>();
  30. }
  31. }