瀏覽代碼

暂存

reconfiguration
lyw 2 月之前
父節點
當前提交
179ad346c8
共有 2 個檔案被更改,包括 775 行新增27 行删除
  1. +1
    -1
      BPASmartClient.Academy/App.xaml.cs
  2. +774
    -26
      BPASmartClient.Academy/View/ReactionKettle50LView.xaml

+ 1
- 1
BPASmartClient.Academy/App.xaml.cs 查看文件

@@ -282,7 +282,7 @@ namespace BPASmartClient.Academy
break;
case ProjectType.HKYF20240916:
SqliteOperate.GetInstance.Init();
PlcControl.GetInstance.Init();
//PlcControl.GetInstance.Init();
break;
default:
break;


+ 774
- 26
BPASmartClient.Academy/View/ReactionKettle50LView.xaml 查看文件

@@ -12,33 +12,235 @@
d:DesignWidth="1440"
mc:Ignorable="d">
<UserControl.Resources>
<Style x:Key="move" TargetType="{x:Type RadioButton}">
<Style x:Key="move" TargetType="{x:Type CheckBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Grid Height="20" Width="45">
<Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="0" Fill="Red">
<Path.Data>
<GeometryGroup>
<PathGeometry>
<PathFigureCollection>
<PathFigure StartPoint="10,6">
<BezierSegment Point1="10,6" Point2="20,15" Point3="30,6"/>
<LineSegment Point="26,5.5"/>
<LineSegment Point="36,0"/>
<LineSegment Point="42,7.6"/>
<LineSegment Point="38.2,7.1"/>
<BezierSegment Point1="38.2,7.1" Point2="27,20" Point3="10,6"/>
</PathFigure>
</PathFigureCollection>
</PathGeometry>
</GeometryGroup>
</Path.Data>
</Path>
<ControlTemplate TargetType="{x:Type CheckBox}">
<Grid
x:Name="pathgrid"
Width="100"
Height="50">
<Viewbox Stretch="Uniform">
<Grid Width="45" Height="20">
<Path
x:Name="path"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Fill="Red"
StrokeThickness="0">
<Path.Data>
<GeometryGroup>
<PathGeometry>
<PathFigureCollection>
<PathFigure StartPoint="0,6">
<BezierSegment
Point1="0,6"
Point2="10,15"
Point3="20,6" />
<LineSegment Point="16,5.5" />
<LineSegment Point="26,0" />
<LineSegment Point="32,7.6" />
<LineSegment Point="28.2,7.1" />
<BezierSegment
Point1="28.2,7.1"
Point2="17,20"
Point3="0,6" />
</PathFigure>
</PathFigureCollection>
</PathGeometry>
</GeometryGroup>
</Path.Data>
</Path>
</Grid>
</Viewbox>
</Grid>

