ProductDimensionUnitShell.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using Comal.Classes;
  3. namespace PRS.Mobile
  4. {
  5. public class ProductDimensionUnitShell : Shell<ProductModel, ProductDimensionUnit>
  6. {
  7. protected override void ConfigureColumns(ShellColumns<ProductModel, ProductDimensionUnit> columns)
  8. {
  9. columns
  10. .Map(nameof(ID), x => x.ID)
  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 Guid ID => Get<Guid>();
  22. public string Code => Get<string>();
  23. public string Description => Get<string>();
  24. public bool HasHeight => Get<bool>();
  25. public bool HasLength => Get<bool>();
  26. public bool HasWidth => Get<bool>();
  27. public bool HasWeight => Get<bool>();
  28. public bool HasQuantity => Get<bool>();
  29. public string Formula => Get<String>();
  30. public string Format => Get<String>();
  31. }
  32. }