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.
215 lines
14 KiB
215 lines
14 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: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:sealbox="clr-namespace:BBWY.Client.Views.SealBox"
|
|
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>
|
|
<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>
|
|
</Page.Resources>
|
|
<Grid>
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
|
|
<Grid Margin="5,5 5 5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱|待落仓|待出库:0:40}"/>
|
|
<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,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 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 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}"
|
|
/>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
<Grid Background="{StaticResource Border.Background}" Grid.Row="1" HorizontalAlignment="Stretch" Panel.ZIndex="999" Margin="0,5,0,0" >
|
|
<StackPanel Orientation="Horizontal" 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=""/>
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱|待落仓|待出库:Collapsed:Visible}"
|
|
>
|
|
<TextBlock Text="拳探订单号:" VerticalAlignment="Center" Margin="16,0,0,0"/>
|
|
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchOrderSn,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark=""/>
|
|
</StackPanel>
|
|
|
|
<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 Orientation="Horizontal"
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待落仓|待出库:Collapsed:Visible}"
|
|
>
|
|
<TextBlock Text="SPU:" VerticalAlignment="Center" Margin="16,0,0,0"/>
|
|
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchSpuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark=""/>
|
|
</StackPanel>
|
|
|
|
|
|
<Grid Grid.Column="1" HorizontalAlignment="Left">
|
|
<Button Content="搜索" Width="100" Height="30" VerticalAlignment="Center" Margin="66,0,0,0"
|
|
Command="{Binding SearchTaskCommand}" Grid.Column="1"
|
|
Grid.RowSpan="2" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/>
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="2" HorizontalAlignment="Stretch" Panel.ZIndex="999" Margin="0,5,0,0" >
|
|
<Button Content="发布任务" Height="35" Width="120" Margin="0 0 0 0" HorizontalAlignment="Left"
|
|
Command="{Binding CreateTaskCommand}" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"
|
|
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱|待落仓:Collapsed:Visible}"
|
|
/>
|
|
</Grid>
|
|
<Border Grid.Row="3" Margin="0,5,0,0" BorderBrush="{StaticResource Border.Brush}" BorderThickness="0,1,0,0"
|
|
|
|
/>
|
|
<Border Grid.Row="4" Margin="0,0,0,0" BorderBrush="{StaticResource Border.Brush}" BorderThickness="0,1,0,0"
|
|
|
|
/>
|
|
|
|
<Grid Grid.Row="3" Margin="0,5,0,0">
|
|
|
|
<local:TaskListControl x:Name="listbox_task"
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱|待落仓|待验收|待打包|待出库:Collapsed:Visible}"
|
|
/>
|
|
|
|
|
|
<sealbox:ShopSealBoxListControl
|
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱|待落仓:Visible:Collapsed}"
|
|
/>
|
|
|
|
<waitquality:ShopWaitQualityControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待验收:Visible:Collapsed}" />
|
|
|
|
<local:ShopWaitPackageControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待打包:Visible:Collapsed}" />
|
|
|
|
<local:ShopWaitCompletedControl Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待出库:Visible:Collapsed}" />
|
|
</Grid>
|
|
|
|
<c:PageControl PageIndex="{Binding PageIndex}"
|
|
PageSize="{Binding PageSize}"
|
|
RecordCount="{Binding OrderCount}"
|
|
Grid.Row="4"
|
|
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>
|
|
|