ConsignmentDetailsPopup.xaml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <timesheets:BasePage xmlns:timesheets="clr-namespace:comal.timesheets" xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="comal.timesheets.ConsignmentDetailsPopup"
  5. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. material:MaterialNavigationPage.AppBarColor="#a2006d"
  7. Title="Confirm PO Item Details">
  8. <timesheets:BasePage.PageContent>
  9. <ScrollView HorizontalOptions="Center">
  10. <StackLayout>
  11. <Frame BorderColor="#9f4576" CornerRadius="10" Margin="3">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="auto"/>
  15. <RowDefinition Height="auto"/>
  16. <RowDefinition Height="auto"/>
  17. <RowDefinition Height="auto"/>
  18. </Grid.RowDefinitions>
  19. <Frame Grid.Row="0" BorderColor="#9f4576" CornerRadius="10">
  20. <Label x:Name="titleLbl" HorizontalOptions="Center" FontSize="Medium" FontAttributes="Bold"/>
  21. </Frame>
  22. <Frame Grid.Row="1" BorderColor="#9f4576" CornerRadius="10">
  23. <StackLayout>
  24. <Grid>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="2*"/>
  27. <ColumnDefinition Width="*"/>
  28. </Grid.ColumnDefinitions>
  29. <Label Grid.Column="0"
  30. Text="Choose Location:" HorizontalOptions="Center" FontSize="Medium" FontAttributes="Bold" VerticalOptions="Center"/>
  31. <Button Grid.Column="1"
  32. x:Name="locationBtn" Text="Add" Clicked="AddLocation_Clicked" HorizontalOptions="FillAndExpand"
  33. Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="5"/>
  34. </Grid>
  35. <Grid HorizontalOptions="Center">
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="auto"/>
  38. <ColumnDefinition Width="auto"/>
  39. </Grid.ColumnDefinitions>
  40. <CheckBox Grid.Column="0" CheckedChanged="SetDefaultLocationCb_CheckChanged" VerticalOptions="Center"
  41. x:Name="setDefaultCb"/>
  42. <Label Grid.Column="1" VerticalOptions="Center"
  43. Text="Set as Default Location from now on"/>
  44. </Grid>
  45. <StackLayout x:Name="locationStackLayout">
  46. </StackLayout>
  47. </StackLayout>
  48. </Frame>
  49. <Frame Grid.Row="2" BorderColor="#9f4576" CornerRadius="10">
  50. <StackLayout>
  51. <Label Text="Qty: " HorizontalOptions="FillAndExpand" HorizontalTextAlignment="Center" FontSize="Medium" FontAttributes="Bold"/>
  52. <Entry x:Name="qtyEnt" HorizontalOptions="FillAndExpand" TextChanged="Qty_Changed" HorizontalTextAlignment="Center"/>
  53. </StackLayout>
  54. </Frame>
  55. <Frame Grid.Row="3" BorderColor="Transparent">
  56. <Button Text="Accept" HorizontalOptions="FillAndExpand" Clicked="AcceptBtn_Clicked"
  57. Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="5"/>
  58. </Frame>
  59. </Grid>
  60. </Frame>
  61. </StackLayout>
  62. </ScrollView>
  63. </timesheets:BasePage.PageContent>
  64. </timesheets:BasePage>