|
|
|
<c:BWindow x:Class="BBWY.Client.Views.QualityTask.QualitySetCerWindow"
|
|
|
|
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.QualityTask"
|
|
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
xmlns:c ="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
|
|
CloseButtonVisibility="Visible"
|
|
|
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
|
|
|
MinButtonVisibility="Collapsed"
|
|
|
|
MaxButtonVisibility="Collapsed" Height="480" Width="383"
|
|
|
|
RightButtonGroupMargin="0,5,5,0">
|
|
|
|
<Grid DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:QualitySetCerWindow}}}">
|
|
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<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">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="60"/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="20 10 0 0">
|
|
|
|
<c:BButton Content="合格证信息" Width="100"
|
|
|
|
Background="{Binding PackCerState,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=合格证信息:#8080FF:#F2F2F2}"
|
|
|
|
Foreground="{Binding PackCerState,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=合格证信息:White:#4A4A4A}"
|
|
|
|
Command="{Binding SetPackCerStateCommand}" CommandParameter="{x:Static cmodel:PackCerState.合格证信息}"/>
|
|
|
|
<c:BButton Content="无需合格证" Width="100"
|
|
|
|
Background="{Binding PackCerState,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=无需合格证:#8080FF:#F2F2F2}"
|
|
|
|
Foreground="{Binding PackCerState,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=无需合格证:White:#4A4A4A}"
|
|
|
|
Command="{Binding SetPackCerStateCommand}" CommandParameter="{x:Static cmodel:PackCerState.无需合格证}"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Visibility="{Binding PackCerState,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=合格证信息:Visible:Collapsed}">
|
|
|
|
<local:QualitySetCerControl model="{Binding CertificateModel,Mode=TwoWay}"/>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
<Border Grid.Row="2" Height="1" VerticalAlignment="Top" BorderBrush="{StaticResource Border.Background}" BorderThickness="1"/>
|
|
|
|
<c:BButton x:Name="save_btn" Background="{StaticResource Button.Selected.Background}" Grid.Row="2" Content="确认" HorizontalAlignment="Right" Margin="0 0 5 0" Width="100" VerticalAlignment="Stretch"
|
|
|
|
Click="save_btn_Click" />
|
|
|
|
</Grid>
|
|
|
|
</c:BWindow>
|