ManufacturingScreen.xaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.ManufacturingScreen"
  5. Title="Manufacturing">
  6. <timesheets:BasePage.PageContent>
  7. <Grid>
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="50"/>
  10. <RowDefinition Height="auto"/>
  11. <RowDefinition Height="auto"/>
  12. <RowDefinition Height="auto"/>
  13. </Grid.RowDefinitions>
  14. <Grid Grid.Row="0">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="2*"/>
  17. <ColumnDefinition Width="3*"/>
  18. </Grid.ColumnDefinitions>
  19. <Label Grid.Column="0" Margin="3"
  20. Text="Packets: Loading" x:Name="titleLbl" HorizontalOptions="Center" HorizontalTextAlignment="Center" VerticalOptions="Center" FontAttributes="Bold" FontSize="Large"/>
  21. <Button Grid.Column="1" Margin="3" Clicked="JobFilterBtn_Clicked" x:Name="jobBtn" TextColor="White"
  22. Text="Job filter" BackgroundColor="#15C7C1" CornerRadius="10" HorizontalOptions="FillAndExpand" VerticalOptions="Center"/>
  23. </Grid>
  24. <timesheets:FilterOptionsControl x:Name="filterOptionsControl" Grid.Row="1"/>
  25. <Frame Grid.Row="2" BackgroundColor="Transparent" BorderColor="Transparent" CornerRadius="10" Padding="0" Margin="5">
  26. <Entry x:Name="searchEnt" TextChanged="SearchEnt_Changed" HorizontalTextAlignment="Start" Margin="0"
  27. TextColor="White" PlaceholderColor="White"
  28. VerticalOptions="Center" Placeholder="Search"/>
  29. </Frame>
  30. <ListView Grid.Row="3" x:Name="listView" HasUnevenRows="True" VerticalOptions="FillAndExpand">
  31. <ListView.ItemTemplate>
  32. <DataTemplate>
  33. <ViewCell Tapped="ListView_Tapped">
  34. <Frame BorderColor="#15C7C1" Margin="2" CornerRadius="15" Padding="5" HasShadow="False">
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="auto"/>
  38. <!--0-->
  39. <RowDefinition Height="auto"/>
  40. <!--1-->
  41. <RowDefinition Height="auto"/>
  42. <!--2-->
  43. <RowDefinition Height="auto"/>
  44. <!--3-->
  45. <RowDefinition Height="{Binding LastRowHeight}"/>
  46. <!--4-->
  47. </Grid.RowDefinitions>
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition Width="4*"/>
  50. <ColumnDefinition Width="2*"/>
  51. <ColumnDefinition Width="*"/>
  52. </Grid.ColumnDefinitions>
  53. <!--Column 0-->
  54. <Label Grid.Row="0" Grid.Column="0" Text="{Binding Serial}" FontAttributes="Bold" TextColor="PaleVioletRed"
  55. />
  56. <Label Grid.Row="1" Grid.Column="0" LineBreakMode="WordWrap" MaxLines="6" FontAttributes="Bold"
  57. Text="{Binding Title}" HorizontalOptions="Start"/>
  58. <Label Grid.Row="2" Grid.Column="0" VerticalOptions="End"
  59. Text="{Binding Location}"/>
  60. <Label Grid.Row="3" Grid.Column="0"
  61. Text="{Binding JobName}"/>
  62. <Label Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3"
  63. HorizontalOptions="FillAndExpand" FontAttributes="Bold" FontSize="Medium" VerticalOptions="Center"
  64. IsVisible="{Binding OnOrderVisible}" HorizontalTextAlignment="Center"
  65. Text="{Binding OrderETA}" BackgroundColor="#cb99c9"
  66. />
  67. <!--Column 1-->
  68. <Label Grid.Row="0" Grid.Column="1" FontAttributes="Bold"
  69. Text="{Binding SetoutNumber}"/>
  70. <Label Grid.Row="1" Grid.Column="1"
  71. Text="{Binding Created}"/>
  72. <Label Grid.Row="2" Grid.Column="1"
  73. Text="{Binding DueDate}"/>
  74. <Label Grid.Row="3" Grid.Column="1"
  75. Text="{Binding StageLinkPercentage}"/>
  76. <!--Column 2-->
  77. <Grid Grid.Column="2" Grid.Row="0" Grid.RowSpan="4" VerticalOptions="Center" HorizontalOptions="Center">
  78. <Grid.RowDefinitions>
  79. <RowDefinition Height="auto"/>
  80. <RowDefinition Height="auto"/>
  81. <RowDefinition Height="auto"/>
  82. </Grid.RowDefinitions>
  83. <Image Grid.Row="0" HeightRequest="{Binding ImageHeight}" WidthRequest="{Binding ImageWidth}"
  84. HorizontalOptions="Center" VerticalOptions="Center"
  85. Source="{Binding ImagePath}"/>
  86. <Label Grid.Row="1" FontSize="30"
  87. Text="{Binding Quantity}"/>
  88. <Label Grid.Row="2"
  89. Text="{Binding TemplateLinkCode}"/>
  90. </Grid>
  91. </Grid>
  92. </Frame>
  93. </ViewCell>
  94. </DataTemplate>
  95. </ListView.ItemTemplate>
  96. </ListView>
  97. </Grid>
  98. </timesheets:BasePage.PageContent>
  99. </timesheets:BasePage>