|
@@ -5,6 +5,7 @@
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="clr-namespace:PLCTool.Views.BusinessManageView"
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
+ xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
BorderBrush="#CBCBCB" BorderThickness="1"
|
|
|
Height="600" Width="1000" >
|
|
|
|
|
@@ -19,245 +20,266 @@
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
<Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
|
|
- <RowDefinition Height="50" />
|
|
|
- <RowDefinition />
|
|
|
- <RowDefinition />
|
|
|
- <RowDefinition />
|
|
|
-
|
|
|
- </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}" SelectedIndex="{Binding SelectIndex}" >
|
|
|
|
|
|
- <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>
|
|
|
- <Border Grid.Row="0" BorderBrush="#CBCBCB" BorderThickness="0,1" />
|
|
|
- <Grid Grid.Row="1">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="80"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="2.2*"/>
|
|
|
- </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.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>
|
|
|
+ <b:Interaction.Triggers>
|
|
|
+ <b:EventTrigger EventName="SelectionChanged">
|
|
|
+ <b:InvokeCommandAction Command="{Binding ItemChangeCommand}"/>
|
|
|
+ </b:EventTrigger>
|
|
|
+ </b:Interaction.Triggers>
|
|
|
+ </ListBox>
|
|
|
|
|
|
- </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>
|
|
|
+ <Border Grid.Column="0" BorderBrush="#CBCBCB" BorderThickness="1,0" />
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
|
- </DockPanel>
|
|
|
- <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0"
|
|
|
- ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" x:Name="DeviceDataGrid" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
- ItemsSource="{Binding BeforeConList}" IsReadOnly="True" Padding="0" HorizontalScrollBarVisibility="Hidden">
|
|
|
- <DataGrid.Columns >
|
|
|
+ <RowDefinition Height="50" />
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition />
|
|
|
|
|
|
- <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}"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
- </DataGrid.Columns>
|
|
|
+ <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>
|
|
|
|
|
|
- </DataGrid>
|
|
|
+ </StackPanel>
|
|
|
+ <Border Grid.Row="0" BorderBrush="#CBCBCB" BorderThickness="0,1" />
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="80"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="2.2*"/>
|
|
|
+ </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.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>
|
|
|
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="80"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="2.2*"/>
|
|
|
- </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>
|
|
|
+ </RichTextBox>
|
|
|
+ </DockPanel>
|
|
|
+ </Grid>
|
|
|
</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.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}" />
|
|
|
+ <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0"
|
|
|
+ ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" x:Name="DeviceDataGrid" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
+ ItemsSource="{Binding BeforeConList}" IsReadOnly="True" Padding="0" HorizontalScrollBarVisibility="Hidden">
|
|
|
+ <DataGrid.Columns >
|
|
|
|
|
|
- </DockPanel>
|
|
|
- <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0"
|
|
|
- ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
- ItemsSource="{Binding InConList}" IsReadOnly="True" Padding="0" HorizontalScrollBarVisibility="Hidden">
|
|
|
- <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>
|
|
|
- <Border Grid.Row="2" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
- <Grid Grid.Row="3">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="80"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- <ColumnDefinition Width="2.2*"/>
|
|
|
- </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">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="80"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="2.2*"/>
|
|
|
+ </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>
|
|
|
+ </Grid>
|
|
|
</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 Grid.Column="2" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <DockPanel LastChildFill="False">
|
|
|
+ <TextBlock Text="输入项明细:" Style="{StaticResource textBlockStyle}" />
|
|
|
|
|
|
- </RichTextBox>
|
|
|
</DockPanel>
|
|
|
+ <DataGrid Grid.Row="1" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0"
|
|
|
+ ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
+ ItemsSource="{Binding InConList}" IsReadOnly="True" Padding="0" HorizontalScrollBarVisibility="Hidden">
|
|
|
+ <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>
|
|
|
+
|
|
|
</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"
|
|
|
- ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
- ItemsSource="{Binding OutConList}" IsReadOnly="True" Padding="0" HorizontalScrollBarVisibility="Hidden">
|
|
|
- <DataGrid.Columns >
|
|
|
+ <Border Grid.Row="2" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
+ <Grid Grid.Row="3">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="80"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition Width="2.2*"/>
|
|
|
+ </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>
|
|
|
+ </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"
|
|
|
+ ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
+ ItemsSource="{Binding OutConList}" IsReadOnly="True" Padding="0" HorizontalScrollBarVisibility="Hidden">
|
|
|
+ <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>
|
|
|
+ <Border Grid.Row="3" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
</Grid>
|
|
|
- <Border Grid.Row="3" BorderBrush="#CBCBCB" BorderThickness="0,1,0,0" />
|
|
|
+
|
|
|
|
|
|
|
|
|
</Grid>
|