StoreRequiList.xaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <mobile:MobilePage xmlns:local="clr-namespace:PRS.Mobile" 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. x:Class="PRS.Mobile.StoreRequiList"
  6. Title="Store Requis">
  7. <mobile:MobilePage.PageContent>
  8. <StackLayout>
  9. <!--Take stock now-->
  10. <Frame BorderColor="#15C7C1" Margin="7" CornerRadius="15" Padding="5" HasShadow="False">
  11. <Frame.GestureRecognizers>
  12. <TapGestureRecognizer Tapped="TakeStockNow_Tapped"/>
  13. </Frame.GestureRecognizers>
  14. <Grid >
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="50"/>
  17. <RowDefinition Height="50"/>
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="auto"/>
  21. <ColumnDefinition Width="*"/>
  22. </Grid.ColumnDefinitions>
  23. <ImageButton Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" CornerRadius="10" x:Name="takerequinow"
  24. Aspect="AspectFit" Clicked="TakeStockNow_Tapped" Margin="10, 5, 10, 5"
  25. HorizontalOptions="Start" VerticalOptions="Center" Source="takerequinow"/>
  26. <Label Grid.Row="0" Grid.Column="1" VerticalOptions="End" FontAttributes="Bold" FontSize="Medium"
  27. Text="Take Stock Now"/>
  28. <Label Grid.Row="1" Grid.Column="1" VerticalOptions="Start"
  29. Text="Sign out items from stores"/>
  30. </Grid>
  31. </Frame>
  32. <!--New request-->
  33. <Frame BorderColor="#15C7C1" Margin="5" CornerRadius="15" Padding="5" HasShadow="False">
  34. <Frame.GestureRecognizers>
  35. <TapGestureRecognizer Tapped="NewRequiRequest_Tapped"/>
  36. </Frame.GestureRecognizers>
  37. <Grid >
  38. <Grid.RowDefinitions>
  39. <RowDefinition Height="50"/>
  40. <RowDefinition Height="50"/>
  41. </Grid.RowDefinitions>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="auto"/>
  44. <ColumnDefinition Width="*"/>
  45. </Grid.ColumnDefinitions>
  46. <ImageButton Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" CornerRadius="10" Margin="10, 5, 10, 5"
  47. HorizontalOptions="Start" VerticalOptions="Center" Source="newrequirequest" Aspect="AspectFit" Clicked="NewRequiRequest_Tapped"
  48. x:Name="imageBtn0" />
  49. <Label Grid.Row="0" Grid.Column="1" VerticalOptions="End" FontAttributes="Bold" FontSize="Medium"
  50. Text="New Requi Request"
  51. x:Name="titleLbl0"/>
  52. <Label Grid.Row="1" Grid.Column="1" VerticalOptions="Start"
  53. Text="Create a requi to be filled"
  54. />
  55. </Grid>
  56. </Frame>
  57. <!--Existing requis-->
  58. <Frame BorderColor="#9f4576" Margin="5" CornerRadius="15" Padding="5" HasShadow="False">
  59. <StackLayout>
  60. <Grid HorizontalOptions="Center">
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition Width="auto"/>
  63. <ColumnDefinition Width="*"/>
  64. </Grid.ColumnDefinitions>
  65. <Image Grid.Column="0" x:Name="storereqimg"
  66. Aspect="AspectFit" HeightRequest="60" Source="storerequis" HorizontalOptions="End"
  67. VerticalOptions="Center" Margin="2, 6, 0, 2"/>
  68. <Label Grid.Column="1" Margin="1, 2, 2, 2"
  69. Text="List of Unfilled Requis" HorizontalOptions="Start" HorizontalTextAlignment="Center" VerticalOptions="Center"
  70. FontAttributes="Bold" FontSize="Large" x:Name="listLbl" TextColor="#9f4576"/>
  71. </Grid>
  72. <Label Text="Tap to open and fill" HorizontalOptions="Center" HorizontalTextAlignment="Center" VerticalOptions="Center"
  73. />
  74. <ListView x:Name="requisListView" HasUnevenRows="True" BackgroundColor="Transparent" Grid.Row="1"
  75. Margin="0,5,0,0">
  76. <ListView.ItemTemplate>
  77. <DataTemplate>
  78. <ViewCell Tapped="Requi_Clicked">
  79. <Frame Padding="5" BorderColor="#15C7C1" Margin="5" CornerRadius="10" HasShadow="False">
  80. <Grid>
  81. <Grid.RowDefinitions>
  82. <RowDefinition Height="auto"/>
  83. <RowDefinition Height="auto"/>
  84. <RowDefinition Height="auto"/>
  85. </Grid.RowDefinitions>
  86. <Grid.ColumnDefinitions>
  87. <ColumnDefinition Width="*"/>
  88. <ColumnDefinition Width="auto"/>
  89. </Grid.ColumnDefinitions>
  90. <!--row 0-->
  91. <Label Grid.Row="0" Grid.Column="0" TextColor="#9f4576"
  92. Text="{Binding Number}" FontSize="Medium" FontAttributes="Bold" VerticalTextAlignment="Center"/>
  93. <Label Grid.Row="0" Grid.Column="1"
  94. Text="{Binding EstimatedWarehouseArrival}" FontSize="Medium" FontAttributes="Bold" VerticalTextAlignment="Center" HorizontalTextAlignment="End"/>
  95. <!--row 1-->
  96. <Label Grid.Row="1" Grid.Column="0"
  97. Text="{Binding Contact}" FontSize="Medium" FontAttributes="Bold" VerticalTextAlignment="Center"/>
  98. <Label Grid.Row="1" Grid.Column="1"
  99. Text="{Binding Job}" FontSize="Small" FontAttributes="Bold" VerticalTextAlignment="Center" HorizontalTextAlignment="End"/>
  100. <!--row 2-->
  101. <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
  102. Text="{Binding Request}" FontSize="Small" VerticalTextAlignment="Center" LineBreakMode="WordWrap"/>
  103. </Grid>
  104. </Frame>
  105. </ViewCell>
  106. </DataTemplate>
  107. </ListView.ItemTemplate>
  108. </ListView>
  109. </StackLayout>
  110. </Frame>
  111. </StackLayout>
  112. </mobile:MobilePage.PageContent>
  113. </mobile:MobilePage>