|
|
|
<Page x:Class="BBWY.Client.Views.PackTask.WareHouseList"
|
|
|
|
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:fallware="clr-namespace:BBWY.Client.Views.FallWare"
|
|
|
|
xmlns:waittransport="clr-namespace:BBWY.Client.Views.WaitTransport"
|
|
|
|
xmlns:waitquality="clr-namespace:BBWY.Client.Views.QualityTask"
|
|
|
|
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:taskovertime="clr-namespace:BBWY.Client.Views.TaskOverTime"
|
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
|
|
DataContext="{Binding WareHouseList,Source={StaticResource Locator}}"
|
|
|
|
mc:Ignorable="d" Background="White"
|
|
|
|
d:DesignHeight="450" d:DesignWidth="2048"
|
|
|
|
Title="TaskList">
|
|
|
|
<Page.Resources>
|
|
|
|
<Style TargetType="RadioButton">
|
|
|
|
|
|
|
|
<Setter Property="IsChecked" Value="False" />
|
|
|
|
<Setter Property="Background" Value="#8080FF" />
|
|
|
|
<Setter Property="Foreground" Value="Black" />
|
|
|
|
<!--<Setter Property="Content" Value="{Binding ElementName=txt,Path=Text}"/>-->
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="RadioButton">
|
|
|
|
<Grid Background="#F2F2F2" >
|
|
|
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="{TemplateBinding Width}" RenderTransformOrigin="0.5,0.5">
|
|
|
|
<Rectangle.RenderTransform>
|
|
|
|
<TransformGroup>
|
|
|
|
<ScaleTransform ScaleY="-1"/>
|
|
|
|
<SkewTransform/>
|
|
|
|
<RotateTransform/>
|
|
|
|
<TranslateTransform/>
|
|
|
|
</TransformGroup>
|
|
|
|
</Rectangle.RenderTransform>
|
|
|
|
</Rectangle>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="35">
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Content}" />
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Tag}" Foreground="{StaticResource Text.Pink}" Margin="5 0 0 0" />
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<!--<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,5">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
<!---->
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.RowSpan="1" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" x:Name="qb" Content="全部" Command="{Binding SetTaskStateCommand}"
|
|
|
|
IsChecked="{Binding TaskState,Mode=TwoWay,Converter={StaticResource taskStateToBoolean},ConverterParameter=#null:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.未到货}" Content="未到货" Tag="{Binding NoArrivedCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=未到货:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.部分到货}" Content="部分到货" Tag="{Binding SomeArrivedCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=部分到货:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待验收}" Tag="{Binding ArrivedCount,Mode=TwoWay}" Content="待验收"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待验收:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待排单}" Content="待排单" Tag="{Binding WaitScheduleCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待排单:True:False}"
|
|
|
|
/>
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待打包}" Content="待打包" Tag="{Binding WaitPackCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待打包:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待封箱}" Content="待封箱" Tag="{Binding WaitSealBoxCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待转运}" Content="待转运" Tag="{Binding WaitTransportCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待转运:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待落仓}" Content="待落仓" Tag="{Binding WaitFallWareCount,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待落仓:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.待出库}" Content="待完结" Tag="{Binding WaitOutbound,Mode=TwoWay}"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待出库:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.已完成}" Content="已完成"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=已完成:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.商家自取}" Content="商家自取"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=商家自取:True:False}"
|
|
|
|
/>
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.已超时 }" Content="已超时"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=已超时:True:False}"
|
|
|
|
/>
|
|
|
|
<RadioButton Height="35" Width="126" VerticalAlignment="Center" Command="{Binding SetTaskStateCommand}" CommandParameter="{x:Static cmodel:TaskState.已取消}" Content="已取消"
|
|
|
|
IsChecked="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=已取消:True:False}"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Border Grid.Row="2" Margin="0,0,0,0" BorderBrush="{StaticResource Border.Brush}" BorderThickness="0,1,0,0" />
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Margin="0,5,0,0">
|
|
|
|
<fallware:WareFallWareListControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待落仓:Visible:Collapsed}" />
|
|
|
|
<local:WareHouseListControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱|待落仓|待验收|待打包|待转运|已超时|待出库|待排单:Collapsed:Visible}" />
|
|
|
|
<fallware:WareFallWareListControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱:Visible:Collapsed}" />
|
|
|
|
<waitquality:WaitQualityControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待验收:Visible:Collapsed}" />
|
|
|
|
<local:WaitPackageControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待排单:Visible:Collapsed}" />
|
|
|
|
<local:WaitPackageControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待打包:Visible:Collapsed}" />
|
|
|
|
<waittransport:WareWaitTransportListControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待转运:Visible:Collapsed}" />
|
|
|
|
<taskovertime:WareTaskOverTimeControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=已超时:Visible:Collapsed}" />
|
|
|
|
<local:WaitCompletedControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待出库:Visible:Collapsed}" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<c:PageControl PageIndex="{Binding PageIndex,Mode=TwoWay}"
|
|
|
|
PageSize="{Binding PageSize,Mode=TwoWay}"
|
|
|
|
RecordCount="{Binding OrderCount,Mode=TwoWay}"
|
|
|
|
Grid.Row="2"
|
|
|
|
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>
|