ConsignmentsModule.xaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mobile:MobilePage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  5. xmlns:local="clr-namespace:PRS.Mobile;assembly=PRS.Mobile"
  6. x:Class="PRS.Mobile.ConsignmentsModule">
  7. <mobile:MobilePage.PrimaryMenu>
  8. <mobile:MobileMenuButton
  9. x:Name="_filter"
  10. Image="lines"/>
  11. </mobile:MobilePage.PrimaryMenu>
  12. <mobile:MobilePage.PageContent>
  13. <Grid Grid.RowSpacing="5" Margin="5" ColumnSpacing="5">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="*"/>
  17. </Grid.RowDefinitions>
  18. <mobile:MobileSearchBar
  19. x:Name="_search"
  20. Grid.Row="0"
  21. PlaceHolder="Search"
  22. TextChanged="_search_OnTextChanged"/>
  23. <mobile:MobileListView
  24. x:Name="_consignmentlist"
  25. Grid.Row="1"
  26. PullToRefresh="True"
  27. RefreshRequested="MobileList_OnRefresh"
  28. HasUnevenRows="True"
  29. ShowRecordCount="True">
  30. <mobile:MobileListView.ItemTemplate>
  31. <DataTemplate x:DataType="local:ConsignmentShell">
  32. <ViewCell>
  33. <mobile:MobileCard
  34. IsClickable="True"
  35. Clicked="Consignment_Clicked"
  36. BackgroundColor="{StaticResource Theme.Surface}"
  37. Padding="5"
  38. Margin="0,0,0,5">
  39. <Grid x:DataType="local:ConsignmentShell">
  40. <Grid.ColumnDefinitions>
  41. <ColumnDefinition Width="Auto" />
  42. <ColumnDefinition Width="*" />
  43. <ColumnDefinition Width="Auto" />
  44. </Grid.ColumnDefinitions>
  45. <Grid.RowDefinitions>
  46. <RowDefinition Height="Auto"/>
  47. <RowDefinition Height="Auto"/>
  48. </Grid.RowDefinitions>
  49. <Label
  50. Text="{Binding Number}"
  51. Grid.Row="0"
  52. Grid.Column="0"
  53. Grid.ColumnSpan="2"
  54. FontSize="Small"
  55. TextColor="{Binding Number}"
  56. LineHeight="1"/>
  57. <Label
  58. Text="{Binding EstimatedWarehouseArrival, StringFormat='{}{0:dd MMM yy}'}"
  59. Grid.Row="0"
  60. Grid.Column="2"
  61. FontSize="Small"
  62. TextColor="{StaticResource Theme.OnSurface}"
  63. LineHeight="1"
  64. HorizontalTextAlignment="Center"/>
  65. <Label
  66. Text="{Binding SupplierName}"
  67. Grid.Row="1"
  68. Grid.Column="0"
  69. Grid.ColumnSpan="3"
  70. FontSize="Small"
  71. TextColor="{StaticResource Theme.OnSurface}"
  72. LineHeight="1"
  73. HorizontalTextAlignment="Start"
  74. LineBreakMode="TailTruncation"/>
  75. </Grid>
  76. </mobile:MobileCard>
  77. </ViewCell>
  78. </DataTemplate>
  79. </mobile:MobileListView.ItemTemplate>
  80. </mobile:MobileListView>
  81. <mobile:MobileMenuButton
  82. Grid.Row="1"
  83. HorizontalOptions="End"
  84. VerticalOptions="End"
  85. Margin="5,5,0,25"
  86. HeightRequest="50"
  87. WidthRequest="50"
  88. Image="plus"
  89. Clicked="AddConsignment_Clicked"/>
  90. </Grid>
  91. </mobile:MobilePage.PageContent>
  92. </mobile:MobilePage>