67 lines
3.9 KiB
XML
67 lines
3.9 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.PageTuiHuo">
|
|
<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" Grid.Column="0" Grid.Row="1"/>
|
|
<Picker x:Name="BrandPicker" FontSize="20"
|
|
ItemsSource="{Binding CauseItems}"
|
|
ItemDisplayBinding="{Binding title}"
|
|
SelectedIndexChanged="OnCauseSelectedIndexChangedAsync"
|
|
Title="默认原因"
|
|
HorizontalOptions="FillAndExpand"
|
|
TitleColor="Red">
|
|
</Picker>
|
|
</StackLayout>
|
|
<StackLayout Orientation="Horizontal" BackgroundColor="SlateGray">
|
|
<Label Text="备注:" VerticalTextAlignment="Center" HorizontalOptions="Start" FontSize="25" />
|
|
<Editor x:Name="Note" HorizontalOptions="FillAndExpand" FontSize="25"/>
|
|
</StackLayout>
|
|
<StackLayout Orientation="Horizontal" VerticalOptions="FillAndExpand" BackgroundColor="Gray">
|
|
<ListView ItemsSource="{Binding Items , Mode=OneWay}"
|
|
VerticalOptions="FillAndExpand"
|
|
HasUnevenRows="true"
|
|
IsPullToRefreshEnabled="true"
|
|
IsRefreshing="{Binding IsBusy, Mode=OneWay}"
|
|
CachingStrategy="RecycleElement">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell>
|
|
<StackLayout Padding="10" Orientation="Horizontal">
|
|
<Label Text="{Binding Code}" HorizontalOptions="Start"
|
|
LineBreakMode="NoWrap"
|
|
Style="{DynamicResource ListItemTextStyle}"
|
|
FontSize="16" />
|
|
<Label Text="{Binding Data}" HorizontalOptions="CenterAndExpand"
|
|
d:Text="Item descripton"
|
|
LineBreakMode="NoWrap"
|
|
Style="{DynamicResource ListItemDetailTextStyle}"
|
|
FontSize="13" />
|
|
<Label Text="{Binding Msg}" HorizontalOptions="EndAndExpand"
|
|
d:Text="Item descripton"
|
|
LineBreakMode="NoWrap"
|
|
Style="{DynamicResource ListItemDetailTextStyle}"
|
|
FontSize="13" />
|
|
</StackLayout>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</StackLayout>
|
|
<StackLayout Orientation="Horizontal" VerticalOptions="End" BackgroundColor="SlateGray">
|
|
<Button Text="提交" HorizontalOptions="FillAndExpand" Clicked="Button_ClickedAsync"/>
|
|
<Button Text="扫码提交" HorizontalOptions="FillAndExpand" Clicked="OnScan"/>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</ContentPage.Content>
|
|
</ContentPage> |