177 lines
9.7 KiB
XML
177 lines
9.7 KiB
XML
<Window x:Class="片剂四用仪.Views.ShowData"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
Title="药典参数设置" Height="768" Width="1024"
|
||
WindowState="Normal"
|
||
WindowStartupLocation="CenterOwner"
|
||
Background="#F0F2F5">
|
||
|
||
|
||
<Window.Resources>
|
||
<!-- 卡片样式 -->
|
||
<Style x:Key="CardStyle" TargetType="Border">
|
||
<Setter Property="Background" Value="White"/>
|
||
<Setter Property="CornerRadius" Value="10"/>
|
||
<Setter Property="Margin" Value="15,15,80,15"/>
|
||
<Setter Property="Padding" Value="15"/>
|
||
<Setter Property="MinWidth" Value="390"/>
|
||
<Setter Property="Effect">
|
||
<Setter.Value>
|
||
<DropShadowEffect Color="#D0D7DE" BlurRadius="8" ShadowDepth="1"/>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
|
||
<!-- 分组标题样式 -->
|
||
<Style x:Key="GroupTitle" TargetType="TextBlock">
|
||
<Setter Property="FontSize" Value="15"/>
|
||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
<Setter Property="Foreground" Value="#1976D2"/>
|
||
<Setter Property="Margin" Value="0 0 0 10"/>
|
||
</Style>
|
||
|
||
<!-- 标签样式 -->
|
||
<Style x:Key="SettingLabel" TargetType="TextBlock">
|
||
<Setter Property="FontSize" Value="13"/>
|
||
<Setter Property="Width" Value="190"/>
|
||
<Setter Property="Foreground" Value="#333333"/>
|
||
<Setter Property="Margin" Value="0 6 0 6"/>
|
||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||
<Setter Property="TextWrapping" Value="Wrap"/>
|
||
</Style>
|
||
|
||
<!-- 输入框样式 -->
|
||
<Style x:Key="SettingTextBox" TargetType="TextBox">
|
||
<Setter Property="Width" Value="150"/>
|
||
<Setter Property="Height" Value="40"/>
|
||
<Setter Property="FontSize" Value="13"/>
|
||
<Setter Property="Margin" Value="0 6 0 6"/>
|
||
<Setter Property="Padding" Value="8"/>
|
||
<Setter Property="Background" Value="#F8F9FA"/>
|
||
<Setter Property="BorderBrush" Value="#D1D5DB"/>
|
||
<Setter Property="BorderThickness" Value="1"/>
|
||
</Style>
|
||
</Window.Resources>
|
||
|
||
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="10">
|
||
<WrapPanel Orientation="Horizontal">
|
||
|
||
<!-- 模块1:硬度测试参数 -->
|
||
<Border Style="{StaticResource CardStyle}">
|
||
<StackPanel>
|
||
<TextBlock Style="{StaticResource GroupTitle}" Text="⚙ 硬度测试参数"/>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="速度输入(mm/min)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_HardnessSpeed"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="位移输入(mm)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_HardnessDisplacement"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="电机极限输入"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_HardnessMotorLimit"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="破损判定输入(N)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_HardnessDamageThreshold"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="最大力采集"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_MaxForceCollect" IsReadOnly="True"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- 模块2:脆碎度测试参数 -->
|
||
<Border Style="{StaticResource CardStyle}">
|
||
<StackPanel>
|
||
<TextBlock Style="{StaticResource GroupTitle}" Text="⚙ 脆碎度测试参数"/>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="脆碎圈数"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_FriabilityRounds"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="脆碎前质量输入"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_PreBrittlenessMass"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="脆碎后质量输入"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_PostBrittlenessMass"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="失重率(%)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_WeightLossRate"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- 模块3:崩解测试参数 -->
|
||
<Border Style="{StaticResource CardStyle}">
|
||
<StackPanel>
|
||
<TextBlock Style="{StaticResource GroupTitle}" Text="⚙ 崩解测试参数"/>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="崩解速度(r/min)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_DisintegrationSpeed"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="崩解时间设置(min)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_DisintegrationTime"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- 模块4:溶出测试参数 -->
|
||
<Border Style="{StaticResource CardStyle}">
|
||
<StackPanel>
|
||
<TextBlock Style="{StaticResource GroupTitle}" Text="⚙ 溶出测试参数"/>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="溶出1时间设置(min)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_DissolutionTime"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="溶出2时间设置(min)"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_Dissolution2Time"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="溶出1间隔取样时间设置"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_Dissolution1SamplingInterval"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="溶出2间隔取样时间设置"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_Dissolution2SamplingInterval"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- 模块5:力值与温度校准 -->
|
||
<Border Style="{StaticResource CardStyle}">
|
||
<StackPanel>
|
||
<TextBlock Style="{StaticResource GroupTitle}" Text="⚙ 力值与温度校准"/>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="力显示"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_ForceDisplay" IsReadOnly="True"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="力系数"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_ForceCoefficient"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="力保护"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_ForceProtection"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="温度系数"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_TemperatureCoefficient" IsReadOnly="True"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Style="{StaticResource SettingLabel}" Text="温度显示"/>
|
||
<TextBox Style="{StaticResource SettingTextBox}" Name="txt_TemperatureDisplay"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
</WrapPanel>
|
||
</ScrollViewer>
|
||
</Window>
|