<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Trigger.EnterActions>
<BeginStoryboard x:Name="On">
<Storyboard
AutoReverse="True"
RepeatBehavior="Forever"
Duration="0:0:1">
<DoubleAnimation
AutoReverse="True"
RepeatBehavior="1"
Storyboard.TargetName="pathgrid"
Storyboard.TargetProperty="Height"
From="50"
To="48" />
<DoubleAnimation
AutoReverse="True"
RepeatBehavior="1"
Storyboard.TargetName="pathgrid"
Storyboard.TargetProperty="Width"
From="100"
To="95" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Setter TargetName="path" Property="Fill" Value="Red" />
</Trigger>
<Trigger Property="IsChecked" Value="False">
<Setter TargetName="path" Property="Fill" Value="blue" />
<Trigger.EnterActions>
<RemoveStoryboard BeginStoryboardName="On" />
</Trigger.EnterActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="wind" TargetType="{x:Type CheckBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<Grid
x:Name="pathgrid"
Width="100"
Height="100">
<Viewbox Stretch="Uniform">
<Grid Width="40" Height="40">
<!--#region 扇叶-->
<Grid Width="40" Height="40">
<Grid.RenderTransform>
<RotateTransform x:Name="rotateTransform" Angle="60" CenterX="20" CenterY="20" />
</Grid.RenderTransform>
<Ellipse
Width="6"
Height="6"
StrokeThickness="0">
<Ellipse.Fill>
<RadialGradientBrush GradientOrigin="0.5,0.5">
<GradientStop Offset="0" Color="White" />
<GradientStop Offset="0.9" Color="#606060" />
</RadialGradientBrush>
</Ellipse.Fill>
</Ellipse>
<Path
Fill="White"
Stroke="White"
StrokeThickness="0">
<Path.Data>
<PathGeometry>
<PathFigureCollection>
<PathFigure StartPoint="17,20">
<LineSegment Point="10,20" />
<BezierSegment
Point1="10,20"
Point2="8,8"
Point3="20,10" />
<LineSegment Point="20,17" />
<BezierSegment
Point1="20,17"
Point2="17,17"
Point3="17,20" />
</PathFigure>
<PathFigure StartPoint="20,23">
<LineSegment Point="20,30" />
<BezierSegment
Point1="20,30"
Point2="32,32"
Point3="30,20" />
<LineSegment Point="23,20" />
<BezierSegment
Point1="23,20"
Point2="23,23"
Point3="20,23" />
</PathFigure>
</PathFigureCollection>
</PathGeometry>
</Path.Data>
</Path>
</Grid>
<!--#endregion-->
<!--#region 外壳及管道-->
<Ellipse
x:Name="waike"
Width="24"
Height="24"
Opacity="0.8"
Stroke="#606060"
StrokeThickness="0">
<Ellipse.Fill>
<RadialGradientBrush GradientOrigin="0.5,0.5">
<GradientStop Offset="0" Color="White" />
<GradientStop Offset="0.9" Color="#606060" />
</RadialGradientBrush>
</Ellipse.Fill>
</Ellipse>
<Path
x:Name="guandao"
Stroke="White"
StrokeThickness="0">
<Path.Data>
<PathGeometry>
<PathFigureCollection>
<PathFigure StartPoint="20,8">
<LineSegment Point="30,8" />
<LineSegment Point="30,10" />
<LineSegment Point="26.7,10" />
<BezierSegment
Point1="26.7,10"
Point2="24,8"
Point3="20,8" />
</PathFigure>
</PathFigureCollection>
</PathGeometry>
</Path.Data>
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="#606060" />
<GradientStop Offset="0.5" Color="Snow" />
<GradientStop Offset="1" Color="#606060" />
</LinearGradientBrush>
</Path.Fill>
</Path>
<!--#endregion-->

</Grid>
</Viewbox>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Trigger.EnterActions>
<BeginStoryboard x:Name="On">
<Storyboard AutoReverse="False" RepeatBehavior="Forever">
<DoubleAnimation
AutoReverse="False"
RepeatBehavior="Forever"
Storyboard.TargetName="rotateTransform"
Storyboard.TargetProperty="Angle"
From="0"
To="360"
Duration="0:0:0.6" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Setter TargetName="waike" Property="Fill">
<Setter.Value>
<RadialGradientBrush GradientOrigin="0.5,0.5">
<GradientStop Offset="0" Color="White" />
<GradientStop Offset="0.9" Color="Red" />
</RadialGradientBrush>
</Setter.Value>
</Setter>
<Setter TargetName="guandao" Property="Fill">
<Setter.Value>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="#606060" />
<GradientStop Offset="0.5" Color="Red" />
<GradientStop Offset="1" Color="#606060" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsChecked" Value="False">
<Trigger.EnterActions>
<RemoveStoryboard BeginStoryboardName="On" />
</Trigger.EnterActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
@@ -49,10 +251,556 @@
<Grid>
<Grid Margin="150,100">
<Viewbox Stretch="Uniform">
<Canvas Height="450" Width="800">
<Image Height="200" Width="200" Source="../50L/Page/罐.png"/>
<Image Canvas.Right="20" Canvas.Top="100" Height="200" Width="200" Source="../50L/Page/50L反应釜.png"/>
<RadioButton Background="Red" Style="{StaticResource move}" Canvas.Right="110" Canvas.Top="175"/>
<Canvas Width="800" Height="450">
<Image
Canvas.Left="390"
Canvas.Top="30"
Width="300"
Height="300"
Source="../50L/Page/罐.png">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="-1.0" />
</TransformGroup>
</Image.RenderTransform>
</Image>
<Image
Canvas.Top="100"
Canvas.Right="0"
Width="300"
Height="300"
Source="../50L/Page/50L反应釜.png" />
<CheckBox
Canvas.Top="200"
Canvas.Right="100"
Background="Red"
Style="{StaticResource move}" />
<!--#region 标记信息-->
<TextBlock
Canvas.Left="264"
Canvas.Top="270"
FontSize="10"
Foreground="White"
Text="称重水罐" />
<TextBlock
Canvas.Left="308"
Canvas.Top="100"
FontSize="10"
Foreground="White"
Text="冷&#10;凝&#10;水&#10;罐" />
<!--#endregion-->

