|
@@ -7,6 +7,7 @@
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
+ xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
BorderBrush="#CBCBCB" BorderThickness="1"
|
|
|
Height="600" Width="1100" >
|
|
|
|
|
@@ -18,271 +19,301 @@
|
|
|
<Setter Property="TextAlignment" Value="Right"/>
|
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
|
</Style>
|
|
|
+ <Style TargetType="ListBoxItem">
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="ListBoxItem.IsSelected" Value="True">
|
|
|
+ <Setter Property="ListBoxItem.Background" Value="red"/>
|
|
|
+ </Trigger>
|
|
|
+
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
<Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="90"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <DockPanel Grid.Column="0" LastChildFill="True">
|
|
|
+ <TextBlock Text="方案名称列表:" Style="{StaticResource NormalTextBlockStyle}" Margin="5,0,5,0" DockPanel.Dock="Top"/>
|
|
|
+ <ListBox ItemsSource="{Binding SchItems}" SelectedValue="{Binding SelectItem}" SelectedIndex="{Binding SelectItemIndex}" >
|
|
|
+
|
|
|
+ <b:Interaction.Triggers>
|
|
|
+ <b:EventTrigger EventName="SelectionChanged">
|
|
|
+ <b:InvokeCommandAction Command="{Binding ItemChangeCommand}"/>
|
|
|
+ </b:EventTrigger>
|
|
|
+ </b:Interaction.Triggers>
|
|
|
+ </ListBox>
|
|
|
+
|
|
|
+ </DockPanel>
|
|
|
+ <Border Grid.Column="0" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
|
- <RowDefinition Height="50" />
|
|
|
- <RowDefinition />
|
|
|
- <RowDefinition />
|
|
|
- <RowDefinition />
|
|
|
- <RowDefinition Height="50" />
|
|
|
- <RowDefinition Height="50" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="50" />
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition Height="50" />
|
|
|
+ <RowDefinition Height="50" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="10">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="测试方案名称:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
+ <TextBox Height="28" Width="120" Text="{Binding ScheduleName}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="设备类型:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
+ <TextBox Height="28" Width="120" Text="{Binding DeviceKindName}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="测试项类型:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
+ <TextBox Height="28" Width="120" Text="{Binding SelectTest}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="测试项名称:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
+ <TextBox Height="28" Width="160" Text="{Binding TestName}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="10">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="测试方案名称:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
- <TextBox Height="28" Width="120" Text="{Binding ScheduleName}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="设备类型:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
- <TextBox Height="28" Width="120" Text="{Binding DeviceKindName}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="测试项类型:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
- <TextBox Height="28" Width="120" Text="{Binding SelectTest}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="测试项名称:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
- <TextBox Height="28" Width="160" Text="{Binding TestName}" IsReadOnly="True" />
|
|
|
</StackPanel>
|
|
|
+ <Border Grid.Row="0" BorderBrush="#CBCBCB" BorderThickness="0,1" />
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="80"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="1.6*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock Grid.Column="0" Text="前置项" Style="{StaticResource NormalTextBlockStyle}" TextAlignment="Center">
|
|
|
+ </TextBlock>
|
|
|
+ <Border Grid.Column="1" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="测试项类型:" Style="{StaticResource textBlockStyle}"/>
|
|
|
+ <TextBox Height="28" Width="150" Text="{Binding BeforeSelectJudge}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" >
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="明细判定逻辑:" Style="{StaticResource textBlockStyle}"/>
|
|
|
+ <TextBox Height="28" Width="150" Text="{Binding SelectLogic}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <DockPanel LastChildFill="True" >
|
|
|
+ <TextBlock Text="前置项描述:" Style="{StaticResource textBlockStyle}" />
|
|
|
+ <RichTextBox Margin="0,5,5,5" IsReadOnly="True" >
|
|
|
+ <FlowDocument>
|
|
|
+ <Paragraph>
|
|
|
+ <Run Text="{Binding BeforeDetail,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
+ </Paragraph>
|
|
|
+ </FlowDocument>
|
|
|
|
|
|
- </StackPanel>
|
|
|
- <Border Grid.Row="0" BorderBrush="#CBCBCB" BorderThickness="0,1" />
|
|
|
- <Grid Grid.Row="1">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="80"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="1.6*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <TextBlock Grid.Column="0" Text="前置项" Style="{StaticResource NormalTextBlockStyle}" TextAlignment="Center">
|
|
|
- </TextBlock>
|
|
|
- <Border Grid.Column="1" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition Height="2*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="测试项类型:" Style="{StaticResource textBlockStyle}"/>
|
|
|
- <TextBox Height="28" Width="150" Text="{Binding BeforeSelectJudge}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
+ </RichTextBox>
|
|
|
+ </DockPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
- <Grid Grid.Row="1" >
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="明细判定逻辑:" Style="{StaticResource textBlockStyle}"/>
|
|
|
- <TextBox Height="28" Width="150" Text="{Binding SelectLogic}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <DockPanel LastChildFill="True" >
|
|
|
- <TextBlock Text="前置项描述:" Style="{StaticResource textBlockStyle}" />
|
|
|
- <RichTextBox Margin="0,5,5,5" IsReadOnly="True" >
|
|
|
- <FlowDocument>
|
|
|
- <Paragraph>
|
|
|
- <Run Text="{Binding BeforeDetail,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
- </Paragraph>
|
|
|
- </FlowDocument>
|
|
|
+ <Grid Grid.Column="2" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <DockPanel LastChildFill="False">
|
|
|
+ <TextBlock Text="前置项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
|
|
|
- </RichTextBox>
|
|
|
</DockPanel>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Column="2" >
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
- <RowDefinition/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <DockPanel LastChildFill="False">
|
|
|
- <TextBlock Text="前置项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
-
|
|
|
- </DockPanel>
|
|
|
- <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0" HorizontalScrollBarVisibility="Disabled"
|
|
|
- ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" x:Name="DeviceDataGrid" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
- ItemsSource="{Binding BeforeConList}" IsReadOnly="True" Padding="0" >
|
|
|
- <DataGrid.Columns >
|
|
|
- <DataGridTextColumn Header="序号" Width="40" Binding="{Binding Id}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
- <DataGridTextColumn Header="PLC地址" Binding="{Binding PlcAddress}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
- <DataGridTextColumn Header="PLC变量名" Binding="{Binding PlcItem}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="判定值" Binding="{Binding PlcValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="描述" Binding="{Binding Remark}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="测试时间" Width="160" Binding="{Binding TestTime,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="实际值" Binding="{Binding RealValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="结果" Binding="{Binding TestResult}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0" HorizontalScrollBarVisibility="Disabled"
|
|
|
+ ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" x:Name="DeviceDataGrid" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
+ ItemsSource="{Binding BeforeConList}" IsReadOnly="True" Padding="0" >
|
|
|
+ <DataGrid.Columns >
|
|
|
+ <DataGridTextColumn Header="序号" Width="40" Binding="{Binding Id}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
+ <DataGridTextColumn Header="PLC地址" Binding="{Binding PlcAddress}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
+ <DataGridTextColumn Header="PLC变量名" Binding="{Binding PlcItem}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="判定值" Binding="{Binding PlcValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="描述" Binding="{Binding Remark}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="测试时间" Width="160" Binding="{Binding TestTime,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="实际值" Binding="{Binding RealValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="结果" Binding="{Binding TestResult}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
|
|
|
- </DataGrid.Columns>
|
|
|
+ </DataGrid.Columns>
|
|
|
|
|
|
- </DataGrid>
|
|
|
+ </DataGrid>
|
|
|
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="80"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="1.6*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <TextBlock Grid.Column="0" Text="输入项" Style="{StaticResource NormalTextBlockStyle}" TextAlignment="Center">
|
|
|
- </TextBlock>
|
|
|
- <Border Grid.Column="1" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition Height="2*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="测试项类型:" Style="{StaticResource textBlockStyle}"/>
|
|
|
- <TextBox Height="28" Width="150" Text="{Binding SelectInJudge}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
</Grid>
|
|
|
- <Grid Grid.Row="1" >
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="明细判定逻辑:" Style="{StaticResource textBlockStyle}"/>
|
|
|
- <TextBox Height="28" Width="150" Text="{Binding InSelectLogic}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <DockPanel LastChildFill="True" >
|
|
|
- <TextBlock Text="输入项描述:" Style="{StaticResource textBlockStyle}" />
|
|
|
- <RichTextBox Margin="0,5,5,5" IsReadOnly="True" >
|
|
|
- <FlowDocument>
|
|
|
- <Paragraph>
|
|
|
- <Run Text="{Binding InDetail,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
- </Paragraph>
|
|
|
- </FlowDocument>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="80"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="1.6*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock Grid.Column="0" Text="输入项" Style="{StaticResource NormalTextBlockStyle}" TextAlignment="Center">
|
|
|
+ </TextBlock>
|
|
|
+ <Border Grid.Column="1" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="测试项类型:" Style="{StaticResource textBlockStyle}"/>
|
|
|
+ <TextBox Height="28" Width="150" Text="{Binding SelectInJudge}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" >
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="明细判定逻辑:" Style="{StaticResource textBlockStyle}"/>
|
|
|
+ <TextBox Height="28" Width="150" Text="{Binding InSelectLogic}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <DockPanel LastChildFill="True" >
|
|
|
+ <TextBlock Text="输入项描述:" Style="{StaticResource textBlockStyle}" />
|
|
|
+ <RichTextBox Margin="0,5,5,5" IsReadOnly="True" >
|
|
|
+ <FlowDocument>
|
|
|
+ <Paragraph>
|
|
|
+ <Run Text="{Binding InDetail,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
+ </Paragraph>
|
|
|
+ </FlowDocument>
|
|
|
|
|
|
- </RichTextBox>
|
|
|
- </DockPanel>
|
|
|
+ </RichTextBox>
|
|
|
+ </DockPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Column="2" >
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
- <RowDefinition/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <DockPanel LastChildFill="False">
|
|
|
- <TextBlock Text="输入项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
+ <Grid Grid.Column="2" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <DockPanel LastChildFill="False">
|
|
|
+ <TextBlock Text="输入项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
|
|
|
- </DockPanel>
|
|
|
- <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0" HorizontalScrollBarVisibility="Disabled"
|
|
|
- ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
- ItemsSource="{Binding InConList}" IsReadOnly="True" Padding="0">
|
|
|
- <DataGrid.Columns >
|
|
|
- <DataGridTextColumn Header="序号" Width="40" Binding="{Binding Id}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
- <DataGridTextColumn Header="PLC地址" Binding="{Binding PlcAddress}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
- <DataGridTextColumn Header="PLC变量名" Binding="{Binding PlcItem}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="判定值" Binding="{Binding PlcValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="描述" Binding="{Binding Remark}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="测试时间" Width="160" Binding="{Binding TestTime,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="实际值" Binding="{Binding RealValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="结果" Binding="{Binding TestResult}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ </DockPanel>
|
|
|
+ <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0" HorizontalScrollBarVisibility="Disabled"
|
|
|
+ ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
+ ItemsSource="{Binding InConList}" IsReadOnly="True" Padding="0">
|
|
|
+ <DataGrid.Columns >
|
|
|
+ <DataGridTextColumn Header="序号" Width="40" Binding="{Binding Id}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
+ <DataGridTextColumn Header="PLC地址" Binding="{Binding PlcAddress}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
+ <DataGridTextColumn Header="PLC变量名" Binding="{Binding PlcItem}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="判定值" Binding="{Binding PlcValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="描述" Binding="{Binding Remark}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="测试时间" Width="160" Binding="{Binding TestTime,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="实际值" Binding="{Binding RealValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="结果" Binding="{Binding TestResult}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
|
|
|
- </DataGrid.Columns>
|
|
|
+ </DataGrid.Columns>
|
|
|
|
|
|
- </DataGrid>
|
|
|
+ </DataGrid>
|
|
|
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- <Border Grid.Row="2" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
- <Grid Grid.Row="3">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="80"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="1.6*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <TextBlock Grid.Column="0" Text="结果项" Style="{StaticResource NormalTextBlockStyle}" TextAlignment="Center">
|
|
|
- </TextBlock>
|
|
|
- <Border Grid.Column="1" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition/>
|
|
|
- <RowDefinition Height="2*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="测试项类型:" Style="{StaticResource textBlockStyle}"/>
|
|
|
- <TextBox Height="28" Width="150" Text="{Binding SelectOutJudge}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
</Grid>
|
|
|
- <Grid Grid.Row="1" >
|
|
|
- <StackPanel Orientation="Horizontal" >
|
|
|
- <TextBlock Text="明细判定逻辑:" Style="{StaticResource textBlockStyle}"/>
|
|
|
- <TextBox Height="28" Width="150" Text="{Binding OutSelectLogic}" IsReadOnly="True" />
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <DockPanel LastChildFill="True" >
|
|
|
- <TextBlock Text="结果项描述:" Style="{StaticResource textBlockStyle}" />
|
|
|
- <RichTextBox Margin="0,5,5,5" IsReadOnly="True" >
|
|
|
- <FlowDocument>
|
|
|
- <Paragraph>
|
|
|
- <Run Text="{Binding OutDetail,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
- </Paragraph>
|
|
|
- </FlowDocument>
|
|
|
+ </Grid>
|
|
|
+ <Border Grid.Row="2" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
+ <Grid Grid.Row="3">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="80"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="1.6*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock Grid.Column="0" Text="结果项" Style="{StaticResource NormalTextBlockStyle}" TextAlignment="Center">
|
|
|
+ </TextBlock>
|
|
|
+ <Border Grid.Column="1" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="测试项类型:" Style="{StaticResource textBlockStyle}"/>
|
|
|
+ <TextBox Height="28" Width="150" Text="{Binding SelectOutJudge}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1" >
|
|
|
+ <StackPanel Orientation="Horizontal" >
|
|
|
+ <TextBlock Text="明细判定逻辑:" Style="{StaticResource textBlockStyle}"/>
|
|
|
+ <TextBox Height="28" Width="150" Text="{Binding OutSelectLogic}" IsReadOnly="True" />
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <DockPanel LastChildFill="True" >
|
|
|
+ <TextBlock Text="结果项描述:" Style="{StaticResource textBlockStyle}" />
|
|
|
+ <RichTextBox Margin="0,5,5,5" IsReadOnly="True" >
|
|
|
+ <FlowDocument>
|
|
|
+ <Paragraph>
|
|
|
+ <Run Text="{Binding OutDetail,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
+ </Paragraph>
|
|
|
+ </FlowDocument>
|
|
|
|
|
|
- </RichTextBox>
|
|
|
- </DockPanel>
|
|
|
+ </RichTextBox>
|
|
|
+ </DockPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Column="2" >
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
- <RowDefinition/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <DockPanel LastChildFill="False">
|
|
|
- <TextBlock Text="输出项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
- </DockPanel>
|
|
|
- <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0" HorizontalScrollBarVisibility="Disabled"
|
|
|
- ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
- ItemsSource="{Binding OutConList}" IsReadOnly="True" Padding="0">
|
|
|
- <DataGrid.Columns >
|
|
|
+ <Grid Grid.Column="2" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <DockPanel LastChildFill="False">
|
|
|
+ <TextBlock Text="输出项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
+ </DockPanel>
|
|
|
+ <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0" HorizontalScrollBarVisibility="Disabled"
|
|
|
+ ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
+ ItemsSource="{Binding OutConList}" IsReadOnly="True" Padding="0">
|
|
|
+ <DataGrid.Columns >
|
|
|
|
|
|
- <DataGridTextColumn Header="序号" Width="40" Binding="{Binding Id}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
- <DataGridTextColumn Header="PLC地址" Binding="{Binding PlcAddress}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
- <DataGridTextColumn Header="PLC变量名" Binding="{Binding PlcItem}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="判定值" Binding="{Binding PlcValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="描述" Binding="{Binding Remark}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="测试时间" Width="160" Binding="{Binding TestTime,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="实际值" Binding="{Binding RealValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
- <DataGridTextColumn Header="结果" Binding="{Binding TestResult}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="序号" Width="40" Binding="{Binding Id}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
+ <DataGridTextColumn Header="PLC地址" Binding="{Binding PlcAddress}" CellStyle="{StaticResource MyDataGridCellStyle}" />
|
|
|
+ <DataGridTextColumn Header="PLC变量名" Binding="{Binding PlcItem}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="判定值" Binding="{Binding PlcValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="描述" Binding="{Binding Remark}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="测试时间" Width="160" Binding="{Binding TestTime,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="实际值" Binding="{Binding RealValue}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
+ <DataGridTextColumn Header="结果" Binding="{Binding TestResult}" CellStyle="{StaticResource MyDataGridCellStyle}"/>
|
|
|
|
|
|
- </DataGrid.Columns>
|
|
|
+ </DataGrid.Columns>
|
|
|
|
|
|
- </DataGrid>
|
|
|
+ </DataGrid>
|
|
|
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
- </Grid>
|
|
|
- <Border Grid.Row="3" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
- <Grid Grid.Row="4">
|
|
|
- <hc:StepBar StepIndex="{Binding StepIndex}" VerticalAlignment="Center" x:Name="ProSetpBar" >
|
|
|
- <hc:StepBarItem Content="开始"/>
|
|
|
- <hc:StepBarItem Content="前置条件满足"/>
|
|
|
- <hc:StepBarItem Content="输入明细完成"/>
|
|
|
- <hc:StepBarItem Content="结果判定完成"/>
|
|
|
+ <Border Grid.Row="3" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
+ <Grid Grid.Row="4">
|
|
|
+ <hc:StepBar StepIndex="{Binding StepIndex}" VerticalAlignment="Center" x:Name="ProSetpBar" >
|
|
|
+ <hc:StepBarItem Content="开始"/>
|
|
|
+ <hc:StepBarItem Content="前置条件满足"/>
|
|
|
+ <hc:StepBarItem Content="输入明细完成"/>
|
|
|
+ <hc:StepBarItem Content="结果判定完成"/>
|
|
|
|
|
|
|
|
|
- </hc:StepBar>
|
|
|
- </Grid>
|
|
|
- <UniformGrid Grid.Row="5" Columns="4">
|
|
|
- <Button Content="开始检测" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding StartCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
- <Button Content="上一步" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding PreviousCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
- <Button Content="下一步" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding NextCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
- <Button Content="完成" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding DoneCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
- </UniformGrid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
|
|
- <hc:CircleProgressBar IsIndeterminate="True" Visibility="{Binding ProVisibility }" Value="50" Margin="16,0,0,0" Width="100" Height="100" ArcThickness="10" Style="{StaticResource ProgressBarInfoCircle}">
|
|
|
+ </hc:StepBar>
|
|
|
+ </Grid>
|
|
|
+ <UniformGrid Grid.Row="5" Columns="4">
|
|
|
+ <Button Content="开始检测" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding StartCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
+ <Button Content="上一步" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding PreviousCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
+ <Button Content="下一步" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding NextCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
+ <Button Content="完成" Width="80" IsEnabled="{Binding StartEnalbe}" Height="30" FontSize="12" Command="{Binding DoneCommand}" Style="{DynamicResource WD.PrimaryButton}" />
|
|
|
+ </UniformGrid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
|
|
+ <hc:CircleProgressBar IsIndeterminate="True" Visibility="{Binding ProVisibility }" Value="50" Margin="16,0,0,0" Width="100" Height="100" ArcThickness="10" Style="{StaticResource ProgressBarInfoCircle}">
|
|
|
|
|
|
- </hc:CircleProgressBar>
|
|
|
- <TextBlock Text="判定中..." Foreground="#409EFF" FontSize="30" Visibility="{Binding ProVisibility }" Width="AUTO" Margin="0,5"/>
|
|
|
- </StackPanel>
|
|
|
+ </hc:CircleProgressBar>
|
|
|
+ <TextBlock Text="判定中..." Foreground="#409EFF" FontSize="30" Visibility="{Binding ProVisibility }" Width="AUTO" Margin="0,5"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
+
|
|
|
</Grid>
|
|
|
</UserControl>
|