This commit is contained in:
GukSang.Jin
2026-05-16 17:56:45 +08:00
parent bf58b3e2bd
commit c0bb1e25e0

View File

@@ -182,6 +182,29 @@
<Setter Property="Margin" Value="0,8,0,0"/>
</Style>
<Style TargetType="Border" x:Key="FooterItem">
<Setter Property="Background" Value="#F8FBFD"/>
<Setter Property="BorderBrush" Value="#DFE7EF"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="5"/>
<Setter Property="Padding" Value="12,7"/>
<Setter Property="MinHeight" Value="36"/>
</Style>
<Style TargetType="TextBlock" x:Key="FooterLabel">
<Setter Property="Foreground" Value="#647487"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="TextBlock" x:Key="FooterValue">
<Setter Property="Foreground" Value="#102A43"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<DataTemplate x:Key="StationCardTemplate">
<Border BorderBrush="{StaticResource PanelBorderBrush}"
BorderThickness="1"
@@ -550,34 +573,67 @@
Content="{Binding Tester}"
ContentTemplate="{StaticResource StationCardTemplate}"/>
<StatusBar Grid.Row="2" Background="#FFF" BorderBrush="#DDD" BorderThickness="0,1,0,0" Padding="8">
<StatusBarItem>
<StackPanel Orientation="Horizontal">
<Ellipse Width="10" Height="10" Fill="{Binding PlcStatus, Converter={StaticResource StatusColorConverter}}" Margin="0,0,5,0"/>
<TextBlock Text="PLC: "/>
<TextBlock Text="{Binding PlcStatus}"/>
</StackPanel>
</StatusBarItem>
<Separator/>
<StatusBarItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="当前时间: "/>
<TextBlock Text="{Binding CurrentTime}"/>
</StackPanel>
</StatusBarItem>
<Separator/>
<StatusBarItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="⚠ " Foreground="#FF5722"/>
<TextBlock Text="{Binding GlobalAlarm}" Foreground="Red"/>
</StackPanel>
</StatusBarItem>
<Button Background="Transparent"
BorderThickness="0"
Margin="10"
Width="80"
Height="30"
Command="{Binding ShowDataCommand}"/>
</StatusBar>
<Border Grid.Row="2"
Background="#FFFFFF"
BorderBrush="#DCE5EE"
BorderThickness="1"
CornerRadius="6"
Padding="8">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Style="{StaticResource FooterItem}" Margin="0,0,8,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Ellipse Width="10"
Height="10"
Fill="{Binding PlcStatus, Converter={StaticResource StatusColorConverter}}"
Margin="0,0,8,0"/>
<TextBlock Text="PLC" Style="{StaticResource FooterLabel}" Margin="0,0,8,0"/>
<TextBlock Text="{Binding PlcStatus}" Style="{StaticResource FooterValue}"/>
</StackPanel>
</Border>
<Border Grid.Column="1" Style="{StaticResource FooterItem}" Margin="0,0,8,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="当前时间" Style="{StaticResource FooterLabel}" Margin="0,0,8,0"/>
<TextBlock Text="{Binding CurrentTime}" Style="{StaticResource FooterValue}"/>
</StackPanel>
</Border>
<Border Grid.Column="2" Style="{StaticResource FooterItem}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="报警"
Style="{StaticResource FooterLabel}"
Foreground="#B33A3A"
Margin="0,0,8,0"/>
<TextBlock Grid.Column="1"
Text="{Binding GlobalAlarm}"
Foreground="#C62828"
FontSize="14"
FontWeight="SemiBold"
VerticalAlignment="Center"
TextTrimming="CharacterEllipsis"/>
</Grid>
</Border>
<Button Grid.Column="3"
Background="Transparent"
BorderThickness="0"
Opacity="0"
Width="18"
Height="18"
Margin="8,0,0,0"
Command="{Binding ShowDataCommand}"/>
</Grid>
</Border>
</Grid>
</Window>