更新最新2026

This commit is contained in:
GukSang.Jin
2026-05-18 14:06:04 +08:00
parent 41435205a4
commit 40bcd313a2
22 changed files with 1275 additions and 323 deletions

View File

@@ -1,11 +1,21 @@
<Window x:Class="TabletTester2025.SettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:helpers="clr-namespace:TabletTester2025.Helpers"
Title="参数设置 - 中国药典2025"
Width="1024" MinHeight="768" WindowState="Maximized"
WindowStartupLocation="CenterScreen"
ResizeMode="CanResize" Background="#F5F5F5">
<Window.Resources>
<Style TargetType="TextBox">
<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>
</Window.Resources>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
@@ -29,12 +39,17 @@
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="下限(N):" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
<TextBlock Text="内控下限(N):" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="HardnessMinBox" Grid.Row="0" Grid.Column="1" Margin="5" Text="40"/>
<TextBlock Text="上限(N):" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
<TextBlock Text="内控上限(N):" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="HardnessMaxBox" Grid.Row="1" Grid.Column="1" Margin="5" Text="60"/>
<TextBlock Text="测试次数:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="HardnessCountBox" Grid.Row="2" Grid.Column="1" Margin="5" Text="6"/>
<TextBox x:Name="HardnessCountBox"
Grid.Row="2"
Grid.Column="1"
Margin="5"
Text="6"
helpers:NumericInput.AllowDecimal="False"/>
</Grid>
</GroupBox>
@@ -45,8 +60,22 @@
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="最大失重率(%):" VerticalAlignment="Center"/>
<TextBox x:Name="FriabilityMaxLossBox" Grid.Column="1" Margin="5" Text="1.0"/>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="转速(r/min):" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="FriabilityRpmBox" Grid.Row="0" Grid.Column="1" Margin="5" Text="25.0"/>
<TextBlock Text="试验转数:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="FriabilityRoundsBox"
Grid.Row="1"
Grid.Column="1"
Margin="5"
Text="100"
helpers:NumericInput.AllowDecimal="False"/>
<TextBlock Text="最大失重率(%):" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="FriabilityMaxLossBox" Grid.Row="2" Grid.Column="1" Margin="5" Text="1.0"/>
</Grid>
</GroupBox>
@@ -57,8 +86,30 @@
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="最长崩解时间(秒):" VerticalAlignment="Center"/>
<TextBox x:Name="DisintegrationMaxSecBox" Grid.Column="1" Margin="5" Text="900"/>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="剂型规则:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
<ComboBox x:Name="DisintegrationDosageFormBox"
Grid.Row="0"
Grid.Column="1"
Margin="5"
Height="40"
FontSize="15"
SelectionChanged="DisintegrationDosageFormBox_SelectionChanged">
<ComboBoxItem Content="普通片" Tag="900"/>
<ComboBoxItem Content="薄膜衣片" Tag="1800"/>
<ComboBoxItem Content="糖衣片" Tag="3600"/>
<ComboBoxItem Content="胶囊" Tag="1800"/>
</ComboBox>
<TextBlock Text="最长崩解时间(秒):" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="DisintegrationMaxSecBox"
Grid.Row="1"
Grid.Column="1"
Margin="5"
Text="900"
helpers:NumericInput.AllowDecimal="False"/>
</Grid>
</GroupBox>
@@ -76,7 +127,12 @@
<TextBlock Text="30分钟最低溶出度(%):" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="DissolutionMinPercentBox" Grid.Row="0" Grid.Column="1" Margin="5" Text="80.0"/>
<TextBlock Text="取样时间点(分钟,逗号分隔):" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,5,0,0"/>
<TextBox x:Name="SampleTimesBox" Grid.Row="1" Grid.Column="1" Margin="5" Text="5,10,15,30,45,60"/>
<TextBox x:Name="SampleTimesBox"
Grid.Row="1"
Grid.Column="1"
Margin="5"
Text="5,10,15,30,45,60"
helpers:NumericInput.IsEnabled="False"/>
</Grid>
</GroupBox>
@@ -86,4 +142,4 @@
<Button x:Name="CancelButton" Content="取消" Width="80" Height="30" Margin="5" Click="CancelButton_Click" Background="#9E9E9E" Foreground="White" BorderThickness="0"/>
</StackPanel>
</Grid>
</Window>
</Window>