|
|
@ -128,13 +128,14 @@ |
|
|
|
<Grid Grid.Column="1"> |
|
|
|
<ListBox x:Name="listbox_order" HorizontalAlignment="Left" |
|
|
|
Height="150" Width="900" Margin="0" ScrollViewer.HorizontalScrollBarVisibility="Visible" |
|
|
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
ItemsSource="{Binding PurchaseSkuList,Mode=TwoWay}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="0" |
|
|
|
Foreground="{StaticResource Text.Color}"> |
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
Visibility="{Binding SkuPurchaseSchemeId,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" |
|
|
|
> |
|
|
|
<ListBox.ItemsPanel> |
|
|
|
<ItemsPanelTemplate> |
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" /> |
|
|
@ -236,6 +237,104 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</DockPanel> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
<ListBox x:Name="listbox_noSchemeId" HorizontalAlignment="Left" |
|
|
|
Height="150" Width="900" Margin="0" ScrollViewer.HorizontalScrollBarVisibility="Visible" |
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
ItemsSource="{Binding PurchaseSkuList,Mode=TwoWay}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="0" |
|
|
|
Foreground="{StaticResource Text.Color}" |
|
|
|
Visibility="{Binding SkuPurchaseSchemeId,Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}" |
|
|
|
> |
|
|
|
<ListBox.ItemsPanel> |
|
|
|
<ItemsPanelTemplate> |
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" /> |
|
|
|
</ItemsPanelTemplate> |
|
|
|
</ListBox.ItemsPanel> |
|
|
|
|
|
|
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid |
|
|
|
MinHeight="100"> |
|
|
|
<StackPanel Orientation="Horizontal" Height="150"> |
|
|
|
<c:BAsyncImage UrlSource="{Binding Logo}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" |
|
|
|
Height="150" Width="150" Stretch="Fill" |
|
|
|
VerticalAlignment="Top" Margin="20 0 0 0" |
|
|
|
Cursor="Hand"> |
|
|
|
</c:BAsyncImage> |
|
|
|
<DockPanel VerticalAlignment="Top" Width="190" Height="150"> |
|
|
|
|
|
|
|
<TextBlock Margin="10 10 0 0" DockPanel.Dock="Top" TextTrimming="CharacterEllipsis"> |
|
|
|
<TextBlock.ToolTip> |
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
<TextBlock Text="{Binding PurchaseSkuId}"/> |
|
|
|
</ToolTip> |
|
|
|
</TextBlock.ToolTip> |
|
|
|
<Run Text="配件商品ID:"/> |
|
|
|
<Run Text="{Binding PurchaseSkuId}"/> |
|
|
|
</TextBlock > |
|
|
|
<TextBlock Margin="10 10 0 10" DockPanel.Dock="Top" TextTrimming="CharacterEllipsis"> |
|
|
|
<TextBlock.ToolTip> |
|
|
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
|
|
|
<TextBlock Text="{Binding Title}"/> |
|
|
|
</ToolTip> |
|
|
|
</TextBlock.ToolTip> |
|
|
|
<Run Text="SKU名称:"/> |
|
|
|
<Run Text="{Binding Title}"/> |
|
|
|
</TextBlock > |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="10 0 0 0" Height="25" VerticalAlignment="Bottom" DockPanel.Dock="Bottom" Orientation="Horizontal"> |
|
|
|
<TextBlock Text="合格证:" VerticalAlignment="Center"/> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" |
|
|
|
Visibility="{Binding IsNeedCer, Converter={StaticResource objConverter}, ConverterParameter=true:Visible:Collapsed }"> |
|
|
|
<!--Content="{Binding CerDTO,Converter={StaticResource objConverter},ConverterParameter=#null:待设置:待确认}"--> |
|
|
|
<c:BButton Content="待确认" Style="{StaticResource LinkButton}" Width="35" Height="15" |
|
|
|
Command="{Binding DataContext. SetCertificateCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
CommandParameter="{Binding }" |
|
|
|
Visibility="{Binding IsSetCertificate, Converter={StaticResource objConverter}, ConverterParameter=true:Visible:Collapsed }"/> |
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" |
|
|
|
Visibility="{Binding IsSetCertificate, Converter={StaticResource objConverter}, ConverterParameter=false:Visible:Collapsed }"> |
|
|
|
<c:BButton Content="查看" Style="{StaticResource LinkButton}" Width="35" Height="15" |
|
|
|
CommandParameter="{Binding PurchaseSkuId}" |
|
|
|
Command="{Binding DataContext. LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"/> |
|
|
|
<c:BButton Content="修改" Style="{StaticResource LinkButton}" Width="35" Height="15" CommandParameter="{Binding }" |
|
|
|
Command="{Binding DataContext.SetCertificateCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
/> |
|
|
|
</StackPanel > |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" |
|
|
|
Visibility="{Binding IsNeedCer, Converter={StaticResource objConverter}, ConverterParameter=true:Collapsed:Visible }"> |
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" > |
|
|
|
<!--Visibility="{Binding IsSetCertificate, Converter={StaticResource objConverter}, ConverterParameter=false:Visible:Collapsed }"--> |
|
|
|
<TextBlock Text="无需合格证" Height="15" Margin="5 0 0 0" |
|
|
|
/> |
|
|
|
<c:BButton Content="修改" Style="{StaticResource LinkButton}" Width="35" Height="15" CommandParameter="{Binding }" |
|
|
|
Command="{Binding DataContext.SetCertificateCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" |
|
|
|
/> |
|
|
|
</StackPanel > |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</DockPanel> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|