Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 57ccef3f5b | |||
| dc4d7003f1 | |||
| ecaf5042ee | |||
| 9b59516127 |
@@ -123,7 +123,7 @@ namespace TabletTester2025.Services
|
||||
{
|
||||
var data = batches.ToList();
|
||||
var sheet = package.Workbook.Worksheets.Add("崩解报表");
|
||||
WriteHeader(sheet, "检测时间", "样品名称", "剂型规则", "时限(秒)", "崩解时间(秒)", "剩余未崩解管", "水浴温度(℃)", "判定");
|
||||
WriteHeader(sheet, "检测时间", "样品名称", "剂型规格", "时限(秒)", "崩解时间(秒)", "剩余未崩解管", "水浴温度(℃)", "判定");
|
||||
|
||||
if (data.Count == 0)
|
||||
{
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="检测时间" Binding="{Binding TestTime, StringFormat=yyyy-MM-dd HH:mm:ss}" Width="160"/>
|
||||
<DataGridTextColumn Header="样品名称" Binding="{Binding SampleName}" Width="120"/>
|
||||
<DataGridTextColumn Header="剂型规则" Binding="{Binding DisintegrationDosageForm}" Width="100"/>
|
||||
<DataGridTextColumn Header="剂型规格" Binding="{Binding DisintegrationDosageForm}" Width="100"/>
|
||||
<DataGridTextColumn Header="时限(秒)" Binding="{Binding DisintegrationLimitSeconds}" Width="80"/>
|
||||
<DataGridTextColumn Header="崩解时间(秒)" Binding="{Binding DisintegrationTimeSec}" Width="100"/>
|
||||
<DataGridTextColumn Header="剩余未崩解管" Binding="{Binding RemainingTubesAtEnd}" Width="110"/>
|
||||
|
||||
@@ -399,7 +399,7 @@
|
||||
<WrapPanel Grid.Row="2" Style="{StaticResource CommandBar}">
|
||||
<Button Command="{Binding StartFriabilityCommand}" Content="开始" Style="{StaticResource StartButton}"/>
|
||||
<Button Command="{Binding StopFriabilityCommand}" Content="停止" Style="{StaticResource StopButton}"/>
|
||||
<Button Command="{Binding ResetFriabilityCommand}" Content="复位" Style="{StaticResource ResetButton}"/>
|
||||
<!--<Button Command="{Binding ResetFriabilityCommand}" Content="复位" Style="{StaticResource ResetButton}"/>-->
|
||||
</WrapPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
@@ -530,15 +530,15 @@
|
||||
<WrapPanel Grid.Row="1" Style="{StaticResource CommandBar}">
|
||||
<Button Command="{Binding StartDissolution1Command}" Content="溶出1开始" Style="{StaticResource StartButton}"/>
|
||||
<Button Command="{Binding StopDissolution1Command}" Content="溶出1停止" Style="{StaticResource StopButton}"/>
|
||||
<Button Command="{Binding ResetDissolution1Command}" Content="溶出1复位" Style="{StaticResource ResetButton}"/>
|
||||
<!--<Button Command="{Binding ResetDissolution1Command}" Content="溶出1复位" Style="{StaticResource ResetButton}"/>-->
|
||||
<Button Command="{Binding StartDissolution2Command}" Content="溶出2开始" Style="{StaticResource StartButton}"/>
|
||||
<Button Command="{Binding StopDissolution2Command}" Content="溶出2停止" Style="{StaticResource StopButton}"/>
|
||||
<Button Command="{Binding ResetDissolution2Command}" Content="溶出2复位" Style="{StaticResource ResetButton}"/>
|
||||
<!--<Button Command="{Binding ResetDissolution2Command}" Content="溶出2复位" Style="{StaticResource ResetButton}"/>-->
|
||||
</WrapPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
<TabItem Header="崩解">
|
||||
<TabItem Header="崩解时限">
|
||||
<Grid Margin="4,14,4,4">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -577,19 +577,19 @@
|
||||
<TextBlock Text="{Binding DisintegrationSeconds}" Style="{StaticResource MetricValue}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Style="{StaticResource MetricCard}">
|
||||
<!--<Border Style="{StaticResource MetricCard}">
|
||||
<StackPanel>
|
||||
<TextBlock Text="剩余未崩解管数" Style="{StaticResource MetricLabel}"/>
|
||||
<TextBlock Text="{Binding RemainingTubes}" Foreground="#C62828" Style="{StaticResource MetricValue}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Border>-->
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
|
||||
<WrapPanel Grid.Row="2" Style="{StaticResource CommandBar}">
|
||||
<Button Command="{Binding StartDisintegrationCommand}" Content="开始" Style="{StaticResource StartButton}"/>
|
||||
<Button Command="{Binding StopDisintegrationCommand}" Content="停止" Style="{StaticResource StopButton}"/>
|
||||
<Button Command="{Binding ResetDisintegrationCommand}" Content="复位" Style="{StaticResource ResetButton}"/>
|
||||
<!--<Button Command="{Binding ResetDisintegrationCommand}" Content="复位" Style="{StaticResource ResetButton}"/>-->
|
||||
</WrapPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
<StackPanel>
|
||||
<WrapPanel>
|
||||
<StackPanel Style="{StaticResource ParamRow}">
|
||||
<TextBlock Text="剂型规则:" Style="{StaticResource ParamLabel}"/>
|
||||
<TextBlock Text="剂型规格:" Style="{StaticResource ParamLabel}"/>
|
||||
<ComboBox x:Name="DisintegrationDosageFormBox"
|
||||
Width="180"
|
||||
Height="40"
|
||||
|
||||
@@ -96,8 +96,8 @@ namespace TabletTester2025
|
||||
if (FriabilityRoundsBox == null)
|
||||
return;
|
||||
|
||||
if (double.TryParse(FriabilityTimeBox?.Text, out double timeMin)
|
||||
&& double.TryParse(FriabilityRpmBox?.Text, out double rpm)
|
||||
if (int.TryParse(FriabilityTimeBox?.Text, out int timeMin)
|
||||
&& int.TryParse(FriabilityRpmBox?.Text, out int rpm)
|
||||
&& timeMin > 0
|
||||
&& rpm > 0)
|
||||
{
|
||||
|
||||
@@ -23,8 +23,9 @@
|
||||
"HardnessPoSun": 400, // 硬度破损判定输入N
|
||||
"HardnessMax": 72, //最大力采集
|
||||
"HardnessShishilizhi": 1314, //力显示
|
||||
|
||||
|
||||
|
||||
"FriabilityRoundsBox": 410, //实验转速
|
||||
"DisintegrationSeconds": 420, //崩解时间
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user