|
@@ -9,167 +9,239 @@
|
|
|
<vm:ViewAViewModel/>
|
|
<vm:ViewAViewModel/>
|
|
|
</UserControl.DataContext>
|
|
</UserControl.DataContext>
|
|
|
|
|
|
|
|
- <!-- 浣跨敤鍥哄畾灏哄璁捐锛岀敱澶栧眰瀹瑰櫒璐熻矗缂╂斁 -->
|
|
|
|
|
- <Border Background="#1a1a2e" Width="1024" Height="613">
|
|
|
|
|
- <Canvas Width="1024" Height="613">
|
|
|
|
|
-
|
|
|
|
|
- <!-- 妯″紡鍒囨崲寮鍏 -->
|
|
|
|
|
- <controls:ValveControl Canvas.Left="893" Canvas.Top="9" Width="129" Height="108"
|
|
|
|
|
- Status="{Binding ModeStatus}" Text="杩滅▼/鏈湴"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 鍏ュ彛姘寸 -->
|
|
|
|
|
- <controls:WaterTankControl Canvas.Left="44" Canvas.Top="113" Width="134" Height="100"
|
|
|
|
|
- WaterLevel="{Binding Tank1Level}" Text="鍏ュ彛姹"
|
|
|
|
|
- WaterColor="#178187" BorderColor="#cfcfcf"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 姹1 -->
|
|
|
|
|
- <Border BorderBrush="#cfcfcf" BorderThickness="8" Height="135" Canvas.Left="248" Canvas.Top="113" Width="138"/>
|
|
|
|
|
- <controls:WaterTankControl Canvas.Left="250" Canvas.Top="121" Width="134" Height="127"
|
|
|
|
|
- WaterLevel="{Binding Tank1Level}" Text=""
|
|
|
|
|
- WaterColor="#178187" BorderColor="#cfcfcf"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 姹2 -->
|
|
|
|
|
- <controls:WaterTankControl Canvas.Left="250" Canvas.Top="248" Width="134" Height="87"
|
|
|
|
|
- WaterLevel="{Binding Tank2Level}" Text=""
|
|
|
|
|
- WaterColor="#178187" BorderColor="#cfcfcf"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 澶ф按姹 -->
|
|
|
|
|
- <controls:WaterTankControl Canvas.Left="250" Canvas.Top="335" Width="748" Height="183"
|
|
|
|
|
- WaterLevel="{Binding Tank3Level}" Text=""
|
|
|
|
|
- WaterColor="#178187" BorderColor="#cfcfcf"/>
|
|
|
|
|
- <Border BorderBrush="#cfcfcf" BorderThickness="8" Height="191" Canvas.Left="248" Canvas.Top="327" Width="138"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 鍑哄彛姹 -->
|
|
|
|
|
- <controls:WaterTankControl Canvas.Left="44" Canvas.Top="267" Width="134" Height="100"
|
|
|
|
|
- WaterLevel="{Binding Tank4Level}" Text="鍑哄彛姹"
|
|
|
|
|
- WaterColor="#178187" BorderColor="#cfcfcf"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 绠¢亾杩炴帴绾 -->
|
|
|
|
|
- <Rectangle Fill="#178187" Height="12" Canvas.Left="358" Stroke="Transparent" Canvas.Top="480" Width="48"
|
|
|
|
|
- RenderTransformOrigin="0.5,0.5">
|
|
|
|
|
- <Rectangle.RenderTransform>
|
|
|
|
|
- <RotateTransform Angle="-90"/>
|
|
|
|
|
- </Rectangle.RenderTransform>
|
|
|
|
|
- </Rectangle>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 娑蹭綅鏄剧ず -->
|
|
|
|
|
- <TextBlock Canvas.Left="676" Canvas.Top="414" Width="70" Foreground="White" FontSize="12">
|
|
|
|
|
- <Run Text="娑蹭綅3:"/><Run Text="{Binding Tank3Level, StringFormat='{}{0:F1}'}"/><Run Text="绫"/>
|
|
|
|
|
- </TextBlock>
|
|
|
|
|
- <TextBlock Canvas.Left="288" Canvas.Top="147" Width="70" Foreground="White" FontSize="12">
|
|
|
|
|
- <Run Text="姹1"/><LineBreak/><Run Text="娑蹭綅1:"/><Run Text="{Binding Tank1Level, StringFormat='{}{0:F1}'}"/><Run Text="绫"/>
|
|
|
|
|
- </TextBlock>
|
|
|
|
|
- <TextBlock Canvas.Left="286" Canvas.Top="415" Width="78" Foreground="White" FontSize="12">
|
|
|
|
|
- <Run Text="姹2"/><LineBreak/><Run Text="娑蹭綅2:"/><Run Text="{Binding Tank2Level, StringFormat='{}{0:F1}'}"/><Run Text="绫"/>
|
|
|
|
|
- </TextBlock>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 闃闂ㄦ帶浠 -->
|
|
|
|
|
- <controls:ValveControl Canvas.Left="147" Canvas.Top="168" Width="22" Height="22"
|
|
|
|
|
- Status="{Binding Valve1Status}" Text=""/>
|
|
|
|
|
- <controls:ValveControl Canvas.Left="279" Canvas.Top="205" Width="22" Height="22"
|
|
|
|
|
- Status="{Binding Valve2Status}" Text=""/>
|
|
|
|
|
- <controls:ValveControl Canvas.Left="336" Canvas.Top="206" Width="22" Height="22"
|
|
|
|
|
- Status="{Binding Valve3Status}" Text=""/>
|
|
|
|
|
- <controls:ValveControl Canvas.Left="278" Canvas.Top="298" Width="22" Height="22"
|
|
|
|
|
- Status="{Binding Valve4Status}" Text=""/>
|
|
|
|
|
- <controls:ValveControl Canvas.Left="337" Canvas.Top="298" Width="22" Height="22"
|
|
|
|
|
- Status="{Binding Valve5Status}" Text=""/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 绠¢亾 -->
|
|
|
|
|
- <controls:PipeLineControl Canvas.Left="0" Canvas.Top="306" Width="52" Height="29"
|
|
|
|
|
- IsFlow="{Binding IsInflowRunning}" IsHorizontal="True"/>
|
|
|
|
|
- <controls:PipeLineControl Canvas.Left="0" Canvas.Top="164" Width="52" Height="29"
|
|
|
|
|
- IsFlow="{Binding IsOutflowRunning}" IsHorizontal="True"
|
|
|
|
|
- RenderTransformOrigin="0.5,0.5">
|
|
|
|
|
- <controls:PipeLineControl.RenderTransform>
|
|
|
|
|
- <RotateTransform Angle="180"/>
|
|
|
|
|
- </controls:PipeLineControl.RenderTransform>
|
|
|
|
|
- </controls:PipeLineControl>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 娉1-5 -->
|
|
|
|
|
- <controls:PumpControl Canvas.Left="394" Canvas.Top="427" Width="60" Height="63"
|
|
|
|
|
- IsRunning="{Binding Pump1Running}" Speed="2" Text="娉1"/>
|
|
|
|
|
- <controls:PumpControl Canvas.Left="504" Canvas.Top="426" Width="60" Height="63"
|
|
|
|
|
- IsRunning="{Binding Pump2Running}" Speed="2" Text="娉2"/>
|
|
|
|
|
- <controls:PumpControl Canvas.Left="617" Canvas.Top="426" Width="60" Height="63"
|
|
|
|
|
- IsRunning="{Binding Pump3Running}" Speed="2" Text="娉3"/>
|
|
|
|
|
- <controls:PumpControl Canvas.Left="730" Canvas.Top="427" Width="60" Height="63"
|
|
|
|
|
- IsRunning="{Binding Pump4Running}" Speed="2" Text="娉4"/>
|
|
|
|
|
- <controls:PumpControl Canvas.Left="843" Canvas.Top="426" Width="60" Height="63"
|
|
|
|
|
- IsRunning="{Binding Pump5Running}" Speed="2" Text="娉5"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 椋庢墖 -->
|
|
|
|
|
- <controls:FanControl Canvas.Left="412" Canvas.Top="441" Width="34" Height="32"
|
|
|
|
|
- IsRunning="{Binding Fan1Running}" Speed="1" Text="椋庢墖1"/>
|
|
|
|
|
- <controls:FanControl Canvas.Left="522" Canvas.Top="441" Width="34" Height="32"
|
|
|
|
|
- IsRunning="{Binding Fan2Running}" Speed="1" Text="椋庢墖2"/>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 娴侀噺鏄剧ず -->
|
|
|
|
|
- <Border Background="#2d2d44" CornerRadius="5" Canvas.Left="10" Canvas.Top="550" Padding="10">
|
|
|
|
|
- <StackPanel Spacing="10">
|
|
|
|
|
- <TextBlock Foreground="#4CAF50" FontWeight="Bold" FontSize="14">
|
|
|
|
|
- <Run Text="杩涙按娴侀噺: "/>
|
|
|
|
|
- <Run Text="{Binding InflowRate, StringFormat='{}{0:F1}'}"/>
|
|
|
|
|
- <Run Text=" m鲁/h"/>
|
|
|
|
|
- </TextBlock>
|
|
|
|
|
- <TextBlock Foreground="#2196F3" FontWeight="Bold" FontSize="14">
|
|
|
|
|
- <Run Text="鍑烘按娴侀噺: "/>
|
|
|
|
|
- <Run Text="{Binding OutflowRate, StringFormat='{}{0:F1}'}"/>
|
|
|
|
|
- <Run Text=" m鲁/h"/>
|
|
|
|
|
- </TextBlock>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- </Border>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 鎶ヨ淇℃伅 -->
|
|
|
|
|
- <Border Background="#F44336" CornerRadius="5" Canvas.Left="259" Canvas.Top="544" Width="685" Height="43"
|
|
|
|
|
- IsVisible="{Binding HasAlarm}">
|
|
|
|
|
- <TextBlock Text="{Binding AlarmMessage}" FontSize="20" Foreground="White"
|
|
|
|
|
- HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
- </Border>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
|
|
|
|
|
- <StackPanel Canvas.Left="10" Canvas.Top="10" Spacing="5">
|
|
|
|
|
- <Button Content="杩炴帴PLC" Command="{Binding ConnectPlcCommand}" Width="80" Height="30"/>
|
|
|
|
|
- <Button Content="鏂紑PLC" Command="{Binding DisconnectPlcCommand}" Width="80" Height="30"/>
|
|
|
|
|
- <Button Content="鍒锋柊鏁版嵁" Command="{Binding RefreshDataCommand}" Width="80" Height="30"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 璁惧鐘舵侀潰鏉 -->
|
|
|
|
|
- <Border Background="#2d2d44" CornerRadius="5" Canvas.Left="850" Canvas.Top="130" Width="160" Height="300" Padding="10">
|
|
|
|
|
- <StackPanel Spacing="5">
|
|
|
|
|
- <TextBlock Text="璁惧鐘舵" FontWeight="Bold" Foreground="White" FontSize="14"/>
|
|
|
|
|
- <Separator Background="#444"/>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Pump1StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="娉1" Foreground="White"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Pump2StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="娉2" Foreground="White"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Pump3StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="娉3" Foreground="White"/>
|
|
|
|
|
|
|
+ <Border Background="#0D1117" Width="1280" Height="800">
|
|
|
|
|
+ <Grid RowDefinitions="Auto,*,Auto" Margin="15">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 椤堕儴宸ュ叿鏍 -->
|
|
|
|
|
+ <Border Grid.Row="0" Background="#161B22" CornerRadius="8" Padding="12" Margin="0,0,0,10">
|
|
|
|
|
+ <Grid ColumnDefinitions="Auto,*,Auto,Auto">
|
|
|
|
|
+ <!-- 宸︿晶鏍囬 -->
|
|
|
|
|
+ <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="10">
|
|
|
|
|
+ <TextBlock Text="馃彮" FontSize="20" VerticalAlignment="Center"/>
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock Text="姹℃按澶勭悊鐩戞帶绯荤粺" FontWeight="Bold" FontSize="16" Foreground="White"/>
|
|
|
|
|
+ <TextBlock Text="瀹炴椂宸ヨ壓娴佺▼" FontSize="11" Foreground="#8B949E"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Pump4StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="娉4" Foreground="White"/>
|
|
|
|
|
- </StackPanel>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Pump5StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="娉5" Foreground="White"/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 涓棿杩炴帴鐘舵 -->
|
|
|
|
|
+ <StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="15" Margin="20,0">
|
|
|
|
|
+ <Border Background="#238636" CornerRadius="12" Padding="10,5">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
+ <Ellipse Width="8" Height="8" Fill="White"/>
|
|
|
|
|
+ <TextBlock Text="PLC 宸茶繛鎺" Foreground="White" FontSize="11"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ <Button Content="杩炴帴" Command="{Binding ConnectPlcCommand}" Padding="12,4"/>
|
|
|
|
|
+ <Button Content="鏂紑" Command="{Binding DisconnectPlcCommand}" Padding="12,4"/>
|
|
|
|
|
+ <Button Content="鍒锋柊" Command="{Binding RefreshDataCommand}" Padding="12,4"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <Separator Background="#444"/>
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Fan1StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="椋庢墖1" Foreground="White"/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鍙充晶鏃堕棿 -->
|
|
|
|
|
+ <StackPanel Grid.Column="3" VerticalAlignment="Center">
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, StringFormat='{}{0:HH:mm:ss}'}"
|
|
|
|
|
+ FontSize="18" FontWeight="Bold" Foreground="#58A6FF"/>
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, StringFormat='{}{0:yyyy-MM-dd}'}"
|
|
|
|
|
+ FontSize="11" Foreground="#8B949E" HorizontalAlignment="Right"/>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="5">
|
|
|
|
|
- <Ellipse Width="10" Height="10" Fill="{Binding Fan2StatusColor}"/>
|
|
|
|
|
- <TextBlock Text="椋庢墖2" Foreground="White"/>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 涓棿涓诲唴瀹瑰尯 -->
|
|
|
|
|
+ <Grid Grid.Row="1" ColumnDefinitions="*,280">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 宸︿晶宸ヨ壓娴佺▼鍥 -->
|
|
|
|
|
+ <Border Grid.Column="0" Background="#161B22" CornerRadius="8" Padding="10" Margin="0,0,10,0">
|
|
|
|
|
+ <Canvas Width="900" Height="550">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 姘寸缁 -->
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Canvas.Left="20" Canvas.Top="20" Spacing="30">
|
|
|
|
|
+ <!-- 鍏ュ彛姹 -->
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <controls:WaterTankControl Width="120" Height="160"
|
|
|
|
|
+ WaterLevel="{Binding Tank1Level}" Text="鍏ュ彛姹"
|
|
|
|
|
+ WaterColor="#00BCD4"/>
|
|
|
|
|
+ <TextBlock Text="{Binding Tank1Level, StringFormat='娑蹭綅: {0:F1}%'}"
|
|
|
|
|
+ Foreground="#8B949E" FontSize="11" HorizontalAlignment="Center" Margin="0,5,0,0"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 姹1 -->
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <controls:WaterTankControl Width="120" Height="160"
|
|
|
|
|
+ WaterLevel="{Binding Tank2Level}" Text="鐢熷寲姹"
|
|
|
|
|
+ WaterColor="#26A69A"/>
|
|
|
|
|
+ <TextBlock Text="{Binding Tank2Level, StringFormat='娑蹭綅: {0:F1}%'}"
|
|
|
|
|
+ Foreground="#8B949E" FontSize="11" HorizontalAlignment="Center" Margin="0,5,0,0"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 姹2 -->
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <controls:WaterTankControl Width="120" Height="160"
|
|
|
|
|
+ WaterLevel="{Binding Tank3Level}" Text="娌夋穩姹"
|
|
|
|
|
+ WaterColor="#42A5F5"/>
|
|
|
|
|
+ <TextBlock Text="{Binding Tank3Level, StringFormat='娑蹭綅: {0:F1}%'}"
|
|
|
|
|
+ Foreground="#8B949E" FontSize="11" HorizontalAlignment="Center" Margin="0,5,0,0"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鍑哄彛姹 -->
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <controls:WaterTankControl Width="120" Height="160"
|
|
|
|
|
+ WaterLevel="{Binding Tank4Level}" Text="鍑哄彛姹"
|
|
|
|
|
+ WaterColor="#66BB6A"/>
|
|
|
|
|
+ <TextBlock Text="{Binding Tank4Level, StringFormat='娑蹭綅: {0:F1}%'}"
|
|
|
|
|
+ Foreground="#8B949E" FontSize="11" HorizontalAlignment="Center" Margin="0,5,0,0"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 绠¢亾杩炴帴 -->
|
|
|
|
|
+ <controls:PipeLineControl Canvas.Left="20" Canvas.Top="200" Width="540" Height="25"
|
|
|
|
|
+ IsFlow="{Binding IsInflowRunning}" IsHorizontal="True"/>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 闃闂ㄧ粍 -->
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Canvas.Left="50" Canvas.Top="240" Spacing="80">
|
|
|
|
|
+ <controls:ValveControl Width="40" Height="50" Status="{Binding Valve1Status}" Text="杩涙按"/>
|
|
|
|
|
+ <controls:ValveControl Width="40" Height="50" Status="{Binding Valve2Status}" Text="鏇濇皵"/>
|
|
|
|
|
+ <controls:ValveControl Width="40" Height="50" Status="{Binding Valve3Status}" Text="鍥炴祦"/>
|
|
|
|
|
+ <controls:ValveControl Width="40" Height="50" Status="{Binding Valve4Status}" Text="鍑烘按"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 娉电粍 -->
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Canvas.Left="30" Canvas.Top="310" Spacing="25">
|
|
|
|
|
+ <controls:PumpControl Width="70" Height="80"
|
|
|
|
|
+ IsRunning="{Binding Pump1Running}" Frequency="50" Text="杩涙按娉1"/>
|
|
|
|
|
+ <controls:PumpControl Width="70" Height="80"
|
|
|
|
|
+ IsRunning="{Binding Pump2Running}" Frequency="45" Text="杩涙按娉2"/>
|
|
|
|
|
+ <controls:PumpControl Width="70" Height="80"
|
|
|
|
|
+ IsRunning="{Binding Pump3Running}" Frequency="40" Text="鍥炴祦娉"/>
|
|
|
|
|
+ <controls:PumpControl Width="70" Height="80"
|
|
|
|
|
+ IsRunning="{Binding Pump4Running}" Frequency="35" Text="鎺掓偿娉"/>
|
|
|
|
|
+ <controls:PumpControl Width="70" Height="80"
|
|
|
|
|
+ IsRunning="{Binding Pump5Running}" Frequency="55" Text="鍔犺嵂娉"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 椋庢満缁 -->
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Canvas.Left="120" Canvas.Top="410" Spacing="50">
|
|
|
|
|
+ <controls:FanControl Width="50" Height="50" IsRunning="{Binding Fan1Running}" Speed="1" Text="椋庢満1"/>
|
|
|
|
|
+ <controls:FanControl Width="50" Height="50" IsRunning="{Binding Fan2Running}" Speed="1.5" Text="椋庢満2"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 妯″紡鍒囨崲 -->
|
|
|
|
|
+ <Border Canvas.Left="750" Canvas.Top="20" Width="120" Height="50"
|
|
|
|
|
+ Background="#21262D" CornerRadius="8">
|
|
|
|
|
+ <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
|
+ <TextBlock Text="杩愯妯″紡" FontSize="10" Foreground="#8B949E" HorizontalAlignment="Center"/>
|
|
|
|
|
+ <controls:ValveControl Width="30" Height="30"
|
|
|
|
|
+ Status="{Binding ModeStatus}" Text=""/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 娴佺▼绠ご -->
|
|
|
|
|
+ <Path Data="M 140 100 L 200 100" Stroke="#58A6FF" StrokeThickness="2">
|
|
|
|
|
+ <Path.Data>
|
|
|
|
|
+ <StreamGeometry>M 140 100 L 200 100</StreamGeometry>
|
|
|
|
|
+ </Path.Data>
|
|
|
|
|
+ </Path>
|
|
|
|
|
+ <Path Data="M 320 100 L 380 100" Stroke="#58A6FF" StrokeThickness="2"/>
|
|
|
|
|
+ <Path Data="M 500 100 L 560 100" Stroke="#58A6FF" StrokeThickness="2"/>
|
|
|
|
|
+ </Canvas>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鍙充晶闈㈡澘 -->
|
|
|
|
|
+ <Grid Grid.Column="1" RowDefinitions="Auto,Auto,Auto,*,Auto">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 娴侀噺浠〃 -->
|
|
|
|
|
+ <Border Grid.Row="0" Background="#161B22" CornerRadius="8" Padding="10" Margin="0,0,0,10">
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock Text="娴侀噺鐩戞祴" FontWeight="Bold" Foreground="White" Margin="0,0,0,10"/>
|
|
|
|
|
+ <Grid ColumnDefinitions="*,*">
|
|
|
|
|
+ <controls:GaugeControl Grid.Column="0" Width="120" Height="140"
|
|
|
|
|
+ Value="{Binding InflowRate}" Title="杩涙按" Unit="m鲁/h"
|
|
|
|
|
+ MaxValue="100"/>
|
|
|
|
|
+ <controls:GaugeControl Grid.Column="1" Width="120" Height="140"
|
|
|
|
|
+ Value="{Binding OutflowRate}" Title="鍑烘按" Unit="m鲁/h"
|
|
|
|
|
+ MaxValue="100"
|
|
|
|
|
+ ValueColor="#66BB6A"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 璁惧鐘舵 -->
|
|
|
|
|
+ <Border Grid.Row="1" Background="#161B22" CornerRadius="8" Padding="10" Margin="0,0,0,10">
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock Text="璁惧鐘舵" FontWeight="Bold" Foreground="White" Margin="0,0,0,10"/>
|
|
|
|
|
+ <StackPanel Spacing="5">
|
|
|
|
|
+ <controls:StatusCard Title="杩涙按娉1" Status="{Binding Pump1Status}" Icon="馃攧"
|
|
|
|
|
+ IsActive="{Binding Pump1Running}"/>
|
|
|
|
|
+ <controls:StatusCard Title="杩涙按娉2" Status="{Binding Pump2Status}" Icon="馃攧"
|
|
|
|
|
+ IsActive="{Binding Pump2Running}"/>
|
|
|
|
|
+ <controls:StatusCard Title="鍥炴祦娉" Status="{Binding Pump3Status}" Icon="馃攧"
|
|
|
|
|
+ IsActive="{Binding Pump3Running}"/>
|
|
|
|
|
+ <controls:StatusCard Title="椋庢満1" Status="{Binding Fan1Status}" Icon="馃寑"
|
|
|
|
|
+ IsActive="{Binding Fan1Running}"/>
|
|
|
|
|
+ <controls:StatusCard Title="椋庢満2" Status="{Binding Fan2Status}" Icon="馃寑"
|
|
|
|
|
+ IsActive="{Binding Fan2Running}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 鎶ヨ淇℃伅 -->
|
|
|
|
|
+ <Border Grid.Row="2" Background="#161B22" CornerRadius="8" Padding="10" Margin="0,0,0,10"
|
|
|
|
|
+ IsVisible="{Binding HasAlarm}">
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock Text="鈿狅笍 鎶ヨ淇℃伅" FontWeight="Bold" Foreground="#F85149" Margin="0,0,0,10"/>
|
|
|
|
|
+ <Border Background="#F85149" CornerRadius="5" Padding="10">
|
|
|
|
|
+ <TextBlock Text="{Binding AlarmMessage}" Foreground="White" TextWrapping="Wrap"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 蹇嵎鎿嶄綔 -->
|
|
|
|
|
+ <Border Grid.Row="4" Background="#161B22" CornerRadius="8" Padding="10">
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <TextBlock Text="蹇嵎鎿嶄綔" FontWeight="Bold" Foreground="White" Margin="0,0,0,10"/>
|
|
|
|
|
+ <WrapPanel HorizontalAlignment="Center">
|
|
|
|
|
+ <Button Content="鍏ㄩ儴鍚姩" Margin="5" Padding="12,6"/>
|
|
|
|
|
+ <Button Content="鍏ㄩ儴鍋滄" Margin="5" Padding="12,6"/>
|
|
|
|
|
+ <Button Content="鎶ヨ纭" Margin="5" Padding="12,6"/>
|
|
|
|
|
+ <Button Content="鏁版嵁瀵煎嚭" Margin="5" Padding="12,6"/>
|
|
|
|
|
+ </WrapPanel>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 搴曢儴鐘舵佹爮 -->
|
|
|
|
|
+ <Border Grid.Row="2" Background="#161B22" CornerRadius="8" Padding="12" Margin="0,10,0,0">
|
|
|
|
|
+ <Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto">
|
|
|
|
|
+ <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="20">
|
|
|
|
|
+ <TextBlock Foreground="#8B949E" FontSize="11">
|
|
|
|
|
+ <Run Text="杩涙按: "/>
|
|
|
|
|
+ <Run Text="{Binding InflowRate, StringFormat='{}{0:F1} m鲁/h'}" Foreground="#58A6FF"/>
|
|
|
|
|
+ </TextBlock>
|
|
|
|
|
+ <TextBlock Foreground="#8B949E" FontSize="11">
|
|
|
|
|
+ <Run Text="鍑烘按: "/>
|
|
|
|
|
+ <Run Text="{Binding OutflowRate, StringFormat='{}{0:F1} m鲁/h'}" Foreground="#66BB6A"/>
|
|
|
|
|
+ </TextBlock>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <TextBlock Grid.Column="2" Foreground="#8B949E" FontSize="11">
|
|
|
|
|
+ <Run Text="杩愯璁惧: "/>
|
|
|
|
|
+ <Run Text="{Binding RunningDeviceCount}" Foreground="#58A6FF"/>
|
|
|
|
|
+ <Run Text=" 鍙"/>
|
|
|
|
|
+ </TextBlock>
|
|
|
|
|
+
|
|
|
|
|
+ <TextBlock Grid.Column="3" Foreground="#8B949E" FontSize="11" Margin="20,0">
|
|
|
|
|
+ <Run Text="鎶ヨ: "/>
|
|
|
|
|
+ <Run Text="{Binding AlarmCount}" Foreground="#F85149"/>
|
|
|
|
|
+ <Run Text=" 鏉"/>
|
|
|
|
|
+ </TextBlock>
|
|
|
|
|
+
|
|
|
|
|
+ <TextBlock Grid.Column="4" Foreground="#8B949E" FontSize="11">
|
|
|
|
|
+ <Run Text="绯荤粺杩愯: "/>
|
|
|
|
|
+ <Run Text="{Binding RunningTime}" Foreground="#58A6FF"/>
|
|
|
|
|
+ </TextBlock>
|
|
|
|
|
+ </Grid>
|
|
|
</Border>
|
|
</Border>
|
|
|
- </Canvas>
|
|
|
|
|
|
|
+ </Grid>
|
|
|
</Border>
|
|
</Border>
|
|
|
</UserControl>
|
|
</UserControl>
|