|
|
@ -9,7 +9,7 @@ |
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|
|
|
mc:Ignorable="d" |
|
|
|
Title="关联采购订单" |
|
|
|
Height="500" Width="500" |
|
|
|
Height="800" Width="500" |
|
|
|
Style="{StaticResource bwstyle}" |
|
|
|
MinButtonVisibility="Collapsed" |
|
|
|
MaxButtonVisibility="Collapsed"> |
|
|
@ -26,7 +26,7 @@ |
|
|
|
<!--<RowDefinition Height="130"/> |
|
|
|
<RowDefinition Height="1*"/>--> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition Height="60"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
|
|
@ -46,7 +46,7 @@ |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="130"/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition Height="60"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<Grid Margin="5,0"> |
|
|
@ -154,10 +154,12 @@ |
|
|
|
</ListBox> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Style="{StaticResource LinkButton}"> |
|
|
|
<c:BButton Grid.Row="2" Style="{StaticResource LinkButton}" |
|
|
|
Command="{Binding DataContext.AddRelationPurchaseOrderSkuCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type c:BWindow}}}" |
|
|
|
CommandParameter="{Binding }"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="16"/> |
|
|
|
<TextBlock Text="添加采购单"/> |
|
|
|
<TextBlock Text="添加Sku"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
</Grid> |
|
|
@ -166,21 +168,81 @@ |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Style="{StaticResource LinkButton}"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="16"/> |
|
|
|
<TextBlock Text="添加采购单"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right"> |
|
|
|
<TextBlock VerticalAlignment="Center" Margin="0,0,8,0"> |
|
|
|
<Run Text="总计"/> |
|
|
|
|
|
|
|
<Border Grid.Row="2" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0"> |
|
|
|
<c:BButton x:Name="btn_AddOrderDropShipping" |
|
|
|
Style="{StaticResource LinkButton}" |
|
|
|
Command="{Binding AddOrderDropShippingCommand}"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="16"/> |
|
|
|
<TextBlock Text="添加采购单"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="5,0,0,0" Grid.Row="3" FontSize="16"> |
|
|
|
<Run Text="采购总额(含运费)"/> |
|
|
|
<Run Text="{Binding TotalCost}" Foreground="#EC808D"/> |
|
|
|
<Run Text="元"/> |
|
|
|
</TextBlock> |
|
|
|
<c:BButton x:Name="btn_Save" Content="保存" Width="60" Margin="0,0,8,0" |
|
|
|
Click="btn_Save_Click"/> |
|
|
|
</StackPanel> |
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
<c:BButton x:Name="btn_Save" Content="保存" Width="60" Grid.Row="3" Margin="0,0,5,0" |
|
|
|
Click="btn_Save_Click" HorizontalAlignment="Right"/> |
|
|
|
|
|
|
|
<Border Grid.Row="1" Background="White" Margin="20" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" |
|
|
|
Visibility="{Binding IsShowChooseSkuPanel,Converter={StaticResource objConverter},ConverterParameter=true:Visible:Collapsed}"> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="30"/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
|
|
|
Background="{StaticResource Border.Background}"> |
|
|
|
<TextBlock Text="选择Sku" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
</Border> |
|
|
|
<c:BButton HorizontalAlignment="Right" Width="14" Height="14" Margin="0,0,8,0" Background="Transparent" |
|
|
|
Command="{Binding CloseShowChooseSkuPanelCommand}"> |
|
|
|
<Path Style="{StaticResource path_close}" Fill="{StaticResource Text.Color}"/> |
|
|
|
</c:BButton> |
|
|
|
|
|
|
|
<ListBox x:Name="listBox_chooseSku" Grid.Row="1" ItemsSource="{Binding ChooseRelationPurchaseOrderSkuList}" |
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderThickness="1,1,1,0" |
|
|
|
VerticalAlignment="Top" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
Margin="10"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listBox_chooseSku}" Height="90"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="50"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<CheckBox IsChecked="{Binding IsSelected,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
|
|
|
HorizontalAlignment="Center"/> |
|
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1"> |
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
|
|
|
Width="80" DecodePixelWidth="80" Margin="5,0,0,0"/> |
|
|
|
<TextBlock Text="{Binding Title}" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,0,0" |
|
|
|
TextWrapping="Wrap"/> |
|
|
|
</StackPanel> |
|
|
|
<Border Height="1" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Background="{StaticResource Border.Brush}"/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
<c:BButton Content="确定" Width="60" Grid.Row="2" Margin="0,0,5,0" HorizontalAlignment="Right" |
|
|
|
Command="{Binding CloseShowChooseSkuPanelCommand}"/> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</c:BWindow> |
|
|
|