|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346 |
- <UserControl
- x:Class="BPASmartClient.Academy.View.DeviceMotion_2View"
- 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:DesignHeight="450" d:DesignWidth="800"
- 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
- Height="50" HorizontalAlignment="Right" VerticalAlignment="Top">
- <Border Margin="0,0,100,0" HorizontalAlignment="Center">
- <Button
- Margin="20,5"
- Command="{Binding DataRecordCommand}"
- Content="选择设备类型"
- Style="{StaticResource ButtonStyle}" />
- </Border>
- </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="14" Canvas.Top="306"
- 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"
- OpenEnable="{Binding DeviceStatus.VX114}"
- 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>
- <TextBlock
- Canvas.Left="140" Canvas.Top="340"
- Foreground="{Binding DeviceStatus.VX114, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
- Text="反应釜出料阀" />
- <!--#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="250" Width="60" Foreground="Red"
- Text="{Binding DeviceStatus.TempWok, StringFormat='{}{0}℃'}"
- TextAlignment="Center" />
- <TextBlock
- Canvas.Left="203" Canvas.Top="270" Width="60" Foreground="Red"
- Text="{Binding DeviceStatus.PressureWok, StringFormat='{}{0:f2}mpa'}"
- TextAlignment="Center" />
- <StackPanel
- Canvas.Left="-10" Canvas.Top="169" Orientation="Horizontal">
- <TextBlock Foreground="White" Text="蒸汽压力:" />
- <TextBlock
- Margin="10,0,0,0" Foreground="Red"
- Text="{Binding DeviceStatus.PressureWeek, StringFormat='{}{0:f2}mpa'}" />
- </StackPanel>
- <StackPanel
- Canvas.Left="-20" Canvas.Top="199" Orientation="Horizontal">
- <TextBlock Foreground="White" Text="比例阀开度:" />
- <TextBlock
- Margin="10,0,0,0" Foreground="Red"
- Text="{Binding DeviceStatus.OpenValue, StringFormat='{}{0:f2}%'}" />
- </StackPanel>
- <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="真空泵" />
- <TextBlock
- Canvas.Left="-85" Canvas.Top="135" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.Compressor, Converter={StaticResource BoolToColorConverter}}"
- Text="⚫" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="-117" Canvas.Top="151" Canvas.Right="384.8" HorizontalAlignment="Center"
- VerticalAlignment="Top" Foreground="White" Text="空压机启动反馈" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="275" Canvas.Top="68.5" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.ByPassMaterial, Converter={StaticResource BoolToColorConverter}}"
- Text="⚫" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="245" Canvas.Top="53.5" Canvas.Right="384.8" HorizontalAlignment="Center"
- VerticalAlignment="Top" Foreground="White" Text="配料釜旁通阀" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="-80" Canvas.Top="20" HorizontalAlignment="Center" VerticalAlignment="Top"
- d:Foreground="Red"
- Foreground="{Binding DeviceStatus.ByPassReact, Converter={StaticResource BoolToColorConverter}}"
- Text="⚫" TextAlignment="Center" />
- <TextBlock
- Canvas.Left="-107" Canvas.Top="40" Canvas.Right="384.8" HorizontalAlignment="Center"
- VerticalAlignment="Top" Foreground="White" Text="反应釜旁通阀" TextAlignment="Center" />
- <!--#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="-20" Canvas.Top="328" 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="21"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="真空泵:关" FontSize="10" Foreground="White" GroupName="21"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="2" />
- </StackPanel>
- <StackPanel
- Canvas.Left="135" Canvas.Top="366" Orientation="Vertical">
- <RadioButton
- Width="80" Height="25" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="出料阀:开" FontSize="10" Foreground="White"
- GroupName="22"
- Style="{StaticResource radiobutton}"
- Tag="33" />
- <RadioButton
- Width="80" Height="25" BorderThickness="0" Click="Close_Click"
- Content="出料阀:关" FontSize="10" Foreground="White" GroupName="22"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="33" />
- </StackPanel>
- <StackPanel
- Canvas.Left="-110" Canvas.Top="170" Orientation="Vertical">
- <RadioButton
- Width="70" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="空压机:开" FontSize="10" Foreground="White"
- GroupName="23"
- Style="{StaticResource radiobutton}"
- Tag="21" />
- <RadioButton
- Width="70" Height="22" BorderThickness="0" Click="Close_Click"
- Content="空压机:关" FontSize="10" Foreground="White" GroupName="23"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="21" />
- </StackPanel>
- <StackPanel
- Canvas.Left="240" Canvas.Top="0" Orientation="Vertical">
- <RadioButton
- Width="90" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="配料釜旁通阀:开" FontSize="10" Foreground="White"
- GroupName="24"
- Style="{StaticResource radiobutton}"
- Tag="35" />
- <RadioButton
- Width="90" Height="22" BorderThickness="0" Click="Close_Click"
- Content="配料釜旁通阀:关" FontSize="10" Foreground="White" GroupName="24"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="35" />
- </StackPanel>
- <StackPanel
- Canvas.Left="-120" Canvas.Top="60" Orientation="Vertical">
- <RadioButton
- Width="90" Height="22" Margin="0,0,0,2" BorderThickness="0"
- Click="Open_Click" Content="反应釜旁通阀:开" FontSize="10" Foreground="White"
- GroupName="25"
- Style="{StaticResource radiobutton}"
- Tag="36" />
- <RadioButton
- Width="90" Height="22" BorderThickness="0" Click="Close_Click"
- Content="反应釜旁通阀:关" FontSize="10" Foreground="White" GroupName="25"
- IsChecked="True"
- Style="{StaticResource radiobutton}"
- Tag="36" />
- </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}" />
-
- </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>
|