移除系统配置中水温设置中的SpareTemp项目。

优化PM水温报警窗口显示效果,当超温报警触发时,水温颜色标黄或标红。
This commit is contained in:
DESKTOP-1N1NK8A\auvkk 2023-04-19 15:26:21 +08:00
parent 6f6c01b444
commit a8623d825c
3 changed files with 142 additions and 183 deletions

View File

@ -996,7 +996,6 @@
<config default="20" name="ElectrodeWFlowTemp" description="DO204 侧壁电极超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="TMPumpFlowTemp" description="DO205 TM干泵超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="TMTopLidFlowTemp" description="DO207 TM腔上盖超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="SpareTemp" description="DO208 预留" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="TransformerFlowTemp" description="DO206 变压器超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
</configs>
@ -1577,7 +1576,6 @@
<config default="20" name="ElectrodeWFlowTemp" description="DO204 侧壁电极超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="TMPumpFlowTemp" description="DO205 TM干泵超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="TMTopLidFlowTemp" description="DO207 TM腔上盖超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="SpareTemp" description="DO208 预留" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
<config default="20" name="TransformerFlowTemp" description="DO206 变压器超温报警" max="90" min="0" paramter="" tag="" unit="℃" type="Double" />
</configs>
<configs name="IdleService" visible="false">

View File

@ -66,6 +66,81 @@
<Color x:Key="EdgeColorBlack">Black</Color>
<Color x:Key="EdgeColorLightGreen">#00ae9d</Color>
<Style x:Key="WaterTempBackground" TargetType="Border">
<Setter Property="BorderBrush" Value="{DynamicResource Table_BD}"/>
<Setter Property="BorderThickness" Value="0,0,1,1"/>
<Setter Property="Padding" Value="5,1"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="false"/>
<Condition Binding="{Binding IsAlarm}" Value="false"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="{DynamicResource Table_BG_Content_Inner}"/>
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="true"/>
<Condition Binding="{Binding IsAlarm}" Value="false"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="#f4b575"/>
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="False"/>
<Condition Binding="{Binding IsAlarm}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="#f49f9f"/>
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="True"/>
<Condition Binding="{Binding IsAlarm}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="#f49f9f"/>
</MultiDataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="WaterTempForeground" TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="FontFamily" Value="Arial"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="Text" Value="{Binding Value, StringFormat=0.00}"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="false"/>
<Condition Binding="{Binding IsAlarm}" Value="false"/>
</MultiDataTrigger.Conditions>
<Setter Property="Foreground" Value="{DynamicResource FG_Black}"/>
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="true"/>
<Condition Binding="{Binding IsAlarm}" Value="false"/>
</MultiDataTrigger.Conditions>
<Setter Property="Foreground" Value="#e66e2e"/>
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="False"/>
<Condition Binding="{Binding IsAlarm}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="Foreground" Value="#ff0f0f"/>
</MultiDataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsWarning}" Value="True"/>
<Condition Binding="{Binding IsAlarm}" Value="True"/>
</MultiDataTrigger.Conditions>
<Setter Property="Foreground" Value="#ff0f0f"/>
</MultiDataTrigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<ScrollViewer
@ -1275,18 +1350,10 @@
<Border
Grid.Row="1"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding SHFlowTemp}"
Style="{StaticResource WaterTempBackground}">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding SHFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
<Border
Grid.Row="2"
@ -1322,18 +1389,10 @@
<Border
Grid.Row="2"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ChamberTopFlowTemp}"
Style="{StaticResource WaterTempBackground}">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ChamberTopFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}"/>
</Border>
@ -1373,18 +1432,10 @@
<Border
Grid.Row="3"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ChamberMid1FlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ChamberMid1FlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
@ -1421,18 +1472,10 @@
<Border
Grid.Row="4"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ChamberMid2FlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ChamberMid2FlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
@ -1469,18 +1512,10 @@
<Border
Grid.Row="5"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ChamberBottomFlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ChamberBottomFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
<Border
@ -1516,18 +1551,10 @@
<Border
Grid.Row="6"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ChamberBottomPlateTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ChamberBottomPlateTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
<Border
@ -1563,18 +1590,10 @@
<Border
Grid.Row="7"
Grid.Column="3"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding PowerRod1FlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding PowerRod1FlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
</Grid>
</TabItem>
@ -1682,18 +1701,10 @@
<Border
Grid.Row="1"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding PowerRod2FlowTemp}"
Style="{StaticResource WaterTempBackground}">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding PowerRod2FlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}"/>
</Border>
<Border
Grid.Row="2"
@ -1727,18 +1738,10 @@
<Border
Grid.Row="2"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ForelineFlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ForelineFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
@ -1774,18 +1777,10 @@
<Border
Grid.Row="3"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding ElectrodeWFlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding ElectrodeWFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
@ -1820,18 +1815,10 @@
<Border
Grid.Row="4"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding TMPumpFlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding TMPumpFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
@ -1867,18 +1854,10 @@
<Border
Grid.Row="5"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding TMTopLidFlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding TMTopLidFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
<Border
@ -1913,18 +1892,8 @@
<Border
Grid.Row="6"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text=""
TextWrapping="Wrap" />
Style="{StaticResource WaterTempBackground}" >
<TextBlock/>
</Border>
<Border
@ -1959,18 +1928,10 @@
<Border
Grid.Row="7"
Grid.Column="2"
Padding="5,1"
Background="{DynamicResource Table_BG_Content_Inner}"
BorderBrush="{DynamicResource Table_BD}"
BorderThickness="0,0,1,1">
DataContext="{Binding TransformerFlowTemp}"
Style="{StaticResource WaterTempBackground}" >
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Arial"
FontSize="14"
Foreground="{DynamicResource FG_Black}"
Text="{Binding TransformerFlowTemp, StringFormat=0.00}"
TextWrapping="Wrap" />
Style="{StaticResource WaterTempForeground}" />
</Border>
</Grid>
</TabItem>

