Files
PetroleumViscosityTest/Controls/TestReportControl.xaml
2026-02-12 17:03:23 +08:00

50 lines
3.6 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<UserControl x:Class="PetroleumViscosityTest.Controls.TestReportControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
FontFamily="SimSun" FontSize="11">
<Border BorderBrush="Black" BorderThickness="1" Padding="10">
<StackPanel>
<TextBlock Text="石油产品运动粘度测试报告" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,0,0,15"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="报告编号:" Margin="2"/>
<TextBox x:Name="txtReportNo" Grid.Row="0" Grid.Column="1" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="0" Grid.Column="2" Text="测试日期:" Margin="20,2,2,2"/>
<TextBox x:Name="txtTestDate" Grid.Row="0" Grid.Column="3" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="1" Grid.Column="0" Text="试样编号:" Margin="2"/>
<TextBox x:Name="txtSampleID" Grid.Row="1" Grid.Column="1" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="1" Grid.Column="2" Text="试样名称:" Margin="20,2,2,2"/>
<TextBox x:Name="txtSampleName" Grid.Row="1" Grid.Column="3" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="2" Grid.Column="0" Text="试验温度(℃):" Margin="2"/>
<TextBox x:Name="txtTestTemp" Grid.Row="2" Grid.Column="1" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="2" Grid.Column="2" Text="粘度计常数:" Margin="20,2,2,2"/>
<TextBox x:Name="txtConstant" Grid.Row="2" Grid.Column="3" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="3" Grid.Column="0" Text="运动粘度 ν (mm²/s):" Margin="2" FontWeight="Bold"/>
<TextBox x:Name="txtViscosity" Grid.Row="3" Grid.Column="1" IsReadOnly="True" BorderThickness="0" Background="Transparent" FontWeight="Bold"/>
<TextBlock Grid.Row="3" Grid.Column="2" Text="动力粘度 η (mPa·s):" Margin="20,2,2,2"/>
<TextBox x:Name="txtDynamicViscosity" Grid.Row="3" Grid.Column="3" IsReadOnly="True" BorderThickness="0" Background="Transparent"/>
<TextBlock Grid.Row="4" Grid.Column="0" Text="精密度判定:" Margin="2"/>
<TextBox x:Name="txtPrecision" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="3" IsReadOnly="True" BorderThickness="0" Background="Transparent" Foreground="Red"/>
</Grid>
<TextBlock Text="以下空白" HorizontalAlignment="Center" Margin="0,20,0,0"/>
<TextBlock Text="本报告仅对本次测试样品负责" HorizontalAlignment="Center" FontSize="10"/>
</StackPanel>
</Border>
</UserControl>