|
|
|
<c:BWindow x:Class="BBWY.Client.Views.PackTask.PackDetailWindow"
|
|
|
|
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="PackDetailWindow" Height="844" Width="480"
|
|
|
|
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"
|
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
CloseButtonVisibility="Visible"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
|
|
|
DataContext="{Binding PackDetailVM,Source={StaticResource Locator}}"
|
|
|
|
MinButtonVisibility="Collapsed"
|
|
|
|
MaxButtonVisibility="Collapsed"
|
|
|
|
RightButtonGroupMargin="0,5,5,0">
|
|
|
|
<!--ResizeMode="NoResize"-->
|
|
|
|
<Window.Resources>
|
|
|
|
<DrawingBrush x:Key="DashBorderBrush">
|
|
|
|
<DrawingBrush.Drawing>
|
|
|
|
<GeometryDrawing Brush="Transparent">
|
|
|
|
<GeometryDrawing.Geometry>
|
|
|
|
<RectangleGeometry Rect="0,0,100,100"/>
|
|
|
|
</GeometryDrawing.Geometry>
|
|
|
|
<GeometryDrawing.Pen>
|
|
|
|
<Pen Thickness="2" Brush="Black"/>
|
|
|
|
</GeometryDrawing.Pen>
|
|
|
|
</GeometryDrawing>
|
|
|
|
</DrawingBrush.Drawing>
|
|
|
|
</DrawingBrush>
|
|
|
|
<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>
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="480"/>
|
|
|
|
<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.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries >
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</Grid.Resources>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollViewer x:Name="scrolls" Grid.Row="0" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" Height="740">
|
|
|
|
<ScrollViewer.Content>
|
|
|
|
<StackPanel Orientation="Vertical" Grid.Row="1">
|
|
|
|
<StackPanel Orientation="Horizontal" Background="{StaticResource Border.Background}" Height="32">
|
|
|
|
<StackPanel.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="32" 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="white" />
|
|
|
|
<Setter Property="Foreground" Value="#8080FF"/>
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</StackPanel.Resources>
|
|
|
|
<RadioButton Height="35" Width="110" VerticalAlignment="Center" IsChecked="True" Content="推荐工序" Command="{Binding SetTaskStateCommand}" />
|
|
|
|
<RadioButton Height="35" Width="110" VerticalAlignment="Center" Content="自定义工序" Command="{Binding SetTaskStateCommand}" />
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Margin="20 10 20 10" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="包装工序" Margin="0 0 5 0" Style="{StaticResource middleTextBlock}" />
|
|
|
|
<Border Background="Black" Grid.Column="1" VerticalAlignment="Center" Height="1"/>
|
|
|
|
</Grid>
|
|
|
|
<!--推荐工序-->
|
|
|
|
<StackPanel>
|
|
|
|
<Grid Margin="20 5 20 0">
|
|
|
|
|
|
|
|
<Grid Height="80" >
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="56"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="耐摔等级:" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<!--<Border Margin="5" Grid.Column="1" CornerRadius="0" Grid.ColumnSpan="3" Background="{StaticResource Border.Brush}">
|
|
|
|
<ComboBox Margin="1" BorderThickness="0" Grid.Row="1" ItemsSource="{Binding ProductResistantList}" Text="{Binding SelectProductResistant}" />
|
|
|
|
</Border>-->
|
|
|
|
|
|
|
|
<Grid Margin="5" Grid.Column="1" Grid.ColumnSpan="3">
|
|
|
|
<Rectangle Stroke="{StaticResource Border.Brush}" StrokeThickness="1"/>
|
|
|
|
<ComboBox Margin="1" BorderThickness="0" Grid.Row="1" ItemsSource="{Binding ProductResistantList}" Text="{Binding SelectProductResistant}" />
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<TextBlock Grid.Row="1" Text="套餐类型:" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<Grid Grid.Column="1" Grid.Row="1" Margin="5">
|
|
|
|
<Rectangle Stroke="{StaticResource Border.Brush}" StrokeThickness="1"/>
|
|
|
|
<ComboBox Margin="1" BorderThickness="0" Grid.Row="1" Grid.Column="1" ItemsSource="{Binding ProcessComboList}" DisplayMemberPath="ProcessComboName"
|
|
|
|
SelectedValuePath="ProcessComboId" SelectedValue="{Binding SelectProcessComboId}"
|
|
|
|
Text="{Binding SelectProcessCombo}"/>
|
|
|
|
</Grid>
|
|
|
|
<!--<Border Margin="5" Grid.Column="1" Grid.Row="1" Background="{StaticResource Border.Brush}" >
|
|
|
|
<ComboBox Margin="1" BorderThickness="0" Grid.Row="1" Grid.Column="1" ItemsSource="{Binding ProcessComboList}" DisplayMemberPath="ProcessComboName"
|
|
|
|
SelectedValuePath="ProcessComboId" SelectedValue="{Binding SelectProcessComboId}"
|
|
|
|
Text="{Binding SelectProcessCombo}"/>
|
|
|
|
</Border>-->
|
|
|
|
<TextBlock Grid.Row="1" Text="任务量:" Grid.Column="2" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<c:BTextBox Margin="5 5 5 5" Grid.Column="3" Grid.Row="1"/>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<Grid Margin="20,10,20,10">
|
|
|
|
<Rectangle Height="40" StrokeDashArray="8,4" StrokeThickness="1" Stroke="{StaticResource Border.Brush}" >
|
|
|
|
</Rectangle>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="10 0 0 0">
|
|
|
|
<Run Text="工序单价:"/>
|
|
|
|
<Run Text="{Binding PackFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="30 0 0 0">
|
|
|
|
<Run Text="原价:"/>
|
|
|
|
<Run Text="{Binding PackFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="30 0 0 0">
|
|
|
|
<Run Text="折扣系数:"/>
|
|
|
|
<Run Text="{Binding DiscountFactory}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="30 0 0 0">
|
|
|
|
<Run Text="折后价:"/>
|
|
|
|
<Run Text="{Binding PackDiscountFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<!--<Border BorderThickness="1" Height="40" Margin="20,10,20,10" BorderBrush="{StaticResource Border.Brush}">
|
|
|
|
|
|
|
|
|
|
|
|
</Border>-->
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
<!--自定义工序-->
|
|
|
|
<StackPanel Visibility="Collapsed">
|
|
|
|
|
|
|
|
<Grid Margin="20 5 20 0">
|
|
|
|
|
|
|
|
<Grid Height="60" >
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition MinWidth="84"/>
|
|
|
|
<ColumnDefinition Width="66"/>
|
|
|
|
<ColumnDefinition Width="66"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Background="{StaticResource Border.Background}" Grid.ColumnSpan="4"/>
|
|
|
|
<TextBlock Text="工序类型" Style="{StaticResource middleTextBlock}" />
|
|
|
|
<TextBlock Text="套餐类型" Style="{StaticResource middleTextBlock}" Grid.Column="1" />
|
|
|
|
<TextBlock Text="工序单价" Style="{StaticResource middleTextBlock}" Grid.Column="2" />
|
|
|
|
<TextBlock Text="任务量" Style="{StaticResource middleTextBlock}" Grid.Column="3"/>
|
|
|
|
|
|
|
|
<Border VerticalAlignment="Top" Grid.ColumnSpan="4" Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" />
|
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="4" Height="1" Background="{StaticResource Border.Brush}" />
|
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="4" Height="1" Background="{StaticResource Border.Brush}" Grid.Row="1"/>
|
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="0" Width="1" Background="{StaticResource Border.Brush}" Grid.RowSpan="2"/>
|
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="1" Width="1" Background="{StaticResource Border.Brush}" Grid.RowSpan="2"/>
|
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="2" Width="1" Background="{StaticResource Border.Brush}" Grid.RowSpan="2"/>
|
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="3" Width="1" Background="{StaticResource Border.Brush}" Grid.RowSpan="2"/>
|
|
|
|
<Border HorizontalAlignment="Right" Grid.Column="3" Width="1" Background="{StaticResource Border.Brush}" Grid.RowSpan="2"/>
|
|
|
|
|
|
|
|
<ComboBox Margin="1" BorderThickness="0" Grid.Row="1" ItemsSource="{Binding ProcessTypeList}" Text="{Binding SelectProcessType}" />
|
|
|
|
<ComboBox Margin="1" BorderThickness="0" Grid.Row="1" Grid.Column="1" ItemsSource="{Binding ProcessComboList}" DisplayMemberPath="ProcessComboName"
|
|
|
|
SelectedValuePath="ProcessComboId" SelectedValue="{Binding SelectProcessComboId}"
|
|
|
|
Text="{Binding SelectProcessCombo}"/>
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="2" Margin="1 0 1 1" Background="{StaticResource Border.Background}" >
|
|
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding ProcessPrice}" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBox BorderBrush="Transparent" BorderThickness="0" Margin="1" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding ProcessTaskCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<Border BorderThickness="1" Height="40" Margin="20,10,20,10" BorderBrush="{StaticResource Border.Brush}">
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="10 0 0 0">
|
|
|
|
<Run Text="原价:"/>
|
|
|
|
<Run Text="{Binding PackFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="30 0 0 0">
|
|
|
|
<Run Text="折扣系数:"/>
|
|
|
|
<Run Text="{Binding DiscountFactory}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="30 0 0 0">
|
|
|
|
<Run Text="折后价:"/>
|
|
|
|
<Run Text="{Binding PackDiscountFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="20 0 0 10">
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="定制工序单价:"/>
|
|
|
|
<Border BorderThickness="1" CornerRadius="0" BorderBrush="{StaticResource Border.Brush}">
|
|
|
|
<TextBox BorderThickness="0" Width="100" Text="{Binding DirectionalSingleFees,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<c:BButton Content="确定" Width="60" Command="{Binding SetCustomProcessPriceCommand}"/>
|
|
|
|
</StackPanel>
|
|
|
|
<Grid Margin="20 10 20 0" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="包装员" Margin="0 0 5 0" Style="{StaticResource middleTextBlock}" />
|
|
|
|
<Border Background="Black" Grid.Column="1" VerticalAlignment="Center" Height="1"/>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Margin="20 10 20 10">
|
|
|
|
<Run Text="推荐打包人:"/>
|
|
|
|
<Run Text="{Binding SuggestPackUserName}" Foreground="Red"/>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Margin="20 10 20 0">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Height="30" Background="{StaticResource Border.Background}" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<ColumnDefinition MinWidth="80"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border VerticalAlignment="Top" Grid.ColumnSpan="4" Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" />
|
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="4" Height="1" Background="{StaticResource Border.Brush}" />
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="0" />
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="1" />
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="2"/>
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="3"/>
|
|
|
|
<Border HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="3"/>
|
|
|
|
<TextBlock Grid.Column="0" Text="打包人" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<TextBlock Grid.Column="1" Text="任务量" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="操作" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" Background="Transparent">
|
|
|
|
<ListBox Name="basic_Listbox"
|
|
|
|
ItemsSource="{Binding PackUserModelList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
|
|
|
BorderBrush="{StaticResource Border.Brush}"
|
|
|
|
BorderThickness="1,1,1,1"
|
|
|
|
Foreground="{StaticResource Text.Color}"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
>
|
|
|
|
<ListBox.ItemTemplate >
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=basic_Listbox,Converter={StaticResource widthConverter},ConverterParameter=-0}"
|
|
|
|
>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition MinWidth="80"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<ComboBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="0" ItemsSource="{Binding MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Height="30"/>
|
|
|
|
<TextBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="1" Height="30" Text="{Binding TaskCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<c:BButton Foreground="Blue" 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"/>
|
|
|
|
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="1" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="2" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="3" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="4" Height="1" Background="{StaticResource Border.Brush}" />
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding AddPackUserCommand}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Margin="20 10 20 0" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="耗材项目" Margin="0 0 5 0" Style="{StaticResource middleTextBlock}" />
|
|
|
|
<Border Background="Black" Grid.Column="1" VerticalAlignment="Center" Height="1"/>
|
|
|
|
</Grid>
|
|
|
|
<Grid Margin=" 20 10 20 0">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Height="30" Background="{StaticResource Border.Background}">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border VerticalAlignment="Top" Grid.ColumnSpan="5" Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" />
|
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="5" Height="1" Background="{StaticResource Border.Brush}" />
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="0" />
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="1" />
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="2"/>
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="3"/>
|
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="4"/>
|
|
|
|
<Border HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="4"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="0" Text="耗材类型" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<TextBlock Grid.Column="1" Text="耗材型号" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="单价" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
<TextBlock Text="数量" Style="{StaticResource middleTextBlock}" />
|
|
|
|
<Button BorderThickness="0" Content="批量" Margin="5 0 0 0" VerticalAlignment="Center" Background="Transparent" Foreground="Blue"
|
|
|
|
Command="{Binding SetAllCountCommand}"
|
|
|
|
CommandParameter="{Binding ElementName=consumable_listBox}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
<TextBlock Grid.Column="4" Text="操作" Style="{StaticResource middleTextBlock}"/>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="1" Grid.ColumnSpan="3" Orientation="Vertical" >
|
|
|
|
<ListBox 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 Width="{Binding ActualWidth,ElementName=consumable_listBox,Converter={StaticResource widthConverter},ConverterParameter=-0}"
|
|
|
|
>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ComboBox Margin="1" Grid.Column="0" BorderThickness="0" VerticalContentAlignment="Center" ItemsSource="{Binding ConsumableTypeList}" Text="{Binding ConsumableType}" Height="30"/>
|
|
|
|
<ComboBox Margin="1" Grid.Column="1" BorderThickness="0" VerticalContentAlignment="Center"
|
|
|
|
ItemsSource="{Binding ConsumableItemList}" Text="{Binding ConsumableItem}" DisplayMemberPath="ConsumableName"
|
|
|
|
SelectedValue="{Binding SelectId}" SelectedValuePath="ConsumableId" Height="30"/>
|
|
|
|
<Grid Grid.Column="2" Background="{StaticResource Border.Background}">
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding ConsumablePrice}"/>
|
|
|
|
</Grid>
|
|
|
|
<TextBox Margin="1" BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="3" Height="30" Text="{Binding TaskCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<c:BButton Foreground="Blue" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Command="{Binding DeleteServiceCommand}"
|
|
|
|
Visibility="{Binding DataContext.IsConsumableTypeListEnable,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type c:BWindow}},Converter={StaticResource objConverter},ConverterParameter=true:Visible:Collapsed}"
|
|
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}, Path=ItemsSource}" Content="删除" Grid.Column="4"/>
|
|
|
|
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="1" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="2" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="3" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border HorizontalAlignment="Left" Margin="-1 0 0 0" Grid.Column="4" Width="1" Background="{StaticResource Border.Brush}"/>
|
|
|
|
<Border Visibility="Visible" VerticalAlignment="Bottom" Grid.ColumnSpan="5" Height="1" Background="{StaticResource Border.Brush}" />
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch"
|
|
|
|
Visibility="{Binding IsConsumableTypeListEnable,Converter={StaticResource objConverter},ConverterParameter=true:Visible:Collapsed}" Command="{Binding AddConsumableCommand}"
|
|
|
|
/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Margin="20,10,20,10">
|
|
|
|
<Rectangle Height="40" StrokeDashArray="8,4" StrokeThickness="1" Stroke="{StaticResource Border.Brush}" >
|
|
|
|
</Rectangle>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="10 0 0 0">
|
|
|
|
<Run Text="耗材收费:"/>
|
|
|
|
<Run Text="{Binding ConsumableFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<!--<Border BorderThickness="1" Height="40" Margin="20,10,20,10" BorderBrush="{StaticResource Border.Brush}">
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="10 0 0 0">
|
|
|
|
<Run Text="耗材收费:"/>
|
|
|
|
<Run Text="{Binding ConsumableFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</Border>-->
|
|
|
|
<Grid Margin="20 10 20 0" >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="其他设置" Margin="0 0 5 0" Style="{StaticResource middleTextBlock}" />
|
|
|
|
<Border Background="Black" Grid.Column="1" VerticalAlignment="Center" Height="1"/>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1" HorizontalAlignment="Stretch" Margin="20 10 20 10">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="45"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="打印机: " VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
|
|
<Border BorderThickness="1" CornerRadius="0" Grid.Column="1" BorderBrush="{StaticResource Border.Brush}" Height="30" >
|
|
|
|
<ComboBox Name="cbPrintName" BorderThickness="0" Height="30" HorizontalAlignment="Stretch" ItemsSource="{Binding PrintList}" Text="{Binding PrintName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<c:BButton Grid.Column="2" Content="打印" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch"
|
|
|
|
Click="BButton_Click"
|
|
|
|
/>
|
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
</ScrollViewer.Content>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1" Visibility="Hidden">
|
|
|
|
<StackPanel Orientation="Vertical" Name="printArea" Width="1065" Height="800">
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<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>
|
|
|
|
<TextBlock Text="摆放地托编号:" FontSize="24" FontWeight="Bold" Style="{StaticResource middleTextBlock}" Margin="20 0 0 0"/>
|
|
|
|
<TextBlock Text="{Binding FloorDragNumber}" FontSize="24" FontWeight="Bold" Style="{StaticResource middleTextBlock}" Margin="20 0 0 0"/>
|
|
|
|
<TextBlock Text="打包人:" FontSize="24" FontWeight="Bold" Style="{StaticResource middleTextBlock}" Margin="20 0 0 0"/>
|
|
|
|
<TextBlock Text="{Binding PackUserName}" FontSize="24" FontWeight="Bold" Style="{StaticResource middleTextBlock}" Margin="20 0 0 0"/>
|
|
|
|
|
|
|
|
<TextBlock Text="截止时间:" FontSize="24" FontWeight="Bold" Style="{StaticResource middleTextBlock}" Margin="20 0 0 0"/>
|
|
|
|
<TextBlock Text="{Binding PackTaskModel.PackCompletionOverTime,StringFormat=yyyy-MM-dd HH:mm}" FontSize="24" FontWeight="Bold" Style="{StaticResource middleTextBlock}" Margin="20 0 0 0"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Grid Margin="20 5 20 5">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="280"/>
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
|
|
|
|
</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}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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="280"/>
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="100"/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
<ColumnDefinition Width="60"/>
|
|
|
|
<ColumnDefinition MinWidth="100"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid >
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="90"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<!--{Binding Logo}-->
|
|
|
|
<c:BAsyncImage UrlSource="{Binding ItemList[0].Logo}"
|
|
|
|
Width="80" DecodePixelWidth="80"
|
|
|
|
VerticalAlignment="Top" Margin="11,9,0,10"
|
|
|
|
Cursor="Hand">
|
|
|
|
|
|
|
|
</c:BAsyncImage>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="8,9,0,10">
|
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap">
|
|
|
|
<TextBlock.ToolTip>
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}">
|
|
|
|
<TextBlock Text="{Binding ItemList[0].SkuName}"/>
|
|
|
|
</ToolTip>
|
|
|
|
</TextBlock.ToolTip>
|
|
|
|
<Run Text="SKU名称:"/>
|
|
|
|
<Run Text="{Binding ItemList[0].SkuName}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,11">
|
|
|
|
<Run Text="品名:"/>
|
|
|
|
<Run Text="{Binding ItemList[0].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>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<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:MinFeesExcelControl Margin="20 0 20 0" IsMin="true"
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Top" Grid.Row="2"/>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="2" >
|
|
|
|
<StackPanel HorizontalAlignment="Left" Margin="20 0 0 0" VerticalAlignment="Center" >
|
|
|
|
<TextBlock Style="{StaticResource middleTextBlock}">
|
|
|
|
<Run Text="总收费:"/>
|
|
|
|
<Run Text="{Binding AllFees}"/>
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<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}}}"
|
|
|
|
/>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</c:BWindow>
|