|
@@ -201,7 +201,7 @@
|
|
</Button.Template>
|
|
</Button.Template>
|
|
</Button>
|
|
</Button>
|
|
<Separator />
|
|
<Separator />
|
|
- <Button Command="{Binding AddInspectionReportCommand}">
|
|
|
|
|
|
+ <Button Command="{Binding AddSampleRegistrationCommand}">
|
|
<Button.Template>
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Border
|
|
<Border
|
|
@@ -225,7 +225,7 @@
|
|
</ControlTemplate>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button.Template>
|
|
</Button>
|
|
</Button>
|
|
- <Button Command="{Binding SaveInspectionReportCommand}">
|
|
|
|
|
|
+ <Button Command="{Binding SaveSampleRegistrationCommand}">
|
|
<Button.Template>
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Border
|
|
<Border
|
|
@@ -250,7 +250,7 @@
|
|
</Button.Template>
|
|
</Button.Template>
|
|
</Button>
|
|
</Button>
|
|
<Separator />
|
|
<Separator />
|
|
- <Button Command="{Binding ExportInspectionReportCommand}">
|
|
|
|
|
|
+ <Button Command="{Binding ExportSampleRegistrationCommand}">
|
|
<Button.Template>
|
|
<Button.Template>
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Border
|
|
<Border
|
|
@@ -293,7 +293,7 @@
|
|
FilterLanguage="SimplifiedChinese"
|
|
FilterLanguage="SimplifiedChinese"
|
|
HeadersVisibility="All"
|
|
HeadersVisibility="All"
|
|
HorizontalGridLinesBrush="LightSlateGray"
|
|
HorizontalGridLinesBrush="LightSlateGray"
|
|
- ItemsSource="{Binding InspectionReports, Mode=TwoWay}"
|
|
|
|
|
|
+ ItemsSource="{Binding SampleRegistrations, Mode=TwoWay}"
|
|
RowHeaderStyle="{StaticResource CustomRowHeaderStyle}"
|
|
RowHeaderStyle="{StaticResource CustomRowHeaderStyle}"
|
|
RowStyle="{StaticResource CustomRowStyle}"
|
|
RowStyle="{StaticResource CustomRowStyle}"
|
|
SelectionMode="Single"
|
|
SelectionMode="Single"
|
|
@@ -304,7 +304,7 @@
|
|
<!-- 选择行事件 -->
|
|
<!-- 选择行事件 -->
|
|
<b:Interaction.Triggers>
|
|
<b:Interaction.Triggers>
|
|
<b:EventTrigger EventName="SelectionChanged">
|
|
<b:EventTrigger EventName="SelectionChanged">
|
|
- <b:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding ElementName=DataGridMain, Path=SelectedItem}" />
|
|
|
|
|
|
+ <b:InvokeCommandAction Command="{Binding SampleRegistrationSelectionChangedCommand}" CommandParameter="{Binding ElementName=DataGridMain, Path=SelectedItem}" />
|
|
</b:EventTrigger>
|
|
</b:EventTrigger>
|
|
</b:Interaction.Triggers>
|
|
</b:Interaction.Triggers>
|
|
|
|
|
|
@@ -340,23 +340,31 @@
|
|
IsReadOnly="True" />
|
|
IsReadOnly="True" />
|
|
<control:FilterDataGridTextColumn
|
|
<control:FilterDataGridTextColumn
|
|
Width="300"
|
|
Width="300"
|
|
- Binding="{Binding}"
|
|
|
|
|
|
+ Binding="{Binding SampleNo}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
Header="抽样登记表编号"
|
|
Header="抽样登记表编号"
|
|
IsColumnFiltered="True"
|
|
IsColumnFiltered="True"
|
|
IsReadOnly="True" />
|
|
IsReadOnly="True" />
|
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
|
+ Width="200"
|
|
|
|
+ Binding="{Binding InspectApply.Company}"
|
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
|
+ Header="生产企业"
|
|
|
|
+ IsColumnFiltered="True"
|
|
|
|
+ IsReadOnly="True" />
|
|
<control:FilterDataGridTextColumn
|
|
<control:FilterDataGridTextColumn
|
|
Width="120"
|
|
Width="120"
|
|
- Binding="{Binding}"
|
|
|
|
|
|
+ Binding="{Binding EditTime, StringFormat=yyyy-MM-dd}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
Header="抽样时间"
|
|
Header="抽样时间"
|
|
IsColumnFiltered="True"
|
|
IsColumnFiltered="True"
|
|
IsReadOnly="True" />
|
|
IsReadOnly="True" />
|
|
<control:FilterDataGridTextColumn
|
|
<control:FilterDataGridTextColumn
|
|
- Width="120"
|
|
|
|
- Binding="{Binding}"
|
|
|
|
|
|
+ Width="200"
|
|
|
|
+ Binding="{Binding BatchNo}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
Header="批号"
|
|
Header="批号"
|
|
@@ -364,7 +372,7 @@
|
|
IsReadOnly="True" />
|
|
IsReadOnly="True" />
|
|
<control:FilterDataGridTextColumn
|
|
<control:FilterDataGridTextColumn
|
|
Width="120"
|
|
Width="120"
|
|
- Binding="{Binding}"
|
|
|
|
|
|
+ Binding="{Binding PacketNo}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
Header="包号"
|
|
Header="包号"
|
|
@@ -396,14 +404,15 @@
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
|
|
+ <RowDefinition Height="45" />
|
|
|
|
+ <RowDefinition Height="40" />
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
- <RowDefinition Height="35" />
|
|
|
|
- <RowDefinition Height="60" />
|
|
|
|
- <RowDefinition Height="35" />
|
|
|
|
|
|
+ <RowDefinition Height="80" />
|
|
|
|
+ <RowDefinition Height="40" />
|
|
<RowDefinition Height="150" />
|
|
<RowDefinition Height="150" />
|
|
- <RowDefinition Height="170" />
|
|
|
|
- <RowDefinition Height="200" />
|
|
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition Height="35" />
|
|
|
|
+ <RowDefinition Height="35" />
|
|
|
|
+
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*" />
|
|
<ColumnDefinition Width="2*" />
|
|
@@ -421,9 +430,279 @@
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="25"
|
|
FontSize="25"
|
|
Text="被装材料产品抽样信息登记表" />
|
|
Text="被装材料产品抽样信息登记表" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="1"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="编号:" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="1"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.SampleNo}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="2"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="*单位:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="2"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.Department, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="2"
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="*时间:" />
|
|
|
|
+ <DatePicker
|
|
|
|
+ Grid.Row="2"
|
|
|
|
+ Grid.Column="3"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.EditTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="3"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="类别:" />
|
|
|
|
+ <Grid
|
|
|
|
+ Grid.Row="3"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Grid.ColumnSpan="3"
|
|
|
|
+ Background="White">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+ <TextBox
|
|
|
|
+ x:Name="InspectCategory"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.InspectApply.InspCategory}"
|
|
|
|
+ TextChanged="InspectCategory_TextChanged"
|
|
|
|
+ Visibility="Collapsed" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="FirstSelected"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ Content="首批检验"
|
|
|
|
+ GroupName="CategoryGroup" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="SecondSelected"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ Content="出厂检验"
|
|
|
|
+ GroupName="CategoryGroup" />
|
|
|
|
+ </Grid>
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="4"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="样品名称:" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="4"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.InspectApply.Material.Name}"
|
|
|
|
+ TextWrapping="Wrap" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="4"
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="生产企业:" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="4"
|
|
|
|
+ Grid.Column="3"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.InspectApply.Company}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="5"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="样品生产日期:" />
|
|
|
|
+ <DatePicker
|
|
|
|
+ Grid.Row="5"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.EditTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="5"
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="*批号:" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="5"
|
|
|
|
+ Grid.Column="3"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.BatchNo}"
|
|
|
|
+ TextWrapping="Wrap" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="6"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="包号:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="6"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.PacketNo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="6"
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="数量:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="6"
|
|
|
|
+ Grid.Column="3"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.Quantity, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="7"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="检测项目:" />
|
|
|
|
+ <GroupBox
|
|
|
|
+ Grid.Row="7"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Grid.ColumnSpan="3"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Header="检测项目">
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <WrapPanel
|
|
|
|
+ AllowDrop="True"
|
|
|
|
+ FlowDirection="LeftToRight"
|
|
|
|
+ Orientation="Horizontal">
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="TestAllRadioButton"
|
|
|
|
+ Padding="10,0,10,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Checked="RadioButton_Checked"
|
|
|
|
+ Content="全检"
|
|
|
|
+ GroupName="TestingItemGroup" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="MandatoryTestRadioButton"
|
|
|
|
+ Padding="10,0,10,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Checked="RadioButton_Checked"
|
|
|
|
+ Content="强制性指标"
|
|
|
|
+ GroupName="TestingItemGroup" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="ColorFastnessRadioButton"
|
|
|
|
+ Padding="10,0,10,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Checked="RadioButton_Checked"
|
|
|
|
+ Content="色牢度"
|
|
|
|
+ GroupName="TestingItemGroup" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="SpectrumRadioButton"
|
|
|
|
+ Padding="10,0,10,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Checked="RadioButton_Checked"
|
|
|
|
+ Content="光谱"
|
|
|
|
+ GroupName="TestingItemGroup" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="ReferenceRadioButton"
|
|
|
|
+ Padding="10,0,10,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Checked="RadioButton_Checked"
|
|
|
|
+ Content="参考性指标"
|
|
|
|
+ GroupName="TestingItemGroup" />
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="SingleRadioButton"
|
|
|
|
+ Padding="10,0,10,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Checked="RadioButton_Checked"
|
|
|
|
+ Content="单项指标"
|
|
|
|
+ GroupName="TestingItemGroup" />
|
|
|
|
+ <TextBox Width="200" Text="{Binding SelectedSampleRegistration.SingleIndexItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBox
|
|
|
|
+ x:Name="TestingItemTextBox"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.TestingItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
+ TextChanged="TestingItemTextBox_TextChanged"
|
|
|
|
+ Visibility="Collapsed" />
|
|
|
|
+ </WrapPanel>
|
|
|
|
+ </GroupBox>
|
|
|
|
+ <Button
|
|
|
|
+ Grid.Row="8"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ HorizontalAlignment="Left"
|
|
|
|
+ Command="{Binding RandomInspectionOrgCommand}">
|
|
|
|
+ <Button.Template>
|
|
|
|
+ <ControlTemplate>
|
|
|
|
+ <Border
|
|
|
|
+ Width="140"
|
|
|
|
+ Height="30"
|
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
|
+ CornerRadius="5">
|
|
|
|
+ <StackPanel
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Orientation="Horizontal">
|
|
|
|
+ <TextBlock VerticalAlignment="Center" Text="抽取检测机构" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
|
+ FontSize="20"
|
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Tap_Double_24}" />
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </Border>
|
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
|
+ </Trigger>
|
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
|
+ </ControlTemplate>
|
|
|
|
+ </Button.Template>
|
|
|
|
+ </Button>
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="9"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="检测机构:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="9"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Grid.ColumnSpan="3"
|
|
|
|
+ Height="150"
|
|
|
|
+ AcceptsReturn="True"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.InspectionOrganization, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
+ TextWrapping="Wrap"
|
|
|
|
+ VerticalScrollBarVisibility="Auto" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="10"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="*生产企业人员:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="10"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Grid.ColumnSpan="3"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.ProductUsers, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="11"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="*承办人:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="11"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.EditUser, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
+ <TextBlock
|
|
|
|
+ Grid.Row="11"
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="*联系电话:" />
|
|
|
|
+ <TextBox
|
|
|
|
+ Grid.Row="11"
|
|
|
|
+ Grid.Column="3"
|
|
|
|
+ Text="{Binding SelectedSampleRegistration.Telephone, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</ScrollViewer>
|
|
|
|
|