|
|
@ -34,6 +34,7 @@ |
|
|
|
<Style x:Key="CustomDataGridCellStyle" TargetType="DataGridCell"> |
|
|
|
<Style x:Key="CustomDataGridCellStyle" TargetType="DataGridCell"> |
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
</Style> |
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
@ -258,13 +259,22 @@ |
|
|
|
Background="Transparent" |
|
|
|
Background="Transparent" |
|
|
|
BorderThickness="0" |
|
|
|
BorderThickness="0" |
|
|
|
GridLinesVisibility="None" |
|
|
|
GridLinesVisibility="None" |
|
|
|
|
|
|
|
HorizontalScrollBarVisibility="Hidden" |
|
|
|
|
|
|
|
VerticalScrollBarVisibility="Hidden" |
|
|
|
|
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden" |
|
|
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" |
|
|
|
|
|
|
|
FocusVisualStyle="{x:Null}" |
|
|
|
IsReadOnly="True" |
|
|
|
IsReadOnly="True" |
|
|
|
RowStyle="{StaticResource CustomDataGridRowStyle}" |
|
|
|
RowStyle="{StaticResource CustomDataGridRowStyle}" |
|
|
|
ColumnHeaderStyle="{StaticResource CustomColumnHeaderStyle}" |
|
|
|
ColumnHeaderStyle="{StaticResource CustomColumnHeaderStyle}" |
|
|
|
CellStyle="{StaticResource CustomDataGridCellStyle}"> |
|
|
|
CellStyle="{StaticResource CustomDataGridCellStyle}"> |
|
|
|
|
|
|
|
<DataGrid.Resources> |
|
|
|
|
|
|
|
<Style TargetType="ScrollBar"> |
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/> |
|
|
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
</DataGrid.Resources> |
|
|
|
<DataGrid.Columns> |
|
|
|
<DataGrid.Columns> |
|
|
|
<DataGridTemplateColumn Header="" Width="*" > |
|
|
|
<DataGridTemplateColumn Header="" Width="2*" > |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid HorizontalAlignment="Center" VerticalAlignment="Center"> |
|
|
|
<Grid HorizontalAlignment="Center" VerticalAlignment="Center"> |
|
|
@ -279,7 +289,7 @@ |
|
|
|
Visibility="Collapsed" |
|
|
|
Visibility="Collapsed" |
|
|
|
VerticalOffset="20" |
|
|
|
VerticalOffset="20" |
|
|
|
HorizontalOffset="80"> |
|
|
|
HorizontalOffset="80"> |
|
|
|
<Border Width="1200" Height="100" Background="White" CornerRadius="5"> |
|
|
|
<Border Width="1500" Height="130" Background="White" CornerRadius="5" BorderThickness="1" BorderBrush="Gray"> |
|
|
|
|
|
|
|
|
|
|
|
<Grid> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
|
@ -290,205 +300,234 @@ |
|
|
|
Background="Transparent" BorderThickness="0"> |
|
|
|
Background="Transparent" BorderThickness="0"> |
|
|
|
<Image Source="pack://application:,,,/Resource/Images/UIResource/01-8.png" MouseLeave="UIElement_OnMouseLeave" MouseEnter="UIElement_OnMouseEnter" Width="30" /> |
|
|
|
<Image Source="pack://application:,,,/Resource/Images/UIResource/01-8.png" MouseLeave="UIElement_OnMouseLeave" MouseEnter="UIElement_OnMouseEnter" Width="30" /> |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
<!-- <Grid Grid.Row="1"> --> |
|
|
|
|
|
|
|
<!-- <Grid.ColumnDefinitions> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- <ColumnDefinition Width="Auto"/> --> |
|
|
|
|
|
|
|
<!-- </Grid.ColumnDefinitions> --> |
|
|
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
<!-- </Grid> --> |
|
|
|
|
|
|
|
<Grid Grid.Row="1"> |
|
|
|
<Grid Grid.Row="1"> |
|
|
|
<DataGrid x:Name="RowDetail" CanUserResizeColumns="False" CanUserResizeRows="False" FontSize="16"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<DataGrid.ColumnHeaderStyle> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Style TargetType="DataGridColumnHeader"> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="Background" Value="Transparent"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
</Style> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
</DataGrid.ColumnHeaderStyle> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<DataGrid.Resources> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Style x:Key="CenteredTextBlockStyle" TargetType="TextBlock"> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
</Style> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Style x:Key="OtherCellkStyle" TargetType="DataGridCell"> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="Background" Value="#bbbbbb"/> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
<Setter Property="BorderBrush" Value="#ededed"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
</Style> |
|
|
|
<Border Grid.Column="0" Background="Transparent" Width="120" Height="80" CornerRadius="10" Margin="0 0 10 0"> |
|
|
|
</DataGrid.Resources> |
|
|
|
<Grid> |
|
|
|
<DataGrid.Columns> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<DataGridTextColumn Width="2*" Header="" Binding="{Binding itemName}" ElementStyle="{StaticResource CenteredTextBlockStyle}"> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<DataGridTextColumn.CellStyle > |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Style TargetType="DataGridCell"> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="Background" Value="#ededed"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Setter Property="BorderBrush" Value="#ededed"/> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.itemName}" |
|
|
|
</Style> |
|
|
|
FontSize="22" Foreground="Black" FontWeight="Bold" TextWrapping="Wrap" Margin="0 0 0 5"/> |
|
|
|
</DataGridTextColumn.CellStyle> |
|
|
|
</Grid> |
|
|
|
</DataGridTextColumn> |
|
|
|
</Border> |
|
|
|
<DataGridTextColumn Width="*" Header="{DynamicResource resAvg}" Binding="{Binding Avg}" ElementStyle="{StaticResource CenteredTextBlockStyle}" CellStyle="{StaticResource OtherCellkStyle}"/> |
|
|
|
<Border Grid.Column="1" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<DataGridTextColumn Width="*" Header="{DynamicResource resDev}" Binding="{Binding Dev}" ElementStyle="{StaticResource CenteredTextBlockStyle}" CellStyle="{StaticResource OtherCellkStyle}"/> |
|
|
|
<Grid> |
|
|
|
<DataGridTextColumn Width="*" Header="{DynamicResource resMin}" Binding="{Binding Min}" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<DataGridTextColumn Width="*" Header="{DynamicResource resMax}" Binding="{Binding Max}" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<DataGridTextColumn Width="*" Header="1" Binding="{Binding item1}"> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{StaticResource DiamondResultGridAvgValue}" |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.Avg}" |
|
|
|
<Style.Triggers> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="0"> |
|
|
|
</Grid> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
</Border> |
|
|
|
</DataTrigger> |
|
|
|
<Border Grid.Column="2" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="0"> |
|
|
|
<Grid> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
</DataTrigger> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</Style.Triggers> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</Style> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</DataGridTextColumn> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<DataGridTextColumn Width="*" Header="2" Binding="{Binding item2}" > |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{StaticResource DiamondResultGridDeviationValue}" |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.Dev}" |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
</Grid> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
</Border> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<Border Grid.Column="3" Background="#EBEEF5" Width="100" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<Style.Triggers> |
|
|
|
<Grid> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="1"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</DataTrigger> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="1"> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</DataTrigger> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
</Style.Triggers> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{StaticResource DiamondResultGridMaxValue}" |
|
|
|
</Style> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.Max}" |
|
|
|
</DataGridTextColumn> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<DataGridTextColumn Width="*" Header="3" Binding="{Binding item3}" > |
|
|
|
</Grid> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
</Border> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Border Grid.Column="4" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
<Grid> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Style.Triggers> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="2"> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
</DataTrigger> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{StaticResource DiamondResultGridMinValue}" |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="2"> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.Min}" |
|
|
|
</DataTrigger> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
</Style.Triggers> |
|
|
|
</Grid> |
|
|
|
</Style> |
|
|
|
</Border> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<Border Grid.Column="13" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
</DataGridTextColumn> |
|
|
|
<Grid> |
|
|
|
<DataGridTextColumn Width="*" Header="4" Binding="{Binding item4}" > |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{StaticResource DiamondResultGridCutLevel}" |
|
|
|
<Style.Triggers> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="3"> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.CutLevel}" |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
</DataTrigger> |
|
|
|
</Grid> |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="3"> |
|
|
|
</Border> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<Border Grid.Column="14" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
</DataTrigger> |
|
|
|
<Grid> |
|
|
|
</Style.Triggers> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
</Style> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</DataGridTextColumn> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<DataGridTextColumn Width="*" Header="5" Binding="{Binding item5}" > |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="{StaticResource DiamondResultGridSymLevel}" |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.SymLevel}" |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
</Grid> |
|
|
|
<Style.Triggers> |
|
|
|
</Border> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="4"> |
|
|
|
<Border Grid.Column="5" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<Grid> |
|
|
|
</DataTrigger> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="4"> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</DataTrigger> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</Style.Triggers> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</Style> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="1" |
|
|
|
</DataGridTextColumn> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<DataGridTextColumn Width="*" Header="6" Binding="{Binding item6}" > |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item1}" |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
</Grid> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
</Border> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<Border Grid.Column="6" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<Grid> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<Style.Triggers> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="5"> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</DataTrigger> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="5"> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="2" |
|
|
|
</DataTrigger> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
</Style.Triggers> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item2}" |
|
|
|
</Style> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</Grid> |
|
|
|
</DataGridTextColumn> |
|
|
|
</Border> |
|
|
|
<DataGridTextColumn Width="*" Header="7" Binding="{Binding item7}" > |
|
|
|
<Border Grid.Column="7" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<Grid> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Style.Triggers> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="6"> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="3" |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
</DataTrigger> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item3}" |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="6"> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
</Grid> |
|
|
|
</DataTrigger> |
|
|
|
</Border> |
|
|
|
</Style.Triggers> |
|
|
|
<Border Grid.Column="8" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
</Style> |
|
|
|
<Grid> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
</DataGridTextColumn> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<DataGridTextColumn Width="*" Header="8" Binding="{Binding item8}" > |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<Setter Property="TextAlignment" Value="Center"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="4" |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 5"/> |
|
|
|
<Setter Property="FontWeight" Value="Normal" /> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item4}" |
|
|
|
<Style.Triggers> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
<DataTrigger Binding="{Binding MaxIndex}" Value="7"> |
|
|
|
</Grid> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
</Border> |
|
|
|
</DataTrigger> |
|
|
|
<Border Grid.Column="9" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
<DataTrigger Binding="{Binding MinIndex}" Value="7"> |
|
|
|
<Grid> |
|
|
|
<Setter Property="FontWeight" Value="Bold" /> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
</DataTrigger> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</Style.Triggers> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</Style> |
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
</DataGridTextColumn> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<DataGridTextColumn Width="*" Header="{DynamicResource CutLevel}" Binding="{Binding CutLevel}" ElementStyle="{StaticResource CenteredTextBlockStyle}" CellStyle="{StaticResource OtherCellkStyle}"/> |
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="5" |
|
|
|
<DataGridTextColumn Width="*" Header="{DynamicResource resLevel}" Binding="{Binding SymLevel}" ElementStyle="{StaticResource CenteredTextBlockStyle}" CellStyle="{StaticResource OtherCellkStyle}"/> |
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 6"/> |
|
|
|
</DataGrid.Columns> |
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item5}" |
|
|
|
</DataGrid> |
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
<Border Grid.Column="10" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="6" |
|
|
|
|
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 6"/> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item6}" |
|
|
|
|
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
<Border Grid.Column="11" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="7" |
|
|
|
|
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 6"/> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item7}" |
|
|
|
|
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
<Border Grid.Column="12" Background="#EBEEF5" Width="90" Height="80" CornerRadius="10" Margin="0 0 5 0"> |
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
|
|
|
<RowDefinition Height="*"/> |
|
|
|
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" TextAlignment="Center" VerticalAlignment="Center" Text="8" |
|
|
|
|
|
|
|
FontSize="18" Foreground="Black" Margin="0 0 0 6"/> |
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding SelRowDataDetail.item8}" |
|
|
|
|
|
|
|
FontSize="20" Foreground="#0063FF"/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Border> |
|
|
|
</Border> |
|
|
|
</Popup> |
|
|
|
</Popup> |
|
|
|
|
|
|
|
|
|
|
@ -501,13 +540,13 @@ |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<!-- 第2~5列 --> |
|
|
|
<!-- 第2~5列 --> |
|
|
|
<DataGridTextColumn Header="平均值" Binding="{Binding Avg}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="{StaticResource DiamondResultGridAvgValue}" Binding="{Binding Avg}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="偏差值" Binding="{Binding Dev}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="{StaticResource DiamondResultGridDeviationValue}" Binding="{Binding Dev}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="偏差值" Binding="{Binding Min}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="{StaticResource DiamondResultGridMinValue}" Binding="{Binding Min}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="偏差值" Binding="{Binding Max}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
<DataGridTextColumn Header="{StaticResource DiamondResultGridMaxValue}" Binding="{Binding Max}" Width="*" ElementStyle="{StaticResource CenteredTextBlockStyle}"/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 第6列 --> |
|
|
|
<!-- 第6列 --> |
|
|
|
<DataGridTextColumn Header="切工等级" Binding="{Binding CutLevel}" Width="*"> |
|
|
|
<DataGridTextColumn Header="{StaticResource DiamondResultGridCutLevel}" Binding="{Binding CutLevel}" Width="*"> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<DataGridTextColumn.ElementStyle> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Style TargetType="TextBlock"> |
|
|
|
<Setter Property="Foreground" Value="Blue"/> |
|
|
|
<Setter Property="Foreground" Value="Blue"/> |
|
|
@ -517,7 +556,7 @@ |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn.ElementStyle> |
|
|
|
</DataGridTextColumn> |
|
|
|
</DataGridTextColumn> |
|
|
|
<!-- 第五列:SYM等级,下拉框示例,可编辑 --> |
|
|
|
<!-- 第五列:SYM等级,下拉框示例,可编辑 --> |
|
|
|
<DataGridTemplateColumn Width="*" Header="{DynamicResource resLevel}"> |
|
|
|
<DataGridTemplateColumn Width="*" Header="{DynamicResource DiamondResultGridSymLevel}"> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<DataTemplate> |
|
|
|
|
|
|
|
|
|
|
@ -531,7 +570,7 @@ |
|
|
|
Foreground="DarkSlateGray" |
|
|
|
Foreground="DarkSlateGray" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
Width="150"> |
|
|
|
Width="120"> |
|
|
|
|
|
|
|
|
|
|
|
</ComboBox> |
|
|
|
</ComboBox> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|