<!--#region 冷却水出水阀-->
<bpa:PipeLineV
Canvas.Top="233"
Canvas.Right="260"
Width="5"
Height="30.1"
LineWidth="1" />
<!--#endregion-->

<!--#region 冷凝水罐进气阀-->
<bpa:PipeLineV
Canvas.Top="44.2"
Canvas.Right="404.2"
Width="5"
Height="158"
Direction="2"
LineWidth="1" />
<bpa:PipeLineBL
Canvas.Top="34.9"
Canvas.Right="404.2"
Width="10"
Height="10"
Direction="2"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="34.91"
Canvas.Right="413.9"
Width="66.5"
Height="5"
Direction="2"
LineWidth="1" />
<bpa:PipeLineBR
Canvas.Top="34.9"
Canvas.Right="480.2"
Width="10"
Height="10"
Direction="2"
LineWidth="10"
Speed="1.5" />
<bpa:HandValve
Canvas.Top="100.2"
Canvas.Right="380.8"
Width="16"
Height="16">
<bpa:HandValve.RenderTransform>
<RotateTransform Angle="90" />
</bpa:HandValve.RenderTransform>
</bpa:HandValve>
<TextBlock
Canvas.Top="80.2"
Canvas.Right="384.8"
Height="80"
FontSize="7"
Foreground="White"
Text="冷&#10;凝&#10;水&#10;罐&#10;进&#10;气&#10;阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 热气排空阀-->
<bpa:PipeLineBR
Canvas.Top="191.2"
Canvas.Right="399.2"
Width="10"
Height="10"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="191.21"
Canvas.Right="339.4"
Width="60"
Height="5"
LineWidth="1"
Speed="1.5" />
<bpa:HandValve
Canvas.Top="183.5"
Canvas.Right="343.4"
Width="16"
Height="16" />
<TextBlock
Canvas.Top="173.5"
Canvas.Right="312.8"
Width="80"
FontSize="7"
Foreground="White"
Text="热气排空阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 排热空气阀-->
<bpa:PipeLineTL
Canvas.Top="262"
Canvas.Right="260"
Width="10"
Height="10"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="267"
Canvas.Right="269.7"
Width="130"
Height="5"
Direction="2"
LineWidth="1" />
<bpa:PipeLineTR
Canvas.Top="262"
Canvas.Right="399.2"
Width="10"
Height="10"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineV
Canvas.Top="202.2"
Canvas.Right="404.2"
Width="5"
Height="60"
Direction="2"
LineWidth="1" />
<bpa:HandValve
Canvas.Top="200.2"
Canvas.Right="380.8"
Width="16"
Height="16">
<bpa:HandValve.RenderTransform>
<RotateTransform Angle="90" />
</bpa:HandValve.RenderTransform>
</bpa:HandValve>
<TextBlock
Canvas.Top="200.2"
Canvas.Right="384.8"
Height="80"
FontSize="7"
Foreground="White"
Text="排&#10;热&#10;空&#10;气&#10;阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 反应釜排水阀-->
<bpa:PipeLineV
Canvas.Top="263"
Canvas.Right="260"
Width="5"
Height="47"
LineWidth="1" />
<bpa:PipeLineTL
Canvas.Top="309"
Canvas.Right="255"
Width="20"
Height="10"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="314"
Canvas.Right="269"
Width="100"
Height="5"
Direction="2"
LineWidth="1" />
<bpa:HandValve
Canvas.Top="306.5"
Canvas.Right="339"
Width="16"
Height="16" />
<TextBlock
Canvas.Left="412"
Canvas.Top="299"
Width="80"
FontSize="7"
Foreground="White"
Text="反应釜排水阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 冷却水、疏水-->
<bpa:PipeLineV
Canvas.Top="233"
Canvas.Right="250.9"
Width="5"
Height="100"
LineWidth="1" />
<bpa:PipeLineTL
Canvas.Top="332.8"
Canvas.Right="245.9"
Width="20"
Height="10"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="337.8"
Canvas.Right="260.6"
Width="130"
Height="5"
Direction="2"
LineWidth="1" />
<bpa:HandValve
Canvas.Top="330.4"
Canvas.Right="360"
Width="16"
Height="16" />
<TextBlock
Canvas.Left="390.2"
Canvas.Top="324"
Width="80"
FontSize="7"
Foreground="White"
Text="冷却水、疏水"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 进清水阀、进卤水阀、压缩空气进气阀进连接处-->
<bpa:PipeLineV
Canvas.Top="233"
Canvas.Right="243.3"
Width="5"
Height="123"
Direction="2"
LineWidth="1" />
<bpa:PipeLineTL
Canvas.Top="355.8"
Canvas.Right="238.3"
Width="20"
Height="10"
Direction="2"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="360.8"
Canvas.Right="253.1"
Width="20"
Height="5"
LineWidth="1" />
<!--#endregion-->

