| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?xml version="1.0" encoding="utf-8" ?>
- <timesheets:BasePage xmlns:timesheets="clr-namespace:comal.timesheets" xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="comal.timesheets.ManufacturingScreen"
- Title="Manufacturing">
- <timesheets:BasePage.PageContent>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="3*"/>
- </Grid.ColumnDefinitions>
- <Label Grid.Column="0" Margin="3"
- Text="Packets: Loading" x:Name="titleLbl" HorizontalOptions="Center" HorizontalTextAlignment="Center" VerticalOptions="Center" FontAttributes="Bold" FontSize="Large"/>
- <Button Grid.Column="1" Margin="3" Clicked="JobFilterBtn_Clicked" x:Name="jobBtn" TextColor="White"
- Text="Job filter" BackgroundColor="#15C7C1" CornerRadius="10" HorizontalOptions="FillAndExpand" VerticalOptions="Center"/>
- </Grid>
- <timesheets:FilterOptionsControl x:Name="filterOptionsControl" Grid.Row="1"/>
- <Frame Grid.Row="2" BackgroundColor="Transparent" BorderColor="Transparent" CornerRadius="10" Padding="0" Margin="5">
- <Entry x:Name="searchEnt" TextChanged="SearchEnt_Changed" HorizontalTextAlignment="Start" Margin="0"
- TextColor="White" PlaceholderColor="White"
- VerticalOptions="Center" Placeholder="Search"/>
- </Frame>
- <ListView Grid.Row="3" x:Name="listView" HasUnevenRows="True" VerticalOptions="FillAndExpand">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell Tapped="ListView_Tapped">
- <Frame BorderColor="#15C7C1" Margin="2" CornerRadius="15" Padding="5" HasShadow="False">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <!--0-->
- <RowDefinition Height="auto"/>
- <!--1-->
- <RowDefinition Height="auto"/>
- <!--2-->
- <RowDefinition Height="auto"/>
- <!--3-->
- <RowDefinition Height="{Binding LastRowHeight}"/>
- <!--4-->
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="4*"/>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <!--Column 0-->
- <Label Grid.Row="0" Grid.Column="0" Text="{Binding Serial}" FontAttributes="Bold" TextColor="PaleVioletRed"
- />
- <Label Grid.Row="1" Grid.Column="0" LineBreakMode="WordWrap" MaxLines="6" FontAttributes="Bold"
- Text="{Binding Title}" HorizontalOptions="Start"/>
- <Label Grid.Row="2" Grid.Column="0" VerticalOptions="End"
- Text="{Binding Location}"/>
- <Label Grid.Row="3" Grid.Column="0"
- Text="{Binding JobName}"/>
- <Label Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3"
- HorizontalOptions="FillAndExpand" FontAttributes="Bold" FontSize="Medium" VerticalOptions="Center"
- IsVisible="{Binding OnOrderVisible}" HorizontalTextAlignment="Center"
- Text="{Binding OrderETA}" BackgroundColor="#cb99c9"
- />
- <!--Column 1-->
- <Label Grid.Row="0" Grid.Column="1" FontAttributes="Bold"
- Text="{Binding SetoutNumber}"/>
- <Label Grid.Row="1" Grid.Column="1"
- Text="{Binding Created}"/>
- <Label Grid.Row="2" Grid.Column="1"
- Text="{Binding DueDate}"/>
- <Label Grid.Row="3" Grid.Column="1"
- Text="{Binding StageLinkPercentage}"/>
- <!--Column 2-->
- <Grid Grid.Column="2" Grid.Row="0" Grid.RowSpan="4" VerticalOptions="Center" HorizontalOptions="Center">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Image Grid.Row="0" HeightRequest="{Binding ImageHeight}" WidthRequest="{Binding ImageWidth}"
- HorizontalOptions="Center" VerticalOptions="Center"
- Source="{Binding ImagePath}"/>
- <Label Grid.Row="1" FontSize="30"
- Text="{Binding Quantity}"/>
- <Label Grid.Row="2"
- Text="{Binding TemplateLinkCode}"/>
- </Grid>
-
- </Grid>
- </Frame>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </timesheets:BasePage.PageContent>
- </timesheets:BasePage>
|