|
|
|
@ -20,13 +20,90 @@ |
|
|
|
|
<RowDefinition Height="Auto"></RowDefinition> |
|
|
|
|
<RowDefinition Height="*"></RowDefinition> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Background="White" Height="50"> |
|
|
|
|
|
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition Width="1*" /> |
|
|
|
|
<ColumnDefinition Width="1*" /> |
|
|
|
|
<ColumnDefinition Width="10*"/> |
|
|
|
|
<ColumnDefinition Width="2*" /> |
|
|
|
|
<ColumnDefinition Width="2*" /> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition Height="25"></RowDefinition> |
|
|
|
|
<RowDefinition Height="25"></RowDefinition> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
<Button Content="{DynamicResource SaveAs}" Foreground="#ffffff" Background="#A7896F" Width="70"/> |
|
|
|
|
<Button Grid.Column="1" Content="{DynamicResource Export}" Foreground="#ffffff" Background="#A7896F" Width="70"/> |
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="1" BorderBrush="#6E6A6A"> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition Width="3*"/> |
|
|
|
|
<ColumnDefinition Width="7*"/> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<TextBlock Grid.Column="0" Text="DS" VerticalAlignment="Center" HorizontalAlignment="Center"/> |
|
|
|
|
<ComboBox Grid.Column="1" ItemsSource="{Binding DSList}" |
|
|
|
|
DisplayMemberPath="Key" SelectedValuePath="Value" SelectedValue="{Binding DS, Mode=TwoWay}"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
<Border Grid.Column="2" Grid.Row="0" Background="#E7E7E7" BorderBrush="#BBBBBB" CornerRadius="3" BorderThickness="1"> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<TextBlock Grid.Column="0" Text="{DynamicResource Standard}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource Shape}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="2" Text="{DynamicResource Crown}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="3" Text="{DynamicResource Pav}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="4" Text="{DynamicResource Wight}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
<Border Grid.Column="2" Grid.Row="1" Background="Transparent" BorderBrush="#D9D9D9" CornerRadius="3" BorderThickness="1"> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
<ColumnDefinition/> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<TextBlock Grid.Column="0" Text="{Binding Standard}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding Shape}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="2" Text="{Binding CrownType}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="3" Text="{Binding PavType}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
<TextBlock Grid.Column="4" Text="{Binding Wight}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
<Border Grid.Column="3" Grid.Row="0" Background="#E7E7E7" BorderBrush="#BBBBBB" CornerRadius="3" BorderThickness="1"> |
|
|
|
|
<Grid> |
|
|
|
|
<TextBlock Grid.Column="0" Text="{DynamicResource CutLevel}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
<Border Grid.Column="3" Grid.Row="1" Background="#d1d1d1" BorderBrush="#BBBBBB" CornerRadius="3" BorderThickness="1"> |
|
|
|
|
<Grid> |
|
|
|
|
<TextBlock Grid.Column="0" Text="{Binding CutLevelTotal}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False" Foreground="#848484"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
<Border Grid.Column="4" Grid.Row="0" Background="#E7E7E7" BorderBrush="#BBBBBB" CornerRadius="3" BorderThickness="1"> |
|
|
|
|
<Grid> |
|
|
|
|
<TextBlock Grid.Column="0" Text="{DynamicResource SymLevel}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
<Border Grid.Column="4" Grid.Row="1" Background="#d1d1d1" BorderBrush="#BBBBBB" CornerRadius="3" BorderThickness="1"> |
|
|
|
|
<Grid> |
|
|
|
|
<TextBlock Grid.Column="0" Text="{Binding SymLevelTotal}" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False" Foreground="#848484"/> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" Background="Aqua"> |
|
|
|
|
<DataGrid HeadersVisibility="All" AutoGenerateColumns="False" ItemsSource="{Binding DtResults}"> |
|
|
|
|
<DataGrid HeadersVisibility="All" AutoGenerateColumns="False" ItemsSource="{Binding DtResults}" SelectionChanged="DataGrid_SelectionChanged"> |
|
|
|
|
<DataGrid.Columns> |
|
|
|
|
<DataGridTextColumn Width="120" IsReadOnly="True" Header="" Binding="{Binding Name}"/> |
|
|
|
|
<DataGridTextColumn Width="Auto" IsReadOnly="True" Header="{DynamicResource resAvg}" Binding="{Binding Avg}"/> |
|
|
|
@ -34,7 +111,15 @@ |
|
|
|
|
<DataGridTextColumn Width="Auto" IsReadOnly="True" Header="{DynamicResource resShen}" Binding="{Binding Shen}"/> |
|
|
|
|
<DataGridTextColumn Width="Auto" IsReadOnly="True" Header="{DynamicResource resMin}" Binding="{Binding Min}" /> |
|
|
|
|
<DataGridTextColumn Width="Auto" IsReadOnly="True" Header="{DynamicResource resMax}" Binding="{Binding Max}"/> |
|
|
|
|
<DataGridTextColumn Width="Auto" IsReadOnly="True" Header="{DynamicResource resLevel}" Binding="{Binding Level}"/> |
|
|
|
|
<DataGridTextColumn Width="Auto" IsReadOnly="True" Header="{DynamicResource CutLevel}" Binding="{Binding CutLevel}"/> |
|
|
|
|
<DataGridTemplateColumn> |
|
|
|
|
<DataGridTemplateColumn.CellEditingTemplate> |
|
|
|
|
<DataTemplate> |
|
|
|
|
<ComboBox ItemsSource="{Binding GradeList}" |
|
|
|
|
DisplayMemberPath="Key" SelectedValuePath="Value" SelectedValue="{Binding SymLevel, Mode=TwoWay}"/> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</DataGridTemplateColumn.CellEditingTemplate> |
|
|
|
|
</DataGridTemplateColumn> |
|
|
|
|
<!-- <DataGridTemplateColumn Width="Auto" IsReadOnly="True" Header="操作" > --> |
|
|
|
|
<!-- <DataGridTemplateColumn.CellTemplate> --> |
|
|
|
|
<!-- <DataTemplate> --> |
|
|
|
@ -52,7 +137,7 @@ |
|
|
|
|
<RowDefinition Height="50"></RowDefinition> |
|
|
|
|
<RowDefinition Height="*"></RowDefinition> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="0" Background="Fuchsia" /> |
|
|
|
|
<Border Grid.Row="1" BorderThickness="1" CornerRadius="0" BorderBrush="Black" Margin="5"> |
|
|
|
|
<hx:Viewport3DX Grid.Column="0" x:Name="Viewport3Dx" MouseLeftButtonDown="Viewport3Dx_OnMouseLeftButtonDown" ClipToBounds="True"> |
|
|
|
@ -77,11 +162,11 @@ |
|
|
|
|
<!-- Offset="-65" /> --> |
|
|
|
|
</hx:Viewport3DX> |
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Border> |
|
|
|
|
</Grid> |
|
|
|
|
</Border> |
|
|
|
|