StockMovementBatchShell.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using Comal.Classes;
  4. using InABox.Mobile;
  5. using Xamarin.CommunityToolkit.ObjectModel;
  6. namespace PRS.Mobile
  7. {
  8. public class StockMovementBatchShell : Shell<StockMovementBatchModel, StockMovementBatch>
  9. {
  10. protected override void ConfigureColumns(ShellColumns<StockMovementBatchModel, StockMovementBatch> columns)
  11. {
  12. columns
  13. .Map(nameof(Type), x => x.Type)
  14. .Map(nameof(EmployeeID), x => x.Employee.ID)
  15. .Map(nameof(Notes), x=>x.Notes)
  16. .Map(nameof(Timestamp), x=>x.TimeStamp)
  17. ;
  18. }
  19. public StockMovementBatchType Type
  20. {
  21. get => Get<StockMovementBatchType>();
  22. set => Set(value);
  23. }
  24. public Guid EmployeeID
  25. {
  26. get => Get<Guid>();
  27. set => Set(value);
  28. }
  29. public String Notes
  30. {
  31. get => Get<String>();
  32. set => Set(value);
  33. }
  34. public DateTime Timestamp
  35. {
  36. get => Get<DateTime>();
  37. set => Set(value);
  38. }
  39. }
  40. }