LiquidManualWindow.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <UserControl
  2. x:Class="SHJX.Service.Shell.Views.Manual.LiquidManualWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:CustomUI="clr-namespace:CustomUI;assembly=SHJX.Service.Library"
  6. xmlns:ManualControl="clr-namespace:SHJX.Service.Library.Views.ManualControl;assembly=SHJX.Service.Library"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  11. d:DesignHeight="800"
  12. d:DesignWidth="900"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. mc:Ignorable="d">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition />
  18. <RowDefinition />
  19. <RowDefinition />
  20. <RowDefinition />
  21. </Grid.RowDefinitions>
  22. <GroupBox
  23. Grid.Row="0"
  24. Width="800"
  25. Height="200"
  26. Margin="0,5,0,5"
  27. HorizontalAlignment="Center"
  28. VerticalAlignment="Center"
  29. pu:GroupBoxHelper.CornerRadius="5"
  30. pu:GroupBoxHelper.IsSplitLineVisible="True"
  31. pu:GroupBoxHelper.ShadowColor="LightGray"
  32. Header="液体控制(s)">
  33. <UniformGrid Columns="5" Rows="1">
  34. <ManualControl:ManualSettingControl
  35. HeaderValue="氢氧化钠(加液)"
  36. LeftButtonVisibility="Hidden"
  37. RightButtonCommand="{Binding RegisterLiquidCommand}"
  38. RightButtonContent="泵液" />
  39. <ManualControl:ManualSettingControl
  40. HeaderValue="硫酸(滴定1)"
  41. LeftButtonVisibility="Hidden"
  42. RightButtonCommand="{Binding RegisterLiquidCommand}"
  43. RightButtonContent="泵液" />
  44. <ManualControl:ManualSettingControl
  45. HeaderValue="硫酸(加液滴定2)"
  46. LeftButtonVisibility="Hidden"
  47. RightButtonCommand="{Binding RegisterLiquidCommand}"
  48. RightButtonContent="泵液" />
  49. </UniformGrid>
  50. </GroupBox>
  51. <GroupBox
  52. Grid.Row="1"
  53. Width="800"
  54. Height="200"
  55. Margin="0,5,0,5"
  56. HorizontalAlignment="Center"
  57. VerticalAlignment="Center"
  58. pu:GroupBoxHelper.CornerRadius="5"
  59. pu:GroupBoxHelper.IsSplitLineVisible="True"
  60. pu:GroupBoxHelper.ShadowColor="LightGray"
  61. Header="液体控制(pps)">
  62. <UniformGrid Columns="5" Rows="1">
  63. <ManualControl:ManualSettingControl
  64. HeaderValue="草酸钠(滴定1)"
  65. LeftButtonCommand="{Binding InLiquidCommand}"
  66. LeftButtonContent="吸液"
  67. LeftButtonWait="{Binding Sodium1OxalateInLiquidWait}"
  68. RightButtonCommand="{Binding OutLiquidCommand}"
  69. RightButtonContent="泵液"
  70. RightButtonWait="{Binding Sodium1OxalateOutLiquidWait}" />
  71. <ManualControl:ManualSettingControl
  72. HeaderValue="草酸钠(滴定2)"
  73. LeftButtonCommand="{Binding InLiquidCommand}"
  74. LeftButtonContent="吸液"
  75. LeftButtonWait="{Binding Sodium2OxalateInLiquidWait}"
  76. RightButtonCommand="{Binding OutLiquidCommand}"
  77. RightButtonContent="泵液"
  78. RightButtonWait="{Binding Sodium2OxalateOutLiquidWait}" />
  79. <ManualControl:ManualSettingControl
  80. HeaderValue="高锰酸钾(滴定1)"
  81. LeftButtonCommand="{Binding InLiquidCommand}"
  82. LeftButtonContent="吸液"
  83. LeftButtonWait="{Binding Titration1PotassiumPermanganateInLiquidWait}"
  84. RightButtonCommand="{Binding OutLiquidCommand}"
  85. RightButtonContent="泵液"
  86. RightButtonWait="{Binding Titration1PotassiumPermanganateOutLiquidWait}" />
  87. <ManualControl:ManualSettingControl
  88. HeaderValue="高锰酸钾(加液滴定2)"
  89. LeftButtonCommand="{Binding InLiquidCommand}"
  90. LeftButtonContent="吸液"
  91. LeftButtonWait="{Binding Titration2PotassiumPermanganateInLiquidWait}"
  92. RightButtonCommand="{Binding OutLiquidCommand}"
  93. RightButtonContent="泵液"
  94. RightButtonWait="{Binding Titration2PotassiumPermanganateOutLiquidWait}" />
  95. </UniformGrid>
  96. </GroupBox>
  97. <GroupBox
  98. Grid.Row="2"
  99. Width="800"
  100. Height="200"
  101. Margin="0,5,0,5"
  102. HorizontalAlignment="Center"
  103. VerticalAlignment="Center"
  104. pu:GroupBoxHelper.CornerRadius="8"
  105. pu:GroupBoxHelper.IsSplitLineVisible="True"
  106. pu:GroupBoxHelper.ShadowColor="LightGray"
  107. Header="其他控制">
  108. <StackPanel Orientation="Horizontal">
  109. <GroupBox
  110. Width="180"
  111. Height="120"
  112. Margin="5,0"
  113. HorizontalAlignment="Center"
  114. VerticalAlignment="Center"
  115. pu:GroupBoxHelper.CornerRadius="8"
  116. pu:GroupBoxHelper.IsSplitLineVisible="True"
  117. pu:GroupBoxHelper.ShadowColor="LightGray"
  118. Header="转向滴嘴">
  119. <UniformGrid Columns="3" Rows="1">
  120. <Button
  121. Width="36"
  122. Height="28"
  123. Margin="5,0"
  124. HorizontalAlignment="Center"
  125. VerticalAlignment="Center"
  126. pu:ButtonHelper.ClickStyle="Sink"
  127. pu:ButtonHelper.CornerRadius="5"
  128. pu:ButtonHelper.HoverBrush="#929FDE"
  129. Background="#6452A4"
  130. Command="{Binding DropperFrontCommand}"
  131. Content="正"
  132. Cursor="Hand"
  133. FontFamily="{StaticResource FontAwesome}"
  134. Foreground="#FFF"
  135. CommandParameter="正" >
  136. </Button>
  137. <Button
  138. Width="36"
  139. Height="28"
  140. Margin="5,0"
  141. HorizontalAlignment="Center"
  142. VerticalAlignment="Center"
  143. pu:ButtonHelper.ClickStyle="Sink"
  144. pu:ButtonHelper.CornerRadius="5"
  145. pu:ButtonHelper.HoverBrush="#929FDE"
  146. Background="#6452A4"
  147. Command="{Binding DropperInversionCommand}"
  148. Content="反"
  149. Cursor="Hand"
  150. FontFamily="{StaticResource FontAwesome}"
  151. Foreground="#FFF"
  152. CommandParameter="反" >
  153. </Button>
  154. <Button
  155. Width="50"
  156. Height="28"
  157. Margin="5,0"
  158. HorizontalAlignment="Center"
  159. VerticalAlignment="Center"
  160. pu:ButtonHelper.ClickStyle="Sink"
  161. pu:ButtonHelper.CornerRadius="5"
  162. pu:ButtonHelper.HoverBrush="#929FDE"
  163. Background="#6452A4"
  164. Command="{Binding DropperPointCommand}"
  165. Content="原点"
  166. Cursor="Hand"
  167. FontFamily="{StaticResource FontAwesome}"
  168. Foreground="#FFF"
  169. CommandParameter="原点" >
  170. </Button>
  171. </UniformGrid>
  172. </GroupBox>
  173. <GroupBox
  174. Width="200"
  175. Height="120"
  176. Margin="5,0"
  177. HorizontalAlignment="Center"
  178. VerticalAlignment="Center"
  179. pu:GroupBoxHelper.CornerRadius="8"
  180. pu:GroupBoxHelper.IsSplitLineVisible="True"
  181. pu:GroupBoxHelper.ShadowColor="LightGray"
  182. Header="平移滴嘴">
  183. <UniformGrid Columns="3" Rows="1">
  184. <Button
  185. Width="50"
  186. Height="28"
  187. Margin="5,0"
  188. HorizontalAlignment="Center"
  189. VerticalAlignment="Center"
  190. pu:ButtonHelper.ClickStyle="Sink"
  191. pu:ButtonHelper.CornerRadius="5"
  192. pu:ButtonHelper.HoverBrush="#929FDE"
  193. Background="#6452A4"
  194. Command="{Binding MoveToYDCommand}"
  195. Content="原点"
  196. Cursor="Hand"
  197. FontFamily="{StaticResource FontAwesome}"
  198. Foreground="#FFF">
  199. </Button>
  200. <Button
  201. Width="50"
  202. Height="28"
  203. Margin="5,0"
  204. HorizontalAlignment="Center"
  205. VerticalAlignment="Center"
  206. pu:ButtonHelper.ClickStyle="Sink"
  207. pu:ButtonHelper.CornerRadius="5"
  208. pu:ButtonHelper.HoverBrush="#929FDE"
  209. Background="#6452A4"
  210. Command="{Binding MoveToDD2Command}"
  211. Content="滴定2"
  212. Cursor="Hand"
  213. FontFamily="{StaticResource FontAwesome}"
  214. Foreground="#FFF">
  215. </Button>
  216. <Button
  217. Width="50"
  218. Height="28"
  219. Margin="5,0"
  220. HorizontalAlignment="Center"
  221. VerticalAlignment="Center"
  222. pu:ButtonHelper.ClickStyle="Sink"
  223. pu:ButtonHelper.CornerRadius="5"
  224. pu:ButtonHelper.HoverBrush="#929FDE"
  225. Background="#6452A4"
  226. Command="{Binding MoveToJYCommand}"
  227. Content="加液"
  228. Cursor="Hand"
  229. FontFamily="{StaticResource FontAwesome}"
  230. Foreground="#FFF">
  231. </Button>
  232. </UniformGrid>
  233. </GroupBox>
  234. <GroupBox
  235. Width="200"
  236. Height="120"
  237. Margin="5,0"
  238. HorizontalAlignment="Center"
  239. VerticalAlignment="Center"
  240. pu:GroupBoxHelper.CornerRadius="8"
  241. pu:GroupBoxHelper.IsSplitLineVisible="True"
  242. pu:GroupBoxHelper.ShadowColor="LightGray"
  243. Header="搅拌">
  244. <UniformGrid Columns="1" Rows="2">
  245. <CustomUI:SegmentControl
  246. x:Name="cb_stir"
  247. Width="180"
  248. Height="30"
  249. HorizontalAlignment="Center"
  250. BorderBrush="#6452A4"
  251. Cursor="Hand"
  252. SelectedIndex="0">
  253. <CustomUI:SegmentItem Content="加液" Width="60" FontSize="13" />
  254. <CustomUI:SegmentItem Content="滴定" Width="60" FontSize="13" />
  255. <CustomUI:SegmentItem Content="滴定2" Width="60" FontSize="13" />
  256. </CustomUI:SegmentControl>
  257. <UniformGrid Columns="2" Rows="1">
  258. <Button
  259. Width="50"
  260. Height="28"
  261. Margin="5,0"
  262. HorizontalAlignment="Center"
  263. VerticalAlignment="Bottom"
  264. pu:ButtonHelper.ClickStyle="Sink"
  265. pu:ButtonHelper.CornerRadius="5"
  266. pu:ButtonHelper.HoverBrush="#929FDE"
  267. Background="#6452A4"
  268. Command="{Binding StirStartCommand}"
  269. Content="开始"
  270. Cursor="Hand"
  271. FontFamily="{StaticResource FontAwesome}"
  272. Foreground="#FFF">
  273. <Button.CommandParameter>
  274. <Binding ElementName="cb_stir" Path="SelectedItem.Content" />
  275. </Button.CommandParameter>
  276. </Button>
  277. <Button
  278. Width="50"
  279. Height="28"
  280. Margin="5,0"
  281. HorizontalAlignment="Center"
  282. VerticalAlignment="Bottom"
  283. pu:ButtonHelper.ClickStyle="Sink"
  284. pu:ButtonHelper.CornerRadius="5"
  285. pu:ButtonHelper.HoverBrush="#929FDE"
  286. Background="#6452A4"
  287. Command="{Binding StirStopCommand}"
  288. Content="结束"
  289. Cursor="Hand"
  290. FontFamily="{StaticResource FontAwesome}"
  291. Foreground="#FFF">
  292. <Button.CommandParameter>
  293. <Binding ElementName="cb_stir" Path="SelectedItem.Content" />
  294. </Button.CommandParameter>
  295. </Button>
  296. </UniformGrid>
  297. </UniformGrid>
  298. </GroupBox>
  299. </StackPanel>
  300. </GroupBox>
  301. </Grid>
  302. </UserControl>