StockTakeCompletionPage.xaml 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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" xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  4. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  5. x:Class="PRS.Mobile.StockTakeCompletionPage">
  6. <!-- <mobile:MobilePage.Resources> -->
  7. <!-- <local:StockTakeStatusConverter x:Key="StocktakeAllCorrectConverter" Status="AllCorrect" /> -->
  8. <!-- <local:StockTakeStatusConverter x:Key="StocktakeCompletedWithAdjustmentsConverter" Status="CompletedWithAdjustments" /> -->
  9. <!-- <local:StockTakeStatusConverter x:Key="StocktakeStillInProgressConverter" Status="StillInProgress" /> -->
  10. <!-- <local:StockTakeStatusConverter x:Key="StocktakeLocationNotFoundConverter" Status="LocationNotFound" /> -->
  11. <!-- </mobile:MobilePage.Resources> -->
  12. <mobile:MobilePage.PrimaryMenu>
  13. <Button HorizontalOptions="End" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  14. IsVisible="True" x:Name="saveBatchBtn"
  15. Text="Save" Clicked="SaveBatch_Clicked"/>
  16. </mobile:MobilePage.PrimaryMenu>
  17. <mobile:MobilePage.PageContent>
  18. <ScrollView>
  19. <StackLayout Margin="10">
  20. <!-- <Label Text="Stocktake Status" FontSize="Small" HorizontalTextAlignment="Start" Margin="5" HorizontalOptions="Center"/> -->
  21. <!-- <mobile:MobileRadioList x:Name="_stocktakeStatus"> -->
  22. <!-- <mobile:MobileRadioList.Items> -->
  23. <!-- <mobile:MobileRadioListItem x:Name="_statusAllOK" Text="All Quantities are Correct" IsChecked="{Binding StocktakeStatus, Converter={StaticResource StocktakeAllCorrectConverter}}" /> -->
  24. <!-- <mobile:MobileRadioListItem x:Name="_statusAdjustments" Text="Completed with Adjustments" IsChecked="{Binding StocktakeStatus, Converter={StaticResource StocktakeCompletedWithAdjustmentsConverter}}" /> -->
  25. <!-- <mobile:MobileRadioListItem x:Name="_statusIncomplete" Text="Still In Progress" IsChecked="{Binding StocktakeStatus, Converter={StaticResource StocktakeStillInProgressConverter}}" /> -->
  26. <!-- <mobile:MobileRadioListItem x:Name="_statusNotFound" Text="Location Not Found" IsChecked="{Binding StocktakeStatus, Converter={StaticResource StocktakeLocationNotFoundConverter}}" /> -->
  27. <!-- </mobile:MobileRadioList.Items> -->
  28. <!-- </mobile:MobileRadioList> -->
  29. <!--Row 0 Notes-->
  30. <Label Text="Notes" FontSize="Small" HorizontalTextAlignment="Start" Margin="5" HorizontalOptions="Center"/>
  31. <Frame HasShadow="False" Padding="10" BorderColor="Red" CornerRadius="10" x:Name="notesFrame">
  32. <StackLayout>
  33. <Editor x:Name="notesEdt" AutoSize="TextChanges" VerticalOptions="Center" FontSize="Medium" TextChanged="NotesEdt_Changed"/>
  34. <Label Text="Commonly used notes (select to add)" HorizontalOptions="Center" FontAttributes="Bold"/>
  35. <FlexLayout
  36. x:Name="optionsFlexLayout" BackgroundColor="Transparent"
  37. Wrap="Wrap"
  38. Direction="Row"
  39. JustifyContent="SpaceEvenly"
  40. AlignItems="Start"
  41. AlignContent="Start">
  42. </FlexLayout>
  43. </StackLayout>
  44. </Frame>
  45. <!--Row 1 Photos-->
  46. <material:MaterialLabel x:Name="photosLbl" Text="Photos" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" HorizontalOptions="Center"/>
  47. <Frame HasShadow="False" Padding="10" BorderColor="Red" x:Name="photosFrame" CornerRadius="10">
  48. <StackLayout Orientation="Vertical">
  49. <Label Text="Tap on photo to view / delete" HorizontalOptions="Center" VerticalOptions="Center"/>
  50. <ScrollView Orientation="Horizontal" x:Name="ImageScroller" IsVisible="false">
  51. <StackLayout x:Name="images" Orientation="Horizontal" HeightRequest="150" HorizontalOptions="StartAndExpand" VerticalOptions="Fill"/>
  52. </ScrollView>
  53. <Grid>
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition Width="*"/>
  56. <ColumnDefinition Width="*"/>
  57. </Grid.ColumnDefinitions>
  58. <Button x:Name="TakePhoto" Grid.Column="0" Text="Camera" Clicked="TakePhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  59. <Button x:Name="ChooseImage" Grid.Column="1" Text="Library" Clicked="ChooseImage_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  60. </Grid>
  61. </StackLayout>
  62. </Frame>
  63. </StackLayout>
  64. </ScrollView>
  65. </mobile:MobilePage.PageContent>
  66. </mobile:MobilePage>