272 lines
12 KiB
XML
272 lines
12 KiB
XML
<UserControl
|
|
x:Class="OrpaonEMS.App.Views.ACView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:OrpaonEMS.App.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
d:DesignHeight="708"
|
|
d:DesignWidth="1024"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
mc:Ignorable="d">
|
|
<!--<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="/KylinEMS.Assets;component/Styles/MaterialDesignThemesResources.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>-->
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<Style x:Key="borderStyle" TargetType="Border">
|
|
<Setter Property="Margin" Value="10,5" />
|
|
<Setter Property="Background" Value="LightGray" />
|
|
<Setter Property="CornerRadius" Value="0" />
|
|
<Setter Property="Opacity" Value="0.8" />
|
|
</Style>
|
|
<Style x:Key="IcoborderStyle" TargetType="Border">
|
|
<Setter Property="Margin" Value="20,5" />
|
|
<Setter Property="Background" Value="#00B2EE" />
|
|
<Setter Property="CornerRadius" Value="10" />
|
|
<Setter Property="Opacity" Value="0.8" />
|
|
</Style>
|
|
<Style x:Key="ContentborderStyle" TargetType="Border">
|
|
<Setter Property="Margin" Value="0,0" />
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
<Setter Property="CornerRadius" Value="3" />
|
|
<Setter Property="Height" Value="45" />
|
|
</Style>
|
|
<Style x:Key="StackPanelBigStyle" TargetType="StackPanel">
|
|
<Setter Property="Margin" Value="10,8" />
|
|
<Setter Property="Orientation" Value="Horizontal" />
|
|
</Style>
|
|
<Style x:Key="TextBlockIcoStyle" TargetType="TextBlock">
|
|
<Setter Property="Margin" Value="25,5" />
|
|
<Setter Property="FontFamily" Value="../Assets/Fonts/#iconfont" />
|
|
<Setter Property="FontSize" Value="55" />
|
|
<Setter Property="Foreground" Value="DarkBlue" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="LabelTitleStyle" TargetType="Label">
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="TextBlockValueStyle" TargetType="TextBlock">
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="FontSize" Value="30" />
|
|
<Setter Property="Margin" Value="0,5" />
|
|
</Style>
|
|
</Grid.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Grid.RowSpan="6"
|
|
Margin="10,5,25,5"
|
|
Background="WhiteSmoke">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.6"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
</Border>
|
|
|
|
<Border
|
|
Grid.RowSpan="6"
|
|
Grid.Column="1"
|
|
Margin="10,5,25,5"
|
|
Background="WhiteSmoke">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.6"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
</Border>
|
|
|
|
<StackPanel Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">系统报警状态</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock
|
|
Margin="0,0,0,7"
|
|
VerticalAlignment="Bottom"
|
|
FontSize="24"
|
|
Style="{StaticResource TextBlockValueStyle}"
|
|
Text="无报警" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">工作模式状态</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.CoolWorkModelMsg}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">液冷出水温度</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.OutTemp, StringFormat=0.0}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="3" Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">液冷回水温度</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.InTemp, StringFormat=0.0}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="4" Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">液冷供水压力</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.OutPress, StringFormat=0.0}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="5" Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">液冷回水压力</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.InPress, StringFormat=0.0}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">液冷的故障码</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.CoolFaultCode}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Style="{StaticResource StackPanelBigStyle}">
|
|
<Border Style="{StaticResource IcoborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="" />
|
|
</Border>
|
|
<StackPanel Margin="5,0" HorizontalAlignment="Center">
|
|
<Label Style="{StaticResource LabelTitleStyle}">液冷故障等级</Label>
|
|
<Border Style="{StaticResource ContentborderStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding liquidCoolRtData.CoolFaultLevel}" />
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<Border
|
|
Grid.Row="3"
|
|
Grid.RowSpan="3"
|
|
Grid.Column="1"
|
|
Margin="20,0,35,5"
|
|
BorderBrush="Gray"
|
|
BorderThickness="1">
|
|
<DataGrid
|
|
x:Name="ACAlarmDatagrid"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding liquidCoolRtData.ListRtAlarm}"
|
|
ScrollViewer.CanContentScroll="True"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
SelectionMode="Extended">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn
|
|
Width="300"
|
|
Binding="{Binding Content}"
|
|
Header="内容" />
|
|
<DataGridTextColumn
|
|
Width="100"
|
|
Binding="{Binding AlarmTime}"
|
|
Header="开始时间" />
|
|
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
<!--<DataGrid.RowStyle>
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
<Style.Triggers>
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
|
|
<Setter Property="Background" Value="AliceBlue" />
|
|
</Trigger>
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
|
<Setter Property="Background" Value="#FFF2F2F2" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</DataGrid.RowStyle>-->
|
|
</DataGrid>
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Grid>
|
|
</UserControl>
|