<DataGrid.CellStyle>
<Style TargetType="{x:Type DataGridCell}">
<EventSetter Event="PreviewMouseLeftButtonDown" Handler="DataGridCell_PreviewMouseLeftButtonDown"></EventSetter>
</Style>
</DataGrid.CellStyle>
<vc:BaseUserControl x:Class="Rich.Testability.View.Analysis.TestAbilityAnalysisReporter"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vc="clr-namespace:Rich.Testability.View.Core;assembly=Rich.Testability.View.Core"
xmlns:chart="clr-namespace:Rich.Charts;assembly=RichCharts"
xmlns:Notifier="clr-namespace:Rich.Testability.View.Core.Event;assembly=Rich.Testability.View.Core"
DataContextChanged="Window_DataContextChanged" >
<Grid Notifier:WaitingNotifier.Trigger="{Binding Path=ShowNotifier,Mode=TwoWay}"
Notifier:WaitingNotifier.Waiting="{Binding Path=Refreshing,Mode=TwoWay}"
Notifier:WaitingNotifier.NotifyInfo="{Binding Path=WaitingNotifyInfo}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<ToolBar Grid.Row="0">
<StackPanel Orientation="Horizontal">
<Button Content="生成诊断树" Width="80" Height="30" Command="{Binding GenerateDiagnosticTreeCommand}" IsEnabled="{Binding Path=NeedToGenerateDiagnosticTree}" />
<Button Content="可达性" Command="{Binding Path=ShowReachabilityCommand}" Width="80" Height="30" Margin="10,0,0,0"/>
<Button Content="导出D矩阵" Command="{Binding Path=ExportDMatrixCommand}" Width="80" Height="30" Margin="10,0,0,0"/>
</StackPanel>
</ToolBar>
<FlowDocumentReader Grid.Row="1">
<FlowDocument Name="originalDocument">
<FlowDocument.ContextMenu>
<ContextMenu Visibility="Collapsed">
</ContextMenu>
</FlowDocument.ContextMenu>
<Section>
<Paragraph Background="LightGray" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Center" Padding="5" >
<Run >可测试性分析报告:</Run>
</Paragraph>
<Table Padding="2" CellSpacing="0" >
<Table.Columns>
<TableColumn Width="0.4*"/>
<TableColumn Width="0.3*"/>
<TableColumn Width="0.3*"/>
</Table.Columns>
<TableRowGroup>
<TableRow >
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Center">
<Paragraph Margin="5">
<Run >分析模型</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Center">
<Paragraph Margin="5">
<Run>分析日期</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Center">
<Paragraph Margin="5">
<Run >分析时间</Run>
</Paragraph>
</TableCell>
</TableRow>
<TableRow FontFamily="Arial" FontSize="14">
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center">
<Paragraph Margin="5">
<Run Name="AnalysisModel"/>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center">
<Paragraph Margin="5">
<Run Name="AnalysisDate"/>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center">
<Paragraph Margin="5">
<Run Name="AnalysisTime"/>
</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
<Paragraph Background="LightGray" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Center" Padding="5">
<Run>分析设置:</Run>
<Run Name="runResult"></Run>
</Paragraph>
<Table Padding="2" CellSpacing="0" >
<Table.Columns>
<TableColumn Width="0.3*"/>
<TableColumn Width="0.7*"/>
</Table.Columns>
<TableRowGroup Name="trgroup">
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left" >
<Paragraph Margin="5">
<Run Text="分析范围 " />
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="AnalysisScope" />
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >隔离层次</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="seprarateLevel"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >测试方法</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="testType"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >用户角色</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="User"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >技术标签</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="technologyLabel"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >测试级别</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="testLevel"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >系统配置</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="systemSetting"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >系统模式</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="workingMode"/>
</Paragraph>
</TableCell>
</TableRow>
<!--<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >深度</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="depth"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >广度</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="breadth"/>
</Paragraph>
</TableCell>
</TableRow>-->
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >系统完好率</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="OkProb"/>
</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</Section>
<Section>
<Paragraph Background="LightGray" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Center" Padding="5">
<Run>系统统计信息:</Run>
<Run Name="runStatistic"></Run>
</Paragraph>
<Table Padding="2" CellSpacing="0" Name="TestTable" >
<Table.Columns>
<TableColumn Width="0.4*"/>
<TableColumn Width="0.6*"/>
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left" >
<Paragraph Margin="5">
<Run Text="故障源总数 " />
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="ModuleCount" />
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >测试数量</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="TestCount"/>
</Paragraph>
</TableCell>
</TableRow>
<!--<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Left">
<Paragraph Margin="5">
<Run >开关总数</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="SwitchCount"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Left">
<Paragraph Margin="5">
<Run >连接数量</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="ConnectionCount"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Left">
<Paragraph Margin="5">
<Run >费用与时间权重比</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="CostAndTimeRate"/>
</Paragraph>
</TableCell>
</TableRow>-->
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >BIT自测数量</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="BITCount"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >未检测故障数量</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="UnDetectTestNumber"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >未使用测试数量</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="UnUsedTestNumber"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >故障检测率</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="FaultDetectRate"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >加权故障检测率</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="FaultDetectRateWeight"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >故障隔离率</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="FaultSeparateRate"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >加权故障隔离率</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="FaultSeparateRateWeight"/>
</Paragraph>
</TableCell>
</TableRow>
<!--<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Left">
<Paragraph Margin="5">
<Run >模糊组大小(比例)</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="IndistinctTeamSize"/>
</Paragraph>
</TableCell>
</TableRow>-->
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >平均模糊组大小</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="AvergIndistinctTeamSize"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >平均隔离费用</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="AvergTestCost"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >平均隔离时间</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="AvergTestTime"/>
</Paragraph>
</TableCell>
</TableRow>
<!--<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >隔离费用</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="SeparateMaintanceCost"/>
</Paragraph>
</TableCell>
</TableRow>-->
<!--<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >隔离维修时间</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="SeparateMaintanceTime"/>
</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >隔离和维修平均权重费用</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="SeparateAndMaintanceAvergCost"/>
</Paragraph>
</TableCell>
</TableRow>-->
<!--<TableRow >
<TableCell BorderBrush="Black" BorderThickness="0.5" FontSize="15" TextAlignment="Left">
<Paragraph Margin="5">
<Run >重测合格率</Run>
</Paragraph>
</TableCell>
<TableCell BorderBrush="Black" BorderThickness="0.5" TextAlignment="Center" FontFamily="Arial" FontSize="14">
<Paragraph Margin="5">
<Run Name="RetestOkRate"/>
</Paragraph>
</TableCell>
</TableRow>-->
</TableRowGroup>
</Table>
</Section>
<Section Name="GraghSection">
<BlockUIContainer >
<Viewbox >
<chart:Chart Height="300" Width="450" Name="indistinctTeamChart">
<chart:Chart.Resources>
<Style TargetType="{x:Type Grid}">
<Setter Property="Background" Value="{x:Null}"></Setter>
</Style>
</chart:Chart.Resources>
</chart:Chart>
</Viewbox>
</BlockUIContainer>
<BlockUIContainer >
<Viewbox >
<chart:Chart Height="300" Width="450" Name="testRateChart">
<chart:Chart.Resources>
<Style TargetType="{x:Type Grid}">
<Setter Property="Background" Value="{x:Null}"></Setter>
</Style>
</chart:Chart.Resources>
</chart:Chart>
</Viewbox>
</BlockUIContainer>
</Section>
</FlowDocument>
</FlowDocumentReader>
</Grid>
</vc:BaseUserControl>