|
|
|
<c:BWindow x:Class="BBWY.Client.Views.BatchPurchase.BatchPurchaseAddProductSku"
|
|
|
|
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.BatchPurchase"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
Style="{StaticResource bwstyle}"
|
|
|
|
Title="BatchPurchaseAddProductSku" Height="600" Width="500"
|
|
|
|
DataContext="{Binding BatchPurchaseAddProductSku,Source={StaticResource Locator}}">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
<RowDefinition Height="100"/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999" Grid.RowSpan="5"/>
|
|
|
|
|
|
|
|
<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" Margin="5,0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition Width="80"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="SPU" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
|
|
|
<c:BTextBox Grid.Column="1" Text="{Binding Spu}"/>
|
|
|
|
|
|
|
|
<TextBlock Text="SKU" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="2" Margin="0,0,5,0"/>
|
|
|
|
<c:BTextBox Grid.Column="3" Text="{Binding Sku}"/>
|
|
|
|
|
|
|
|
<c:BButton Grid.Column="4" Content="搜索" Width="70" Command="{Binding SearchCommand}"/>
|
|
|
|
|
|
|
|
<TextBlock Text="采购商" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" Margin="0,0,5,0"/>
|
|
|
|
<ComboBox Grid.Column="1" Grid.Row="1" Height="30"
|
|
|
|
ItemsSource="{Binding PurchaserList}"
|
|
|
|
DisplayMemberPath="Name"
|
|
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
|
|
|
|
<TextBlock Text="平台" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="2" Grid.Row="1" Margin="0,0,5,0"/>
|
|
|
|
<ComboBox Grid.Column="3" Grid.Row="1" Height="30"
|
|
|
|
ItemsSource="{Binding PurchasePlatformList}"
|
|
|
|
DisplayMemberPath="Value"
|
|
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
|
|
|
|
<c:BButton Grid.Column="4" Content="筛选" Width="70" Grid.Row="1" Background="#2879FF" Command="{Binding FilterCommand}"/>
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<DataGrid Grid.Row="2"
|
|
|
|
ItemsSource="{Binding FilterList}"
|
|
|
|
Margin="5,0"
|
|
|
|
BorderBrush="{StaticResource Border.Brush}"
|
|
|
|
BorderThickness="1"
|
|
|
|
RowHeight="90">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTemplateColumn Width="35">
|
|
|
|
<DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<CheckBox Margin="5,0,0,0"
|
|
|
|
IsChecked="{Binding DataContext.AllSelected,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGrid}}}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.HeaderTemplate>
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<CheckBox IsChecked="{Binding IsSelected}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTemplateColumn Header="商品信息" Width="*" HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
<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="0,5,0,0"
|
|
|
|
Cursor="Hand"/>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,5,0,5">
|
|
|
|
<TextBlock TextTrimming="CharacterEllipsis">
|
|
|
|
<TextBlock.ToolTip>
|
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}">
|
|
|
|
<TextBlock Text="{Binding Title}"/>
|
|
|
|
</ToolTip>
|
|
|
|
</TextBlock.ToolTip>
|
|
|
|
<Run Text="SKU名称:"/>
|
|
|
|
<Run Text="{Binding Title}"/>
|
|
|
|
</TextBlock>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Text="SPU:"/>
|
|
|
|
<c:BButton Content="{Binding ProductId}" Style="{StaticResource LinkButton}"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding ProductId}"
|
|
|
|
Margin=" 5,0,0,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Text="SKU:"/>
|
|
|
|
<c:BButton Content="{Binding Id}" Style="{StaticResource LinkButton}"
|
|
|
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}"
|
|
|
|
CommandParameter="{Binding Id}"
|
|
|
|
Margin=" 5,0,0,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Margin=" 5,0,0,0">
|
|
|
|
<Run Text="单价:"/>
|
|
|
|
<Run Text="{Binding Price}"/>
|
|
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTemplateColumn Header="数量" Width="80" HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<c:BButton Content="-"/>
|
|
|
|
<c:BTextBox Text="{Binding Quantity}" Margin="5,0"/>
|
|
|
|
<c:BButton Content="+"/>
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
|
</DataGridTemplateColumn>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
<c:BButton Grid.Column="4" Content="确定" Width="80" Grid.Row="3" Command="{Binding SaveCommand}" HorizontalAlignment="Right" Margin="0,0,5,0"/>
|
|
|
|
</Grid>
|
|
|
|
</c:BWindow>
|