1102 lines
47 KiB
XML
1102 lines
47 KiB
XML
<UserControl
|
|
x:Class="OrpaonEMS.App.Views.ProcesView"
|
|
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/"
|
|
Width="1024"
|
|
Height="708"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
Background="#F5F6FA"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="280" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="50" />
|
|
</Grid.RowDefinitions>
|
|
<Border Background="White" CornerRadius="20">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.4"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
<Canvas Margin="0,0,0,1">
|
|
<Rectangle
|
|
Canvas.Left="57"
|
|
Canvas.Top="82"
|
|
Width="208"
|
|
Height="100"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4" />
|
|
<Line
|
|
Canvas.Left="35"
|
|
Canvas.Top="211.656"
|
|
Width="420"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="420"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Rectangle
|
|
Canvas.Left="683"
|
|
Canvas.Top="50"
|
|
Width="90"
|
|
Height="179"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="2">
|
|
<Rectangle.Style>
|
|
<Style TargetType="Rectangle">
|
|
<Setter Property="Fill" Value="Gray" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding inPowerPCSDataService.PcsRunState.PcsStateMsg}" Value="运行">
|
|
<Setter Property="Fill" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding inPowerPCSDataService.PcsRunState.PcsStateMsg}" Value="停止">
|
|
<Setter Property="Fill" Value="Gray" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding inPowerPCSDataService.PcsRunState.PcsStateMsg}" Value="待机">
|
|
<Setter Property="Fill" Value="LightYellow" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Rectangle.Style>
|
|
</Rectangle>
|
|
<Path
|
|
Canvas.Left="555"
|
|
Canvas.Top="424.5"
|
|
Width="1"
|
|
Height="1"
|
|
Fill="#FFF4F4F5"
|
|
Stretch="Fill"
|
|
Stroke="Black">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M555,424.5" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Path
|
|
Canvas.Left="370.5"
|
|
Canvas.Top="433.5"
|
|
Width="1"
|
|
Height="1"
|
|
Fill="#FFF4F4F5"
|
|
Stretch="Fill"
|
|
Stroke="Black">
|
|
<Path.Data>
|
|
<PathGeometry Figures="M370.5,433.5" />
|
|
</Path.Data>
|
|
</Path>
|
|
<Line
|
|
Canvas.Left="37"
|
|
Canvas.Top="131.654"
|
|
Width="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="0"
|
|
Y1="80"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="35"
|
|
Canvas.Top="132.66"
|
|
Width="25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="25"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="456"
|
|
Canvas.Top="159"
|
|
Width="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="0"
|
|
Y1="80"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="265"
|
|
Canvas.Top="132"
|
|
Width="128"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="128"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="394"
|
|
Canvas.Top="80"
|
|
Width="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="0"
|
|
Y1="80"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="394"
|
|
Canvas.Top="100"
|
|
Width="150"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="150"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="456"
|
|
Canvas.Top="185"
|
|
Width="88"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="88"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Rectangle
|
|
Canvas.Left="544"
|
|
Canvas.Top="80"
|
|
Width="76"
|
|
Height="120"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="2">
|
|
<Rectangle.Style>
|
|
<Style TargetType="Rectangle">
|
|
<Setter Property="Fill" Value="Gray" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding BmsDataService.BmsIO.DI6}" Value="True">
|
|
<Setter Property="Fill" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Rectangle.Style>
|
|
</Rectangle>
|
|
<Line
|
|
Canvas.Left="619"
|
|
Canvas.Top="158"
|
|
Width="65"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="65"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="620"
|
|
Canvas.Top="120"
|
|
Width="65"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="65"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="773"
|
|
Canvas.Top="109"
|
|
Width="50"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="50"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="949"
|
|
Canvas.Top="109"
|
|
Width="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="0"
|
|
Y1="50"
|
|
Y2="0" />
|
|
<Rectangle
|
|
Canvas.Left="822"
|
|
Canvas.Top="75"
|
|
Width="76"
|
|
Height="120"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="2">
|
|
<Rectangle.Style>
|
|
<Style TargetType="Rectangle">
|
|
<Setter Property="Fill" Value="Gray" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding BmsDataService.BmsIO.PcsAcCircuitBreaker}" Value="True">
|
|
<Setter Property="Fill" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Rectangle.Style>
|
|
</Rectangle>
|
|
<Line
|
|
Canvas.Left="897"
|
|
Canvas.Top="135"
|
|
Width="50"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="50"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="773"
|
|
Canvas.Top="138"
|
|
Width="50"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="50"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<Line
|
|
Canvas.Left="773"
|
|
Canvas.Top="165"
|
|
Width="50"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Stroke="Gray"
|
|
StrokeThickness="4"
|
|
X1="0"
|
|
X2="50"
|
|
Y1="0"
|
|
Y2="0" />
|
|
<TextBlock
|
|
Canvas.Left="544"
|
|
Canvas.Top="205"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
TextWrapping="Wrap"><Run
|
|
FontSize="20"
|
|
Language="zh-cn"
|
|
Text="总闸开关" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="708"
|
|
Canvas.Top="235"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="Wrap"><Run
|
|
FontSize="20"
|
|
Language="zh-cn"
|
|
Text="PCS" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="820"
|
|
Canvas.Top="200"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
TextWrapping="Wrap"><Run
|
|
FontSize="20"
|
|
Language="zh-cn"
|
|
Text="交流主断" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="130"
|
|
Canvas.Top="50"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
TextWrapping="Wrap"><Run FontSize="20" Text="电池" /><Run
|
|
FontSize="20"
|
|
Language="zh-cn"
|
|
Text="簇" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="66"
|
|
Canvas.Top="93"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
TextWrapping="NoWrap"><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text="SOC:" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="109"
|
|
Canvas.Top="94"
|
|
Width="46"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Background="DeepSkyBlue"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="{Binding BmsDataService.BmsSOC.RtValue, StringFormat=0.0}" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="66"
|
|
Canvas.Top="121"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="SO" /><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text="H" /><Run FontSize="16" Text=":" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="109"
|
|
Canvas.Top="122"
|
|
Width="46"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Background="DeepSkyBlue"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="{Binding BmsDataService.BmsSOH.RtValue, StringFormat=0.0}" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="66"
|
|
Canvas.Top="149"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="SO" /><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text="E" /><Run FontSize="16" Text=":" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="109"
|
|
Canvas.Top="150"
|
|
Width="46"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Background="DeepSkyBlue"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="{Binding BmsDataService.BmsSOE.RtValue, StringFormat=0.0}" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="161"
|
|
Canvas.Top="93"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="电压" /><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text=":" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="200"
|
|
Canvas.Top="94"
|
|
Width="60"
|
|
Height="20"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="DeepSkyBlue"
|
|
TextWrapping="NoWrap"><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text="{Binding BmsDataService.BmsVol.RtValue, StringFormat=0.0}" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="160"
|
|
Canvas.Top="122"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="NoWrap"><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text="电流:" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="200"
|
|
Canvas.Top="123"
|
|
Width="60"
|
|
Height="20"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Background="DeepSkyBlue"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="{Binding BmsDataService.BmsCur.RtValue, StringFormat=0.0}" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="161"
|
|
Canvas.Top="150"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="NoWrap"><Run
|
|
FontSize="16"
|
|
Language="zh-cn"
|
|
Text="功率" /><Run FontSize="16" Text=":" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="200"
|
|
Canvas.Top="151"
|
|
Width="60"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="DeepSkyBlue"
|
|
TextWrapping="NoWrap"><Run FontSize="16" Text="{Binding BmsDataService.BmsSOC.RtValue}" /></TextBlock>
|
|
<Rectangle
|
|
Canvas.Left="296"
|
|
Canvas.Top="201"
|
|
Width="66"
|
|
Height="20"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="1">
|
|
<Rectangle.Style>
|
|
<Style TargetType="Rectangle">
|
|
<Setter Property="Fill" Value="Gray" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding BmsDataService.BmsIO.DI3}" Value="True">
|
|
<Setter Property="Fill" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Rectangle.Style>
|
|
</Rectangle>
|
|
<TextBlock
|
|
Canvas.Left="276"
|
|
Canvas.Top="225"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="Wrap"><Run FontSize="20" Text="主" /><Run
|
|
FontSize="20"
|
|
Language="zh-cn"
|
|
Text="负" /><Run FontSize="20" Text="接触器" /></TextBlock>
|
|
<Rectangle
|
|
Canvas.Left="296"
|
|
Canvas.Top="121"
|
|
Width="66"
|
|
Height="20"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Stroke="Gray"
|
|
StrokeThickness="1">
|
|
<Rectangle.Style>
|
|
<Style TargetType="Rectangle">
|
|
<Setter Property="Fill" Value="Gray" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding BmsDataService.BmsIO.DI1}" Value="True">
|
|
<Setter Property="Fill" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Rectangle.Style>
|
|
</Rectangle>
|
|
<TextBlock
|
|
Canvas.Left="279"
|
|
Canvas.Top="145"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="Wrap"><Run FontSize="20" Text="主" /><Run
|
|
FontSize="20"
|
|
Language="zh-cn"
|
|
Text="正" /><Run FontSize="20" Text="接触器" /></TextBlock>
|
|
<TextBlock
|
|
Canvas.Left="9"
|
|
Canvas.Top="9"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
FontFamily="../Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Foreground="Black"
|
|
Text=" " />
|
|
<TextBlock
|
|
Canvas.Left="40"
|
|
Canvas.Top="6"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Foreground="#596B75"
|
|
TextWrapping="Wrap"><Run FontSize="24" Text="系统概览图" /></TextBlock>
|
|
<Rectangle
|
|
Canvas.Left="898"
|
|
Canvas.Top="8"
|
|
Width="26"
|
|
Height="10"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Fill="LimeGreen"
|
|
Stroke="LimeGreen"
|
|
StrokeThickness="1" />
|
|
<TextBlock
|
|
Canvas.Left="932"
|
|
Canvas.Top="5"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
RenderTransformOrigin="1.13,0.394"
|
|
TextWrapping="Wrap"><Run
|
|
FontSize="12"
|
|
Language="zh-cn"
|
|
Text="打开/运行" /></TextBlock>
|
|
<Rectangle
|
|
Canvas.Left="898"
|
|
Canvas.Top="24"
|
|
Width="26"
|
|
Height="10"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Fill="Gray"
|
|
Stroke="Gray"
|
|
StrokeThickness="1" />
|
|
<TextBlock
|
|
Canvas.Left="932"
|
|
Canvas.Top="21"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
RenderTransformOrigin="1.13,0.394"
|
|
TextWrapping="Wrap"><Run
|
|
FontSize="12"
|
|
Language="zh-cn"
|
|
Text="停止/断开" /></TextBlock>
|
|
<Rectangle
|
|
Canvas.Left="898"
|
|
Canvas.Top="39"
|
|
Width="26"
|
|
Height="10"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Fill="LightYellow"
|
|
Stroke="Gray"
|
|
StrokeThickness="1" />
|
|
<TextBlock
|
|
Canvas.Left="932"
|
|
Canvas.Top="36"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
RenderTransformOrigin="1.13,0.394"
|
|
TextWrapping="Wrap"><Run
|
|
FontSize="12"
|
|
Language="zh-cn"
|
|
Text="系统待机" /></TextBlock>
|
|
|
|
|
|
</Canvas>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="1"
|
|
Margin="0,8"
|
|
Padding="2"
|
|
Background="White"
|
|
CornerRadius="5">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.4"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontFamily="../Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
Foreground="#596B75"
|
|
Text="BMS报警信息" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontFamily="../Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
Foreground="#596B75"
|
|
Text="PCS报警信息" />
|
|
</StackPanel>
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="18"
|
|
Text="{Binding BmsDataService.CurAlarmModel.CurAlarmContent}" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="18"
|
|
Text="{Binding inPowerPCSDataService.CurPcsAlarmModel.CurAlarmMsg}" />
|
|
</Grid>
|
|
|
|
</Border>
|
|
<Border
|
|
Grid.Row="2"
|
|
Margin="0,8"
|
|
Padding="2"
|
|
Background="White"
|
|
CornerRadius="5">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.4"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.ColumnSpan="3" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontFamily="../Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
Foreground="#596B75"
|
|
Text="服务侧控制状态" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="EMS状态" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EmSService.EsSysPeakVellayStateMsg}" />
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="1">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="真实负载" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EmSService.ManageRealLoad, StringFormat=0.0}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="2">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="EMS指令" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="1:" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="2" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="3" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="4" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="3">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="站点状态" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="#596B75"
|
|
Text="{Binding EmSService.DistClient0.EMSSocketServerConState.ServerSendStateMsg}" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="#596B75"
|
|
Text="{Binding EmSService.DistClient0.EMSSocketServerConState.ServerRecvStateMsg}" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="#596B75"
|
|
Text="{Binding EmSService.DistClient1.EMSSocketServerConState.ServerSendStateMsg}" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="#596B75"
|
|
Text="{Binding EmSService.DistClient1.EMSSocketServerConState.ServerRecvStateMsg}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="3"
|
|
Margin="0,8"
|
|
Padding="2"
|
|
Background="White"
|
|
CornerRadius="5">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.4"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="35" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.ColumnSpan="3" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontFamily="../Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
Foreground="#596B75"
|
|
Text="客户端控制状态" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="指令信息" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75">
|
|
<TextBlock.Style>
|
|
<Style TargetType="TextBlock">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding EnergyStorageService.CurServerCmd.CmdType}" Value="Charg">
|
|
<Setter Property="Text" Value="充电:" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding EnergyStorageService.CurServerCmd.CmdType}" Value="DisCharg">
|
|
<Setter Property="Text" Value="放电:" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</TextBlock.Style>
|
|
</TextBlock>
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EnergyStorageService.CurServerCmd.CmdPw, StringFormat=0.0}" />
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="kW" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="1">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="控制通信" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="服务端:" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EnergyStorageService.EMSSocketClientConState.ClientRecvStateMsg}" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="- 客户端:" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EnergyStorageService.EMSSocketClientConState.ClientSendStateMsg}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="2">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="充放电状态" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="充电:" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EnergyStorageService.IsCanChargMsg}" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="- 放电" />
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EnergyStorageService.IsCanDisChargMsg}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="3">
|
|
<TextBlock
|
|
Margin="5,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="储能运行状态" />
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="#596B75"
|
|
Text="{Binding EnergyStorageService.EsSysRunStateMsg}" />
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
<Border
|
|
Grid.Row="4"
|
|
Padding="5"
|
|
Background="White"
|
|
CornerRadius="5">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="20"
|
|
Direction="280"
|
|
Opacity="0.4"
|
|
ShadowDepth="0"
|
|
Color="DarkGray" />
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<Style x:Key="StackPanelStyle" TargetType="StackPanel">
|
|
<Setter Property="Orientation" Value="Horizontal" />
|
|
<Setter Property="Margin" Value="2" />
|
|
</Style>
|
|
<Style x:Key="BorderStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
<Setter Property="Margin" Value="3,1" />
|
|
<Setter Property="CornerRadius" Value="5" />
|
|
</Style>
|
|
<Style x:Key="TextBlockTitle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="16" />
|
|
<Setter Property="Margin" Value="5,0" />
|
|
<Setter Property="Foreground" Value="AliceBlue" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="TextBlockValue" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="16" />
|
|
<Setter Property="Foreground" Value="AliceBlue" />
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Style="{StaticResource BorderStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="BMS通信:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding BmsDataService.LinkStateModels.BmsLinkStateMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="1" Style="{StaticResource BorderStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="PCS通信:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.PcsRunState.LinkStateMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="2" Style="{StaticResource BorderStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="液冷通信:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding ACService.LinkStateMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="3" Style="{StaticResource BorderStyle}">
|
|
<StackPanel Grid.Column="3" Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="消防通信:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding FFService.LinkStateMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="4" Style="{StaticResource BorderStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="柜体通信:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="正常" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="5" Style="{StaticResource BorderStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="云服务:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding MqttDataClientService.MqttClientStateMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="6" Style="{StaticResource BorderStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockTitle}" Text="Bak:" />
|
|
<TextBlock Style="{StaticResource TextBlockValue}" Text="--" />
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|