| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?xml version="1.0" encoding="UTF-8"?>
- <timesheets:BasePage
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:timesheets ="clr-namespace:comal.timesheets"
- xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
- x:Class="comal.timesheets.DeliveryList"
- Title="Logistics"
- >
-
- <timesheets:BasePage.Resources>
- <timesheets:DateTimeToBooleanConverter
- x:Key="DateTimeToBooleanConverter"
- EmptyResult="False"/>
- </timesheets:BasePage.Resources>
-
- <timesheets:BasePage.ActionButtons>
-
- <ImageButton
- x:Name="addDelivery"
- Source="add"
- Clicked="AddDelivery_Clicked"/>
-
- <ImageButton
- x:Name="_filter"
- Source="filter"
- Clicked="_filter_OnClicked" />
-
- </timesheets:BasePage.ActionButtons>
-
- <timesheets:BasePage.PageContent>
- <Grid Grid.RowSpacing="0">
-
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <timesheets:MobileSearchBar
- x:Name="_search"
- PlaceHolder="Search"
- TextChanged="_search_OnTextChanged"/>
-
- <timesheets:MobileList
- x:Name="_deliveries"
- Grid.Row="1"
- RowHeight="80"
- PullToRefresh="True"
- Refresh="MobileList_OnRefresh"
- ItemTapped="Deliveries_OnItemTapped">
-
- <timesheets:MobileList.ItemTemplate>
-
- <DataTemplate>
- <ui:MaterialCard
- CornerRadius="5"
- Elevation="0"
- HorizontalOptions="FillAndExpand"
- BorderColor="Silver"
- Margin="5,0,5,5"
- BackgroundColor="White"
- Padding="5">
-
- <Grid x:DataType="timesheets:DeliveryShell">
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="40" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="80" />
- <ColumnDefinition Width="40" />
- </Grid.ColumnDefinitions>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <ui:MaterialLabel
- Text="{Binding Number}"
- Grid.Row="0"
- Grid.Column="0"
- TypeScale="Subtitle2"
- LineHeight="1"
- HorizontalTextAlignment="Center"/>
-
- <ui:MaterialLabel
- Text="{Binding Address}"
- Grid.Row="0"
- Grid.Column="1"
- TypeScale="Body2"
- LineHeight="1"
- LineBreakMode="TailTruncation"/>
-
- <ui:MaterialLabel
- Text="{Binding Date, StringFormat='{}{0:dd/MM/yy}'}"
- Grid.Row="0"
- Grid.Column="2"
- TypeScale="Subtitle2"
- LineHeight="1"
- HorizontalTextAlignment="Center"/>
-
- <Image
- Source="tick"
- Grid.Column="3"
- Grid.Row="0"
- Grid.RowSpan="2"
- IsVisible="{Binding Delivered, Converter={StaticResource DateTimeToBooleanConverter}}"
- HeightRequest="40"
- WidthRequest="40"/>
-
- <ui:MaterialLabel
- Text="{Binding Job}"
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- TypeScale="Subtitle2"
- LineHeight="1"
- LineBreakMode="TailTruncation"/>
-
- </Grid>
- </ui:MaterialCard>
- </DataTemplate>
- </timesheets:MobileList.ItemTemplate>
-
- </timesheets:MobileList>
-
- </Grid>
-
- </timesheets:BasePage.PageContent>
- </timesheets:BasePage>
|