终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DeviceMotionView.xaml 107 KiB

2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
3 months ago
2 months ago
4 months ago
3 months ago
4 months ago
2 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
2 months ago
4 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
3 months ago
3 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932
  1. <UserControl
  2. x:Class="BPASmartClient.Academy.View.DeviceMotionView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:bpa="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.Academy.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel"
  10. d:DataContext="{d:DesignInstance Type=vm:DeviceMotionViewModel}"
  11. d:DesignHeight="900"
  12. d:DesignWidth="1440"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <Style x:Key="checkBox" TargetType="{x:Type CheckBox}">
  16. <Setter Property="HorizontalContentAlignment" Value="Center" />
  17. <Setter Property="VerticalContentAlignment" Value="Center" />
  18. <Setter Property="Template">
  19. <Setter.Value>
  20. <ControlTemplate TargetType="{x:Type CheckBox}">
  21. <Border
  22. x:Name="bord"
  23. Width="{TemplateBinding Width}"
  24. Height="{TemplateBinding Height}"
  25. Background="{TemplateBinding Background}"
  26. BorderBrush="{TemplateBinding BorderBrush}"
  27. BorderThickness="{TemplateBinding BorderThickness}">
  28. <ContentControl
  29. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  30. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  31. Content="{TemplateBinding Content}"
  32. Foreground="{TemplateBinding Foreground}" />
  33. </Border>
  34. <ControlTemplate.Triggers>
  35. <Trigger Property="IsChecked" Value="True">
  36. <Setter TargetName="bord" Property="Background">
  37. <Setter.Value>
  38. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
  39. </Setter.Value>
  40. </Setter>
  41. </Trigger>
  42. <Trigger Property="IsChecked" Value="False">
  43. <Setter TargetName="bord" Property="Background">
  44. <Setter.Value>
  45. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  46. </Setter.Value>
  47. </Setter>
  48. </Trigger>
  49. </ControlTemplate.Triggers>
  50. </ControlTemplate>
  51. </Setter.Value>
  52. </Setter>
  53. </Style>
  54. <Style x:Key="radiobutton" TargetType="RadioButton">
  55. <Setter Property="HorizontalContentAlignment" Value="Center" />
  56. <Setter Property="VerticalContentAlignment" Value="Center" />
  57. <Setter Property="Template">
  58. <Setter.Value>
  59. <ControlTemplate TargetType="RadioButton">
  60. <Border
  61. x:Name="bord"
  62. Width="{TemplateBinding Width}"
  63. Height="{TemplateBinding Height}"
  64. Background="{TemplateBinding Background}"
  65. BorderBrush="{TemplateBinding BorderBrush}"
  66. BorderThickness="{TemplateBinding BorderThickness}">
  67. <ContentControl
  68. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  69. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  70. Content="{TemplateBinding Content}"
  71. Foreground="{TemplateBinding Foreground}" />
  72. </Border>
  73. <ControlTemplate.Triggers>
  74. <Trigger Property="IsChecked" Value="True">
  75. <Setter TargetName="bord" Property="Background">
  76. <Setter.Value>
  77. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png" />
  78. </Setter.Value>
  79. </Setter>
  80. </Trigger>
  81. <Trigger Property="IsChecked" Value="False">
  82. <Setter TargetName="bord" Property="Background">
  83. <Setter.Value>
  84. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  85. </Setter.Value>
  86. </Setter>
  87. </Trigger>
  88. </ControlTemplate.Triggers>
  89. </ControlTemplate>
  90. </Setter.Value>
  91. </Setter>
  92. </Style>
  93. </UserControl.Resources>
  94. <Grid>
  95. <Grid
  96. x:Name="ooo"
  97. HorizontalAlignment="Stretch"
  98. VerticalAlignment="Stretch"
  99. IsHitTestVisible="False"
  100. Opacity="0.5">
  101. <Grid.RowDefinitions>
  102. <RowDefinition />
  103. <RowDefinition Height="0" />
  104. </Grid.RowDefinitions>
  105. <Grid>
  106. <Grid Margin="150,100">
  107. <Viewbox Stretch="Uniform">
  108. <Canvas Width="800" Height="450">
  109. <!--#region 配料搅拌-->
  110. <TextBlock
  111. Canvas.Left="60"
  112. Canvas.Top="10"
  113. Foreground="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  114. Text="配料搅拌" />
  115. <StackPanel
  116. Canvas.Left="56"
  117. Canvas.Top="35"
  118. Orientation="Horizontal">
  119. <bpa:MotorTwo
  120. Width="60"
  121. Height="30"
  122. Margin="0,-20,0,0"
  123. MotorColors="{Binding DeviceStatus.M101, Converter={StaticResource deviceConvert}, ConverterParameter=3}" />
  124. <bpa:MotorHousing
  125. Width="50"
  126. Height="50"
  127. Margin="-20,0,0,0" />
  128. </StackPanel>
  129. <!--#endregion-->
  130. <!--#region 阀门1 进料阀-->
  131. <StackPanel
  132. Canvas.Left="87"
  133. Canvas.Top="150"
  134. Width="70"
  135. Height="120">
  136. <bpa:PipeLineV
  137. Width="15"
  138. Height="80"
  139. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  140. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  141. Speed="10" />
  142. <bpa:PipeLineTR
  143. Width="30"
  144. Margin="0,-1,-15,0"
  145. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  146. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  147. LineWidth="15"
  148. Speed="10" />
  149. </StackPanel>
  150. <TextBlock
  151. Canvas.Left="70"
  152. Canvas.Top="130"
  153. Foreground="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  154. Text="进料阀" />
  155. <StackPanel
  156. Canvas.Left="90"
  157. Canvas.Top="65"
  158. Width="65"
  159. Height="130">
  160. <bpa:JAR Width="65" Height="65" />
  161. <bpa:HandValve
  162. Width="45"
  163. Height="65"
  164. Margin="0,-20,-12,0"
  165. EdgeColor="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  166. OpenEnable="{Binding DeviceStatus.VX100}"
  167. RenderTransformOrigin="0.5,0.5">
  168. <bpa:HandValve.RenderTransform>
  169. <TransformGroup>
  170. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  171. <SkewTransform />
  172. <RotateTransform Angle="90" />
  173. <TranslateTransform />
  174. </TransformGroup>
  175. </bpa:HandValve.RenderTransform>
  176. </bpa:HandValve>
  177. </StackPanel>
  178. <bpa:PipeLineH
  179. Canvas.Left="144"
  180. Canvas.Top="244"
  181. Width="65"
  182. Height="15"
  183. Direction="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  184. Fill="{Binding DeviceStatus.VX100, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  185. Speed="10" />
  186. <!--#endregion-->
  187. <!--#region 阀门3 回油阀-->
  188. <bpa:PipeLineTL
  189. Canvas.Left="427"
  190. Canvas.Top="200"
  191. Width="16"
  192. Margin="0,0,0,-8"
  193. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  194. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  195. LineWidth="25"
  196. Speed="10" />
  197. <bpa:PipeLineV
  198. Canvas.Left="435"
  199. Canvas.Top="177"
  200. Width="8"
  201. Height="23"
  202. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  203. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  204. Speed="10" />
  205. <TextBlock
  206. Canvas.Left="495"
  207. Canvas.Top="140"
  208. Foreground="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  209. Text="回油阀" />
  210. <StackPanel
  211. Canvas.Left="435"
  212. Canvas.Top="160"
  213. Orientation="Horizontal">
  214. <bpa:PipeLineBR
  215. Width="16"
  216. Margin="0,0,0,-8"
  217. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  218. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  219. LineWidth="25"
  220. Speed="10" />
  221. <bpa:PipeLineH
  222. Width="50"
  223. Height="8"
  224. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  225. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  226. Speed="10" />
  227. <bpa:HandValve
  228. Width="25"
  229. Margin="-1,-7,0,0"
  230. Panel.ZIndex="1"
  231. EdgeColor="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  232. OpenEnable="{Binding DeviceStatus.VX102}" />
  233. <bpa:PipeLineH
  234. Width="50"
  235. Height="8"
  236. Margin="-6,0,0,0"
  237. Panel.ZIndex="0"
  238. Direction="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  239. Fill="{Binding DeviceStatus.VX102, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  240. Speed="10" />
  241. </StackPanel>
  242. <!--#endregion-->
  243. <!--#region 阀门4 回水阀-->
  244. <TextBlock
  245. Canvas.Left="495"
  246. Canvas.Top="220"
  247. Foreground="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  248. Text="回水阀" />
  249. <StackPanel
  250. Canvas.Left="427"
  251. Canvas.Top="200"
  252. Orientation="Horizontal">
  253. <bpa:PipeLineH
  254. Width="73"
  255. Height="8"
  256. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  257. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  258. Speed="10" />
  259. <bpa:HandValve
  260. Width="25"
  261. Margin="-1,-7,0,0"
  262. Panel.ZIndex="1"
  263. EdgeColor="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  264. OpenEnable="{Binding DeviceStatus.VX103}" />
  265. <bpa:PipeLineH
  266. Width="120"
  267. Height="8"
  268. Margin="-6,0,0,0"
  269. Panel.ZIndex="0"
  270. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  271. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  272. Speed="10" />
  273. <bpa:PipeLineTL
  274. Width="16"
  275. Margin="0,0,0,8"
  276. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  277. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  278. LineWidth="25"
  279. Speed="10" />
  280. </StackPanel>
  281. <bpa:PipeLineV
  282. Canvas.Left="646"
  283. Canvas.Top="170"
  284. Width="8"
  285. Height="30"
  286. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  287. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  288. Speed="10" />
  289. <bpa:PipeLineBL
  290. Canvas.Left="638"
  291. Canvas.Top="154"
  292. Width="16"
  293. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  294. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  295. LineWidth="25"
  296. Speed="10" />
  297. <bpa:PipeLineH
  298. Canvas.Left="607"
  299. Canvas.Top="154"
  300. Width="31"
  301. Height="8"
  302. Direction="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  303. Fill="{Binding DeviceStatus.VX103, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  304. Speed="10" />
  305. <!--#endregion-->
  306. <!--#region 阀门3-4连接-->
  307. <bpa:PipeLineH
  308. Canvas.Left="229"
  309. Canvas.Top="208"
  310. Width="198"
  311. Height="8"
  312. Direction="{Binding PipeLine.PipeH_1.Direction}"
  313. Fill="{Binding PipeLine.PipeH_1.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  314. Speed="10" />
  315. <!--#endregion-->
  316. <!--#region 阀门5 汇馏阀-->
  317. <TextBlock
  318. Canvas.Left="610"
  319. Canvas.Top="240"
  320. Foreground="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  321. Text="汇馏阀" />
  322. <bpa:PipeLineV
  323. Canvas.Left="584"
  324. Canvas.Top="185"
  325. Width="8"
  326. Height="95"
  327. Direction="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  328. Fill="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  329. Speed="10" />
  330. <bpa:HandValve
  331. Canvas.Left="579"
  332. Canvas.Top="240"
  333. Width="25"
  334. EdgeColor="{Binding DeviceStatus.VX104, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  335. OpenEnable="{Binding DeviceStatus.VX104}"
  336. RenderTransformOrigin="0.5,0.5">
  337. <bpa:HandValve.RenderTransform>
  338. <TransformGroup>
  339. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  340. <SkewTransform />
  341. <RotateTransform Angle="90" />
  342. <TranslateTransform />
  343. </TransformGroup>
  344. </bpa:HandValve.RenderTransform>
  345. </bpa:HandValve>
  346. <!--#endregion-->
  347. <!--#region 阀门2 蒸馏阀-->
  348. <bpa:PipeLineH
  349. Canvas.Left="258"
  350. Canvas.Top="244"
  351. Width="65"
  352. Height="15"
  353. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  354. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  355. Speed="10" />
  356. <bpa:PipeLineTL
  357. Canvas.Left="321"
  358. Canvas.Top="229"
  359. Width="30"
  360. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  361. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  362. LineWidth="15"
  363. Speed="10" />
  364. <bpa:PipeLineV
  365. Canvas.Left="336"
  366. Canvas.Top="180"
  367. Width="15"
  368. Height="50"
  369. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  370. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  371. Speed="10" />
  372. <bpa:PipeLineV
  373. Canvas.Left="336"
  374. Canvas.Top="40"
  375. Width="15"
  376. Height="110"
  377. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  378. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  379. Speed="10" />
  380. <bpa:PipeLineBR
  381. Canvas.Left="336"
  382. Canvas.Top="10"
  383. Width="30"
  384. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  385. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  386. LineWidth="15"
  387. Speed="10" />
  388. <bpa:PipeLineH
  389. Canvas.Left="366"
  390. Canvas.Top="10"
  391. Width="200"
  392. Height="15"
  393. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  394. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  395. Speed="10" />
  396. <TextBlock
  397. Canvas.Left="280"
  398. Canvas.Top="160"
  399. Foreground="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  400. Text="蒸馏阀" />
  401. <bpa:HandValve
  402. Canvas.Left="327"
  403. Canvas.Top="136"
  404. Width="45"
  405. Height="65"
  406. EdgeColor="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  407. OpenEnable="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  408. RenderTransformOrigin="0.5,0.5">
  409. <bpa:HandValve.RenderTransform>
  410. <TransformGroup>
  411. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  412. <SkewTransform />
  413. <RotateTransform Angle="90" />
  414. <TranslateTransform />
  415. </TransformGroup>
  416. </bpa:HandValve.RenderTransform>
  417. </bpa:HandValve>
  418. <StackPanel Canvas.Left="555" Canvas.Top="10">
  419. <bpa:PipeLineBL
  420. Width="30"
  421. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  422. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  423. LineWidth="15"
  424. Speed="10" />
  425. <bpa:Condenser
  426. Width="65"
  427. Height="80"
  428. Margin="0,0,-15,0" />
  429. <bpa:PipeLineV
  430. Width="8"
  431. Height="20"
  432. Margin="0,-4,-15,0"
  433. Direction="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  434. Fill="{Binding DeviceStatus.VX101, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  435. Speed="10" />
  436. <bpa:Tanks
  437. Width="60"
  438. Height="60"
  439. Margin="0,-5,-15,0" />
  440. </StackPanel>
  441. <!--#endregion-->
  442. <!--#region 阀门6 排馏阀-->
  443. <TextBlock
  444. Canvas.Left="620"
  445. Canvas.Top="350"
  446. Foreground="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  447. Text="排馏阀" />
  448. <bpa:PipeLineV
  449. Canvas.Left="596"
  450. Canvas.Top="330"
  451. Width="8"
  452. Height="50"
  453. Direction="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  454. Fill="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  455. Speed="10" />
  456. <bpa:HandValve
  457. Canvas.Left="591"
  458. Canvas.Top="350"
  459. Width="25"
  460. EdgeColor="{Binding DeviceStatus.VX105, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  461. OpenEnable="{Binding DeviceStatus.VX105}"
  462. RenderTransformOrigin="0.5,0.5">
  463. <bpa:HandValve.RenderTransform>
  464. <TransformGroup>
  465. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  466. <SkewTransform />
  467. <RotateTransform Angle="90" />
  468. <TranslateTransform />
  469. </TransformGroup>
  470. </bpa:HandValve.RenderTransform>
  471. </bpa:HandValve>
  472. <!--#endregion-->
  473. <!--#region 阀门7 冷凝器冷却水阀-->
  474. <TextBlock
  475. Canvas.Left="610"
  476. Canvas.Top="30"
  477. Foreground="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  478. Text="冷凝器冷却水阀" />
  479. <bpa:PipeLineH
  480. Width="65"
  481. Height="8"
  482. Margin="607,68,402,154"
  483. Direction="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  484. Fill="{Binding DeviceStatus.VX106, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  485. LineWidth="2" />
  486. <bpa:HandValve
  487. x:Name="VX106"
  488. Width="30"
  489. Height="20"
  490. Margin="617,58,402,154"
  491. OpenEnable="{Binding DeviceStatus.VX106}"
  492. RenderTransformOrigin="0.5,0.5" />
  493. <!--#endregion-->
  494. <!--#region 阀门8 配料釜蒸汽阀-->
  495. <bpa:PipeLineH
  496. Canvas.Left="149"
  497. Canvas.Top="85"
  498. Width="70"
  499. Height="10"
  500. Direction="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  501. Fill="{Binding DeviceStatus.VX107, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  502. Speed="10" />
  503. <bpa:HandValve
  504. Canvas.Left="179"
  505. Canvas.Top="74"
  506. Width="30"
  507. Height="25"
  508. OpenEnable="{Binding DeviceStatus.VX107}" />
  509. <TextBlock
  510. Canvas.Left="160"
  511. Canvas.Top="54"
  512. Foreground="White"
  513. Text="配料釜蒸汽阀" />
  514. <!--#endregion-->
  515. <!--#region 阀门9 反应釜蒸汽阀-->
  516. <TextBlock
  517. Canvas.Left="30"
  518. Canvas.Top="250"
  519. Foreground="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  520. Text="蒸汽阀" />
  521. <bpa:PipeLineTR
  522. Width="24"
  523. Height="24"
  524. Margin="81,266,402,154"
  525. Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  526. Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  527. LineWidth="18"
  528. Speed="10" />
  529. <bpa:PipeLineTR
  530. Width="24"
  531. Height="24"
  532. Margin="81,266,402,154"
  533. Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=5}"
  534. Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  535. LineWidth="18"
  536. Speed="10" />
  537. <bpa:PipeLineV
  538. Width="12"
  539. Height="40"
  540. Margin="81,226,402,154"
  541. Direction="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  542. Fill="{Binding DeviceStatus.VX108, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  543. LineWidth="4" />
  544. <bpa:HandValve
  545. x:Name="VX108"
  546. Width="35"
  547. Height="35"
  548. Margin="65,240,402,154"
  549. OpenEnable="{Binding DeviceStatus.VX108}"
  550. RenderTransformOrigin="0.5,0.5">
  551. <bpa:HandValve.RenderTransform>
  552. <TransformGroup>
  553. <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
  554. <SkewTransform />
  555. <RotateTransform Angle="270" />
  556. <TranslateTransform />
  557. </TransformGroup>
  558. </bpa:HandValve.RenderTransform>
  559. </bpa:HandValve>
  560. <!--#endregion-->
  561. <!--#region 阀门10 反应釜蒸汽疏水阀-->
  562. <TextBlock
  563. Canvas.Left="280"
  564. Canvas.Top="315"
  565. Foreground="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  566. Text="蒸汽疏水阀" />
  567. <bpa:PipeLineV
  568. Width="12"
  569. Height="50"
  570. Margin="348,287,402,154"
  571. Direction="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  572. Fill="{Binding DeviceStatus.VX109, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  573. LineWidth="4" />
  574. <bpa:HandValve
  575. Width="35"
  576. Height="35"
  577. Margin="341,296,402,154"
  578. OpenEnable="{Binding DeviceStatus.VX109}"
  579. RenderTransformOrigin="0.5,0.5">
  580. <bpa:HandValve.RenderTransform>
  581. <TransformGroup>
  582. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  583. <SkewTransform />
  584. <RotateTransform Angle="90" />
  585. <TranslateTransform />
  586. </TransformGroup>
  587. </bpa:HandValve.RenderTransform>
  588. </bpa:HandValve>
  589. <!--#endregion-->
  590. <!--#region 阀门11 反应釜冷却水给水阀-->
  591. <TextBlock
  592. Canvas.Left="390"
  593. Canvas.Top="260"
  594. Foreground="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  595. Text="冷却水给水阀" />
  596. <bpa:PipeLineTL
  597. Width="24"
  598. Height="24"
  599. Margin="360,266,402,154"
  600. Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  601. Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  602. LineWidth="18"
  603. Speed="1" />
  604. <bpa:PipeLineV
  605. Width="12"
  606. Height="40"
  607. Margin="372,226,402,154"
  608. Direction="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  609. Fill="{Binding DeviceStatus.VX110, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  610. LineWidth="4"
  611. Speed="10" />
  612. <bpa:HandValve
  613. x:Name="VX110"
  614. Width="35"
  615. Height="35"
  616. Margin="365,232,402,154"
  617. OpenEnable="{Binding DeviceStatus.VX110}"
  618. RenderTransformOrigin="0.5,0.5">
  619. <bpa:HandValve.RenderTransform>
  620. <TransformGroup>
  621. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  622. <SkewTransform />
  623. <RotateTransform Angle="90" />
  624. <TranslateTransform />
  625. </TransformGroup>
  626. </bpa:HandValve.RenderTransform>
  627. </bpa:HandValve>
  628. <!--#endregion-->
  629. <!--#region 阀门12 冷却水排水阀-->
  630. <TextBlock
  631. Canvas.Left="124"
  632. Canvas.Top="316"
  633. Foreground="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  634. Text="冷却水排水阀" />
  635. <bpa:PipeLineV
  636. Width="12"
  637. Height="50"
  638. Margin="105,290,402,154"
  639. Direction="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  640. Fill="{Binding DeviceStatus.VX111, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  641. LineWidth="4" />
  642. <bpa:HandValve
  643. x:Name="VX111"
  644. Width="35"
  645. Height="35"
  646. Margin="89,297,402,154"
  647. OpenEnable="{Binding DeviceStatus.VX111}"
  648. RenderTransformOrigin="0.5,0.5">
  649. <bpa:HandValve.RenderTransform>
  650. <TransformGroup>
  651. <ScaleTransform ScaleX="-0.926" ScaleY="1.08" />
  652. <SkewTransform />
  653. <RotateTransform Angle="270" />
  654. <TranslateTransform />
  655. </TransformGroup>
  656. </bpa:HandValve.RenderTransform>
  657. </bpa:HandValve>
  658. <!--#endregion-->
  659. <!--#region 阀门9-12链接-->
  660. <bpa:PipeLineH
  661. Width="95"
  662. Height="12"
  663. Margin="105,278,402,154"
  664. Direction="{Binding PipeLine.PipeH_3.Direction}"
  665. Fill="{Binding PipeLine.PipeH_3.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  666. LineWidth="4" />
  667. <!--#endregion-->
  668. <!--#region 阀门10-11连接-->
  669. <bpa:PipeLineH
  670. Width="95"
  671. Height="12"
  672. Margin="265,278,402,154"
  673. Direction="{Binding PipeLine.PipeH_2.Direction}"
  674. Fill="{Binding PipeLine.PipeH_2.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  675. LineWidth="4" />
  676. <!--#endregion-->
  677. <!--#region 阀门13分馏真空阀-->
  678. <bpa:PipeLineH
  679. Canvas.Left="607"
  680. Canvas.Top="142"
  681. Width="140"
  682. Height="10"
  683. Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  684. Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  685. Speed="10" />
  686. <bpa:PipeLineBL
  687. Canvas.Left="746"
  688. Canvas.Top="142"
  689. Width="20"
  690. Height="20"
  691. Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  692. Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  693. LineWidth="20"
  694. Speed="2" />
  695. <bpa:PipeLineV
  696. Canvas.Left="756"
  697. Canvas.Top="161"
  698. Width="10"
  699. Height="150"
  700. Direction="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  701. Fill="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  702. Speed="10" />
  703. <bpa:HandValve
  704. Canvas.Left="750"
  705. Canvas.Top="181"
  706. Width="30"
  707. Height="25"
  708. OpenEnable="{Binding DeviceStatus.VX112}"
  709. RenderTransformOrigin="0.5,0.5">
  710. <bpa:HandValve.RenderTransform>
  711. <TransformGroup>
  712. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  713. <SkewTransform />
  714. <RotateTransform Angle="90" />
  715. <TranslateTransform />
  716. </TransformGroup>
  717. </bpa:HandValve.RenderTransform>
  718. </bpa:HandValve>
  719. <TextBlock
  720. Canvas.Left="780"
  721. Canvas.Top="183"
  722. Foreground="{Binding DeviceStatus.VX112, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  723. Text="分馏真空阀" />
  724. <!--#endregion-->
  725. <!--#region 阀门14蒸馏真空阀-->
  726. <bpa:PipeLineH
  727. Canvas.Left="619"
  728. Canvas.Top="292"
  729. Width="128"
  730. Height="10"
  731. Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  732. Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  733. Speed="10" />
  734. <bpa:PipeLineBL
  735. Canvas.Left="746"
  736. Canvas.Top="292"
  737. Width="20"
  738. Height="20"
  739. Direction="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=1}"
  740. Fill="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  741. LineWidth="20"
  742. Speed="2" />
  743. <bpa:HandValve
  744. Canvas.Left="696"
  745. Canvas.Top="281"
  746. Width="30"
  747. Height="25"
  748. OpenEnable="{Binding DeviceStatus.VX113}" />
  749. <TextBlock
  750. Canvas.Left="680"
  751. Canvas.Top="310"
  752. Foreground="{Binding DeviceStatus.VX113, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  753. Text="蒸馏真空阀" />
  754. <!--#endregion-->
  755. <!--#region 阀门13-14连接-->
  756. <bpa:PipeLineV
  757. Canvas.Left="756"
  758. Canvas.Top="311"
  759. Width="10"
  760. Height="40"
  761. Direction="{Binding PipeLine.PipeH_4.Direction}"
  762. Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  763. Speed="4" />
  764. <bpa:PipeLineBR
  765. Canvas.Left="756"
  766. Canvas.Top="370"
  767. Width="20"
  768. Height="20"
  769. Direction="{Binding PipeLine.PipeH_4.Direction}"
  770. Fill="{Binding PipeLine.PipeH_4.Fill, Converter={StaticResource deviceConvert}, ConverterParameter=2}"
  771. LineWidth="20"
  772. Speed="4">
  773. <bpa:PipeLineBR.RenderTransform>
  774. <ScaleTransform ScaleY="-1.0" />
  775. </bpa:PipeLineBR.RenderTransform>
  776. </bpa:PipeLineBR>
  777. <!--#endregion-->
  778. <!--#region 反应釜搅拌-->
  779. <TextBlock
  780. Canvas.Left="170"
  781. Canvas.Top="150"
  782. Foreground="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  783. Text="反应釜搅拌" />
  784. <StackPanel
  785. Canvas.Left="200"
  786. Canvas.Top="175"
  787. Width="65"
  788. Height="220">
  789. <bpa:MotorTwo
  790. Width="40"
  791. Height="30"
  792. Margin="0,0,0,-1"
  793. MotorColors="{Binding DeviceStatus.M102, Converter={StaticResource deviceConvert}, ConverterParameter=3}"
  794. RenderTransformOrigin="0.5,0.5">
  795. <bpa:MotorTwo.RenderTransform>
  796. <TransformGroup>
  797. <ScaleTransform />
  798. <SkewTransform />
  799. <RotateTransform Angle="90" />
  800. <TranslateTransform />
  801. </TransformGroup>
  802. </bpa:MotorTwo.RenderTransform>
  803. </bpa:MotorTwo>
  804. <bpa:Joint
  805. Width="40"
  806. Height="30"
  807. Margin="0,0,0,-3" />
  808. <local:RetortTank
  809. Width="65"
  810. Height="120"
  811. Margin="0,4,0,0" />
  812. <bpa:HandValve
  813. Width="48"
  814. Height="65"
  815. Margin="0,-24,-14,0"
  816. RenderTransformOrigin="0.5,0.5">
  817. <bpa:HandValve.RenderTransform>
  818. <TransformGroup>
  819. <ScaleTransform ScaleX="0.926" ScaleY="1.08" />
  820. <SkewTransform />
  821. <RotateTransform Angle="90" />
  822. <TranslateTransform />
  823. </TransformGroup>
  824. </bpa:HandValve.RenderTransform>
  825. </bpa:HandValve>
  826. </StackPanel>
  827. <!--#endregion-->
  828. <!--#region 水罐-->
  829. <bpa:Tanks
  830. Canvas.Left="570"
  831. Canvas.Top="280"
  832. Width="60"
  833. Height="60"
  834. Margin="0,-5,-15,0" />
  835. <!--#endregion-->
  836. <!--#region 真空泵-->
  837. <bpa:MotorTwo
  838. Canvas.Left="841"
  839. Canvas.Top="380"
  840. Width="40"
  841. Height="25"
  842. MotorColors="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=3}">
  843. <bpa:MotorTwo.RenderTransform>
  844. <RotateTransform Angle="180" />
  845. </bpa:MotorTwo.RenderTransform>
  846. </bpa:MotorTwo>
  847. <bpa:Joint
  848. Canvas.Left="817"
  849. Canvas.Top="355"
  850. Height="36">
  851. <bpa:Joint.RenderTransform>
  852. <ScaleTransform ScaleX="-1.0" />
  853. </bpa:Joint.RenderTransform>
  854. </bpa:Joint>
  855. <bpa:Tanks
  856. Canvas.Left="770"
  857. Canvas.Top="384"
  858. Width="50"
  859. Height="50" />
  860. <TextBlock
  861. Canvas.Left="775"
  862. Canvas.Top="333"
  863. Foreground="{Binding DeviceStatus.M103, Converter={StaticResource deviceConvert}, ConverterParameter=4}"
  864. Text="分馏真空泵" />
  865. <!--#endregion-->
  866. <!--#region 仪器标注-->
  867. <TextBlock
  868. Canvas.Left="104"
  869. Canvas.Top="84"
  870. Foreground="Blue"
  871. Text="配料罐" />
  872. <TextBlock
  873. Canvas.Left="92"
  874. Canvas.Top="70"
  875. Width="60"
  876. Foreground="Red"
  877. Text="{Binding DeviceStatus.TempMaterial, StringFormat='{}{0}℃'}"
  878. TextAlignment="Center" />
  879. <TextBlock
  880. Canvas.Left="214"
  881. Canvas.Top="290"
  882. Foreground="Blue"
  883. Text="反应釜" />
  884. <TextBlock
  885. Canvas.Left="203"
  886. Canvas.Top="260"
  887. Width="60"
  888. Foreground="Red"
  889. Text="{Binding DeviceStatus.TempWok, StringFormat='{}{0}℃'}"
  890. TextAlignment="Center" />
  891. <TextBlock
  892. Canvas.Left="569"
  893. Canvas.Top="88"
  894. Foreground="Blue"
  895. Text="冷凝器" />
  896. <TextBlock
  897. Canvas.Left="389"
  898. Canvas.Top="30"
  899. Width="150"
  900. Foreground="Red"
  901. Text="{Binding DeviceStatus.TempVent, StringFormat='反应釜排气温度:{0}℃'}"
  902. TextAlignment="Center" />
  903. <TextBlock
  904. Canvas.Left="569"
  905. Canvas.Top="168"
  906. Foreground="Blue"
  907. Text="蒸馏罐" />
  908. <TextBlock
  909. Canvas.Left="589"
  910. Canvas.Top="312"
  911. Foreground="Blue"
  912. Text="水罐" />
  913. <TextBlock
  914. Canvas.Left="570"
  915. Canvas.Top="295"
  916. Width="60"
  917. FontSize="9"
  918. Foreground="Red"
  919. Text="{Binding DeviceStatus.WeightWok, StringFormat='{}{0:f2}g'}"
  920. TextAlignment="Center" />
  921. <TextBlock
  922. Canvas.Left="780"
  923. Canvas.Top="414"
  924. FontSize="10"
  925. Foreground="Blue"
  926. Text="真空泵" />
  927. <!--#endregion-->
  928. <!--#region 水罐重量清零-->
  929. <Button
  930. Canvas.Left="480"
  931. Canvas.Top="370"
  932. Width="100"
  933. Height="25"
  934. VerticalAlignment="Center"
  935. Click="ClearBtn_CLick"
  936. Content="水罐重量清零"
  937. FontSize="10"
  938. Style="{StaticResource ButtonStyle}" />
  939. <!--#endregion-->
  940. <!--#region 控制按钮-->
  941. <StackPanel
  942. Canvas.Left="-20"
  943. Canvas.Top="-5"
  944. Orientation="Vertical">
  945. <RadioButton
  946. Width="70"
  947. Height="22"
  948. Margin="0,0,0,2"
  949. BorderThickness="0"
  950. Click="Open_Click"
  951. Content="配料搅拌:开"
  952. FontSize="10"
  953. Foreground="White"
  954. GroupName="1"
  955. Style="{StaticResource radiobutton}"
  956. Tag="0" />
  957. <RadioButton
  958. Width="70"
  959. Height="22"
  960. BorderThickness="0"
  961. Click="Close_Click"
  962. Content="配料搅拌:关"
  963. FontSize="10"
  964. Foreground="White"
  965. GroupName="1"
  966. IsChecked="True"
  967. Style="{StaticResource radiobutton}"
  968. Tag="0" />
  969. </StackPanel>
  970. <StackPanel
  971. Canvas.Left="-5"
  972. Canvas.Top="118"
  973. Orientation="Vertical">
  974. <RadioButton
  975. Width="70"
  976. Height="22"
  977. Margin="0,0,0,2"
  978. BorderThickness="0"
  979. Click="Open_Click"
  980. Content="进料阀:开"
  981. FontSize="10"
  982. Foreground="White"
  983. GroupName="2"
  984. Style="{StaticResource radiobutton}"
  985. Tag="3" />
  986. <RadioButton
  987. Width="70"
  988. Height="22"
  989. BorderThickness="0"
  990. Click="Close_Click"
  991. Content="进料阀:关"
  992. FontSize="10"
  993. Foreground="White"
  994. GroupName="2"
  995. IsChecked="True"
  996. Style="{StaticResource radiobutton}"
  997. Tag="3" />
  998. </StackPanel>
  999. <StackPanel
  1000. Canvas.Left="144"
  1001. Canvas.Top="180"
  1002. Orientation="Vertical">
  1003. <RadioButton
  1004. Width="70"
  1005. Height="22"
  1006. Margin="0,0,0,2"
  1007. BorderThickness="0"
  1008. Click="Open_Click"
  1009. Content="反应釜搅拌:开"
  1010. FontSize="10"
  1011. Foreground="White"
  1012. GroupName="3"
  1013. Style="{StaticResource radiobutton}"
  1014. Tag="1" />
  1015. <RadioButton
  1016. Width="70"
  1017. Height="22"
  1018. BorderThickness="0"
  1019. Click="Close_Click"
  1020. Content="反应釜搅拌:关"
  1021. FontSize="10"
  1022. Foreground="White"
  1023. GroupName="3"
  1024. IsChecked="True"
  1025. Style="{StaticResource radiobutton}"
  1026. Tag="1" />
  1027. </StackPanel>
  1028. <StackPanel
  1029. Canvas.Left="265"
  1030. Canvas.Top="110"
  1031. Orientation="Vertical">
  1032. <RadioButton
  1033. Width="70"
  1034. Height="22"
  1035. Margin="0,0,0,2"
  1036. BorderThickness="0"
  1037. Click="Open_Click"
  1038. Content="蒸馏阀:开"
  1039. FontSize="10"
  1040. Foreground="White"
  1041. GroupName="4"
  1042. Style="{StaticResource radiobutton}"
  1043. Tag="4" />
  1044. <RadioButton
  1045. Width="70"
  1046. Height="22"
  1047. BorderThickness="0"
  1048. Click="Close_Click"
  1049. Content="蒸馏阀:关"
  1050. FontSize="10"
  1051. Foreground="White"
  1052. GroupName="4"
  1053. IsChecked="True"
  1054. Style="{StaticResource radiobutton}"
  1055. Tag="4" />
  1056. </StackPanel>
  1057. <StackPanel
  1058. Canvas.Left="475"
  1059. Canvas.Top="90"
  1060. Orientation="Vertical">
  1061. <RadioButton
  1062. Width="70"
  1063. Height="22"
  1064. Margin="0,0,0,2"
  1065. BorderThickness="0"
  1066. Click="Open_Click"
  1067. Content="回油阀:开"
  1068. FontSize="10"
  1069. Foreground="White"
  1070. GroupName="5"
  1071. Style="{StaticResource radiobutton}"
  1072. Tag="5" />
  1073. <RadioButton
  1074. Width="70"
  1075. Height="22"
  1076. BorderThickness="0"
  1077. Click="Close_Click"
  1078. Content="回油阀:关"
  1079. FontSize="10"
  1080. Foreground="White"
  1081. GroupName="5"
  1082. IsChecked="True"
  1083. Style="{StaticResource radiobutton}"
  1084. Tag="5" />
  1085. </StackPanel>
  1086. <StackPanel
  1087. Canvas.Left="475"
  1088. Canvas.Top="240"
  1089. Orientation="Vertical">
  1090. <RadioButton
  1091. Width="70"
  1092. Height="22"
  1093. Margin="0,0,0,2"
  1094. BorderThickness="0"
  1095. Click="Open_Click"
  1096. Content="回水阀:开"
  1097. FontSize="10"
  1098. Foreground="White"
  1099. GroupName="6"
  1100. Style="{StaticResource radiobutton}"
  1101. Tag="6" />
  1102. <RadioButton
  1103. Width="70"
  1104. Height="22"
  1105. BorderThickness="0"
  1106. Click="Close_Click"
  1107. Content="回水阀:关"
  1108. FontSize="10"
  1109. Foreground="White"
  1110. GroupName="6"
  1111. IsChecked="True"
  1112. Style="{StaticResource radiobutton}"
  1113. Tag="6" />
  1114. </StackPanel>
  1115. <StackPanel
  1116. Canvas.Left="645"
  1117. Canvas.Top="224"
  1118. Orientation="Vertical">
  1119. <RadioButton
  1120. Width="70"
  1121. Height="22"
  1122. Margin="0,0,0,2"
  1123. BorderThickness="0"
  1124. Click="Open_Click"
  1125. Content="汇馏阀:开"
  1126. FontSize="10"
  1127. Foreground="White"
  1128. GroupName="7"
  1129. Style="{StaticResource radiobutton}"
  1130. Tag="7" />
  1131. <RadioButton
  1132. Width="70"
  1133. Height="22"
  1134. BorderThickness="0"
  1135. Click="Close_Click"
  1136. Content="汇馏阀:关"
  1137. FontSize="10"
  1138. Foreground="White"
  1139. GroupName="7"
  1140. IsChecked="True"
  1141. Style="{StaticResource radiobutton}"
  1142. Tag="7" />
  1143. </StackPanel>
  1144. <StackPanel
  1145. Canvas.Left="605"
  1146. Canvas.Top="376"
  1147. Orientation="Vertical">
  1148. <RadioButton
  1149. Width="70"
  1150. Height="22"
  1151. Margin="0,0,0,2"
  1152. BorderThickness="0"
  1153. Click="Open_Click"
  1154. Content="排馏阀:开"
  1155. FontSize="10"
  1156. Foreground="White"
  1157. GroupName="8"
  1158. Style="{StaticResource radiobutton}"
  1159. Tag="8" />
  1160. <RadioButton
  1161. Width="70"
  1162. Height="22"
  1163. BorderThickness="0"
  1164. Click="Close_Click"
  1165. Content="排馏阀:关"
  1166. FontSize="10"
  1167. Foreground="White"
  1168. GroupName="8"
  1169. IsChecked="True"
  1170. Style="{StaticResource radiobutton}"
  1171. Tag="8" />
  1172. </StackPanel>
  1173. <StackPanel
  1174. Canvas.Left="603"
  1175. Canvas.Top="-30"
  1176. Orientation="Vertical">
  1177. <RadioButton
  1178. Width="100"
  1179. Height="28"
  1180. Margin="0,0,0,2"
  1181. BorderThickness="0"
  1182. Click="Open_Click"
  1183. Content="冷凝器冷却水阀:开"
  1184. FontSize="10"
  1185. Foreground="White"
  1186. GroupName="9"
  1187. Style="{StaticResource radiobutton}"
  1188. Tag="9" />
  1189. <RadioButton
  1190. Width="100"
  1191. Height="28"
  1192. BorderThickness="0"
  1193. Click="Close_Click"
  1194. Content="冷凝器冷却水阀:关"
  1195. FontSize="10"
  1196. Foreground="White"
  1197. GroupName="9"
  1198. IsChecked="True"
  1199. Style="{StaticResource radiobutton}"
  1200. Tag="9" />
  1201. </StackPanel>
  1202. <StackPanel
  1203. Canvas.Left="150"
  1204. Canvas.Top="0"
  1205. Orientation="Vertical">
  1206. <RadioButton
  1207. Width="90"
  1208. Height="25"
  1209. Margin="0,0,0,2"
  1210. BorderThickness="0"
  1211. Click="Open_Click"
  1212. Content="配料釜蒸汽阀:开"
  1213. FontSize="10"
  1214. Foreground="White"
  1215. GroupName="10"
  1216. Style="{StaticResource radiobutton}"
  1217. Tag="10" />
  1218. <RadioButton
  1219. Width="90"
  1220. Height="25"
  1221. BorderThickness="0"
  1222. Click="Close_Click"
  1223. Content="配料釜蒸汽阀:关"
  1224. FontSize="10"
  1225. Foreground="White"
  1226. GroupName="10"
  1227. IsChecked="True"
  1228. Style="{StaticResource radiobutton}"
  1229. Tag="10" />
  1230. </StackPanel>
  1231. <StackPanel
  1232. Canvas.Left="-65"
  1233. Canvas.Top="234"
  1234. Orientation="Vertical">
  1235. <RadioButton
  1236. Width="90"
  1237. Height="25"
  1238. Margin="0,0,0,2"
  1239. BorderThickness="0"
  1240. Click="Open_Click"
  1241. Content="反应釜蒸汽阀:开"
  1242. FontSize="10"
  1243. Foreground="White"
  1244. GroupName="11"
  1245. Style="{StaticResource radiobutton}"
  1246. Tag="11" />
  1247. <RadioButton
  1248. Width="90"
  1249. Height="25"
  1250. BorderThickness="0"
  1251. Click="Close_Click"
  1252. Content="反应釜蒸汽阀:关"
  1253. FontSize="10"
  1254. Foreground="White"
  1255. GroupName="11"
  1256. IsChecked="True"
  1257. Style="{StaticResource radiobutton}"
  1258. Tag="11" />
  1259. </StackPanel>
  1260. <StackPanel
  1261. Canvas.Left="265"
  1262. Canvas.Top="346"
  1263. Orientation="Vertical">
  1264. <RadioButton
  1265. Width="110"
  1266. Height="30"
  1267. Margin="0,0,0,2"
  1268. BorderThickness="0"
  1269. Click="Open_Click"
  1270. Content="反应釜蒸汽疏水阀:开"
  1271. FontSize="10"
  1272. Foreground="White"
  1273. GroupName="12"
  1274. Style="{StaticResource radiobutton}"
  1275. Tag="12" />
  1276. <RadioButton
  1277. Width="110"
  1278. Height="30"
  1279. BorderThickness="0"
  1280. Click="Close_Click"
  1281. Content="反应釜蒸汽疏水阀:关"
  1282. FontSize="10"
  1283. Foreground="White"
  1284. GroupName="12"
  1285. IsChecked="True"
  1286. Style="{StaticResource radiobutton}"
  1287. Tag="12" />
  1288. </StackPanel>
  1289. <StackPanel
  1290. Canvas.Left="370"
  1291. Canvas.Top="288"
  1292. Orientation="Vertical">
  1293. <RadioButton
  1294. Width="120"
  1295. Height="30"
  1296. Margin="0,0,0,2"
  1297. BorderThickness="0"
  1298. Click="Open_Click"
  1299. Content="反应釜冷却水给水阀:开"
  1300. FontSize="10"
  1301. Foreground="White"
  1302. GroupName="13"
  1303. Style="{StaticResource radiobutton}"
  1304. Tag="13" />
  1305. <RadioButton
  1306. Width="120"
  1307. Height="30"
  1308. BorderThickness="0"
  1309. Click="Close_Click"
  1310. Content="反应釜冷却水给水阀:关"
  1311. FontSize="10"
  1312. Foreground="White"
  1313. GroupName="13"
  1314. IsChecked="True"
  1315. Style="{StaticResource radiobutton}"
  1316. Tag="13" />
  1317. </StackPanel>
  1318. <StackPanel
  1319. Canvas.Left="92"
  1320. Canvas.Top="348"
  1321. Orientation="Vertical">
  1322. <RadioButton
  1323. Width="120"
  1324. Height="30"
  1325. Margin="0,0,0,2"
  1326. BorderThickness="0"
  1327. Click="Open_Click"
  1328. Content="反应釜冷却水给水阀:开"
  1329. FontSize="10"
  1330. Foreground="White"
  1331. GroupName="18"
  1332. Style="{StaticResource radiobutton}"
  1333. Tag="18" />
  1334. <RadioButton
  1335. Width="120"
  1336. Height="30"
  1337. BorderThickness="0"
  1338. Click="Close_Click"
  1339. Content="反应釜冷却水给水阀:关"
  1340. FontSize="10"
  1341. Foreground="White"
  1342. GroupName="18"
  1343. IsChecked="True"
  1344. Style="{StaticResource radiobutton}"
  1345. Tag="18" />
  1346. </StackPanel>
  1347. <StackPanel
  1348. Canvas.Left="775"
  1349. Canvas.Top="128"
  1350. Orientation="Vertical">
  1351. <RadioButton
  1352. Width="70"
  1353. Height="22"
  1354. Margin="0,0,0,2"
  1355. BorderThickness="0"
  1356. Click="Open_Click"
  1357. Content="分馏真空阀:开"
  1358. FontSize="10"
  1359. Foreground="White"
  1360. GroupName="19"
  1361. Style="{StaticResource radiobutton}"
  1362. Tag="19" />
  1363. <RadioButton
  1364. Width="70"
  1365. Height="22"
  1366. BorderThickness="0"
  1367. Click="Close_Click"
  1368. Content="分馏真空阀:关"
  1369. FontSize="10"
  1370. Foreground="White"
  1371. GroupName="19"
  1372. IsChecked="True"
  1373. Style="{StaticResource radiobutton}"
  1374. Tag="19" />
  1375. </StackPanel>
  1376. <StackPanel
  1377. Canvas.Left="678"
  1378. Canvas.Top="336"
  1379. Orientation="Vertical">
  1380. <RadioButton
  1381. Width="70"
  1382. Height="22"
  1383. Margin="0,0,0,2"
  1384. BorderThickness="0"
  1385. Click="Open_Click"
  1386. Content="蒸馏真空阀:开"
  1387. FontSize="10"
  1388. Foreground="White"
  1389. GroupName="20"
  1390. Style="{StaticResource radiobutton}"
  1391. Tag="20" />
  1392. <RadioButton
  1393. Width="70"
  1394. Height="22"
  1395. BorderThickness="0"
  1396. Click="Close_Click"
  1397. Content="蒸馏真空阀:关"
  1398. FontSize="10"
  1399. Foreground="White"
  1400. GroupName="20"
  1401. IsChecked="True"
  1402. Style="{StaticResource radiobutton}"
  1403. Tag="20" />
  1404. </StackPanel>
  1405. <StackPanel
  1406. Canvas.Left="772"
  1407. Canvas.Top="286"
  1408. Orientation="Vertical">
  1409. <RadioButton
  1410. Width="70"
  1411. Height="22"
  1412. Margin="0,0,0,2"
  1413. BorderThickness="0"
  1414. Click="Open_Click"
  1415. Content="真空泵:开"
  1416. FontSize="10"
  1417. Foreground="White"
  1418. GroupName="20"
  1419. Style="{StaticResource radiobutton}"
  1420. Tag="2" />
  1421. <RadioButton
  1422. Width="70"
  1423. Height="22"
  1424. BorderThickness="0"
  1425. Click="Close_Click"
  1426. Content="真空泵:关"
  1427. FontSize="10"
  1428. Foreground="White"
  1429. GroupName="20"
  1430. IsChecked="True"
  1431. Style="{StaticResource radiobutton}"
  1432. Tag="2" />
  1433. </StackPanel>
  1434. <!--#endregion-->
  1435. <!--#region 新增按钮-->
  1436. <StackPanel
  1437. Canvas.Left="705"
  1438. Canvas.Top="-30"
  1439. Orientation="Vertical">
  1440. <RadioButton
  1441. Width="70"
  1442. Height="20"
  1443. Margin="0,0,0,2"
  1444. BorderThickness="0"
  1445. Click="new_Click"
  1446. Content="闪蒸:开"
  1447. FontSize="8"
  1448. Foreground="White"
  1449. GroupName="t1"
  1450. Style="{StaticResource radiobutton}"
  1451. Tag="0" />
  1452. <RadioButton
  1453. Width="70"
  1454. Height="20"
  1455. BorderThickness="0"
  1456. Click="new_Click"
  1457. Content="闪蒸:关"
  1458. FontSize="8"
  1459. Foreground="White"
  1460. GroupName="t1"
  1461. IsChecked="True"
  1462. Style="{StaticResource radiobutton}"
  1463. Tag="0" />
  1464. </StackPanel>
  1465. <StackPanel
  1466. Canvas.Left="785"
  1467. Canvas.Top="-30"
  1468. Orientation="Vertical">
  1469. <RadioButton
  1470. Width="70"
  1471. Height="20"
  1472. Margin="0,0,0,2"
  1473. BorderThickness="0"
  1474. Click="new_Click"
  1475. Content="真空蒸馏:开"
  1476. FontSize="8"
  1477. Foreground="White"
  1478. GroupName="t2"
  1479. Style="{StaticResource radiobutton}"
  1480. Tag="1" />
  1481. <RadioButton
  1482. Width="70"
  1483. Height="20"
  1484. BorderThickness="0"
  1485. Click="new_Click"
  1486. Content="真空蒸馏:关"
  1487. FontSize="8"
  1488. Foreground="White"
  1489. GroupName="t2"
  1490. IsChecked="True"
  1491. Style="{StaticResource radiobutton}"
  1492. Tag="1" />
  1493. </StackPanel>
  1494. <StackPanel
  1495. Canvas.Left="705"
  1496. Canvas.Top="20"
  1497. Orientation="Vertical">
  1498. <RadioButton
  1499. Width="70"
  1500. Height="20"
  1501. Margin="0,0,0,2"
  1502. BorderThickness="0"
  1503. Click="new_Click"
  1504. Content="真空下料:开"
  1505. FontSize="8"
  1506. Foreground="White"
  1507. GroupName="t3"
  1508. Style="{StaticResource radiobutton}"
  1509. Tag="2" />
  1510. <RadioButton
  1511. Width="70"
  1512. Height="20"
  1513. BorderThickness="0"
  1514. Click="new_Click"
  1515. Content="真空下料:关"
  1516. FontSize="8"
  1517. Foreground="White"
  1518. GroupName="t3"
  1519. IsChecked="True"
  1520. Style="{StaticResource radiobutton}"
  1521. Tag="2" />
  1522. </StackPanel>
  1523. <StackPanel
  1524. Canvas.Left="785"
  1525. Canvas.Top="20"
  1526. Orientation="Vertical">
  1527. <RadioButton
  1528. Width="70"
  1529. Height="20"
  1530. Margin="0,0,0,2"
  1531. BorderThickness="0"
  1532. Click="new_Click"
  1533. Content="加压出料:开"
  1534. FontSize="8"
  1535. Foreground="White"
  1536. GroupName="t4"
  1537. Style="{StaticResource radiobutton}"
  1538. Tag="3" />
  1539. <RadioButton
  1540. Width="70"
  1541. Height="20"
  1542. BorderThickness="0"
  1543. Click="new_Click"
  1544. Content="加压出料:关"
  1545. FontSize="8"
  1546. Foreground="White"
  1547. GroupName="t4"
  1548. IsChecked="True"
  1549. Style="{StaticResource radiobutton}"
  1550. Tag="3" />
  1551. </StackPanel>
  1552. <StackPanel
  1553. Canvas.Left="745"
  1554. Canvas.Top="70"
  1555. Orientation="Vertical">
  1556. <RadioButton
  1557. Width="70"
  1558. Height="20"
  1559. Margin="0,0,0,2"
  1560. BorderThickness="0"
  1561. Click="new_Click"
  1562. Content="排空阀:开"
  1563. FontSize="8"
  1564. Foreground="White"
  1565. GroupName="t5"
  1566. Style="{StaticResource radiobutton}"
  1567. Tag="4" />
  1568. <RadioButton
  1569. Width="70"
  1570. Height="20"
  1571. BorderThickness="0"
  1572. Click="new_Click"
  1573. Content="排空阀:关"
  1574. FontSize="8"
  1575. Foreground="White"
  1576. GroupName="t5"
  1577. IsChecked="True"
  1578. Style="{StaticResource radiobutton}"
  1579. Tag="4" />
  1580. </StackPanel>
  1581. <!--#endregion-->
  1582. </Canvas>
  1583. </Viewbox>
  1584. </Grid>
  1585. <Grid>
  1586. <Grid>
  1587. <Grid.RowDefinitions>
  1588. <RowDefinition Height="50" />
  1589. <RowDefinition />
  1590. <RowDefinition Height="200" />
  1591. </Grid.RowDefinitions>
  1592. <StackPanel
  1593. Margin="200,0,0,0"
  1594. HorizontalAlignment="Left"
  1595. VerticalAlignment="Center"
  1596. Orientation="Horizontal">
  1597. <TextBlock
  1598. VerticalAlignment="Center"
  1599. FontSize="20"
  1600. Foreground="White"
  1601. Text="请输入产品编号:" />
  1602. <TextBox
  1603. x:Name="recipeName"
  1604. Width="200"
  1605. Height="40"
  1606. VerticalAlignment="Center"
  1607. FontSize="20"
  1608. Text="{Binding Name}" />
  1609. <Button
  1610. Margin="10,0,10,0"
  1611. Command="{Binding DataRecordCommand}"
  1612. Content="选择设备类型"
  1613. Style="{StaticResource ButtonStyle}" />
  1614. </StackPanel>
  1615. <CheckBox
  1616. x:Name="start_check"
  1617. Width="160"
  1618. Height="50"
  1619. HorizontalAlignment="Left"
  1620. VerticalAlignment="Top"
  1621. Command="{Binding Start}"
  1622. Content="{Binding Content}"
  1623. FontSize="30"
  1624. IsChecked="{Binding IsChecked}"
  1625. Style="{StaticResource Beveledcheck}" />
  1626. <Grid Grid.Row="2">
  1627. <Grid.RowDefinitions>
  1628. <RowDefinition Height="30" />
  1629. <RowDefinition Height="50" />
  1630. <RowDefinition />
  1631. </Grid.RowDefinitions>
  1632. <TextBlock
  1633. Margin="20,0"
  1634. HorizontalAlignment="Left"
  1635. VerticalAlignment="Top"
  1636. FontSize="20"
  1637. Foreground="White"
  1638. Text="温度控制及校准:" />
  1639. <StackPanel
  1640. Grid.Row="1"
  1641. Margin="20,2,30,0"
  1642. HorizontalAlignment="Left"
  1643. VerticalAlignment="Bottom"
  1644. Orientation="Horizontal">
  1645. <RadioButton
  1646. Height="40"
  1647. Click="auto_click"
  1648. Content="配料罐升温"
  1649. GroupName="heat"
  1650. IsChecked="True"
  1651. Style="{StaticResource RectangleRadioButtonStyle}" />
  1652. <RadioButton
  1653. Height="40"
  1654. Click="auto_click"
  1655. Content="反应釜升温"
  1656. GroupName="heat"
  1657. Style="{StaticResource RectangleRadioButtonStyle}" />
  1658. <RadioButton
  1659. Height="40"
  1660. Click="auto_click"
  1661. Content="反应釜降温"
  1662. GroupName="heat"
  1663. Style="{StaticResource RectangleRadioButtonStyle}" />
  1664. <RadioButton
  1665. Height="40"
  1666. Click="auto_click"
  1667. Content="温度校准"
  1668. GroupName="heat"
  1669. Style="{StaticResource RectangleRadioButtonStyle}" />
  1670. </StackPanel>
  1671. <Border
  1672. Grid.Row="2"
  1673. Margin="20,0,30,10"
  1674. BorderBrush="#ff2AB2E7"
  1675. BorderThickness="2">
  1676. <UniformGrid Rows="2">
  1677. <Grid>
  1678. <WrapPanel x:Name="wokTemp" Margin="0,15,0,0">
  1679. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1680. <TextBlock
  1681. Margin="40,0,20,0"
  1682. HorizontalAlignment="Center"
  1683. VerticalAlignment="Center"
  1684. FontSize="16"
  1685. Foreground="White"
  1686. Text="设置温度:" />
  1687. <TextBox
  1688. x:Name="temp_1"
  1689. Width="120"
  1690. HorizontalAlignment="Center"
  1691. VerticalAlignment="Center"
  1692. Text="0" />
  1693. <TextBlock
  1694. Margin="20,0"
  1695. HorizontalAlignment="Center"
  1696. VerticalAlignment="Center"
  1697. FontSize="16"
  1698. Foreground="White"
  1699. Text="℃" />
  1700. <RadioButton
  1701. Width="100"
  1702. Height="30"
  1703. HorizontalAlignment="Right"
  1704. VerticalAlignment="Center"
  1705. BorderThickness="0"
  1706. Click="TempSet_CLick"
  1707. Content="启动"
  1708. Foreground="White"
  1709. GroupName="tempctrl"
  1710. Style="{StaticResource radiobutton}" />
  1711. <RadioButton
  1712. Width="100"
  1713. Height="30"
  1714. Margin="40,0,0,0"
  1715. BorderThickness="0"
  1716. Click="TempCLose_CLick"
  1717. Content="停止"
  1718. Foreground="White"
  1719. GroupName="tempctrl"
  1720. IsChecked="True"
  1721. Style="{StaticResource radiobutton}" />
  1722. </StackPanel>
  1723. </WrapPanel>
  1724. <WrapPanel
  1725. x:Name="caliTemp"
  1726. Margin="0,15,0,0"
  1727. Visibility="Collapsed">
  1728. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1729. <TextBlock
  1730. Margin="40,0,20,0"
  1731. HorizontalAlignment="Center"
  1732. VerticalAlignment="Center"
  1733. FontSize="14"
  1734. Foreground="White"
  1735. Text="反应釜排气温度校准:" />
  1736. <TextBox
  1737. x:Name="tempvent"
  1738. Width="120"
  1739. HorizontalAlignment="Center"
  1740. VerticalAlignment="Center"
  1741. Text="0" />
  1742. <TextBlock
  1743. Margin="20,0"
  1744. HorizontalAlignment="Center"
  1745. VerticalAlignment="Center"
  1746. FontSize="14"
  1747. Foreground="White"
  1748. Text="℃" />
  1749. </StackPanel>
  1750. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1751. <TextBlock
  1752. Margin="40,0,20,0"
  1753. HorizontalAlignment="Center"
  1754. VerticalAlignment="Center"
  1755. FontSize="16"
  1756. Foreground="White"
  1757. Text="配料罐温度校准:" />
  1758. <TextBox
  1759. x:Name="tempmaterial"
  1760. Width="120"
  1761. HorizontalAlignment="Center"
  1762. VerticalAlignment="Center"
  1763. Text="0" />
  1764. <TextBlock
  1765. Margin="20,0"
  1766. HorizontalAlignment="Center"
  1767. VerticalAlignment="Center"
  1768. FontSize="14"
  1769. Foreground="White"
  1770. Text="℃" />
  1771. </StackPanel>
  1772. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  1773. <TextBlock
  1774. Margin="40,0,20,0"
  1775. HorizontalAlignment="Center"
  1776. VerticalAlignment="Center"
  1777. FontSize="14"
  1778. Foreground="White"
  1779. Text="反应釜温度校准:" />
  1780. <TextBox
  1781. x:Name="tempwok"
  1782. Width="120"
  1783. HorizontalAlignment="Center"
  1784. VerticalAlignment="Center"
  1785. Text="0" />
  1786. <TextBlock
  1787. Margin="20,0"
  1788. HorizontalAlignment="Center"
  1789. VerticalAlignment="Center"
  1790. FontSize="14"
  1791. Foreground="White"
  1792. Text="℃" />
  1793. </StackPanel>
  1794. <Button
  1795. Width="120"
  1796. Height="30"
  1797. HorizontalAlignment="Right"
  1798. VerticalAlignment="Center"
  1799. Click="TempSet_CLick"
  1800. Content="确认"
  1801. Style="{StaticResource ButtonStyle}" />
  1802. </WrapPanel>
  1803. </Grid>
  1804. </UniformGrid>
  1805. </Border>
  1806. </Grid>
  1807. </Grid>
  1808. </Grid>
  1809. </Grid>
  1810. </Grid>
  1811. <TextBlock
  1812. x:Name="state"
  1813. HorizontalAlignment="Center"
  1814. VerticalAlignment="Center"
  1815. FontSize="100"
  1816. FontWeight="Black"
  1817. Text="设备未连接"
  1818. Visibility="Collapsed" />
  1819. <Grid
  1820. x:Name="hzSet"
  1821. Width="800"
  1822. Height="500"
  1823. Visibility="Collapsed">
  1824. <Grid.Background>
  1825. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
  1826. </Grid.Background>
  1827. <Grid.RowDefinitions>
  1828. <RowDefinition />
  1829. <RowDefinition Height="5*" />
  1830. </Grid.RowDefinitions>
  1831. <TextBlock
  1832. HorizontalAlignment="Center"
  1833. VerticalAlignment="Center"
  1834. FontSize="30"
  1835. Foreground="White"
  1836. Text="设置频率" />
  1837. <UniformGrid
  1838. Grid.Row="1"
  1839. Margin="0,0,0,40"
  1840. Rows="3">
  1841. <TextBlock
  1842. x:Name="motorName"
  1843. Margin="60,0,0,0"
  1844. HorizontalAlignment="Left"
  1845. VerticalAlignment="Center"
  1846. FontSize="25"
  1847. Foreground="White"
  1848. Text="配料搅拌频率:" />
  1849. <StackPanel
  1850. HorizontalAlignment="Center"
  1851. VerticalAlignment="Center"
  1852. Orientation="Horizontal">
  1853. <TextBox
  1854. x:Name="motorValue"
  1855. Width="260"
  1856. Height="46"
  1857. HorizontalContentAlignment="Center"
  1858. VerticalContentAlignment="Center"
  1859. FontSize="25"
  1860. Foreground="White"
  1861. TextAlignment="Center" />
  1862. <TextBlock
  1863. Margin="20,0,0,0"
  1864. HorizontalAlignment="Left"
  1865. VerticalAlignment="Center"
  1866. FontSize="25"
  1867. Foreground="White"
  1868. Text="%(范围:20-100)" />
  1869. </StackPanel>
  1870. <StackPanel
  1871. Margin="0,0,50,0"
  1872. HorizontalAlignment="Right"
  1873. VerticalAlignment="Center"
  1874. Orientation="Horizontal">
  1875. <Button
  1876. Width="120"
  1877. Height="40"
  1878. HorizontalAlignment="Right"
  1879. VerticalAlignment="Center"
  1880. Click="hzSet_Click"
  1881. Content="确认"
  1882. Style="{StaticResource ButtonStyle}" />
  1883. <Button
  1884. Width="120"
  1885. Height="40"
  1886. HorizontalAlignment="Right"
  1887. VerticalAlignment="Center"
  1888. Click="hzCancel_Click"
  1889. Content="取消"
  1890. Style="{StaticResource ButtonStyle}" />
  1891. </StackPanel>
  1892. </UniformGrid>
  1893. </Grid>
  1894. </Grid>
  1895. </UserControl>