|
@@ -17,23 +17,23 @@
|
|
|
<Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto" Margin="16,0">
|
|
<Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto" Margin="16,0">
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="12" VerticalAlignment="Center">
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="12" VerticalAlignment="Center">
|
|
|
<Border Background="{DynamicResource SuccessBrush}" Width="4" Height="24" CornerRadius="2"/>
|
|
<Border Background="{DynamicResource SuccessBrush}" Width="4" Height="24" CornerRadius="2"/>
|
|
|
- <TextBlock Text="YZ WATER" FontSize="16" FontWeight="Bold"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding TitleText}" FontSize="16" FontWeight="Bold"
|
|
|
Foreground="{DynamicResource TextPrimaryBrush}" FontFamily="Consolas, monospace"
|
|
Foreground="{DynamicResource TextPrimaryBrush}" FontFamily="Consolas, monospace"
|
|
|
VerticalAlignment="Center"/>
|
|
VerticalAlignment="Center"/>
|
|
|
- <TextBlock Text="污水处理监控系统" FontSize="12"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding SubtitleText}" FontSize="12"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" VerticalAlignment="Center"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" VerticalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" Margin="24,0">
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8" VerticalAlignment="Center" Margin="24,0">
|
|
|
<Border Width="10" Height="10" CornerRadius="5" Background="{DynamicResource SuccessBrush}"/>
|
|
<Border Width="10" Height="10" CornerRadius="5" Background="{DynamicResource SuccessBrush}"/>
|
|
|
- <TextBlock Text="PLC CONNECTED" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding PlcStatusText}" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center" Margin="16,0">
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center" Margin="16,0">
|
|
|
- <Button Content="CONNECT" Command="{Binding ConnectPlcCommand}" Classes="btn-success" Padding="8,3" FontSize="10"/>
|
|
|
|
|
- <Button Content="DISCONNECT" Command="{Binding DisconnectPlcCommand}" Classes="btn-danger" Padding="8,3" FontSize="10"/>
|
|
|
|
|
- <Button Content="REFRESH" Command="{Binding RefreshDataCommand}" Classes="btn-info" Padding="8,3" FontSize="10"/>
|
|
|
|
|
|
|
+ <Button Content="{Binding ConnectText}" Command="{Binding ConnectPlcCommand}" Classes="btn-success" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ <Button Content="{Binding DisconnectText}" Command="{Binding DisconnectPlcCommand}" Classes="btn-danger" Padding="8,3" FontSize="10"/>
|
|
|
|
|
+ <Button Content="{Binding RefreshText}" Command="{Binding RefreshDataCommand}" Classes="btn-info" Padding="8,3" FontSize="10"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
<StackPanel Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
@@ -57,7 +57,7 @@
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Spacing="8" Margin="0,0,0,8">
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Spacing="8" Margin="0,0,0,8">
|
|
|
<Border Background="{DynamicResource SuccessBrush}" Width="3" Height="16" CornerRadius="1"/>
|
|
<Border Background="{DynamicResource SuccessBrush}" Width="3" Height="16" CornerRadius="1"/>
|
|
|
- <TextBlock Text="PROCESS FLOW" FontFamily="Consolas, monospace"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding ProcessFlowText}" FontFamily="Consolas, monospace"
|
|
|
FontSize="12" FontWeight="Bold" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
FontSize="12" FontWeight="Bold" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
@@ -70,7 +70,7 @@
|
|
|
Spacing="20" HorizontalAlignment="Center" Margin="0,0,0,8">
|
|
Spacing="20" HorizontalAlignment="Center" Margin="0,0,0,8">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
|
- WaterLevel="{Binding Tank1Level}" Text="入口池"
|
|
|
|
|
|
|
+ WaterLevel="{Binding Tank1Level}" Text="{Binding Tank1Text}"
|
|
|
WaterColor="{DynamicResource TankInletBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
WaterColor="{DynamicResource TankInletBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
|
<TextBlock Text="{Binding Tank1Level, StringFormat='LV: {0:F1}%'}"
|
|
<TextBlock Text="{Binding Tank1Level, StringFormat='LV: {0:F1}%'}"
|
|
@@ -81,7 +81,7 @@
|
|
|
<TextBlock Text="→" FontSize="24" Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
<TextBlock Text="→" FontSize="24" Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
|
- WaterLevel="{Binding Tank2Level}" Text="生化池"
|
|
|
|
|
|
|
+ WaterLevel="{Binding Tank2Level}" Text="{Binding Tank2Text}"
|
|
|
WaterColor="{DynamicResource TankBioBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
WaterColor="{DynamicResource TankBioBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
|
<TextBlock Text="{Binding Tank2Level, StringFormat='LV: {0:F1}%'}"
|
|
<TextBlock Text="{Binding Tank2Level, StringFormat='LV: {0:F1}%'}"
|
|
@@ -92,7 +92,7 @@
|
|
|
<TextBlock Text="→" FontSize="24" Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
<TextBlock Text="→" FontSize="24" Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
|
- WaterLevel="{Binding Tank3Level}" Text="沉淀池"
|
|
|
|
|
|
|
+ WaterLevel="{Binding Tank3Level}" Text="{Binding Tank3Text}"
|
|
|
WaterColor="{DynamicResource TankSedimentBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
WaterColor="{DynamicResource TankSedimentBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
|
<TextBlock Text="{Binding Tank3Level, StringFormat='LV: {0:F1}%'}"
|
|
<TextBlock Text="{Binding Tank3Level, StringFormat='LV: {0:F1}%'}"
|
|
@@ -103,7 +103,7 @@
|
|
|
<TextBlock Text="→" FontSize="24" Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
<TextBlock Text="→" FontSize="24" Foreground="{DynamicResource SuccessBrush}" VerticalAlignment="Center"/>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
<controls:WaterTankControl Width="110" Height="130"
|
|
|
- WaterLevel="{Binding Tank4Level}" Text="出口池"
|
|
|
|
|
|
|
+ WaterLevel="{Binding Tank4Level}" Text="{Binding Tank4Text}"
|
|
|
WaterColor="{DynamicResource TankOutletBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
WaterColor="{DynamicResource TankOutletBrush}" BorderColor="{DynamicResource BorderBrush}"/>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
<Border Background="{DynamicResource BorderBrush}" Padding="6,2" Margin="0,2,0,0">
|
|
|
<TextBlock Text="{Binding Tank4Level, StringFormat='LV: {0:F1}%'}"
|
|
<TextBlock Text="{Binding Tank4Level, StringFormat='LV: {0:F1}%'}"
|
|
@@ -144,31 +144,31 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:PumpControl Width="60" Height="68"
|
|
<controls:PumpControl Width="60" Height="68"
|
|
|
IsRunning="{Binding Pump1Running}" Frequency="50" Text="P1"/>
|
|
IsRunning="{Binding Pump1Running}" Frequency="50" Text="P1"/>
|
|
|
- <TextBlock Text="进水泵1" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Pump1Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:PumpControl Width="60" Height="68"
|
|
<controls:PumpControl Width="60" Height="68"
|
|
|
IsRunning="{Binding Pump2Running}" Frequency="45" Text="P2"/>
|
|
IsRunning="{Binding Pump2Running}" Frequency="45" Text="P2"/>
|
|
|
- <TextBlock Text="进水泵2" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Pump2Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:PumpControl Width="60" Height="68"
|
|
<controls:PumpControl Width="60" Height="68"
|
|
|
IsRunning="{Binding Pump3Running}" Frequency="40" Text="P3"/>
|
|
IsRunning="{Binding Pump3Running}" Frequency="40" Text="P3"/>
|
|
|
- <TextBlock Text="回流泵" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Pump3Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:PumpControl Width="60" Height="68"
|
|
<controls:PumpControl Width="60" Height="68"
|
|
|
IsRunning="{Binding Pump4Running}" Frequency="35" Text="P4"/>
|
|
IsRunning="{Binding Pump4Running}" Frequency="35" Text="P4"/>
|
|
|
- <TextBlock Text="排泥泵" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Pump4Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:PumpControl Width="60" Height="68"
|
|
<controls:PumpControl Width="60" Height="68"
|
|
|
IsRunning="{Binding Pump5Running}" Frequency="55" Text="P5"/>
|
|
IsRunning="{Binding Pump5Running}" Frequency="55" Text="P5"/>
|
|
|
- <TextBlock Text="加药泵" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Pump5Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
@@ -178,13 +178,13 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:FanControl Width="44" Height="44"
|
|
<controls:FanControl Width="44" Height="44"
|
|
|
IsRunning="{Binding Fan1Running}" Speed="1" Text="F1"/>
|
|
IsRunning="{Binding Fan1Running}" Speed="1" Text="F1"/>
|
|
|
- <TextBlock Text="风机1" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Fan1Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<controls:FanControl Width="44" Height="44"
|
|
<controls:FanControl Width="44" Height="44"
|
|
|
IsRunning="{Binding Fan2Running}" Speed="1.5" Text="F2"/>
|
|
IsRunning="{Binding Fan2Running}" Speed="1.5" Text="F2"/>
|
|
|
- <TextBlock Text="风机2" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Fan2Text}" FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
Foreground="{DynamicResource TextTertiaryBrush}" HorizontalAlignment="Center" Margin="0,2,0,0"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
@@ -196,10 +196,10 @@
|
|
|
<Border Grid.Row="0" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
<Border Grid.Row="0" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
|
CornerRadius="2" Padding="8" Margin="0,0,0,6">
|
|
CornerRadius="2" Padding="8" Margin="0,0,0,6">
|
|
|
<StackPanel HorizontalAlignment="Center" Spacing="4">
|
|
<StackPanel HorizontalAlignment="Center" Spacing="4">
|
|
|
- <TextBlock Text="MODE" FontFamily="Consolas, monospace"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding ModeText}" FontFamily="Consolas, monospace"
|
|
|
FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
<controls:ValveControl Width="36" Height="36"
|
|
<controls:ValveControl Width="36" Height="36"
|
|
|
- Status="{Binding ModeStatus}" Text="AUTO"
|
|
|
|
|
|
|
+ Status="{Binding ModeStatus}" Text="{Binding ModeText}"
|
|
|
ValveColor="{DynamicResource SuccessBrush}" BackgroundColor="{DynamicResource BorderBrush}"/>
|
|
ValveColor="{DynamicResource SuccessBrush}" BackgroundColor="{DynamicResource BorderBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Border>
|
|
</Border>
|
|
@@ -208,10 +208,10 @@
|
|
|
<Border Grid.Row="1" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
<Border Grid.Row="1" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
|
CornerRadius="2" Padding="8" Margin="0,0,0,6">
|
|
CornerRadius="2" Padding="8" Margin="0,0,0,6">
|
|
|
<StackPanel Spacing="6">
|
|
<StackPanel Spacing="6">
|
|
|
- <TextBlock Text="REALTIME" FontFamily="Consolas, monospace"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding RealtimeText}" FontFamily="Consolas, monospace"
|
|
|
FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
<StackPanel Spacing="1">
|
|
<StackPanel Spacing="1">
|
|
|
- <TextBlock Text="INFLOW" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding InflowText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="15" FontWeight="Bold" Foreground="{DynamicResource SuccessBrush}">
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="15" FontWeight="Bold" Foreground="{DynamicResource SuccessBrush}">
|
|
|
<Run Text="{Binding InflowRate, StringFormat='{}{0:F1}'}"/>
|
|
<Run Text="{Binding InflowRate, StringFormat='{}{0:F1}'}"/>
|
|
|
<Run Text=" m³/h" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
<Run Text=" m³/h" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
@@ -219,7 +219,7 @@
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Height="1"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Height="1"/>
|
|
|
<StackPanel Spacing="1">
|
|
<StackPanel Spacing="1">
|
|
|
- <TextBlock Text="OUTFLOW" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding OutflowText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="15" FontWeight="Bold" Foreground="{DynamicResource TankOutletBrush}">
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="15" FontWeight="Bold" Foreground="{DynamicResource TankOutletBrush}">
|
|
|
<Run Text="{Binding OutflowRate, StringFormat='{}{0:F1}'}"/>
|
|
<Run Text="{Binding OutflowRate, StringFormat='{}{0:F1}'}"/>
|
|
|
<Run Text=" m³/h" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
<Run Text=" m³/h" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
@@ -227,7 +227,7 @@
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Height="1"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Height="1"/>
|
|
|
<StackPanel Spacing="1">
|
|
<StackPanel Spacing="1">
|
|
|
- <TextBlock Text="DELTA" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding DeltaText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="13" Foreground="{DynamicResource WarningBrush}">
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="13" Foreground="{DynamicResource WarningBrush}">
|
|
|
<Run Text="{Binding FlowDelta, StringFormat='{}{0:F1}'}"/>
|
|
<Run Text="{Binding FlowDelta, StringFormat='{}{0:F1}'}"/>
|
|
|
<Run Text=" m³/h" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
<Run Text=" m³/h" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
@@ -240,22 +240,22 @@
|
|
|
<Border Grid.Row="2" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
<Border Grid.Row="2" Background="{DynamicResource SurfaceBgBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
|
CornerRadius="2" Padding="8">
|
|
CornerRadius="2" Padding="8">
|
|
|
<StackPanel Spacing="5">
|
|
<StackPanel Spacing="5">
|
|
|
- <TextBlock Text="STATISTICS" FontFamily="Consolas, monospace"
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding StatisticsText}" FontFamily="Consolas, monospace"
|
|
|
FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
|
- <TextBlock Grid.Column="0" Text="RUNTIME" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="0" Text="{Binding RuntimeText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock Grid.Column="1" Text="{Binding RunningTime}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
<TextBlock Grid.Column="1" Text="{Binding RunningTime}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
|
- <TextBlock Grid.Column="0" Text="DEVICES" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="0" Text="{Binding DevicesText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock Grid.Column="1" Text="{Binding RunningDeviceCount, StringFormat='{}{0} ON'}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource SuccessBrush}"/>
|
|
<TextBlock Grid.Column="1" Text="{Binding RunningDeviceCount, StringFormat='{}{0} ON'}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource SuccessBrush}"/>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
|
- <TextBlock Grid.Column="0" Text="ALARM" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="0" Text="{Binding AlarmText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock Grid.Column="1" Text="{Binding AlarmCount, StringFormat='{}{0}'}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource DangerBrush}"/>
|
|
<TextBlock Grid.Column="1" Text="{Binding AlarmCount, StringFormat='{}{0}'}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource DangerBrush}"/>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
<Border Background="{DynamicResource BorderBrush}" Height="1"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Height="1"/>
|
|
|
- <TextBlock Text="EFFICIENCY" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding EfficiencyText}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextDisabledBrush}"/>
|
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource SuccessBrush}">
|
|
<TextBlock FontFamily="Consolas, monospace" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource SuccessBrush}">
|
|
|
<Run Text="{Binding Efficiency, StringFormat='{}{0:F0}'}"/>
|
|
<Run Text="{Binding Efficiency, StringFormat='{}{0:F0}'}"/>
|
|
|
<Run Text="%" FontSize="11" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
<Run Text="%" FontSize="11" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
@@ -301,19 +301,19 @@
|
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="16"/>
|
|
<Border Background="{DynamicResource BorderBrush}" Width="1" Height="16"/>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve1StatusColor}"/>
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve1StatusColor}"/>
|
|
|
- <TextBlock Text="V1" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Valve1Text}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve2StatusColor}"/>
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve2StatusColor}"/>
|
|
|
- <TextBlock Text="V2" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Valve2Text}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve3StatusColor}"/>
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve3StatusColor}"/>
|
|
|
- <TextBlock Text="V3" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Valve3Text}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
<StackPanel Orientation="Horizontal" Spacing="4">
|
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve4StatusColor}"/>
|
|
<Border Width="8" Height="8" CornerRadius="4" Background="{Binding Valve4StatusColor}"/>
|
|
|
- <TextBlock Text="V4" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding Valve4Text}" FontFamily="Consolas, monospace" FontSize="10" Foreground="{DynamicResource TextTertiaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Border>
|
|
</Border>
|
|
@@ -328,7 +328,7 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
|
<Border Background="{DynamicResource SuccessBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
<Border Background="{DynamicResource SuccessBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
|
- <TextBlock Text="FLOW METERS" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding FlowMetersText}" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<Grid ColumnDefinitions="*,*">
|
|
<Grid ColumnDefinitions="*,*">
|
|
|
<controls:GaugeControl Grid.Column="0" Width="110" Height="130"
|
|
<controls:GaugeControl Grid.Column="0" Width="110" Height="130"
|
|
@@ -346,7 +346,7 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
|
<Border Background="{DynamicResource WarningBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
<Border Background="{DynamicResource WarningBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
|
- <TextBlock Text="DEVICE STATUS" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding DeviceStatusText}" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<StackPanel Spacing="3">
|
|
<StackPanel Spacing="3">
|
|
|
<controls:StatusCard Title="进水泵1" Status="{Binding Pump1Status}" Icon="P1" IsActive="{Binding Pump1Running}"/>
|
|
<controls:StatusCard Title="进水泵1" Status="{Binding Pump1Status}" Icon="P1" IsActive="{Binding Pump1Running}"/>
|
|
@@ -363,7 +363,7 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
|
<Border Background="{DynamicResource DangerBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
<Border Background="{DynamicResource DangerBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
|
- <TextBlock Text="ALARM" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource DangerBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding AlarmText}" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource DangerBrush}"/>
|
|
|
<TextBlock Text="{Binding AlarmCount, StringFormat='({0})'}" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource DangerBrush}"/>
|
|
<TextBlock Text="{Binding AlarmCount, StringFormat='({0})'}" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource DangerBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<Border Background="{DynamicResource AlarmBgBrush}" BorderBrush="{DynamicResource DangerBrush}" BorderThickness="1" Padding="8">
|
|
<Border Background="{DynamicResource AlarmBgBrush}" BorderBrush="{DynamicResource DangerBrush}" BorderThickness="1" Padding="8">
|
|
@@ -378,19 +378,19 @@
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
<StackPanel Orientation="Horizontal" Spacing="6" Margin="0,0,0,8">
|
|
|
<Border Background="{DynamicResource InfoBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
<Border Background="{DynamicResource InfoBrush}" Width="3" Height="14" CornerRadius="1"/>
|
|
|
- <TextBlock Text="QUICK OPS" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
|
|
|
|
+ <TextBlock Text="{Binding QuickOpsText}" FontFamily="Consolas, monospace" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
<WrapPanel HorizontalAlignment="Center">
|
|
<WrapPanel HorizontalAlignment="Center">
|
|
|
- <Button Content="START ALL" Margin="3" Padding="10,5"
|
|
|
|
|
|
|
+ <Button Content="{Binding StartAllText}" Margin="3" Padding="10,5"
|
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource SuccessBrush}" BorderBrush="{DynamicResource SuccessBrush}"/>
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource SuccessBrush}" BorderBrush="{DynamicResource SuccessBrush}"/>
|
|
|
- <Button Content="STOP ALL" Margin="3" Padding="10,5"
|
|
|
|
|
|
|
+ <Button Content="{Binding StopAllText}" Margin="3" Padding="10,5"
|
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource DangerBrush}" BorderBrush="{DynamicResource DangerBrush}"/>
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource DangerBrush}" BorderBrush="{DynamicResource DangerBrush}"/>
|
|
|
- <Button Content="ACK ALARM" Margin="3" Padding="10,5"
|
|
|
|
|
|
|
+ <Button Content="{Binding AckAlarmText}" Margin="3" Padding="10,5"
|
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource WarningBrush}" BorderBrush="{DynamicResource WarningBrush}"/>
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource WarningBrush}" BorderBrush="{DynamicResource WarningBrush}"/>
|
|
|
- <Button Content="EXPORT" Margin="3" Padding="10,5"
|
|
|
|
|
|
|
+ <Button Content="{Binding ExportText}" Margin="3" Padding="10,5"
|
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
FontFamily="Consolas, monospace" FontSize="10"
|
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource InfoBrush}" BorderBrush="{DynamicResource InfoBrush}"/>
|
|
Background="{DynamicResource BorderBrush}" Foreground="{DynamicResource InfoBrush}" BorderBrush="{DynamicResource InfoBrush}"/>
|
|
|
</WrapPanel>
|
|
</WrapPanel>
|