View File

@ -512,44 +512,44 @@ namespace SicUI.Models.PMs
#region Water Temp Data
[Subscription("SHFlowTemp.Value")]
public float SHFlowTemp { get; set; }
[Subscription("SHFlowTemp.DeviceData")]
public AITSensorAnalogData SHFlowTemp { get; set; }
[Subscription("ChamTopFlowTemp.Value")]
public float ChamberTopFlowTemp { get; set; }
[Subscription("ChamTopFlowTemp.DeviceData")]
public AITSensorAnalogData ChamberTopFlowTemp { get; set; }
[Subscription("ChamMiddleFlow1Temp.Value")]
public float ChamberMid1FlowTemp { get; set; }
[Subscription("ChamMiddleFlow1Temp.DeviceData")]
public AITSensorAnalogData ChamberMid1FlowTemp { get; set; }
[Subscription("ChamMiddleFlow2Temp.Value")]
public float ChamberMid2FlowTemp { get; set; }
[Subscription("ChamMiddleFlow2Temp.DeviceData")]
public AITSensorAnalogData ChamberMid2FlowTemp { get; set; }
[Subscription("ChamBottomFlowTemp.Value")]
public float ChamberBottomFlowTemp { get; set; }
[Subscription("ChamBottomFlowTemp.DeviceData")]
public AITSensorAnalogData ChamberBottomFlowTemp { get; set; }
[Subscription("ChamBottomPlateTemp.Value")]
public float ChamberBottomPlateTemp { get; set; }
[Subscription("ChamBottomPlateTemp.DeviceData")]
public AITSensorAnalogData ChamberBottomPlateTemp { get; set; }
[Subscription("PowerRod1FlowTemp.Value")]
public float PowerRod1FlowTemp { get; set; }
[Subscription("PowerRod1FlowTemp.DeviceData")]
public AITSensorAnalogData PowerRod1FlowTemp { get; set; }
[Subscription("PowerRod2FlowTemp.Value")]
public float PowerRod2FlowTemp { get; set; }
[Subscription("PowerRod2FlowTemp.DeviceData")]
public AITSensorAnalogData PowerRod2FlowTemp { get; set; }
[Subscription("ForelineFlowTemp.Value")]
public float ForelineFlowTemp { get; set; }
[Subscription("ForelineFlowTemp.DeviceData")]
public AITSensorAnalogData ForelineFlowTemp { get; set; }
[Subscription("ElectrodeWFlowTemp.Value")]
public float ElectrodeWFlowTemp { get; set; }
[Subscription("ElectrodeWFlowTemp.DeviceData")]
public AITSensorAnalogData ElectrodeWFlowTemp { get; set; }
[Subscription("TMPumpFlowTemp.Value")]
public float TMPumpFlowTemp { get; set; }
[Subscription("TMPumpFlowTemp.DeviceData")]
public AITSensorAnalogData TMPumpFlowTemp { get; set; }
[Subscription("TMTopLidFlowTemp.Value")]
public float TMTopLidFlowTemp { get; set; }
[Subscription("TMTopLidFlowTemp.DeviceData")]
public AITSensorAnalogData TMTopLidFlowTemp { get; set; }
[Subscription("TransformerFlowTemp.Value")]
public float TransformerFlowTemp { get; set; }
[Subscription("TransformerFlowTemp.DeviceData")]
public AITSensorAnalogData TransformerFlowTemp { get; set; }
[Subscription("SensorSHFlowSW.Value")]
public bool FlowSW1 { get; set; }