|
|
@ -38,24 +38,117 @@ |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<TextBlock Text="SPU" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,5,0"/> |
|
|
|
<c:BTextBox Grid.Column="1"/> |
|
|
|
<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"/> |
|
|
|
<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"/> |
|
|
|
<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"/> |
|
|
|
<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> |
|
|
|