StoreRequiConfirmationPage.xaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <timesheets:BasePage xmlns:timesheets="clr-namespace:comal.timesheets"
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  6. x:Class="comal.timesheets.StoreRequis.StoreRequiConfirmationPage"
  7. Title="Confirm Details">
  8. <timesheets:BasePage.ActionButtons>
  9. <ImageButton Source="floppydisk" Clicked="SaveBtn_Clicked"/>
  10. </timesheets:BasePage.ActionButtons>
  11. <timesheets:BasePage.PageContent>
  12. <ScrollView>
  13. <StackLayout Orientation="Vertical" VerticalOptions="StartAndExpand" Padding="5">
  14. <!--Row 0 Title-->
  15. <Frame HasShadow="False" BorderColor="Gray" Padding="10" >
  16. <material:MaterialLabel x:Name="titleLbl" Text="" TypeScale="H6" HorizontalTextAlignment="Center" Margin="5" HorizontalOptions="Center"/>
  17. </Frame>
  18. <!--Row 1 Requi Status-->
  19. <material:MaterialLabel x:Name="requiStatusLbl" Text="Requi Status" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" IsVisible="false"/>
  20. <Frame x:Name="requiStatusFrame" HasShadow="False" BorderColor="Gray" Padding="10" IsVisible="false">
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="*"/>
  24. <ColumnDefinition Width="*"/>
  25. </Grid.ColumnDefinitions>
  26. <RadioButton Grid.Column="0" Content="For Delivery" FontSize="Medium" FontAttributes="Bold" TextColor="PaleVioletRed"
  27. x:Name="forDeliveryRb" HorizontalOptions="Start" VerticalOptions="Center"/>
  28. <RadioButton Grid.Column="1" Content="Taken By Me Now" FontSize="Medium" FontAttributes="Bold" TextColor="PaleVioletRed"
  29. x:Name="takenNowRb" HorizontalOptions="Start" VerticalOptions="Center"/>
  30. </Grid>
  31. </Frame>
  32. <!--Row 2 Job-->
  33. <material:MaterialLabel Text="Job" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5"/>
  34. <Frame HasShadow="False" Padding="10" BorderColor="Red" x:Name="jobFrame">
  35. <Grid>
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="*"/>
  38. <ColumnDefinition Width="auto"/>
  39. </Grid.ColumnDefinitions>
  40. <Label Grid.Column="0" x:Name="jobLbl" LineBreakMode="WordWrap" VerticalOptions="Center" FontSize="Medium" FontAttributes="Bold"/>
  41. <Button Grid.Column="1" x:Name="selectJobBtn" Clicked="SelectJobBtn_Clicked" Text="Select" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  42. </Grid>
  43. </Frame>
  44. <!--Row 3 Notes-->
  45. <material:MaterialLabel Text="Notes" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" x:Name="notesTitleLbl"/>
  46. <Frame HasShadow="False" BorderColor="Gray" Padding="10" >
  47. <Editor x:Name="notesEdt" AutoSize="TextChanges" Placeholder="Edit"/>
  48. </Frame>
  49. <!--Row 4 Boxes-->
  50. <material:MaterialLabel x:Name="boxesLbl" Text="No. of boxes / packages" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" IsVisible="false"/>
  51. <Frame HasShadow="False" BorderColor="Gray" Padding="10" x:Name="boxesQtyFrame" IsVisible="false">
  52. <Grid>
  53. <Grid.ColumnDefinitions>
  54. <ColumnDefinition Width="60"/>
  55. <!--col 0-->
  56. <ColumnDefinition Width="*"/>
  57. <!--col 2-->
  58. <ColumnDefinition Width="60"/>
  59. <!--col 3-->
  60. </Grid.ColumnDefinitions>
  61. <!--col 0-->
  62. <Button Grid.Column="0"
  63. x:Name="reduceQtyBtn" Text="-" Clicked="ReduceQtyBtn_Clicked"
  64. FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" VerticalOptions="Center" Margin="5,0,0,0" CornerRadius="5"/>
  65. <!--col 1-->
  66. <Label Grid.Column="1"
  67. x:Name="boxQtyLbl"
  68. FontSize="Large" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" VerticalOptions="Center"/>
  69. <!--col 2-->
  70. <Button Grid.Column="2"
  71. x:Name="increaseQtyBtn" Text="+" Clicked="IncreaseQtyBtn_Clicked"
  72. FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" VerticalOptions="Center" Margin="0,0,5,0" CornerRadius="5"/>
  73. </Grid>
  74. </Frame>
  75. <!--Row 5 Photos-->
  76. <material:MaterialLabel x:Name="photosLbl" Text="Photos" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" IsVisible="false"/>
  77. <Frame HasShadow="False" Padding="10" BorderColor="Red" x:Name="photosFrame" IsVisible="false">
  78. <StackLayout Orientation="Vertical">
  79. <Label Text="Tap on photo to view / delete" HorizontalOptions="Center" VerticalOptions="Center"/>
  80. <ScrollView Orientation="Horizontal" x:Name="ImageScroller" IsVisible="false">
  81. <StackLayout x:Name="images" Orientation="Horizontal" HeightRequest="150" HorizontalOptions="StartAndExpand" VerticalOptions="Fill"/>
  82. </ScrollView>
  83. <Grid>
  84. <Grid.ColumnDefinitions>
  85. <ColumnDefinition Width="*"/>
  86. <ColumnDefinition Width="*"/>
  87. </Grid.ColumnDefinitions>
  88. <Button x:Name="TakePhoto" Grid.Column="0" Text="Camera" Clicked="TakePhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  89. <Button x:Name="ChooseImage" Grid.Column="1" Text="Library" Clicked="ChooseImage_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  90. </Grid>
  91. </StackLayout>
  92. </Frame>
  93. <!--Row 6 Requested By -->
  94. <!--<material:MaterialLabel x:Name="requestedByTitleLbl" Text="Requested By" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5"/>
  95. <Frame HasShadow="False" Padding="10" BorderColor="Gray" x:Name="requestedByFrame">
  96. <Label Grid.Row="1" Grid.Column="0" x:Name="requestedByLbl" LineBreakMode="WordWrap" VerticalOptions="Center" FontSize="Medium" FontAttributes="Bold"/>
  97. </Frame>-->
  98. <!--Row 7 Due-->
  99. <material:MaterialLabel Text="Due (tap to select)" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" x:Name="dueLbl"/>
  100. <Frame HasShadow="False" Padding="10" BorderColor="Gray" x:Name="dueFrame">
  101. <DatePicker x:Name="dueDatePckr" TextColor="DarkGray" DateSelected="DueDatePckr_DateSelected" IsEnabled="False"/>
  102. </Frame>
  103. </StackLayout>
  104. </ScrollView>
  105. </timesheets:BasePage.PageContent>
  106. </timesheets:BasePage>