|
|
@ -5,21 +5,48 @@ |
|
|
|
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="844" Width="380" |
|
|
|
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 PackServiceList,Source={StaticResource Locator}}" |
|
|
|
MinButtonVisibility="Collapsed" |
|
|
|
MaxButtonVisibility="Collapsed" |
|
|
|
MinButtonVisibility="Collapsed" |
|
|
|
MaxButtonVisibility="Collapsed" |
|
|
|
RightButtonGroupMargin="0,5,5,0"> |
|
|
|
<!--DataContext="{Binding PackServiceList,Source={StaticResource Locator}}"--> |
|
|
|
<!--ResizeMode="NoResize"--> |
|
|
|
<Window.Resources> |
|
|
|
<Style TargetType="ComboBox"> |
|
|
|
<Style.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> |
|
|
|
</Style.Resources> |
|
|
|
</Style> |
|
|
|
|
|
|
|
</Window.Resources> |
|
|
|
|
|
|
|
<!--<ListBox Name="pack_Listbox" ScrollViewer.VerticalScrollBarVisibility="Visible" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="1,1,1,0" |
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
> |
|
|
|
</ListBox>--> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="380"/> |
|
|
|
<ColumnDefinition /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition/> |
|
|
@ -31,207 +58,684 @@ |
|
|
|
<TextBlock Text="服务、 耗材、 参与人" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
|
|
|
|
</Border> |
|
|
|
<Grid Grid.Row="1"> |
|
|
|
<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 Height="40"/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="250"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="促销折扣:" HorizontalAlignment="Left" Margin="19 0 0 0" VerticalAlignment="Center"/> |
|
|
|
<c:BTextBox Text="{Binding Discount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="100"/> |
|
|
|
<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}" |
|
|
|
|
|
|
|
<ScrollViewer x:Name="scrolls" Grid.Row="1" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" Height="640"> |
|
|
|
<ScrollViewer.Content> |
|
|
|
<StackPanel Orientation="Vertical" Grid.Row="1"> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="增值服务" Margin="20,0,10,0" VerticalAlignment="Center" /> |
|
|
|
<Border Background="Black" VerticalAlignment="Center" Width="217" Height="1"/> |
|
|
|
</StackPanel> |
|
|
|
<Grid Margin="20 5 20 0"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="30"/> |
|
|
|
<RowDefinition Height="auto"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid Height="30" Background="{StaticResource Border.Background}"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition MinWidth="116"/> |
|
|
|
<ColumnDefinition MinWidth="84"/> |
|
|
|
<ColumnDefinition Width="70"/> |
|
|
|
<ColumnDefinition Width="50"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<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 HorizontalAlignment="Left" Grid.Column="0" Width="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="1" Width="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="2" Width="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
<Border HorizontalAlignment="Left" Grid.Column="3" Width="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
<Border HorizontalAlignment="Right" Grid.Column="3" Width="1" Background="{StaticResource Border.Brush}"/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" Background="Transparent"> |
|
|
|
<ListBox ItemsSource="{Binding IncreateList}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="1,1,1,0" MaxHeight="100" |
|
|
|
BorderThickness="1,1,1,0" Name="increateService" |
|
|
|
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" |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=increateService,Converter={StaticResource widthConverter},ConverterParameter=-0}"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition MinWidth="116"/> |
|
|
|
<ColumnDefinition MinWidth="84"/> |
|
|
|
<ColumnDefinition Width="70"/> |
|
|
|
<ColumnDefinition Width="50"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<ComboBox Margin="1" BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="0" ItemsSource="{Binding IncreateServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Name" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" /> |
|
|
|
<ComboBox Margin="1" BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" /> |
|
|
|
<TextBox Margin="1" BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="2" Text="{Binding ItemCount,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="3"/> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch" |
|
|
|
<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 AddIncreateServiceCommand}" |
|
|
|
> |
|
|
|
<Button.Triggers> |
|
|
|
</c:BButton> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Button.Triggers> |
|
|
|
</c:BButton> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="20,20,0,10"> |
|
|
|
<TextBlock Text="打包服务" Margin="0 0 10 0" VerticalAlignment="Center" /> |
|
|
|
<Border Background="Black" VerticalAlignment="Center" Width="217" Height="1"/> |
|
|
|
</StackPanel> |
|
|
|
<Grid Margin="20 0 20 0"> |
|
|
|
<Grid Height="60" > |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition /> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Border VerticalAlignment="Top" Grid.ColumnSpan="2" Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" /> |
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="2" Height="1" Background="{StaticResource Border.Brush}" /> |
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="0" Grid.RowSpan="2"/> |
|
|
|
<Border HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="1" Grid.RowSpan="2"/> |
|
|
|
<Border HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="1" Grid.RowSpan="2"/> |
|
|
|
<TextBlock Grid.Column="0" Text="配件数" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<TextBlock Grid.Column="1" Text="任务量" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<!--<ComboBox ItemsSource="{Binding IncrementPartCountList}" Text="{Binding IncrementPartCount}" BorderThickness="0" Margin="1" HorizontalAlignment="Stretch"/>--> |
|
|
|
<c:BTextBox Grid.Row="1" Text="{Binding IncrementPartCount}" BorderThickness="0" Margin="1" HorizontalAlignment="Stretch"/> |
|
|
|
|
|
|
|
<c:BTextBox Grid.Row="1" BorderThickness="0" Text="{Binding IncrementPartTaskCount}" Margin="1" Grid.Column="1" HorizontalAlignment="Stretch"/> |
|
|
|
<Border VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="1" Height="1" Background="{StaticResource Border.Brush}" /> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid Margin="20 10 20 0"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid Height="30" > |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition MinWidth="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
</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}"/> |
|
|
|
<TextBlock Grid.Column="3" Text="操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
|
|
</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" |
|
|
|
|
|
|
|
</Grid> |
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" Background="Transparent"> |
|
|
|
<ListBox Name="basic_Listbox" |
|
|
|
ItemsSource="{Binding BasicPackProcessList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="1,1,1,0" |
|
|
|
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" |
|
|
|
<ListBox.ItemTemplate > |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=basic_Listbox,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
|
|
|
> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition MinWidth="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<ComboBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="0" DisplayMemberPath="Name" ItemsSource="{Binding PackServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" Height="30"/> |
|
|
|
<ComboBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Height="30"/> |
|
|
|
<TextBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="2" Height="30" Text="{Binding ItemCount,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="3"/> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch" |
|
|
|
Command="{Binding AddPackServiceCommand}" |
|
|
|
|
|
|
|
<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 AddBasicPackServiceCommand}" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
<Grid Margin="20 10 20 0"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid Height="30" > |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition MinWidth="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
</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}"/> |
|
|
|
<TextBlock Grid.Column="3" Text="操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
|
|
<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" |
|
|
|
</Grid> |
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" Background="Transparent"> |
|
|
|
<ListBox Name="incrementProcess_listbox" |
|
|
|
ItemsSource="{Binding IncrementProcessList}" |
|
|
|
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=incrementProcess_listbox,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
|
|
|
> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition MinWidth="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<ComboBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="0" DisplayMemberPath="Name" ItemsSource="{Binding PackServiceList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Id" SelectedValue="{Binding SelectId}" Text="{Binding ItemName}" Height="30"/> |
|
|
|
<ComboBox BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="1" ItemsSource="{Binding MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="UserName" SelectedValuePath="Id" SelectedValue="{Binding SelectUserId}" Height="30"/> |
|
|
|
<TextBox BorderThickness="0" HorizontalAlignment="Center" VerticalContentAlignment="Center" Grid.Column="2" Height="30" Text="{Binding ItemCount,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="3"/> |
|
|
|
|
|
|
|
<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 AddPackServiceCommand}" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="20 10 0 0" > |
|
|
|
<TextBlock Text="耗材项目" Margin="0 0 10 0" Style="{StaticResource middleTextBlock}" /> |
|
|
|
<Border Background="Black" VerticalAlignment="Center" Width="217" Height="1"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<Grid Margin=" 20 10 20 0"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid Height="30" > |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
</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="Right" Background="{StaticResource Border.Brush}" Width="1" Grid.Column="2"/> |
|
|
|
<TextBlock Grid.Column="0" Text="任务耗材" Style="{StaticResource middleTextBlock}"/> |
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1"> |
|
|
|
<TextBlock Text ="数量" Style="{StaticResource middleTextBlock}" Margin="10 0 0 0" /> |
|
|
|
<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> |
|
|
|
<TextBlock Grid.Column="2" Text="操作" Style="{StaticResource middleTextBlock}"/> |
|
|
|
|
|
|
|
|
|
|
|
<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" |
|
|
|
</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" |
|
|
|
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" |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=consumable_listBox,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
|
|
|
> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition/> |
|
|
|
<ColumnDefinition Width="120"/> |
|
|
|
<ColumnDefinition Width="60"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<ComboBox Margin="1" BorderThickness="0" 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" Height="30"/> |
|
|
|
<TextBox Margin="1" BorderThickness="0" VerticalContentAlignment="Center" Grid.Column="1" Height="30" Text="{Binding ItemCount,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"/> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
<c:BButton Content="添加" Foreground="Blue" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Background="Transparent" HorizontalAlignment="Stretch" |
|
|
|
|
|
|
|
<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 AddConsumableCommand}" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</ScrollViewer.Content> |
|
|
|
</ScrollViewer> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="2" > |
|
|
|
<TextBlock Text="打印机: " VerticalAlignment="Center" Margin="19 0 10 0"/> |
|
|
|
<Border BorderThickness="1" CornerRadius="0" BorderBrush="{StaticResource Border.Brush}" Height="30"> |
|
|
|
<ComboBox Name="cbPrintName" BorderThickness="0" Width="170" Height="30" ItemsSource="{Binding PrintList}" Text="{Binding PrintName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Content="打印" Margin="17 0 10 0" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch" |
|
|
|
Click="BButton_Click" |
|
|
|
/> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1" Visibility="Hidden"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Name="printArea" Width="1065" Height="800"> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Content="确定" Margin="0 0 20 0" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch" |
|
|
|
<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 PackUserName}" 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> |
|
|
|
<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/> |
|
|
|
|
|
|
|
</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}" TextWrapping="Wrap"> |
|
|
|
<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> |
|
|
|
|
|
|
|
</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> |
|
|
|
|
|
|
|
<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" BorderBrush="{StaticResource Border.Brush}" VerticalAlignment="Top" Grid.Row="2"/> |
|
|
|
<Grid Grid.Row="2"> |
|
|
|
|
|
|
|
|
|
|
|
<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> |
|
|
|