<!--#region 进清水阀-->
<bpa:PipeLineH
Canvas.Top="360.8"
Canvas.Right="272.9"
Width="140"
Height="5"
Direction="1"
LineWidth="1" />
<bpa:HandValve
Canvas.Top="353.4"
Canvas.Right="384"
Width="16"
Height="16" />
<TextBlock
Canvas.Left="367"
Canvas.Top="346"
Width="80"
FontSize="7"
Foreground="White"
Text="进清水阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 进卤水阀、压缩空气进气阀连接处-->
<bpa:PipeLineBR
Canvas.Top="360.8"
Canvas.Right="272.3"
Width="10"
Height="10"
Direction="1"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineV
Canvas.Top="370.5"
Canvas.Right="277.3"
Width="5"
Height="15"
Direction="2"
LineWidth="1"
Speed="1.5" />
<!--#endregion-->

<!--#region 进卤水阀-->
<bpa:PipeLineV
Canvas.Top="385.5"
Canvas.Right="277.3"
Width="5"
Height="30"
Direction="2"
LineWidth="1"
Speed="1.5" />
<bpa:HandValve
Canvas.Top="395.6"
Canvas.Right="253.9"
Width="16"
Height="16">
<bpa:HandValve.RenderTransform>
<RotateTransform Angle="90" />
</bpa:HandValve.RenderTransform>
</bpa:HandValve>
<TextBlock
Canvas.Top="398"
Canvas.Right="240"
FontSize="7"
Foreground="White"
Text="进卤水阀" />
<bpa:PipeLineTR
Canvas.Top="415.4"
Canvas.Right="272.3"
Width="10"
Height="10"
Direction="1"
LineWidth="10"
Speed="1.5" />
<bpa:MotorTwo
Canvas.Top="418.4"
Canvas.Right="197.5"
Width="25"
Height="12">
<bpa:MotorTwo.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="-1.0" />
</TransformGroup>
</bpa:MotorTwo.RenderTransform>
</bpa:MotorTwo>
<bpa:Joint
Canvas.Top="416.7"
Canvas.Right="219.2"
Width="20"
Height=" 20">
<bpa:Joint.RenderTransform>
<TransformGroup>
<RotateTransform Angle="180" />
<ScaleTransform ScaleY="-1.0" />
</TransformGroup>
</bpa:Joint.RenderTransform>
</bpa:Joint>
<bpa:PipeLineH
Canvas.Top="420.4"
Canvas.Right="257.5"
Width="15"
Height="5"
Direction="2"
LineWidth="1"
Speed="1.5" />
<bpa:Tanks
Canvas.Top="431.4"
Canvas.Right="239.5"
Width="20"
Height="25" />
<TextBlock
Canvas.Top="410"
Canvas.Right="206.5"
Foreground="White"
Text="离&#10;心&#10;泵" />
<!--#endregion-->

