Files
CSI-Z420-Tablet-Multi-Funct…/Views/SettingsWindow.xaml
GukSang.Jin 4030c18dc8 更新122
2026-05-20 16:39:42 +08:00

215 lines
12 KiB
XML
Raw 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.
<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"
Height="768"
MinWidth="900"
MinHeight="768"
WindowStartupLocation="CenterOwner"
ResizeMode="CanResize"
Background="#EDF1F5">
<Window.Resources>
<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="16"/>
<Setter Property="Background" Value="White"/>
<Setter Property="BorderBrush" Value="{StaticResource PanelBorderBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="{StaticResource BaseFontSize}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style TargetType="TextBlock" x:Key="ParamLabel">
<Setter Property="Width" Value="230"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="#526273"/>
<Setter Property="FontSize" Value="{StaticResource BaseFontSize}"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Width" Value="180"/>
<Setter Property="Height" Value="42"/>
<Setter Property="Padding" Value="8,2"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="FontSize" Value="{StaticResource BaseFontSize}"/>
<Setter Property="helpers:NumericInput.IsEnabled" Value="True"/>
</Style>
<Style TargetType="Button">
<Setter Property="FontSize" Value="{StaticResource ButtonFontSize}"/>
<Setter Property="MinHeight" Value="44"/>
<Setter Property="Padding" Value="16,0"/>
</Style>
<Style TargetType="StackPanel" x:Key="ParamRow">
<Setter Property="Orientation" Value="Horizontal"/>
<Setter Property="Margin" Value="0,7,32,7"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="TextBlock" x:Key="StandardNote">
<Setter Property="Foreground" Value="#6A7888"/>
<Setter Property="FontSize" Value="{StaticResource SmallTextFontSize}"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="Margin" Value="0,10,0,0"/>
</Style>
</Window.Resources>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Background="#0F3D68" CornerRadius="6" Padding="14,10" Margin="0,0,0,14">
<TextBlock Text="参数设置"
Foreground="White"
FontSize="{StaticResource TitleFontSize}"
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>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="加压压力:" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="HardnessPressureBox"/>
</StackPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="加压速度(mm/min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="HardnessSpeedBox"/>
</StackPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="硬度破损判定(N):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="HardnessDamageThresholdBox" helpers:NumericInput.AllowDecimal="True"/>
</StackPanel>
</WrapPanel>
<TextBlock Text="硬度没有统一药典数值限度,此处作为企业内控范围和本机测试次数。"
Style="{StaticResource StandardNote}"/>
</StackPanel>
</GroupBox>
<GroupBox Header="脆碎度">
<StackPanel>
<WrapPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="转速(r/min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="FriabilityRpmBox"/>
</StackPanel>
<!--<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="试验时间(min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="FriabilityTimeBox"/>
</StackPanel>-->
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="脆碎圈数:" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="FriabilityRoundsBox"
helpers:NumericInput.AllowDecimal="False"/>
</StackPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="最大失重率(%):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="FriabilityMaxLossBox"/>
</StackPanel>
</WrapPanel>
<TextBlock Text="默认转速25±1 r/min试验时间4min脆碎圈数100转减失重量不得过1.0%,且不得检出断裂、龟裂或粉碎的片。"
Style="{StaticResource StandardNote}"/>
</StackPanel>
</GroupBox>
<GroupBox Header="崩解">
<StackPanel>
<WrapPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="崩解时间(min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="DisintegrationTimeMinBox"/>
</StackPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="升降频次(次/min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="DisintegrationSpeedBox"/>
</StackPanel>
</WrapPanel>
<TextBlock Text="崩解时间按照样品测试设置,保存后立即写入设备。"
Style="{StaticResource StandardNote}"/>
</StackPanel>
</GroupBox>
<GroupBox Header="溶出度">
<StackPanel>
<WrapPanel>
<!--<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="溶出介质温度(℃):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="DissolutionTempBox"/>
</StackPanel>-->
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="溶出速度1(r/min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="Dissolution1SpeedBox"/>
</StackPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="溶出速度2(r/min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="Dissolution2SpeedBox"/>
</StackPanel>
<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>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="溶出1取样间隔(min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="Dissolution1IntervalBox" helpers:NumericInput.AllowDecimal="True"/>
</StackPanel>
<StackPanel Style="{StaticResource ParamRow}">
<TextBlock Text="溶出2取样间隔(min):" Style="{StaticResource ParamLabel}"/>
<TextBox x:Name="Dissolution2IntervalBox" helpers:NumericInput.AllowDecimal="True"/>
</StackPanel>
</WrapPanel>
<TextBlock Text="默认普通制剂通常取6片溶出介质温度37±0.5℃;转速和取样间隔应按样品种类录入。"
Style="{StaticResource StandardNote}"/>
</StackPanel>
</GroupBox>
</StackPanel>
</ScrollViewer>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,16,0,0">
<Button x:Name="SaveButton"
Content="保存"
Width="116"
Height="44"
Margin="6"
Click="SaveButton_Click"
Background="{StaticResource PrimaryBrush}"
Foreground="White"
BorderThickness="0"
FontWeight="SemiBold"/>
<Button x:Name="CancelButton"
Content="取消"
Width="116"
Height="44"
Margin="6"
Click="CancelButton_Click"
Background="#687789"
Foreground="White"
BorderThickness="0"
FontWeight="SemiBold"/>
</StackPanel>
</Grid>
</Window>