2026-05-18 15:18:28 +08:00
|
|
|
|
<Window x:Class="TabletTester2025.SettingsWindow"
|
2026-05-05 15:31:24 +08:00
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2026-05-18 14:06:04 +08:00
|
|
|
|
xmlns:helpers="clr-namespace:TabletTester2025.Helpers"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
Title="参数设置 - 中国药典2025"
|
|
|
|
|
|
Width="1024"
|
2026-05-19 17:14:29 +08:00
|
|
|
|
Height="768"
|
|
|
|
|
|
MinWidth="900"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
MinHeight="768"
|
2026-05-19 17:14:29 +08:00
|
|
|
|
WindowStartupLocation="CenterOwner"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
ResizeMode="CanResize"
|
|
|
|
|
|
Background="#EDF1F5">
|
2026-05-18 14:06:04 +08:00
|
|
|
|
<Window.Resources>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<SolidColorBrush x:Key="PanelBorderBrush" Color="#D8E1EC"/>
|
|
|
|
|
|
<SolidColorBrush x:Key="PrimaryBrush" Color="#1565A9"/>
|
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="GroupBox">
|
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,14"/>
|
|
|
|
|
|
<Setter Property="Padding" Value="14"/>
|
|
|
|
|
|
<Setter Property="Background" Value="White"/>
|
|
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource PanelBorderBrush}"/>
|
|
|
|
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
|
|
|
|
<Setter Property="FontSize" Value="16"/>
|
|
|
|
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="TextBlock" x:Key="ParamLabel">
|
|
|
|
|
|
<Setter Property="Width" Value="220"/>
|
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
|
|
<Setter Property="Foreground" Value="#526273"/>
|
|
|
|
|
|
<Setter Property="FontSize" Value="15"/>
|
|
|
|
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
2026-05-18 14:06:04 +08:00
|
|
|
|
<Style TargetType="TextBox">
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<Setter Property="Width" Value="180"/>
|
2026-05-18 14:06:04 +08:00
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
|
|
<Setter Property="Padding" Value="8,2"/>
|
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
|
<Setter Property="FontSize" Value="15"/>
|
|
|
|
|
|
<Setter Property="helpers:NumericInput.IsEnabled" Value="True"/>
|
|
|
|
|
|
</Style>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
|
|
|
|
|
|
<Style TargetType="StackPanel" x:Key="ParamRow">
|
|
|
|
|
|
<Setter Property="Orientation" Value="Horizontal"/>
|
|
|
|
|
|
<Setter Property="Margin" Value="0,6,32,6"/>
|
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="TextBlock" x:Key="StandardNote">
|
|
|
|
|
|
<Setter Property="Foreground" Value="#6A7888"/>
|
|
|
|
|
|
<Setter Property="FontSize" Value="13"/>
|
|
|
|
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
|
|
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
|
|
|
|
<Setter Property="Margin" Value="0,10,0,0"/>
|
|
|
|
|
|
</Style>
|
2026-05-18 14:06:04 +08:00
|
|
|
|
</Window.Resources>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
|
2026-05-05 15:31:24 +08:00
|
|
|
|
<Grid Margin="20">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<RowDefinition Height="Auto"/>
|
2026-05-05 15:31:24 +08:00
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<Border Background="#0F3D68" CornerRadius="6" Padding="14,10" Margin="0,0,0,14">
|
2026-05-20 09:45:34 +08:00
|
|
|
|
<TextBlock Text="参数设置"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
Foreground="White"
|
|
|
|
|
|
FontSize="22"
|
|
|
|
|
|
FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<GroupBox Header="硬度内控">
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<WrapPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="测试次数:" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="HardnessCountBox" helpers:NumericInput.AllowDecimal="False"/>
|
|
|
|
|
|
</StackPanel>
|
2026-05-19 17:27:12 +08:00
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="加压压力:" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="HardnessPressureBox"/>
|
|
|
|
|
|
</StackPanel>
|
2026-05-19 21:00:08 +08:00
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-20 14:27:16 +08:00
|
|
|
|
<TextBlock Text="加压速度(mm/min):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="HardnessSpeedBox"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-19 21:00:08 +08:00
|
|
|
|
<TextBlock Text="硬度破损判定(N):" Style="{StaticResource ParamLabel}"/>
|
2026-05-20 11:38:23 +08:00
|
|
|
|
<TextBox x:Name="HardnessDamageThresholdBox" helpers:NumericInput.AllowDecimal="True"/>
|
2026-05-19 21:00:08 +08:00
|
|
|
|
</StackPanel>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</WrapPanel>
|
|
|
|
|
|
<TextBlock Text="硬度没有统一药典数值限度,此处作为企业内控范围和本机测试次数。"
|
|
|
|
|
|
Style="{StaticResource StandardNote}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-05-05 15:31:24 +08:00
|
|
|
|
|
2026-05-18 16:53:29 +08:00
|
|
|
|
<GroupBox Header="脆碎度">
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<WrapPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="转速(r/min):" Style="{StaticResource ParamLabel}"/>
|
2026-05-19 18:44:56 +08:00
|
|
|
|
<TextBox x:Name="FriabilityRpmBox"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
2026-05-20 06:43:07 +08:00
|
|
|
|
<!--<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-18 18:54:32 +08:00
|
|
|
|
<TextBlock Text="试验时间(min):" Style="{StaticResource ParamLabel}"/>
|
2026-05-19 18:44:56 +08:00
|
|
|
|
<TextBox x:Name="FriabilityTimeBox"/>
|
2026-05-20 06:43:07 +08:00
|
|
|
|
</StackPanel>-->
|
2026-05-18 18:54:32 +08:00
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-19 18:44:56 +08:00
|
|
|
|
<TextBlock Text="脆碎圈数:" Style="{StaticResource ParamLabel}"/>
|
2026-05-18 18:54:32 +08:00
|
|
|
|
<TextBox x:Name="FriabilityRoundsBox"
|
2026-05-19 18:44:56 +08:00
|
|
|
|
helpers:NumericInput.AllowDecimal="False"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="最大失重率(%):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="FriabilityMaxLossBox"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</WrapPanel>
|
2026-05-19 18:44:56 +08:00
|
|
|
|
<TextBlock Text="默认:转速25±1 r/min,试验时间4min,脆碎圈数100转;减失重量不得过1.0%,且不得检出断裂、龟裂或粉碎的片。"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
Style="{StaticResource StandardNote}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-05-05 15:31:24 +08:00
|
|
|
|
|
2026-05-18 16:53:29 +08:00
|
|
|
|
<GroupBox Header="崩解">
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<WrapPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-20 10:16:02 +08:00
|
|
|
|
<TextBlock Text="崩解时间(min):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="DisintegrationTimeMinBox"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</WrapPanel>
|
2026-05-20 10:16:02 +08:00
|
|
|
|
<TextBlock Text="崩解时间按具体品种正文或企业批准标准设置,保存后立即写入设备。"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
Style="{StaticResource StandardNote}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
2026-05-05 15:31:24 +08:00
|
|
|
|
|
2026-05-18 16:53:29 +08:00
|
|
|
|
<GroupBox Header="溶出度">
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<WrapPanel>
|
2026-05-20 06:44:20 +08:00
|
|
|
|
<!--<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<TextBlock Text="溶出介质温度(℃):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="DissolutionTempBox"/>
|
2026-05-20 06:44:20 +08:00
|
|
|
|
</StackPanel>-->
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-20 09:45:34 +08:00
|
|
|
|
<TextBlock Text="溶出速度1(r/min):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="Dissolution1SpeedBox"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
2026-05-20 09:45:34 +08:00
|
|
|
|
<TextBlock Text="溶出速度2(r/min):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="Dissolution2SpeedBox"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
2026-05-20 14:37:20 +08:00
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="溶出1时间(min):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="Dissolution1TimeBox"
|
|
|
|
|
|
helpers:NumericInput.AllowDecimal="False"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="溶出2时间(min):" Style="{StaticResource ParamLabel}"/>
|
|
|
|
|
|
<TextBox x:Name="Dissolution2TimeBox"
|
|
|
|
|
|
helpers:NumericInput.AllowDecimal="False"/>
|
|
|
|
|
|
</StackPanel>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="溶出1取样间隔(min):" Style="{StaticResource ParamLabel}"/>
|
2026-05-20 10:16:02 +08:00
|
|
|
|
<TextBox x:Name="Dissolution1IntervalBox" helpers:NumericInput.AllowDecimal="True"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Style="{StaticResource ParamRow}">
|
|
|
|
|
|
<TextBlock Text="溶出2取样间隔(min):" Style="{StaticResource ParamLabel}"/>
|
2026-05-20 10:16:02 +08:00
|
|
|
|
<TextBox x:Name="Dissolution2IntervalBox" helpers:NumericInput.AllowDecimal="True"/>
|
2026-05-18 15:18:28 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</WrapPanel>
|
2026-05-20 09:45:34 +08:00
|
|
|
|
<TextBlock Text="默认:普通制剂通常取6片,溶出介质温度37±0.5℃;转速和取样间隔应按具体品种正文或企业批准标准录入。"
|
2026-05-18 15:18:28 +08:00
|
|
|
|
Style="{StaticResource StandardNote}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</ScrollViewer>
|
2026-05-05 15:31:24 +08:00
|
|
|
|
|
2026-05-18 15:18:28 +08:00
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,16,0,0">
|
|
|
|
|
|
<Button x:Name="SaveButton"
|
|
|
|
|
|
Content="保存"
|
|
|
|
|
|
Width="110"
|
|
|
|
|
|
Height="40"
|
|
|
|
|
|
Margin="6"
|
|
|
|
|
|
Click="SaveButton_Click"
|
|
|
|
|
|
Background="{StaticResource PrimaryBrush}"
|
|
|
|
|
|
Foreground="White"
|
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
|
FontWeight="SemiBold"/>
|
|
|
|
|
|
<Button x:Name="CancelButton"
|
|
|
|
|
|
Content="取消"
|
|
|
|
|
|
Width="110"
|
|
|
|
|
|
Height="40"
|
|
|
|
|
|
Margin="6"
|
|
|
|
|
|
Click="CancelButton_Click"
|
|
|
|
|
|
Background="#687789"
|
|
|
|
|
|
Foreground="White"
|
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
|
FontWeight="SemiBold"/>
|
2026-05-05 15:31:24 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
2026-05-18 14:06:04 +08:00
|
|
|
|
</Window>
|