|
- <UserControl
- x:Class="BPASmartClient.Academy.View.DeviceMotionView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:bpa="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.Academy.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel"
- d:DataContext="{d:DesignInstance Type=vm:DeviceMotionViewModel}"
- d:DesignHeight="900"
- d:DesignWidth="1440"
- mc:Ignorable="d">
- <UserControl.Resources>
- <Style x:Key="checkBox" TargetType="{x:Type CheckBox}">
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <Border
- x:Name="bord"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentControl
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- Foreground="{TemplateBinding Foreground}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="radiobutton" TargetType="RadioButton">
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="RadioButton">
- <Border
- x:Name="bord"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentControl
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- Foreground="{TemplateBinding Foreground}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bord" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid>
- <Grid
- x:Name="ooo"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- IsHitTestVisible="False"
- Opacity="0.5">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="0" />
- </Grid.RowDefinitions>
- <Grid>
- <Grid Margin="150,100">
- <Viewbox Stretch="Uniform">
- <Canvas Width="800" Height="450">
-
- <!--#region 配料搅拌-->
- <TextBlock
- Canvas.Left="60"
- Canvas.Top="10"
- Foreground="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="配料搅拌" />
- <StackPanel
- Canvas.Left="56"
- Canvas.Top="35"
- Orientation="Horizontal">
- <bpa:MotorTwo
- Width="60"
- Height="30"
- Margin="0,-20,0,0"
- MotorColors="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=3}" />
- <bpa:MotorHousing
- Width="50"
- Height="50"
- Margin="-20,0,0,0" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 阀门1 进料阀-->
- <StackPanel
- Canvas.Left="87"
- Canvas.Top="150"
- Width="70"
- Height="120">
- <bpa:PipeLineV
- Width="15"
- Height="80"
- Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineTR
- Width="30"
- Margin="0,-1,-15,0"
- Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15"
- Speed="10" />
- </StackPanel>
- <TextBlock
- Canvas.Left="70"
- Canvas.Top="130"
- Foreground="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="进料阀" />
- <StackPanel
- Canvas.Left="90"
- Canvas.Top="65"
- Width="65"
- Height="130">
- <bpa:JAR Width="65" Height="65" />
- <bpa:HandValve
- Width="45"
- Height="65"
- Margin="0,-20,-12,0"
- EdgeColor="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX100}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- </StackPanel>
- <bpa:PipeLineH
- Canvas.Left="144"
- Canvas.Top="244"
- Width="65"
- Height="15"
- Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <!--#endregion-->
-
- <!--#region 阀门3 回油阀-->
- <bpa:PipeLineTL
- Canvas.Left="427"
- Canvas.Top="200"
- Width="16"
- Margin="0,0,0,-8"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25"
- Speed="10" />
- <bpa:PipeLineV
- Canvas.Left="435"
- Canvas.Top="177"
- Width="8"
- Height="23"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <TextBlock
- Canvas.Left="495"
- Canvas.Top="140"
- Foreground="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="回油阀" />
- <StackPanel
- Canvas.Left="435"
- Canvas.Top="160"
- Orientation="Horizontal">
- <bpa:PipeLineBR
- Width="16"
- Margin="0,0,0,-8"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25"
- Speed="10" />
- <bpa:PipeLineH
- Width="50"
- Height="8"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Width="25"
- Margin="-1,-7,0,0"
- Panel.ZIndex="1"
- EdgeColor="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX102}" />
- <bpa:PipeLineH
- Width="50"
- Height="8"
- Margin="-6,0,0,0"
- Panel.ZIndex="0"
- Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 阀门4 回水阀-->
- <TextBlock
- Canvas.Left="495"
- Canvas.Top="220"
- Foreground="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="回水阀" />
- <StackPanel
- Canvas.Left="427"
- Canvas.Top="200"
- Orientation="Horizontal">
- <bpa:PipeLineH
- Width="73"
- Height="8"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Width="25"
- Margin="-1,-7,0,0"
- Panel.ZIndex="1"
- EdgeColor="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX103}" />
- <bpa:PipeLineH
- Width="120"
- Height="8"
- Margin="-6,0,0,0"
- Panel.ZIndex="0"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineTL
- Width="16"
- Margin="0,0,0,8"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25"
- Speed="10" />
-
- </StackPanel>
- <bpa:PipeLineV
- Canvas.Left="646"
- Canvas.Top="170"
- Width="8"
- Height="30"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBL
- Canvas.Left="638"
- Canvas.Top="154"
- Width="16"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="25"
- Speed="10" />
- <bpa:PipeLineH
- Canvas.Left="607"
- Canvas.Top="154"
- Width="31"
- Height="8"
- Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <!--#endregion-->
-
- <!--#region 阀门3-4连接-->
- <bpa:PipeLineH
- Canvas.Left="229"
- Canvas.Top="208"
- Width="198"
- Height="8"
- Direction="{Binding PipeLine.PipeH_1.Direction}"
- Fill="{Binding PipeLine.PipeH_1.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <!--#endregion-->
-
- <!--#region 阀门5 汇馏阀-->
- <TextBlock
- Canvas.Left="610"
- Canvas.Top="240"
- Foreground="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="汇馏阀" />
- <bpa:PipeLineV
- Canvas.Left="584"
- Canvas.Top="185"
- Width="8"
- Height="95"
- Direction="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="579"
- Canvas.Top="240"
- Width="25"
- EdgeColor="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX104}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门2 蒸馏阀-->
- <bpa:PipeLineH
- Canvas.Left="258"
- Canvas.Top="244"
- Width="65"
- Height="15"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineTL
- Canvas.Left="321"
- Canvas.Top="229"
- Width="30"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15"
- Speed="10" />
- <bpa:PipeLineV
- Canvas.Left="336"
- Canvas.Top="180"
- Width="15"
- Height="50"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineV
- Canvas.Left="336"
- Canvas.Top="40"
- Width="15"
- Height="110"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBR
- Canvas.Left="336"
- Canvas.Top="10"
- Width="30"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15"
- Speed="10" />
- <bpa:PipeLineH
- Canvas.Left="366"
- Canvas.Top="10"
- Width="200"
- Height="15"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <TextBlock
- Canvas.Left="280"
- Canvas.Top="160"
- Foreground="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸馏阀" />
- <bpa:HandValve
- Canvas.Left="327"
- Canvas.Top="136"
- Width="45"
- Height="65"
- EdgeColor="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <StackPanel Canvas.Left="555" Canvas.Top="10">
- <bpa:PipeLineBL
- Width="30"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="15"
- Speed="10" />
- <bpa:Condenser
- Width="65"
- Height="80"
- Margin="0,0,-15,0" />
- <bpa:PipeLineV
- Width="8"
- Height="20"
- Margin="0,-4,-15,0"
- Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:Tanks
- Width="60"
- Height="60"
- Margin="0,-5,-15,0" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 阀门6 排馏阀-->
- <TextBlock
- Canvas.Left="620"
- Canvas.Top="350"
- Foreground="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="排馏阀" />
- <bpa:PipeLineV
- Canvas.Left="596"
- Canvas.Top="330"
- Width="8"
- Height="50"
- Direction="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="591"
- Canvas.Top="350"
- Width="25"
- EdgeColor="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- OpenEnable="{Binding DeviceStatus.VX105}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门7 冷凝器冷却水阀-->
- <TextBlock
- Canvas.Left="610"
- Canvas.Top="30"
- Foreground="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="冷凝器冷却水阀" />
- <bpa:PipeLineH
- Width="65"
- Height="8"
- Margin="607,68,402,154"
- Direction="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="2" />
- <bpa:HandValve
- x:Name="VX106"
- Width="30"
- Height="20"
- Margin="617,58,402,154"
- OpenEnable="{Binding DeviceStatus.VX106}"
- RenderTransformOrigin="0.5,0.5" />
- <!--#endregion-->
-
- <!--#region 阀门8 配料釜蒸汽阀-->
- <bpa:PipeLineH
- Canvas.Left="149"
- Canvas.Top="85"
- Width="70"
- Height="10"
- Direction="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="179"
- Canvas.Top="74"
- Width="30"
- Height="25"
- OpenEnable="{Binding DeviceStatus.VX107}" />
- <TextBlock
- Canvas.Left="160"
- Canvas.Top="54"
- Foreground="White"
- Text="配料釜蒸汽阀" />
- <!--#endregion-->
-
- <!--#region 阀门9 反应釜蒸汽阀-->
- <TextBlock
- Canvas.Left="30"
- Canvas.Top="250"
- Foreground="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸汽阀" />
- <bpa:PipeLineTR
- Width="24"
- Height="24"
- Margin="81,266,402,154"
- Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="18"
- Speed="10" />
- <bpa:PipeLineTR
- Width="24"
- Height="24"
- Margin="81,266,402,154"
- Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
- Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="18"
- Speed="10" />
- <bpa:PipeLineV
- Width="12"
- Height="40"
- Margin="81,226,402,154"
- Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <bpa:HandValve
- x:Name="VX108"
- Width="35"
- Height="35"
- Margin="65,240,402,154"
- OpenEnable="{Binding DeviceStatus.VX108}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="270" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门10 反应釜蒸汽疏水阀-->
- <TextBlock
- Canvas.Left="280"
- Canvas.Top="315"
- Foreground="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸汽疏水阀" />
- <bpa:PipeLineV
- Width="12"
- Height="50"
- Margin="348,287,402,154"
- Direction="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <bpa:HandValve
- Width="35"
- Height="35"
- Margin="341,296,402,154"
- OpenEnable="{Binding DeviceStatus.VX109}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门11 反应釜冷却水给水阀-->
- <TextBlock
- Canvas.Left="390"
- Canvas.Top="260"
- Foreground="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="冷却水给水阀" />
- <bpa:PipeLineTL
- Width="24"
- Height="24"
- Margin="360,266,402,154"
- Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="18"
- Speed="1" />
-
- <bpa:PipeLineV
- Width="12"
- Height="40"
- Margin="372,226,402,154"
- Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4"
- Speed="10" />
- <bpa:HandValve
- x:Name="VX110"
- Width="35"
- Height="35"
- Margin="365,232,402,154"
- OpenEnable="{Binding DeviceStatus.VX110}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门12 冷却水排水阀-->
- <TextBlock
- Canvas.Left="124"
- Canvas.Top="316"
- Foreground="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="冷却水排水阀" />
- <bpa:PipeLineV
- Width="12"
- Height="50"
- Margin="105,290,402,154"
- Direction="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <bpa:HandValve
- x:Name="VX111"
- Width="35"
- Height="35"
- Margin="89,297,402,154"
- OpenEnable="{Binding DeviceStatus.VX111}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="270" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <!--#endregion-->
-
- <!--#region 阀门9-12链接-->
- <bpa:PipeLineH
- Width="95"
- Height="12"
- Margin="105,278,402,154"
- Direction="{Binding PipeLine.PipeH_3.Direction}"
- Fill="{Binding PipeLine.PipeH_3.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <!--#endregion-->
-
- <!--#region 阀门10-11连接-->
- <bpa:PipeLineH
- Width="95"
- Height="12"
- Margin="265,278,402,154"
- Direction="{Binding PipeLine.PipeH_2.Direction}"
- Fill="{Binding PipeLine.PipeH_2.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="4" />
- <!--#endregion-->
-
- <!--#region 阀门13分馏真空阀-->
- <bpa:PipeLineH
- Canvas.Left="607"
- Canvas.Top="142"
- Width="140"
- Height="10"
- Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBL
- Canvas.Left="746"
- Canvas.Top="142"
- Width="20"
- Height="20"
- Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="20"
- Speed="2" />
- <bpa:PipeLineV
- Canvas.Left="756"
- Canvas.Top="161"
- Width="10"
- Height="150"
- Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:HandValve
- Canvas.Left="750"
- Canvas.Top="181"
- Width="30"
- Height="25"
- OpenEnable="{Binding DeviceStatus.VX112}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- <TextBlock
- Canvas.Left="780"
- Canvas.Top="183"
- Foreground="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="分馏真空阀" />
- <!--#endregion-->
-
- <!--#region 阀门14蒸馏真空阀-->
- <bpa:PipeLineH
- Canvas.Left="619"
- Canvas.Top="292"
- Width="128"
- Height="10"
- Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="10" />
- <bpa:PipeLineBL
- Canvas.Left="746"
- Canvas.Top="292"
- Width="20"
- Height="20"
- Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
- Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="20"
- Speed="2" />
-
- <bpa:HandValve
- Canvas.Left="696"
- Canvas.Top="281"
- Width="30"
- Height="25"
- OpenEnable="{Binding DeviceStatus.VX113}" />
- <TextBlock
- Canvas.Left="680"
- Canvas.Top="310"
- Foreground="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="蒸馏真空阀" />
-
- <!--#endregion-->
-
- <!--#region 阀门13-14连接-->
- <bpa:PipeLineV
- Canvas.Left="756"
- Canvas.Top="311"
- Width="10"
- Height="40"
- Direction="{Binding PipeLine.PipeH_4.Direction}"
- Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- Speed="4" />
- <bpa:PipeLineBR
- Canvas.Left="756"
- Canvas.Top="370"
- Width="20"
- Height="20"
- Direction="{Binding PipeLine.PipeH_4.Direction}"
- Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
- LineWidth="20"
- Speed="4">
- <bpa:PipeLineBR.RenderTransform>
- <ScaleTransform ScaleY="-1.0" />
- </bpa:PipeLineBR.RenderTransform>
- </bpa:PipeLineBR>
- <!--#endregion-->
-
- <!--#region 反应釜搅拌-->
- <TextBlock
- Canvas.Left="170"
- Canvas.Top="150"
- Foreground="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="反应釜搅拌" />
-
- <StackPanel
- Canvas.Left="200"
- Canvas.Top="175"
- Width="65"
- Height="220">
- <bpa:MotorTwo
- Width="40"
- Height="30"
- Margin="0,0,0,-1"
- MotorColors="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=3}"
- RenderTransformOrigin="0.5,0.5">
- <bpa:MotorTwo.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:MotorTwo.RenderTransform>
- </bpa:MotorTwo>
- <bpa:Joint
- Width="40"
- Height="30"
- Margin="0,0,0,-3" />
- <local:RetortTank
- Width="65"
- Height="120"
- Margin="0,4,0,0" />
- <bpa:HandValve
- Width="48"
- Height="65"
- Margin="0,-24,-14,0"
- RenderTransformOrigin="0.5,0.5">
- <bpa:HandValve.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </bpa:HandValve.RenderTransform>
- </bpa:HandValve>
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 水罐-->
- <bpa:Tanks
- Canvas.Left="570"
- Canvas.Top="280"
- Width="60"
- Height="60"
- Margin="0,-5,-15,0" />
- <!--#endregion-->
-
- <!--#region 真空泵-->
- <bpa:MotorTwo
- Canvas.Left="841"
- Canvas.Top="380"
- Width="40"
- Height="25"
- MotorColors="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=3}">
- <bpa:MotorTwo.RenderTransform>
- <RotateTransform Angle="180" />
- </bpa:MotorTwo.RenderTransform>
- </bpa:MotorTwo>
- <bpa:Joint
- Canvas.Left="817"
- Canvas.Top="355"
- Height="36">
- <bpa:Joint.RenderTransform>
- <ScaleTransform ScaleX="-1.0" />
- </bpa:Joint.RenderTransform>
- </bpa:Joint>
- <bpa:Tanks
- Canvas.Left="770"
- Canvas.Top="384"
- Width="50"
- Height="50" />
- <TextBlock
- Canvas.Left="775"
- Canvas.Top="333"
- Foreground="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="分馏真空泵" />
- <!--#endregion-->
-
- <!--#region 仪器标注-->
- <TextBlock
- Canvas.Left="104"
- Canvas.Top="84"
- Foreground="Blue"
- Text="配料罐" />
- <TextBlock
- Canvas.Left="92"
- Canvas.Top="70"
- Width="60"
- Foreground="Red"
- Text="{Binding DeviceStatus.TempMaterial, StringFormat='{}{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="214"
- Canvas.Top="290"
- Foreground="Blue"
- Text="反应釜" />
- <TextBlock
- Canvas.Left="203"
- Canvas.Top="260"
- Width="60"
- Foreground="Red"
- Text="{Binding DeviceStatus.TempWok, StringFormat='{}{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="569"
- Canvas.Top="88"
- Foreground="Blue"
- Text="冷凝器" />
- <TextBlock
- Canvas.Left="389"
- Canvas.Top="30"
- Width="150"
- Foreground="Red"
- Text="{Binding DeviceStatus.TempVent, StringFormat='反应釜排气温度:{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="569"
- Canvas.Top="168"
- Foreground="Blue"
- Text="蒸馏罐" />
- <TextBlock
- Canvas.Left="589"
- Canvas.Top="312"
- Foreground="Blue"
- Text="水罐" />
- <TextBlock
- Canvas.Left="570"
- Canvas.Top="295"
- Width="60"
- FontSize="9"
- Foreground="Red"
- Text="{Binding DeviceStatus.WeightWok, StringFormat='{}{0:f2}g'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="780"
- Canvas.Top="414"
- FontSize="10"
- Foreground="Blue"
- Text="真空泵" />
- <!--#endregion-->
-
- <!--#region 水罐重量清零-->
- <Button
- Canvas.Left="480"
- Canvas.Top="370"
- Width="100"
- Height="25"
- VerticalAlignment="Center"
- Click="ClearBtn_CLick"
- Content="水罐重量清零"
- FontSize="10"
- Style="{StaticResource ButtonStyle}" />
- <!--#endregion-->
-
- <!--#region 控制按钮-->
- <StackPanel
- Canvas.Left="-20"
- Canvas.Top="-5"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="配料搅拌:开"
- FontSize="10"
- Foreground="White"
- GroupName="1"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="配料搅拌:关"
- FontSize="10"
- Foreground="White"
- GroupName="1"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- </StackPanel>
- <StackPanel
- Canvas.Left="-5"
- Canvas.Top="118"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="进料阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="2"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="进料阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="2"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- </StackPanel>
- <StackPanel
- Canvas.Left="144"
- Canvas.Top="180"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="反应釜搅拌:开"
- FontSize="10"
- Foreground="White"
- GroupName="3"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="反应釜搅拌:关"
- FontSize="10"
- Foreground="White"
- GroupName="3"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- </StackPanel>
- <StackPanel
- Canvas.Left="265"
- Canvas.Top="110"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="蒸馏阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="4"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="蒸馏阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="4"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- </StackPanel>
- <StackPanel
- Canvas.Left="475"
- Canvas.Top="90"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="回油阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="5"
- Style="{StaticResource radiobutton}"
- Tag="5" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="回油阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="5"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="5" />
- </StackPanel>
- <StackPanel
- Canvas.Left="475"
- Canvas.Top="240"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="回水阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="6"
- Style="{StaticResource radiobutton}"
- Tag="6" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="回水阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="6"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="6" />
- </StackPanel>
- <StackPanel
- Canvas.Left="645"
- Canvas.Top="224"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="汇馏阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="7"
- Style="{StaticResource radiobutton}"
- Tag="7" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="汇馏阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="7"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="7" />
- </StackPanel>
- <StackPanel
- Canvas.Left="605"
- Canvas.Top="376"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="排馏阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="8"
- Style="{StaticResource radiobutton}"
- Tag="8" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="排馏阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="8"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="8" />
- </StackPanel>
- <StackPanel
- Canvas.Left="603"
- Canvas.Top="-30"
- Orientation="Vertical">
- <RadioButton
- Width="100"
- Height="28"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="冷凝器冷却水阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="9"
- Style="{StaticResource radiobutton}"
- Tag="9" />
- <RadioButton
- Width="100"
- Height="28"
- BorderThickness="0"
- Click="Close_Click"
- Content="冷凝器冷却水阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="9"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="9" />
- </StackPanel>
- <StackPanel
- Canvas.Left="150"
- Canvas.Top="0"
- Orientation="Vertical">
- <RadioButton
- Width="90"
- Height="25"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="配料釜蒸汽阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="10"
- Style="{StaticResource radiobutton}"
- Tag="10" />
- <RadioButton
- Width="90"
- Height="25"
- BorderThickness="0"
- Click="Close_Click"
- Content="配料釜蒸汽阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="10"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="10" />
- </StackPanel>
- <StackPanel
- Canvas.Left="-65"
- Canvas.Top="234"
- Orientation="Vertical">
- <RadioButton
- Width="90"
- Height="25"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="反应釜蒸汽阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="11"
- Style="{StaticResource radiobutton}"
- Tag="11" />
- <RadioButton
- Width="90"
- Height="25"
- BorderThickness="0"
- Click="Close_Click"
- Content="反应釜蒸汽阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="11"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="11" />
- </StackPanel>
- <StackPanel
- Canvas.Left="265"
- Canvas.Top="346"
- Orientation="Vertical">
- <RadioButton
- Width="110"
- Height="30"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="反应釜蒸汽疏水阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="12"
- Style="{StaticResource radiobutton}"
- Tag="12" />
- <RadioButton
- Width="110"
- Height="30"
- BorderThickness="0"
- Click="Close_Click"
- Content="反应釜蒸汽疏水阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="12"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="12" />
- </StackPanel>
- <StackPanel
- Canvas.Left="370"
- Canvas.Top="288"
- Orientation="Vertical">
- <RadioButton
- Width="120"
- Height="30"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="反应釜冷却水给水阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="13"
- Style="{StaticResource radiobutton}"
- Tag="13" />
- <RadioButton
- Width="120"
- Height="30"
- BorderThickness="0"
- Click="Close_Click"
- Content="反应釜冷却水给水阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="13"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="13" />
- </StackPanel>
- <StackPanel
- Canvas.Left="92"
- Canvas.Top="348"
- Orientation="Vertical">
- <RadioButton
- Width="120"
- Height="30"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="反应釜冷却水给水阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="18"
- Style="{StaticResource radiobutton}"
- Tag="18" />
- <RadioButton
- Width="120"
- Height="30"
- BorderThickness="0"
- Click="Close_Click"
- Content="反应釜冷却水给水阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="18"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="18" />
- </StackPanel>
- <StackPanel
- Canvas.Left="775"
- Canvas.Top="128"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="分馏真空阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="19"
- Style="{StaticResource radiobutton}"
- Tag="19" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="分馏真空阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="19"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="19" />
- </StackPanel>
- <StackPanel
- Canvas.Left="678"
- Canvas.Top="336"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="蒸馏真空阀:开"
- FontSize="10"
- Foreground="White"
- GroupName="20"
- Style="{StaticResource radiobutton}"
- Tag="20" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="蒸馏真空阀:关"
- FontSize="10"
- Foreground="White"
- GroupName="20"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="20" />
- </StackPanel>
- <StackPanel
- Canvas.Left="772"
- Canvas.Top="286"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="22"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="Open_Click"
- Content="真空泵:开"
- FontSize="10"
- Foreground="White"
- GroupName="20"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- <RadioButton
- Width="70"
- Height="22"
- BorderThickness="0"
- Click="Close_Click"
- Content="真空泵:关"
- FontSize="10"
- Foreground="White"
- GroupName="20"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- </StackPanel>
- <!--#endregion-->
-
- <!--#region 新增按钮-->
- <StackPanel
- Canvas.Left="705"
- Canvas.Top="-30"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="20"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="new_Click"
- Content="闪蒸:开"
- FontSize="8"
- Foreground="White"
- GroupName="t1"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- <RadioButton
- Width="70"
- Height="20"
- BorderThickness="0"
- Click="new_Click"
- Content="闪蒸:关"
- FontSize="8"
- Foreground="White"
- GroupName="t1"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="0" />
- </StackPanel>
- <StackPanel
- Canvas.Left="785"
- Canvas.Top="-30"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="20"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="new_Click"
- Content="真空蒸馏:开"
- FontSize="8"
- Foreground="White"
- GroupName="t2"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- <RadioButton
- Width="70"
- Height="20"
- BorderThickness="0"
- Click="new_Click"
- Content="真空蒸馏:关"
- FontSize="8"
- Foreground="White"
- GroupName="t2"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="1" />
- </StackPanel>
- <StackPanel
- Canvas.Left="705"
- Canvas.Top="20"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="20"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="new_Click"
- Content="真空下料:开"
- FontSize="8"
- Foreground="White"
- GroupName="t3"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- <RadioButton
- Width="70"
- Height="20"
- BorderThickness="0"
- Click="new_Click"
- Content="真空下料:关"
- FontSize="8"
- Foreground="White"
- GroupName="t3"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- </StackPanel>
- <StackPanel
- Canvas.Left="785"
- Canvas.Top="20"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="20"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="new_Click"
- Content="加压出料:开"
- FontSize="8"
- Foreground="White"
- GroupName="t4"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- <RadioButton
- Width="70"
- Height="20"
- BorderThickness="0"
- Click="new_Click"
- Content="加压出料:关"
- FontSize="8"
- Foreground="White"
- GroupName="t4"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="3" />
- </StackPanel>
- <StackPanel
- Canvas.Left="745"
- Canvas.Top="70"
- Orientation="Vertical">
- <RadioButton
- Width="70"
- Height="20"
- Margin="0,0,0,2"
- BorderThickness="0"
- Click="new_Click"
- Content="排空阀:开"
- FontSize="8"
- Foreground="White"
- GroupName="t5"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- <RadioButton
- Width="70"
- Height="20"
- BorderThickness="0"
- Click="new_Click"
- Content="排空阀:关"
- FontSize="8"
- Foreground="White"
- GroupName="t5"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="4" />
- </StackPanel>
- <!--#endregion-->
- </Canvas>
- </Viewbox>
- </Grid>
- <Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- <RowDefinition Height="200" />
- </Grid.RowDefinitions>
- <StackPanel
- Margin="200,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- FontSize="20"
- Foreground="White"
- Text="请输入产品编号:" />
- <TextBox
- x:Name="recipeName"
- Width="200"
- Height="40"
- VerticalAlignment="Center"
- FontSize="20"
- Text="{Binding Name}" />
- <Button
- Margin="10,0,10,0"
- Command="{Binding DataRecordCommand}"
- Content="选择设备类型"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
- <CheckBox
- x:Name="start_check"
- Width="160"
- Height="50"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Command="{Binding Start}"
- Content="{Binding Content}"
- FontSize="30"
- IsChecked="{Binding IsChecked}"
- Style="{StaticResource Beveledcheck}" />
-
- <Grid Grid.Row="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- Margin="20,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- FontSize="20"
- Foreground="White"
- Text="温度控制及校准:" />
- <StackPanel
- Grid.Row="1"
- Margin="20,2,30,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Orientation="Horizontal">
- <RadioButton
- Height="40"
- Click="auto_click"
- Content="配料罐升温"
- GroupName="heat"
- IsChecked="True"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- <RadioButton
- Height="40"
- Click="auto_click"
- Content="反应釜升温"
- GroupName="heat"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- <RadioButton
- Height="40"
- Click="auto_click"
- Content="反应釜降温"
- GroupName="heat"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- <RadioButton
- Height="40"
- Click="auto_click"
- Content="温度校准"
- GroupName="heat"
- Style="{StaticResource RectangleRadioButtonStyle}" />
- </StackPanel>
- <Border
- Grid.Row="2"
- Margin="20,0,30,10"
- BorderBrush="#ff2AB2E7"
- BorderThickness="2">
- <UniformGrid Rows="2">
- <Grid>
- <WrapPanel x:Name="wokTemp" Margin="0,15,0,0">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="White"
- Text="设置温度:" />
- <TextBox
- x:Name="temp_1"
- Width="120"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="White"
- Text="℃" />
- <RadioButton
- Width="100"
- Height="30"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- BorderThickness="0"
- Click="TempSet_CLick"
- Content="启动"
- Foreground="White"
- GroupName="tempctrl"
- Style="{StaticResource radiobutton}" />
- <RadioButton
- Width="100"
- Height="30"
- Margin="40,0,0,0"
- BorderThickness="0"
- Click="TempCLose_CLick"
- Content="停止"
- Foreground="White"
- GroupName="tempctrl"
- IsChecked="True"
- Style="{StaticResource radiobutton}" />
- </StackPanel>
- </WrapPanel>
- <WrapPanel
- x:Name="caliTemp"
- Margin="0,15,0,0"
- Visibility="Collapsed">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="White"
- Text="反应釜排气温度校准:" />
- <TextBox
- x:Name="tempvent"
- Width="120"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="White"
- Text="℃" />
- </StackPanel>
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="White"
- Text="配料罐温度校准:" />
- <TextBox
- x:Name="tempmaterial"
- Width="120"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="White"
- Text="℃" />
- </StackPanel>
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Margin="40,0,20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="White"
- Text="反应釜温度校准:" />
- <TextBox
- x:Name="tempwok"
- Width="120"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="0" />
- <TextBlock
- Margin="20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="White"
- Text="℃" />
- </StackPanel>
- <Button
- Width="120"
- Height="30"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Click="TempSet_CLick"
- Content="确认"
- Style="{StaticResource ButtonStyle}" />
- </WrapPanel>
- </Grid>
- </UniformGrid>
- </Border>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
-
-
-
- </Grid>
-
- <TextBlock
- x:Name="state"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="100"
- FontWeight="Black"
- Text="设备未连接"
- Visibility="Collapsed" />
-
- <Grid
- x:Name="hzSet"
- Width="800"
- Height="500"
- Visibility="Collapsed">
- <Grid.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
- </Grid.Background>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="5*" />
- </Grid.RowDefinitions>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="30"
- Foreground="White"
- Text="设置频率" />
- <UniformGrid
- Grid.Row="1"
- Margin="0,0,0,40"
- Rows="3">
- <TextBlock
- x:Name="motorName"
- Margin="60,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="White"
- Text="配料搅拌频率:" />
- <StackPanel
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBox
- x:Name="motorValue"
- Width="260"
- Height="46"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- FontSize="25"
- Foreground="White"
- TextAlignment="Center" />
- <TextBlock
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="25"
- Foreground="White"
- Text="%(范围:20-100)" />
- </StackPanel>
- <StackPanel
- Margin="0,0,50,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Width="120"
- Height="40"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Click="hzSet_Click"
- Content="确认"
- Style="{StaticResource ButtonStyle}" />
- <Button
- Width="120"
- Height="40"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Click="hzCancel_Click"
- Content="取消"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
- </UniformGrid>
- </Grid>
- </Grid>
- </UserControl>
|