You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
277 lines
18 KiB
277 lines
18 KiB
<Page x:Class="BBWY.Client.Views.PackTask.TaskList"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="2048"
|
|
Title="TaskList">
|
|
<Page.Resources>
|
|
|
|
<sys:Int32 x:Key="d0">0</sys:Int32>
|
|
<sys:Int32 x:Key="d1">1</sys:Int32>
|
|
<sys:Int32 x:Key="d3">2</sys:Int32>
|
|
<sys:Int32 x:Key="d7">6</sys:Int32>
|
|
<sys:Int32 x:Key="d15">14</sys:Int32>
|
|
<sys:Int32 x:Key="d30">29</sys:Int32>
|
|
|
|
</Page.Resources>
|
|
<Grid>
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
|
|
<Grid Margin="5,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="30"/>
|
|
<!---->
|
|
</Grid.RowDefinitions>
|
|
<Grid Background="{StaticResource Border.Background}" HorizontalAlignment="Left" Panel.ZIndex="999" Margin="0,5,0,0" Width="1000">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0" Height="30">
|
|
<StackPanel.Resources>
|
|
<Style TargetType="DatePickerTextBox">
|
|
<Setter Property="IsReadOnly" Value="True"/>
|
|
</Style>
|
|
</StackPanel.Resources>
|
|
<TextBlock Text="提交时间:" VerticalAlignment="Center" Margin="11,0,0,0"/>
|
|
<DatePicker SelectedDate="{Binding StartTime}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="10,0,0,0"/>
|
|
<DatePicker SelectedDate="{Binding EndTime}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="10,0,0,0"/>
|
|
<TextBlock Text="任务ID:" VerticalAlignment="Center" Margin="16,0,0,0"/>
|
|
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchTaskId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark=""/>
|
|
<TextBlock Text="SKU:" VerticalAlignment="Center" Margin="16,0,0,0"/>
|
|
<c:BTextBox Width="150" Margin="5,0,0,0" WaterRemark="" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Grid.Column="1" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Content="搜索" Width="80" VerticalAlignment="Stretch" Margin="5,0,0,0"
|
|
Command="{Binding SearchTaskCommand}"
|
|
Grid.RowSpan="2" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="1" Grid.RowSpan="1" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" x:Name="qb" IsChecked="True" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.全部}" >
|
|
<RadioButton.Style >
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="IsChecked" Value="False" />
|
|
<Setter Property="Background" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid Background="#F2F2F2" >
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="126" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleY="-1"/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<Run Text="全部"/>
|
|
</TextBlock>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="white"/>
|
|
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</RadioButton.Style>
|
|
</RadioButton>
|
|
<RadioButton VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.已到货}" >
|
|
<RadioButton.Style >
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="IsChecked" Value="False" />
|
|
<Setter Property="Background" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid Background="#F2F2F2" >
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="126" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleY="-1"/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<Run Text="已到货"/>
|
|
<Run Text="{Binding ArrivedCount ,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
|
Foreground="{StaticResource Text.Pink}" />
|
|
</TextBlock>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="white"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</RadioButton.Style>
|
|
</RadioButton>
|
|
<RadioButton VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.部分到货}" >>
|
|
<RadioButton.Style >
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="IsChecked" Value="False" />
|
|
<Setter Property="Background" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid Background="#F2F2F2" >
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="126" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleY="-1"/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<Run Text="部分到货"/>
|
|
<Run Text="{Binding SomeArrivedCount ,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
|
Foreground="{StaticResource Text.Pink}" />
|
|
</TextBlock>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="white"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</RadioButton.Style>
|
|
</RadioButton>
|
|
<RadioButton VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.未到货}" >
|
|
<RadioButton.Style >
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="IsChecked" Value="False" />
|
|
<Setter Property="Background" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid Background="#F2F2F2" >
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="126" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleY="-1"/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<Run Text="未到货"/>
|
|
<Run Text="{Binding NoArrivedCount ,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
|
Foreground="{StaticResource Text.Pink}" />
|
|
</TextBlock>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="white"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</RadioButton.Style>
|
|
</RadioButton>
|
|
<RadioButton VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.已完成}" >
|
|
<RadioButton.Style >
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="IsChecked" Value="False" />
|
|
<Setter Property="Background" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid Background="#F2F2F2" >
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="126" RenderTransformOrigin="0.5,0.5">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleY="-1"/>
|
|
<SkewTransform/>
|
|
<RotateTransform/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
<TextBlock Text="已完成" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="true">
|
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" />
|
|
<Setter Property="Foreground" Value="white"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</RadioButton.Style>
|
|
</RadioButton>
|
|
|
|
|
|
<Button Content="发布任务" Width="118" Height="35" VerticalAlignment="Stretch" Margin="50,0,0,0" Command="{Binding CreateTaskCommand}"
|
|
Grid.Row="2" HorizontalAlignment="Left" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/>
|
|
</StackPanel>
|
|
<Border Grid.Row="2" Margin="0,5,0,0" BorderBrush="{StaticResource Border.Brush}" BorderThickness="0,1,0,0"/>
|
|
|
|
<local:TaskListControl x:Name="listbox_task" Grid.Row="2" Margin="0,5,0,0"/>
|
|
|
|
<c:PageControl PageIndex="{Binding PageIndex}"
|
|
PageSize="{Binding PageSize}"
|
|
RecordCount="{Binding OrderCount}"
|
|
Grid.Row="3"
|
|
HorizontalAlignment="Left" Width="450">
|
|
<b:Interaction.Triggers>
|
|
<b:EventTrigger EventName="OnPageIndexChanged">
|
|
<b:InvokeCommandAction Command="{Binding TaskPageIndexChangedCommand}" PassEventArgsToCommand="True"/>
|
|
</b:EventTrigger>
|
|
</b:Interaction.Triggers>
|
|
</c:PageControl>
|
|
</Grid>
|
|
</Grid>
|
|
</Page>
|
|
|