NewPurchase.xaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <timesheets:BasePage
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. xmlns:timesheets="clr-namespace:comal.timesheets"
  7. material:MaterialNavigationPage.AppBarTitleTextFontSize="16.0"
  8. x:Class="comal.timesheets.NewPurchase"
  9. >
  10. <timesheets:BasePage.PageContent>
  11. <Grid Padding="10">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="Auto"/>
  17. <RowDefinition Height="Auto"/>
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition Height="Auto"/>
  20. <RowDefinition Height="Auto"/>
  21. <RowDefinition Height="*"/>
  22. <RowDefinition Height="Auto"/>
  23. <RowDefinition Height="Auto"/>
  24. <RowDefinition Height="60"/>
  25. </Grid.RowDefinitions>
  26. <material:MaterialLabel Grid.Row="0" TypeScale="Body2" Text="Job"/>
  27. <Grid Grid.Row="1">
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="60"/>
  30. <ColumnDefinition Width="*"/>
  31. <ColumnDefinition Width="50"/>
  32. </Grid.ColumnDefinitions>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="Auto"/>
  35. </Grid.RowDefinitions>
  36. <material:MaterialLabel TypeScale="Body2" Grid.Column="0" BackgroundColor="LightYellow" Text="{Binding JobLink.JobNumber}" VerticalTextAlignment="Center"/>
  37. <material:MaterialLabel TypeScale="Body2" Padding="2,0,0,0" Grid.Column="1" BackgroundColor="LightYellow" Text="{Binding JobLink.Name}" VerticalTextAlignment="Center"/>
  38. <material:MaterialButton x:Name="SelectJob" Margin="-5" Padding="0" Grid.Column="2" Text=".." Clicked="SelectJob_Clicked" />
  39. </Grid>
  40. <material:MaterialLabel Grid.Row="2" Margin="0,10,0,0" TypeScale="Body2" Text="Title"/>
  41. <Entry x:Name="PurchTitle" Grid.Row="3" Text="{Binding Title}" TextChanged="Title_TextChanged" BackgroundColor="LightYellow" />
  42. <material:MaterialLabel Grid.Row="4" Margin="0,10,0,0" TypeScale="Body2" Text="Items Required"/>
  43. <Editor x:Name="Notes" Grid.Row="5" Grid.Column="0" BackgroundColor="LightYellow" Keyboard="Default" TextChanged="Notes_TextChanged"/>
  44. <material:MaterialButton x:Name="SavePurch" Margin="0,10,0,0" Grid.Row="8" Text="Save Requisition" Clicked="SavePurch_Clicked" IsEnabled="False" />
  45. </Grid>
  46. </timesheets:BasePage.PageContent>
  47. </timesheets:BasePage>