FrameDetailsPage.xaml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. x:Class="comal.timesheets.FrameDetailsPage"
  8. Title = "Frame Details"
  9. x:DataType="timesheets:DeliveryItemDetailModel"
  10. >
  11. <timesheets:BasePage.Resources>
  12. <timesheets:EnumerableToBooleanConverter x:Key="EnumerableToBooleanConverter" />
  13. </timesheets:BasePage.Resources>
  14. <timesheets:BasePage.PageContent>
  15. <ScrollView>
  16. <StackLayout Orientation="Vertical">
  17. <material:MaterialLabel TypeScale="H6" Text="Barcode" HorizontalTextAlignment="Center"/>
  18. <material:MaterialLabel TypeScale="Body1" Text="{Binding Item.Barcode}" HorizontalTextAlignment="Center"/>
  19. <material:MaterialLabel TypeScale="H6" Text="Description" HorizontalTextAlignment="Center"/>
  20. <material:MaterialLabel TypeScale="Body1" Padding="2" Text="{Binding Item.Description}" HorizontalTextAlignment="Center"/>
  21. <material:MaterialLabel TypeScale="H6" Text="Location" HorizontalTextAlignment="Center"/>
  22. <material:MaterialLabel TypeScale="Body1" Padding="2" Text="{Binding Item.Location}" HorizontalTextAlignment="Center"/>
  23. <material:MaterialLabel TypeScale="H6" Text="Job Details" HorizontalTextAlignment="Center"/>
  24. <material:MaterialLabel TypeScale="Body1" Padding="2" Text="{Binding Item.Job}" HorizontalTextAlignment="Center"/>
  25. <material:MaterialLabel TypeScale="H6" Text="Setout Details" HorizontalTextAlignment="Center"/>
  26. <material:MaterialLabel TypeScale="Body2" Padding="2" Text="{Binding Item.Setout}" HorizontalTextAlignment="Center"/>
  27. <material:MaterialLabel TypeScale="H6" Text="Serial Number" HorizontalTextAlignment="Center"/>
  28. <material:MaterialLabel TypeScale="Body2" Padding="2" Text="{Binding Item.SerialNumber}" HorizontalTextAlignment="Center"/>
  29. <material:MaterialLabel
  30. TypeScale="H6"
  31. Text="Delivery Drawings"
  32. HorizontalTextAlignment="Center"/>
  33. <timesheets:MobileList
  34. x:Name="_deliveryDocuments"
  35. ItemsSource="{Binding DeliveryDocuments}"
  36. VerticalOptions="Start"
  37. BackgroundColor="Green"
  38. PullToRefresh="False"
  39. RowHeight="80"
  40. HeightRequest="100">
  41. <timesheets:MobileList.ItemTemplate>
  42. <DataTemplate x:DataType="timesheets:DeliveryItemDetailDeliveryDocumentShell">
  43. <Frame HeightRequest="100" BackgroundColor="White" BorderColor="Black" CornerRadius="5" Margin="5,5,5,0">
  44. <Label Text="Hi There" />
  45. <!-- <timesheets:ActionButton Text="{Binding FileName}" Clicked="Document_Clicked" /> -->
  46. </Frame>
  47. </DataTemplate>
  48. </timesheets:MobileList.ItemTemplate>
  49. </timesheets:MobileList>
  50. <material:MaterialLabel
  51. TypeScale="H6"
  52. Text="Manufacturing Drawings"
  53. HorizontalTextAlignment="Center"/>
  54. <timesheets:MobileList
  55. x:Name="_setoutDocuments"
  56. ItemsSource="{Binding SetoutDocuments}"
  57. VerticalOptions="Start"
  58. PullToRefresh="False">
  59. <timesheets:MobileList.ItemTemplate>
  60. <DataTemplate x:DataType="timesheets:DeliveryItemDetailSetoutDocumentShell">
  61. <timesheets:ActionButton Text="{Binding FileName}" Clicked="Document_Clicked" />
  62. </DataTemplate>
  63. </timesheets:MobileList.ItemTemplate>
  64. </timesheets:MobileList>
  65. <material:MaterialLabel
  66. TypeScale="H6"
  67. Text="--End--"
  68. HorizontalTextAlignment="Center"/>
  69. </StackLayout>
  70. </ScrollView>
  71. </timesheets:BasePage.PageContent>
  72. </timesheets:BasePage>