Files
MobilePhoneGrippingCuttingT…/ExperimentReportWindow.xaml

582 lines
36 KiB
Plaintext
Raw Normal View History

2026-04-20 11:51:33 +08:00
<Window x:Class="EmptyLoadTest.ExperimentReportWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:EmptyLoadTest"
xmlns:system="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
Title="实验报告系统" Height="700" Width="1000"
WindowStartupLocation="CenterScreen"
Background="#F5F7FA" Loaded="Window_Loaded">
<Window.Resources>
<!-- 标题样式 -->
<Style x:Key="MainTitleStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="28"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="#2C3E50"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,15,0,15"/>
</Style>
<!-- 报告标题样式 -->
<Style x:Key="ReportTitleStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="22"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="#2C3E50"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,0,0,15"/>
</Style>
<!-- 章节标题样式 -->
<Style x:Key="SectionTitleStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="#3498DB"/>
<Setter Property="Margin" Value="0,15,0,8"/>
</Style>
<!-- 按钮样式 -->
<Style x:Key="ActionButtonStyle" TargetType="Button">
<Setter Property="Height" Value="38"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="12,6"/>
<Setter Property="Margin" Value="3"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="{TemplateBinding Background}"
CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#3498DB"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ExportButtonStyle" TargetType="Button" BasedOn="{StaticResource ActionButtonStyle}">
<Setter Property="Background" Value="#2ECC71"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="#2ECC71" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#27AE60"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="FolderButtonStyle" TargetType="Button" BasedOn="{StaticResource ActionButtonStyle}">
<Setter Property="Background" Value="#3498DB"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="#3498DB" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#2980B9"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="PrintButtonStyle" TargetType="Button" BasedOn="{StaticResource ActionButtonStyle}">
<Setter Property="Background" Value="#9B59B6"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="#9B59B6" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#8E44AD"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ReturnButtonStyle" TargetType="Button" BasedOn="{StaticResource ActionButtonStyle}">
<Setter Property="Background" Value="#95A5A6"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border" Background="#95A5A6" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#7F8C8D"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- 卡片样式 -->
<Style x:Key="CardStyle" TargetType="Border">
<Setter Property="Background" Value="#FFFFFF"/>
<Setter Property="CornerRadius" Value="8"/>
<Setter Property="BorderBrush" Value="#E5E8E8"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="15"/>
<Setter Property="Margin" Value="10,5"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- 标题区域 -->
<TextBlock Text="实验报告系统" Style="{StaticResource MainTitleStyle}" Grid.Row="0"/>
<!-- 主要内容区域 -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" Padding="5">
<StackPanel>
<!-- 实验报告标题 -->
<Border Style="{StaticResource CardStyle}">
<StackPanel>
<TextBlock Text="实验报告" Style="{StaticResource ReportTitleStyle}"/>
<!-- 样品信息 -->
<Border Background="#F8F9F9" CornerRadius="6"
BorderBrush="#D5D8DC" BorderThickness="1"
Padding="15" Margin="0,0,0,10">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="样品信息:" FontSize="14" FontWeight="Bold"
Foreground="#2C3E50" Margin="0,0,0,8"/>
<Grid Grid.Row="1" Margin="0,0,0,6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="样品编号:" FontSize="12" Foreground="#2C3E50"
Grid.Column="0" Margin="0,0,8,0" VerticalAlignment="Center"/>
<TextBox x:Name="txtSampleId" Text="" FontSize="12" Padding="6,4"
Width="130" Grid.Column="1"/>
<TextBlock Text="测试日期:" FontSize="12" Foreground="#2C3E50"
Grid.Column="2" Margin="15,0,8,0" VerticalAlignment="Center"/>
<DatePicker x:Name="dpTestDate" SelectedDate="{x:Static system:DateTime.Today}"
Width="110" Grid.Column="3" FontSize="12"/>
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
</Grid>
</Grid>
</Border>
<!-- 测试结果标题 -->
<TextBlock Text="测试结果" Style="{StaticResource SectionTitleStyle}"/>
<!-- 空载测试 -->
<TextBlock Text="空载测试" FontSize="14" FontWeight="Bold"
Foreground="#2C3E50" Margin="0,0,0,8"/>
<!-- 空载测试表格 -->
<Grid Margin="0,0,0,10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="90"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>
<!-- 表头 -->
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
Background="#3498DB" BorderBrush="#2980B9" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="测试项目" Foreground="White" FontWeight="Bold" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="0" Grid.Column="2"
Background="#3498DB" BorderBrush="#2980B9" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="设置值" Foreground="White" FontWeight="Bold" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="0" Grid.Column="3"
Background="#3498DB" BorderBrush="#2980B9" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="实际值" Foreground="White" FontWeight="Bold" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 设置转速 -->
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="设置转速:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtSetSpeed" Text="0" Foreground="#2C3E50" FontSize="12"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="1" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="转/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 实际转速1 -->
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="1. 实际转速:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="2" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtActualSpeed1" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="2" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="转/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 实际转速2 -->
<Border Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="2. 实际转速:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtActualSpeed2" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="3" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="转/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 实际转速3 -->
<Border Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="3. 实际转速:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtActualSpeed3" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="4" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="转/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 设置往复频率 -->
<Border Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="设置往复频率:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtSetFrequency" Text="0" Foreground="#2C3E50" FontSize="12"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="5" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="次/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
<!-- 往复频率测试表格 -->
<Grid Margin="0,0,0,15">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="90"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>
<!-- 实际往复频率1 -->
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="1. 实际往复频率:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="0" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtActualFrequency1" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="0" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="次/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 实际往复频率2 -->
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="2. 实际往复频率:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtActualFrequency2" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="1" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="次/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 实际往复频率3 -->
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="3. 实际往复频率:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="2" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtActualFrequency3" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="2" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="次/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
<!-- 负载测试 -->
<TextBlock Text="负载测试" Style="{StaticResource SectionTitleStyle}"/>
<!-- 负载测试表格 -->
<Grid Margin="0,0,0,15">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="90"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>
<!-- 设置额定扭矩 -->
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="设置额定扭矩:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="0" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtSetTorque" Text="0.0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="0" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="N.cm" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 测试时间 -->
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="测试时间:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtTestTime" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="1" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="秒" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 到达设定扭矩时的转速 -->
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="到达设定扭矩时的转速:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="2" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtSpeedAtSetTorque" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="2" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="转/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 最大扭矩时的转速 -->
<Border Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBlock Text="最大扭矩时的转速:" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="2"
BorderBrush="#E5E8E8" BorderThickness="0,0,1,1" Padding="8,6">
<TextBox x:Name="txtSpeedAtMaxTorque" Text="0" Foreground="#2C3E50" FontSize="12" FontWeight="SemiBold"
BorderThickness="0" Background="Transparent"
HorizontalAlignment="Center" Width="60"/>
</Border>
<Border Grid.Row="3" Grid.Column="3"
BorderBrush="#E5E8E8" BorderThickness="0,0,0,1" Padding="8,6">
<TextBlock Text="转/分钟" Foreground="#2C3E50" FontSize="12"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<!-- 曲线图 -->
<!--<Border Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="4"
Background="#F8F9F9" CornerRadius="6"
BorderBrush="#D5D8DC" BorderThickness="1"
Height="120" Margin="0,10,0,0">
<Grid>
<TextBlock Text="扭矩-转速曲线图"
HorizontalAlignment="Center" VerticalAlignment="Center"
FontSize="14" FontWeight="SemiBold"
Foreground="#7F8C8D"/>
</Grid>
</Border>-->
</Grid>
<!-- 测试结论 -->
<Border Background="#F8F9F9" CornerRadius="6"
BorderBrush="#D5D8DC" BorderThickness="1"
Padding="15" Margin="0,0,0,10">
<StackPanel>
<TextBlock Text="测试结论" FontSize="14" FontWeight="Bold"
Foreground="#2C3E50" Margin="0,0,0,8"/>
<TextBox x:Name="txtConclusion"
Text="空载测试:转速和往复频率均在允许误差范围内,设备运行正常。&#x0a;负载测试:设备在额定扭矩下运行稳定,扭矩-转速曲线符合设计要求。&#x0a;总体评价:测试合格,设备性能良好。"
FontSize="12" Foreground="#2C3E50"
Background="Transparent" BorderThickness="0"
TextWrapping="Wrap" AcceptsReturn="True"
Height="60" VerticalScrollBarVisibility="Auto"/>
</StackPanel>
</Border>
</StackPanel>
</Border>
</StackPanel>
</ScrollViewer>
<!-- 底部操作栏 -->
<Border Grid.Row="2" Background="#2C3E50" Padding="12,8">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal">
<Border Background="#3498DB" CornerRadius="3" Padding="6,3"
VerticalAlignment="Center" Margin="0,0,10,0">
<TextBlock Text="实验报告" Foreground="White" FontWeight="SemiBold" FontSize="12"/>
</Border>
<TextBlock Text="报告已生成,可进行导出和打印操作" Foreground="#ECF0F1"
VerticalAlignment="Center" FontSize="12"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal">
<!-- 导出报表 -->
<Button Content="导出报表" Style="{StaticResource ExportButtonStyle}"
Width="90" Margin="2" Click="ExportReport_Click"/>
<!-- 打开文件夹 -->
<Button Content="打开文件夹" Style="{StaticResource FolderButtonStyle}"
Width="90" Margin="2" Click="OpenFolder_Click"/>
<!-- 打印预览 -->
<Button Content="打印预览" Style="{StaticResource PrintButtonStyle}"
Width="90" Margin="2" Click="PrintPreview_Click"/>
<!-- 返回 -->
<Button Content="返 回" Style="{StaticResource ReturnButtonStyle}"
Width="70" Margin="2" Click="Return_Click"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Window>