Files
xxcpzs/XXCpzs/Views/PageChuCang.xaml
2020-04-03 11:55:02 +08:00

84 lines
4.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="{Binding Title}"
x:Class="XXCpzs.Views.PageChuCang">
<ContentPage.Content>
<StackLayout Orientation="Vertical">
<StackLayout Orientation="Horizontal" BackgroundColor="SlateGray">
<Label Text=" 序 列 号:" VerticalTextAlignment="Center" HorizontalOptions="Start" FontSize="25" />
<Editor x:Name="SerialNumber" HorizontalOptions="FillAndExpand" />
</StackLayout>
<StackLayout Orientation="Horizontal" BackgroundColor="Gray">
<Label Text="发货目标:" VerticalTextAlignment="Center" HorizontalOptions="Start" FontSize="25"/>
<Picker x:Name="BrandPicker"
ItemsSource="{Binding CangKuItems}"
FontSize="20"
ItemDisplayBinding="{Binding title}"
Title="请选择发货目标"
HorizontalOptions="FillAndExpand"
SelectedIndexChanged="OnBumenPickerSelectedIndexChangedAsync"
TitleColor="Red">
</Picker>
</StackLayout>
<StackLayout Orientation="Horizontal" BackgroundColor="Gray">
<Label Text="备注:" VerticalTextAlignment="Center" HorizontalOptions="Start" FontSize="25" />
<Editor x:Name="NewSerialNumber" HorizontalOptions="FillAndExpand" FontSize="25"/>
</StackLayout>
<StackLayout Orientation="Horizontal" VerticalOptions="FillAndExpand" BackgroundColor="SlateGray">
<ListView BackgroundColor="GreenYellow"
ItemsSource="{Binding Items , Mode=OneWay}"
VerticalOptions="FillAndExpand"
HasUnevenRows="true"
IsPullToRefreshEnabled="true"
IsRefreshing="{Binding IsBusy, Mode=OneWay}"
CachingStrategy="RecycleElement" >
<ListView.Header>
<StackLayout Padding="10" Orientation="Horizontal">
<Label Text="ID" HorizontalOptions="Start"
LineBreakMode="NoWrap"
FontSize="16" />
<Label Text="序列号" HorizontalOptions="CenterAndExpand"
LineBreakMode="NoWrap"
FontSize="13" />
<Label Text="提交结果" HorizontalOptions="EndAndExpand"
LineBreakMode="NoWrap"
FontSize="13" />
</StackLayout>
</ListView.Header>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Padding="10" Orientation="Horizontal">
<Label Text="{Binding Code}" HorizontalOptions="Start"
LineBreakMode="NoWrap" d:Text="ID"
Style="{DynamicResource ListItemTextStyle}"
FontSize="16" />
<Label Text="{Binding Data}" HorizontalOptions="CenterAndExpand"
d:Text="序列号"
LineBreakMode="NoWrap"
Style="{DynamicResource ListItemDetailTextStyle}"
FontSize="13" />
<Label Text="{Binding Msg}" HorizontalOptions="EndAndExpand"
d:Text="提交结果"
LineBreakMode="NoWrap"
Style="{DynamicResource ListItemDetailTextStyle}"
FontSize="13" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
<StackLayout Orientation="Horizontal" VerticalOptions="End" BackgroundColor="Gray">
<Button Text="提 交" HorizontalOptions="FillAndExpand" Clicked="Button_ClickedAsync"/>
<Button Text="扫码提交" HorizontalOptions="FillAndExpand" Clicked="OnScan"/>
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>