|
|
@ -5,7 +5,7 @@ |
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask" |
|
|
|
mc:Ignorable="d" |
|
|
|
Title="TipsWindow" Height="820" Width="360" |
|
|
|
Title="TipsWindow" Height="820" Width="1560" |
|
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
|
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
|
|
@ -20,6 +20,10 @@ |
|
|
|
RightButtonGroupMargin="0,5,5,0"> |
|
|
|
<!--DataContext="{Binding PackServiceList,Source={StaticResource Locator}}"--> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="350"/> |
|
|
|
<ColumnDefinition /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition/> |
|
|
@ -126,7 +130,7 @@ |
|
|
|
ItemsSource="{Binding PackList}" MaxHeight="100" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="1,1,1,0" |
|
|
|
BorderThickness="1,1,1,1" |
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" |
|
|
|
> |
|
|
@ -222,16 +226,318 @@ |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1"> |
|
|
|
<StackPanel Orientation="Vertical" > |
|
|
|
|
|
|
|
<Grid Height="145" Margin="20 20 20 20"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="35"/> |
|
|
|
<RowDefinition /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="350"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="100"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition MinWidth="140"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="组合类型" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="SKU配件商品" Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="打包需求" Grid.Column="4" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="落仓" Grid.Column="5" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="合格证位置" Grid.Column="6" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="注意事项/对接备注" Grid.Column="7" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Text="打包员" Grid.Column="8" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
|
|
|
|
|
|
|
<Border Height="1" VerticalAlignment="Top " Background="{StaticResource Border.Brush}" Grid.ColumnSpan="9"/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--ItemsSource="{Binding OrderList}"--> |
|
|
|
<ListBox x:Name="listbox_order" |
|
|
|
Grid.Row="7" |
|
|
|
ItemsSource="{Binding PackTaskList}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="0,1,0,0" |
|
|
|
Foreground="{StaticResource Text.Color}"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
|
|
|
MinHeight="100"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
|
|
<RowDefinition MinHeight="90"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<Grid Grid.Row="0"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="350"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="100"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition MinWidth="140"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<ListBox x:Name="listbox_orerSku" ItemsSource="{Binding ItemList}" |
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" > |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="90"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<!--{Binding Logo}--> |
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
|
|
|
Width="80" DecodePixelWidth="80" |
|
|
|
VerticalAlignment="Top" Margin="11,9,0,10" |
|
|
|
Cursor="Hand"> |
|
|
|
<b:Interaction.Triggers> |
|
|
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
|
|
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
|
|
|
<b:InvokeCommandAction.CommandParameter> |
|
|
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
|
|
|
<Binding Path="DataContext.Id" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
|
|
|
<Binding Path="Id"/> |
|
|
|
</MultiBinding> |
|
|
|
</b:InvokeCommandAction.CommandParameter> |
|
|
|
</b:InvokeCommandAction> |
|
|
|
</b:EventTrigger> |
|
|
|
</b:Interaction.Triggers> |
|
|
|
</c:BAsyncImage> |
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="8,12,0,10"> |
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
|
|
|
<TextBlock.ToolTip> |
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
<TextBlock Text="{Binding SkuName}"/> |
|
|
|
</ToolTip> |
|
|
|
</TextBlock.ToolTip> |
|
|
|
<Run Text="SKU名称:"/> |
|
|
|
<Run Text="{Binding SkuName}"/> |
|
|
|
</TextBlock> |
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,11"> |
|
|
|
<Run Text="品名:"/> |
|
|
|
<Run Text="{Binding BrandName}"/> |
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="店铺:"/> |
|
|
|
<c:BButton Content="{Binding ShopName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|
|
|
CommandParameter="{Binding ShopName}" |
|
|
|
Margin=" 5,0,7,0"/> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="20,11,0,5"> |
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}"> |
|
|
|
<Run Text="货号:" /> |
|
|
|
</TextBlock> |
|
|
|
<c:BButton Content="{Binding GoodsNo}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top" |
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|
|
|
CommandParameter="{Binding GoodsNo}" |
|
|
|
Margin=" 5,0,0,0"/> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
<Grid Grid.Column="1" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
<TextBlock x:Name="txt_storeName" |
|
|
|
Text="{Binding SkuCount}" |
|
|
|
TextWrapping="Wrap" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid Grid.Column="2" > |
|
|
|
<StackPanel VerticalAlignment="Center" > |
|
|
|
|
|
|
|
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" > |
|
|
|
<TextBlock Text="组合类型:"/> |
|
|
|
<TextBlock Text="{Binding PackType}"/> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" > |
|
|
|
<TextBlock Text="配件数量:"/> |
|
|
|
<TextBlock Text="{Binding GoodsNumber}"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Column="3" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
<TextBlock |
|
|
|
Text="{Binding SkuTitle}" |
|
|
|
TextWrapping="Wrap" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Column="4" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Left"> |
|
|
|
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" > |
|
|
|
<TextBlock Text="基础打包:"/> |
|
|
|
<TextBlock Text="{Binding BasicPack}"/> |
|
|
|
</StackPanel> |
|
|
|
<Grid Margin="10,5" VerticalAlignment="Center" HorizontalAlignment="Left" > |
|
|
|
<TextBlock TextWrapping="Wrap"> |
|
|
|
<Run Text="增量耗材:"/> |
|
|
|
<Run Text="{Binding Increment1}"/> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Column="5" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
<TextBlock |
|
|
|
Text="{Binding PositionType}" |
|
|
|
TextWrapping="Wrap" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid Grid.Column="6" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
|
|
|
|
<TextBlock |
|
|
|
Text="{Binding CertificatePosition}" |
|
|
|
TextWrapping="Wrap" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Column="7" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
<TextBlock |
|
|
|
Text="{Binding MarkMessage}" |
|
|
|
TextWrapping="Wrap" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Column="8" > |
|
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
|
<TextBlock |
|
|
|
Text="{Binding PackUser}" |
|
|
|
TextWrapping="Wrap" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9" /> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10" /> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<local:FeesExcelControl IsWareHouse="True" Margin="20 20 20 0" |
|
|
|
FeesItem="{Binding PackTaskModel.FeesItemResponse,Mode=TwoWay,NotifyOnSourceUpdated=True,UpdateSourceTrigger=PropertyChanged}" |
|
|
|
/> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<local:CerControl model="{Binding PackTaskModel.CertificateModel[0],Mode=TwoWay}" Margin="20 20 0 0" |
|
|
|
Visibility="{Binding PackTaskModel.CertificateModel[0],Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" |
|
|
|
/> |
|
|
|
<local:BarcodeControl Grid.Row="1" model="{Binding PackTaskModel.BarCodeModel, Mode=TwoWay}" Margin="20 0 0 0" Width="350" |
|
|
|
Visibility="{Binding PackTaskModel.BarCodeModel,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="2"> |
|
|
|
|
|
|
|
<TextBlock Text="打印机:" VerticalAlignment="Center"/> |
|
|
|
<ComboBox Width="100" Height="30"/> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Content="确定" Margin="0 0 20 0" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch" |
|
|
|
<c:BButton Grid.Row="2" Content="打印" Margin="5 0 10 0" HorizontalAlignment="Right" Width="80" VerticalAlignment="Stretch" |
|
|
|
Command="{Binding UpLoadPackCommand}" |
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
/> |
|
|
|
<c:BButton Grid.Row="2" Content="确定" Margin="0 0 20 0" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch" |
|
|
|
Command="{Binding UpLoadPackCommand}" |
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
</c:BWindow> |
|
|
|