<!--#region 压缩空气进气阀-->
<bpa:PipeLineTL
Canvas.Top="385.2"
Canvas.Right="277.3"
Width="10"
Height="10"
Direction="2"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="390.2"
Canvas.Right="286.9"
Width="142"
Height="5"
Direction="1"
LineWidth="1" />
<bpa:HandValve
Canvas.Top="382.6"
Canvas.Right="400"
Width="16"
Height="16" />
<TextBlock
Canvas.Left="350.8"
Canvas.Top="375"
Width="80"
FontSize="7"
Foreground="White"
Text="压缩空气进气阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 蒸汽进、冷却水进连接-->
<bpa:PipeLineV
Canvas.Top="112.4"
Canvas.Right="250.9"
Width="5"
Height="100"
LineWidth="1" />
<!--#endregion-->

<!--#region 冷却水进水阀-->
<bpa:PipeLineV
Canvas.Top="32.4"
Canvas.Right="250.9"
Width="5"
Height="80"
LineWidth="1" />
<bpa:PipeLineBL
Canvas.Top="22.8"
Canvas.Right="250.9"
Width="10"
Height="10"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="22.8"
Canvas.Right="260.7"
Width="340"
Height="5"
Direction="1"
LineWidth="1" />
<bpa:PipeLineBR
Canvas.Left="189.5"
Canvas.Top="22.8"
Width="10"
Height="10"
LineWidth="10"
Speed="1" />
<bpa:PipeLineV
Canvas.Left="189.5"
Canvas.Top="32.5"
Width="5"
Height="158"
Direction="2"
LineWidth="1" />

<bpa:PipeLineH
Canvas.Left="199.1"
Canvas.Top="195.3"
Width="40.3"
Height="5"
Direction="2"
LineWidth="1" />
<bpa:PipeLineTR
Canvas.Left="189.5"
Canvas.Top="190.3"
Width="10"
Height="10"
LineWidth="10"
Speed="1" />
<bpa:HandValve
Canvas.Left="360"
Canvas.Top="15.1"
Width="16"
Height="16" />
<TextBlock
Canvas.Left="326.5"
Canvas.Top="6.1"
Width="80"
FontSize="7"
Foreground="White"
Text="冷却水进水阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 蒸汽阀-->
<bpa:PipeLineBR
Canvas.Top="103"
Canvas.Right="245.9"
Width="10"
Height="10"
Direction="2"
LineWidth="10"
Speed="1.5" />
<bpa:PipeLineH
Canvas.Top="103"
Canvas.Right="186.1"
Width="60"
Height="5"
Direction="2"
LineWidth="1" />
<bpa:HandValve
Canvas.Top="95.3"
Canvas.Right="205"
Width="16"
Height="16" />
<TextBlock
Canvas.Top="85"
Canvas.Right="174"
Width="80"
FontSize="7"
Foreground="White"
Text="蒸汽阀"
TextAlignment="Center" />
<!--#endregion-->

<!--#region 风机-->
<bpa:PipeLineBL
Canvas.Left="248.7"
Canvas.Top="42.7"
Width="10"
Height="10"
LineWidth="10"
Speed="1" />
<bpa:PipeLineH
Canvas.Left="148.9"
Canvas.Top="42.72"
Width="100"
Height="5"
Direction="2"
LineWidth="1" />
<CheckBox
Canvas.Left="74.1"
Canvas.Top="22.7"
Style="{StaticResource wind}" />
<TextBlock
Canvas.Left="115"
Canvas.Top="108"
Foreground="White"
Text="风机" />
<!--#endregion-->
</Canvas>
</Viewbox>
</Grid>


Loading…
取消
儲存