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"/> <Setter Property="Margin" Value="0,8,0,0"/>
</Style> </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"> <DataTemplate x:Key="StationCardTemplate">
<Border BorderBrush="{StaticResource PanelBorderBrush}" <Border BorderBrush="{StaticResource PanelBorderBrush}"
BorderThickness="1" BorderThickness="1"
@@ -550,34 +573,67 @@
Content="{Binding Tester}" Content="{Binding Tester}"
ContentTemplate="{StaticResource StationCardTemplate}"/> ContentTemplate="{StaticResource StationCardTemplate}"/>
<StatusBar Grid.Row="2" Background="#FFF" BorderBrush="#DDD" BorderThickness="0,1,0,0" Padding="8"> <Border Grid.Row="2"
<StatusBarItem> Background="#FFFFFF"
<StackPanel Orientation="Horizontal"> BorderBrush="#DCE5EE"
<Ellipse Width="10" Height="10" Fill="{Binding PlcStatus, Converter={StaticResource StatusColorConverter}}" Margin="0,0,5,0"/> BorderThickness="1"
<TextBlock Text="PLC: "/> CornerRadius="6"
<TextBlock Text="{Binding PlcStatus}"/> 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> </StackPanel>
</StatusBarItem> </Border>
<Separator/>
<StatusBarItem> <Border Grid.Column="1" Style="{StaticResource FooterItem}" Margin="0,0,8,0">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="当前时间: "/> <TextBlock Text="当前时间" Style="{StaticResource FooterLabel}" Margin="0,0,8,0"/>
<TextBlock Text="{Binding CurrentTime}"/> <TextBlock Text="{Binding CurrentTime}" Style="{StaticResource FooterValue}"/>
</StackPanel> </StackPanel>
</StatusBarItem> </Border>
<Separator/>
<StatusBarItem> <Border Grid.Column="2" Style="{StaticResource FooterItem}">
<StackPanel Orientation="Horizontal"> <Grid>
<TextBlock Text="⚠ " Foreground="#FF5722"/> <Grid.ColumnDefinitions>
<TextBlock Text="{Binding GlobalAlarm}" Foreground="Red"/> <ColumnDefinition Width="Auto"/>
</StackPanel> <ColumnDefinition Width="*"/>
</StatusBarItem> </Grid.ColumnDefinitions>
<Button Background="Transparent" <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" BorderThickness="0"
Margin="10" Opacity="0"
Width="80" Width="18"
Height="30" Height="18"
Margin="8,0,0,0"
Command="{Binding ShowDataCommand}"/> Command="{Binding ShowDataCommand}"/>
</StatusBar> </Grid>
</Border>
</Grid> </Grid>
</Window> </Window>