|
|
@ -25,60 +25,174 @@ |
|
|
|
Background="{StaticResource Border.Background}"> |
|
|
|
<TextBlock Text="新建采购单" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
</Border> |
|
|
|
<Grid Margin="5" Grid.Row="1"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="30"/> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="100"/> |
|
|
|
<RowDefinition Height="auto"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<ScrollViewer Grid.Row="1" Margin="0,5" FocusVisualStyle="{x:Null}"> |
|
|
|
<Grid Margin="5,0"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="30"/> |
|
|
|
<RowDefinition Height="auto"/> |
|
|
|
<RowDefinition Height="100"/> |
|
|
|
<RowDefinition Height="auto"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<Border Background="{StaticResource Border.Background}" |
|
|
|
<Border Background="{StaticResource Border.Background}" |
|
|
|
BorderThickness="1" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
SnapsToDevicePixels="True" |
|
|
|
UseLayoutRounding="True"> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="380"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
</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"/> |
|
|
|
<TextBlock Text="金额" Style="{StaticResource middleTextBlock}" Grid.Column="4"/> |
|
|
|
|
|
|
|
<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"/> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<ListBox Grid.Row="1" |
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderThickness="1,0,1,1" |
|
|
|
BorderBrush="{StaticResource Border.Brush}"> |
|
|
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
<Border Grid.Row="2" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,0,1,1"> |
|
|
|
<c:BButton Style="{StaticResource LinkButton}" Command="{Binding AddProductSkuCommand}"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="18"/> |
|
|
|
<TextBlock Text="添加商品" Margin="0,2,0,0"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
</ScrollViewer> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="380"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
</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"/> |
|
|
|
<TextBlock Text="单价" Style="{StaticResource middleTextBlock}" Grid.Column="4"/> |
|
|
|
<TextBlock Text="总额" Style="{StaticResource middleTextBlock}" Grid.Column="5"/> |
|
|
|
|
|
|
|
<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"/> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<ListBox x:Name="listbox_ProductSkuWithSchemeList" Grid.Row="1" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderThickness="1,0,1,1" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
ItemsSource="{Binding ProductSkuWithSchemeList}"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_ProductSkuWithSchemeList}"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="380"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="90"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
|
|
|
Width="80" DecodePixelWidth="80" |
|
|
|
VerticalAlignment="Top" Margin="0,5,0,0" |
|
|
|
Cursor="Hand"/> |
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Top" Margin="0,5,0,0"> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="SKU:"/> |
|
|
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" |
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
CommandParameter="{Binding SkuId}" |
|
|
|
Margin=" 5,0,0,0"/> |
|
|
|
</StackPanel> |
|
|
|
<TextBlock TextTrimming="CharacterEllipsis" |
|
|
|
Margin="0,17,0,0"> |
|
|
|
<Run Text="名称:"/> |
|
|
|
<Run Text="{Binding Title}"/> |
|
|
|
<TextBlock.ToolTip> |
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
<TextBlock Text="{Binding Title}"/> |
|
|
|
</ToolTip> |
|
|
|
</TextBlock.ToolTip> |
|
|
|
</TextBlock> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,17,0,0"> |
|
|
|
<TextBlock> |
|
|
|
<Run Text="单价:"/> |
|
|
|
<Run Text="{Binding Price}"/> |
|
|
|
</TextBlock> |
|
|
|
<TextBlock Margin="10,0,0,0"> |
|
|
|
<Run Text="数量:"/> |
|
|
|
<Run Text="{Binding Quantity}"/> |
|
|
|
</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<ListBox x:Name="listbox_PurchaseSchemeProductSkuList" Grid.Column="1" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
|
ItemsSource="{Binding PurchaseSchemeProductSkuList}"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_PurchaseSchemeProductSkuList}"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
<ColumnDefinition Width="80"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="90"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
|
|
|
Width="80" DecodePixelWidth="80" |
|
|
|
VerticalAlignment="Top" Margin="0,5,0,0" |
|
|
|
Cursor="Hand"/> |
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Top" Margin="0,5,0,0"> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="SKU:"/> |
|
|
|
<c:BButton Content="{Binding PurchaseSkuId}" Style="{StaticResource LinkButton}" |
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
CommandParameter="{Binding PurchaseSkuId}" |
|
|
|
Margin=" 5,0,0,0"/> |
|
|
|
</StackPanel> |
|
|
|
<TextBlock TextTrimming="CharacterEllipsis" |
|
|
|
Margin="0,17,0,0"> |
|
|
|
<Run Text="名称:"/> |
|
|
|
<Run Text="{Binding Title}"/> |
|
|
|
<TextBlock.ToolTip> |
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
<TextBlock Text="{Binding Title}"/> |
|
|
|
</ToolTip> |
|
|
|
</TextBlock.ToolTip> |
|
|
|
</TextBlock> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,17,0,0"> |
|
|
|
<TextBlock> |
|
|
|
<Run Text="采购平台:"/> |
|
|
|
<Run Text="{Binding DataContext.PurchasePlatform,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}}"/> |
|
|
|
</TextBlock> |
|
|
|
<TextBlock Margin="10,0,0,0"> |
|
|
|
<Run Text="采购商:"/> |
|
|
|
<Run Text="{Binding DataContext.PurchaserName,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}}"/> |
|
|
|
</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
<Border Grid.Row="2" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,0,1,1"> |
|
|
|
<c:BButton Style="{StaticResource LinkButton}" Command="{Binding AddProductSkuCommand}"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="18"/> |
|
|
|
<TextBlock Text="添加商品" Margin="0,2,0,0"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid Grid.Row="2" Margin="5,0"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
@ -111,7 +225,7 @@ |
|
|
|
<Run Text="元"/> |
|
|
|
</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Center" Grid.Row="3" Margin="5,0"> |
|
|
|