|
@@ -233,7 +233,7 @@
|
|
</ControlTemplate>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button.Template>
|
|
</Button>-->
|
|
</Button>-->
|
|
- <Button
|
|
|
|
|
|
+ <!--<Button
|
|
x:Name="SaveButton"
|
|
x:Name="SaveButton"
|
|
Click="SaveButton_OnClick"
|
|
Click="SaveButton_OnClick"
|
|
Command="{Binding SaveInspectionReportCommand}">
|
|
Command="{Binding SaveInspectionReportCommand}">
|
|
@@ -259,8 +259,8 @@
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button.Template>
|
|
- </Button>
|
|
|
|
- <Separator />
|
|
|
|
|
|
+ </Button>-->
|
|
|
|
+ <!--<Separator />-->
|
|
<Button Command="{Binding ExportInspectionReportCommand}">
|
|
<Button Command="{Binding ExportInspectionReportCommand}">
|
|
<Button.Template>
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
@@ -438,6 +438,7 @@
|
|
<TextBox
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
|
|
+ IsReadOnly="True"
|
|
Text="{Binding SelectedInspectionReport.Department, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
Text="{Binding SelectedInspectionReport.Department, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Row="2"
|
|
@@ -447,6 +448,7 @@
|
|
<DatePicker
|
|
<DatePicker
|
|
Grid.Row="2"
|
|
Grid.Row="2"
|
|
Grid.Column="3"
|
|
Grid.Column="3"
|
|
|
|
+ IsEnabled="False"
|
|
Text="{Binding SelectedInspectionReport.ReportTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
Text="{Binding SelectedInspectionReport.ReportTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Row="3"
|
|
@@ -598,6 +600,7 @@
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="3"
|
|
Grid.ColumnSpan="3"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
|
|
+ IsReadOnly="True"
|
|
Text="{Binding SelectedInspectionReport.ReportBasis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Text="{Binding SelectedInspectionReport.ReportBasis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap" />
|
|
TextWrapping="Wrap" />
|
|
<TextBlock
|
|
<TextBlock
|
|
@@ -631,6 +634,7 @@
|
|
Foreground="Red"
|
|
Foreground="Red"
|
|
GroupName="IsSampleGroup"
|
|
GroupName="IsSampleGroup"
|
|
IsChecked="{Binding SelectedInspectionReport.IsSample, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
IsChecked="{Binding SelectedInspectionReport.IsSample, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
+ IsEnabled="False"
|
|
Unchecked="IsSampleRadioButton_Unchecked" />
|
|
Unchecked="IsSampleRadioButton_Unchecked" />
|
|
<RadioButton
|
|
<RadioButton
|
|
x:Name="NotSampleRadioButton"
|
|
x:Name="NotSampleRadioButton"
|
|
@@ -640,7 +644,8 @@
|
|
VerticalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
Content="未抽样送检"
|
|
Content="未抽样送检"
|
|
GroupName="IsSampleGroup"
|
|
GroupName="IsSampleGroup"
|
|
- IsChecked="True" />
|
|
|
|
|
|
+ IsChecked="True"
|
|
|
|
+ IsEnabled="False" />
|
|
<TextBox
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.Column="0"
|
|
@@ -649,6 +654,7 @@
|
|
HorizontalContentAlignment="Left"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Top"
|
|
VerticalContentAlignment="Top"
|
|
AcceptsReturn="True"
|
|
AcceptsReturn="True"
|
|
|
|
+ IsReadOnly="True"
|
|
Text="{Binding SelectedInspectionReport.ReportDesc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Text="{Binding SelectedInspectionReport.ReportDesc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
VerticalScrollBarVisibility="Auto" />
|
|
@@ -681,7 +687,8 @@
|
|
Content="合格"
|
|
Content="合格"
|
|
Foreground="Green"
|
|
Foreground="Green"
|
|
GroupName="ConclusionGroup"
|
|
GroupName="ConclusionGroup"
|
|
- IsChecked="{Binding SelectedInspectionReport.Conclusion, Mode=TwoWay, Converter={StaticResource ContentToBoolConverter}, ConverterParameter=合格}" />
|
|
|
|
|
|
+ IsChecked="{Binding SelectedInspectionReport.Conclusion, Mode=TwoWay, Converter={StaticResource ContentToBoolConverter}, ConverterParameter=合格}"
|
|
|
|
+ IsEnabled="False" />
|
|
<RadioButton
|
|
<RadioButton
|
|
x:Name="SecondQualifiedRadioButton"
|
|
x:Name="SecondQualifiedRadioButton"
|
|
Grid.Row="0"
|
|
Grid.Row="0"
|
|
@@ -691,7 +698,8 @@
|
|
Content="合格(初测不合格,复测合格)"
|
|
Content="合格(初测不合格,复测合格)"
|
|
Foreground="DarkOrange"
|
|
Foreground="DarkOrange"
|
|
GroupName="ConclusionGroup"
|
|
GroupName="ConclusionGroup"
|
|
- IsChecked="{Binding SelectedInspectionReport.Conclusion, Mode=TwoWay, Converter={StaticResource ContentToBoolConverter}, ConverterParameter=合格(初测不合格,复测合格)}" />
|
|
|
|
|
|
+ IsChecked="{Binding SelectedInspectionReport.Conclusion, Mode=TwoWay, Converter={StaticResource ContentToBoolConverter}, ConverterParameter=合格(初测不合格,复测合格)}"
|
|
|
|
+ IsEnabled="False" />
|
|
<RadioButton
|
|
<RadioButton
|
|
x:Name="UnQualifiedRadioButton"
|
|
x:Name="UnQualifiedRadioButton"
|
|
Grid.Row="0"
|
|
Grid.Row="0"
|
|
@@ -701,7 +709,8 @@
|
|
Content="不合格"
|
|
Content="不合格"
|
|
Foreground="Red"
|
|
Foreground="Red"
|
|
GroupName="ConclusionGroup"
|
|
GroupName="ConclusionGroup"
|
|
- IsChecked="{Binding SelectedInspectionReport.Conclusion, Mode=TwoWay, Converter={StaticResource ContentToBoolConverter}, ConverterParameter=不合格}" />
|
|
|
|
|
|
+ IsChecked="{Binding SelectedInspectionReport.Conclusion, Mode=TwoWay, Converter={StaticResource ContentToBoolConverter}, ConverterParameter=不合格}"
|
|
|
|
+ IsEnabled="False" />
|
|
<!--<TextBox
|
|
<!--<TextBox
|
|
x:Name="ConclusionTextBox"
|
|
x:Name="ConclusionTextBox"
|
|
Grid.Row="0"
|
|
Grid.Row="0"
|
|
@@ -717,6 +726,7 @@
|
|
HorizontalContentAlignment="Left"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Top"
|
|
VerticalContentAlignment="Top"
|
|
AcceptsReturn="True"
|
|
AcceptsReturn="True"
|
|
|
|
+ IsReadOnly="True"
|
|
Text="{Binding SelectedInspectionReport.ConclusionDesc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Text="{Binding SelectedInspectionReport.ConclusionDesc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
VerticalScrollBarVisibility="Auto" />
|
|
@@ -743,7 +753,11 @@
|
|
BorderThickness="1">
|
|
BorderThickness="1">
|
|
<ToolBarPanel>
|
|
<ToolBarPanel>
|
|
<ToolBar Background="White" ToolBarTray.IsLocked="True">
|
|
<ToolBar Background="White" ToolBarTray.IsLocked="True">
|
|
- <Button HorizontalContentAlignment="Center" Command="{Binding AddInspectionReportDetailCommand}">
|
|
|
|
|
|
+ <Button
|
|
|
|
+ HorizontalContentAlignment="Center"
|
|
|
|
+ Command="{Binding AddInspectionReportDetailCommand}"
|
|
|
|
+ Foreground="Gray"
|
|
|
|
+ IsEnabled="False">
|
|
<Button.Template>
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Border
|
|
<Border
|
|
@@ -767,7 +781,10 @@
|
|
</ControlTemplate>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button.Template>
|
|
</Button>
|
|
</Button>
|
|
- <Button Command="{Binding RemoveInspectionReportDetailCommand}">
|
|
|
|
|
|
+ <Button
|
|
|
|
+ Command="{Binding RemoveInspectionReportDetailCommand}"
|
|
|
|
+ Foreground="Gray"
|
|
|
|
+ IsEnabled="False">
|
|
<Button.Template>
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Border
|
|
<Border
|
|
@@ -834,7 +851,10 @@
|
|
</Style>
|
|
</Style>
|
|
</DataGrid.Resources>
|
|
</DataGrid.Resources>
|
|
<DataGrid.Columns>
|
|
<DataGrid.Columns>
|
|
- <DataGridTemplateColumn Width="100" Header="检验组">
|
|
|
|
|
|
+ <DataGridTemplateColumn
|
|
|
|
+ Width="100"
|
|
|
|
+ Header="检验组"
|
|
|
|
+ IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<DataTemplate>
|
|
<TextBlock
|
|
<TextBlock
|
|
@@ -866,7 +886,8 @@
|
|
Binding="{Binding SupervisionUnit, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Binding="{Binding SupervisionUnit, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
- Header="单位" />
|
|
|
|
|
|
+ Header="单位"
|
|
|
|
+ IsReadOnly="True" />
|
|
|
|
|
|
<!--<DataGridTextColumn
|
|
<!--<DataGridTextColumn
|
|
Width="100"
|
|
Width="100"
|
|
@@ -874,7 +895,10 @@
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
Header="姓名" />-->
|
|
Header="姓名" />-->
|
|
- <DataGridTemplateColumn Width="100" Header="姓名">
|
|
|
|
|
|
+ <DataGridTemplateColumn
|
|
|
|
+ Width="100"
|
|
|
|
+ Header="姓名"
|
|
|
|
+ IsReadOnly="True">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<DataTemplate>
|
|
<TextBlock
|
|
<TextBlock
|