|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932 |
- <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>
|