|
|
|
<c:BWindow x:Class="BBWY.Client.Views.PackTask.ServiceWindow"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Title="TipsWindow" Height="844" Width="350"
|
|
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
|
|
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
|
|
CloseButtonVisibility="Visible"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
|
|
|
DataContext="{Binding PackServiceList,Source={StaticResource Locator}}"
|
|
|
|
MinButtonVisibility="Collapsed"
|
|
|
|
MaxButtonVisibility="Collapsed"
|
|
|
|
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/>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}"
|
|
|
|
Background="{StaticResource Border.Background}">
|
|
|
|
<TextBlock Text="服务、 耗材、 参与人" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition Height="250"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Text="定向收费:" HorizontalAlignment="Left" Margin="19 0 0 0" VerticalAlignment="Center"/>
|
|
|
|
<c:BTextBox Text="{Binding DirectionalFees,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="100"/>
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="87"/>
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
<RowDefinition Height="10"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Text="增值服务" Margin="19,33,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
|
|
|
|
<Border Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="217" Margin="77,40,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,56,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,86,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="19,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="135,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="219,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="300,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="340,56,0,0" Height="30" />
|
|
|
|
<Label Content="增值服务项目" Width="116" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="19,56,0,0" />
|
|
|
|
<Label Content="成员" Width="84" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="135,56,0,0" />
|
|
|
|
<Label Content="数量" Width="80" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="219,56,0,0" />
|
|
|
|
<Label Content="操作" Width="40" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="303,56,0,0" />
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" MaxHeight="140" Width="322" Margin="19,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Background="Transparent">
|
|
|
|
<ListBox ItemsSource="{Binding IncreateList}" ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
|
|
|
BorderBrush="{StaticResource Border.Brush}"
|
|
|
|
BorderThickness="1,1,1,0" MaxHeight="100"
|
|
|
|
Foreground="{StaticResource Text.Color}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" >
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="116"/>
|
|
|
|
<ColumnDefinition Width="84"/>
|
|
|
|
<ColumnDefinition Width="84"/>
|
|
|
|
<ColumnDefinition Width="40"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="0" ItemsSource="{Binding IncreateServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Name" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" Width="116" Height="30"/>
|
|
|
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Width="84" Height="30"/>
|
|
|
|
<TextBox VerticalContentAlignment="Center" Grid.Column="2" Height="30" Text="{Binding ItemCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="84"/>
|
|
|
|
<c:BButton Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding DeleteServiceCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="3"/>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding AddIncreateServiceCommand}"
|
|
|
|
>
|
|
|
|
<Button.Triggers>
|
|
|
|
|
|
|
|
</Button.Triggers>
|
|
|
|
</c:BButton>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="87"/>
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
<RowDefinition Height="10"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Text="打包服务" Margin="19,33,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
|
|
|
|
<Border Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="217" Margin="77,40,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,56,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="322" Margin="19,86,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="19,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="135,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="219,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="300,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="340,56,0,0" Height="30" />
|
|
|
|
<Label Content="打包服务项目" Width="116" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="19,56,0,0" />
|
|
|
|
<Label Content="成员" Width="84" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="135,56,0,0" />
|
|
|
|
<Label Content="数量" Width="80" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="219,56,0,0" />
|
|
|
|
<Label Content="操作" Width="40" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="303,56,0,0" />
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" MaxHeight="140" Width="322" Margin="19,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Background="Transparent">
|
|
|
|
<ListBox
|
|
|
|
ItemsSource="{Binding PackList}" MaxHeight="100"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
|
|
|
BorderBrush="{StaticResource Border.Brush}"
|
|
|
|
BorderThickness="1,1,1,1"
|
|
|
|
Foreground="{StaticResource Text.Color}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
>
|
|
|
|
|
|
|
|
<ListBox.ItemTemplate >
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="116"/>
|
|
|
|
<ColumnDefinition Width="84"/>
|
|
|
|
<ColumnDefinition Width="84"/>
|
|
|
|
<ColumnDefinition Width="40"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="0" DisplayMemberPath="Name" ItemsSource="{Binding PackServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" Width="116" Height="30"/>
|
|
|
|
<ComboBox VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Width="84" Height="30"/>
|
|
|
|
<TextBox VerticalContentAlignment="Center" Grid.Column="2" Height="30" Text="{Binding ItemCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="84"/>
|
|
|
|
<c:BButton Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding DeleteServiceCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="3"/>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding AddPackServiceCommand}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Grid.Row="3">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="87"/>
|
|
|
|
<RowDefinition MaxHeight="200"/>
|
|
|
|
<RowDefinition Height="10"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Text="耗材项目" Margin="19,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
|
|
|
|
<Border Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="217" Margin="77,27,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260" Margin="19,56,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="260" Margin="19,86,0,0" Height="1"/>
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="19,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="135,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="239,56,0,0" Height="30" />
|
|
|
|
<Border Background="{StaticResource Border.Brush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1" Margin="279,56,0,0" Height="30" />
|
|
|
|
|
|
|
|
<Label Content="任务耗材" Width="116" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="19,56,0,0" />
|
|
|
|
<StackPanel Orientation="Horizontal" Width="104" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="135,56,0,0">
|
|
|
|
<Label Content="数量" Width="44" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
|
|
|
|
<c:BButton Content="批量设置" Width="60" Background="Transparent" Foreground="Blue"
|
|
|
|
Command="{Binding SetAllCountCommand}"
|
|
|
|
CommandParameter="{Binding ElementName=consumable_listBox}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Label Content="操作" Width="40" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="239,56,0,0" />
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" MaxHeight="160" Width="260" Margin="19,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Background="Transparent">
|
|
|
|
<ListBox MaxHeight="120" Name="consumable_listBox"
|
|
|
|
ItemsSource="{Binding ConsumableServiceList}"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
|
|
|
BorderBrush="{StaticResource Border.Brush}"
|
|
|
|
BorderThickness="1,1,1,0"
|
|
|
|
Foreground="{StaticResource Text.Color}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
>
|
|
|
|
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="116"/>
|
|
|
|
<ColumnDefinition Width="104"/>
|
|
|
|
<ColumnDefinition Width="40"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ComboBox VerticalContentAlignment="Center" Text="{Binding ItemName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Column="0" ItemsSource="{Binding ConsumableList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Name" SelectedValue="{Binding SelectId}" SelectedValuePath="Id" Width="116" Height="30"/>
|
|
|
|
<TextBox VerticalContentAlignment="Center" Grid.Column="1" Height="30" Text="{Binding ItemCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="104"/>
|
|
|
|
<c:BButton Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding DeleteServiceCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="2"/>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding AddConsumableCommand}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Name="printArea" Width="1065" Height="800">
|
|
|
|
|
|
|
|
<Grid Margin="20 5 0 0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="200">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Image Height="60" Width="200" Source="{Binding TaskImage}"/>
|
|
|
|
<TextBlock Grid.Row="1" FontSize="18" Style="{StaticResource middleTextBlock}" Text="{Binding TaskId}"/>
|
|
|
|
</Grid>
|
|
|
|
<Grid Margin="20 5 20 5">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="350"/>
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
</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="50"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
</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="5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
|
|
|
|
<TextBlock Text="组合类型:"/>
|
|
|
|
<TextBlock Text="{Binding PackType}"/>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="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="5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
|
|
|
|
<TextBlock Text="基础打包:"/>
|
|
|
|
<TextBlock Text="{Binding BasicPack}"/>
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Margin="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 0 20 0"
|
|
|
|
Visibility="{Binding PackTaskModel.IsShowFees,Converter={StaticResource objConverter},ConverterParameter=false:Collapsed:Visible}"
|
|
|
|
FeesItem="{Binding PackTaskModel.FeesItemResponse,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
/>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="20 0 0 0" Visibility="{Binding PackTaskModel.CertificateModel,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}">
|
|
|
|
|
|
|
|
<ListBox ItemsSource="{Binding PackTaskModel.CertificateModel,Mode=TwoWay}"
|
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
|
|
|
>
|
|
|
|
<ListBox.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<StackPanel Orientation="Horizontal"/>
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ListBox.ItemsPanel>
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel>
|
|
|
|
<local:MinCerControl model="{Binding }"
|
|
|
|
Visibility="{Binding Id ,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=0:Collapsed:Visible}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
<local:MinBarcodeControl Grid.Row="1" BarcodeImage="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" model="{Binding PackTaskModel.BarCodeModel, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20 0 0 0" Width="250" Height="190"
|
|
|
|
Visibility="{Binding PackTaskModel.BarCodeModel,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="2">
|
|
|
|
|
|
|
|
<TextBlock Text="打印机:" VerticalAlignment="Center"/>
|
|
|
|
<ComboBox Name="cbPrintName" Width="100" Height="30" ItemsSource="{Binding PrintList}" Text="{Binding PrintName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Content="打印" Margin="5 0 10 0" HorizontalAlignment="Right" Width="80" VerticalAlignment="Stretch"
|
|
|
|
Click="BButton_Click"
|
|
|
|
/>
|
|
|
|
<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>
|