终端一体化运控平台
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.
 
 
 

438 line
18 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.FoodStationTest.View.ManualFlowView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  8. xmlns:vm="clr-namespace:BPASmartClient.FoodStationTest.ViewModel"
  9. d:DesignHeight="1080"
  10. d:DesignWidth="1920"
  11. mc:Ignorable="d">
  12. <UserControl.DataContext>
  13. <vm:ManualFlowViewModel />
  14. </UserControl.DataContext>
  15. <Grid Margin="10">
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="100" />
  18. <RowDefinition Height="100" />
  19. <RowDefinition Height="1*" />
  20. </Grid.RowDefinitions>
  21. <!--#region 表格标题栏设置-->
  22. <Grid>
  23. <StackPanel
  24. HorizontalAlignment="left"
  25. VerticalAlignment="Center"
  26. Orientation="Horizontal">
  27. <Button
  28. Width="200"
  29. Height="40"
  30. Margin="5"
  31. Command="{Binding BPAResetCommand}"
  32. Content="上位机初始化"
  33. FontSize="20"
  34. Style="{StaticResource ImageButtonStyle}" />
  35. </StackPanel>
  36. </Grid>
  37. <Grid Grid.Row="1">
  38. <StackPanel
  39. HorizontalAlignment="left"
  40. VerticalAlignment="Center"
  41. Orientation="Horizontal">
  42. <Button
  43. Width="200"
  44. Height="40"
  45. Margin="5,0,5,0"
  46. Panel.ZIndex="0"
  47. Command="{Binding SystemReset}"
  48. Content="PLC系统复位"
  49. FontSize="20"
  50. Style="{StaticResource ImageButtonStyle}" />
  51. <Button
  52. Width="200"
  53. Height="40"
  54. Margin="5,0,5,0"
  55. Panel.ZIndex="0"
  56. Command="{Binding CLearRecipeInfo}"
  57. Content="PLC配方清零"
  58. FontSize="20"
  59. Style="{StaticResource ImageButtonStyle}" />
  60. <WrapPanel Margin="400,0">
  61. <TextBlock
  62. Margin="10,0,5,0"
  63. VerticalAlignment="Center"
  64. FontSize="25"
  65. Foreground="#FF2AB2E7"
  66. Text="订单号:" />
  67. <TextBox
  68. Width="300"
  69. Margin="5"
  70. VerticalAlignment="Center"
  71. FontSize="24"
  72. Text="{Binding CancelRecipeCode}" />
  73. <Button
  74. Width="120"
  75. Height="40"
  76. Margin="5"
  77. Command="{Binding CancelRecipeCommand}"
  78. Content="取消订单"
  79. FontSize="20"
  80. Style="{StaticResource ImageButtonStyle}" />
  81. </WrapPanel>
  82. </StackPanel>
  83. </Grid>
  84. <Grid Grid.Row="2">
  85. <Grid>
  86. <Grid.ColumnDefinitions>
  87. <ColumnDefinition />
  88. <ColumnDefinition />
  89. <ColumnDefinition />
  90. <ColumnDefinition />
  91. </Grid.ColumnDefinitions>
  92. <Grid.RowDefinitions>
  93. <RowDefinition />
  94. <RowDefinition />
  95. <RowDefinition />
  96. <RowDefinition />
  97. <RowDefinition />
  98. </Grid.RowDefinitions>
  99. <StackPanel Grid.Column="1" Orientation="Vertical">
  100. </StackPanel>
  101. <WrapPanel Grid.Row="0">
  102. <StackPanel Orientation="Horizontal">
  103. <TextBlock
  104. Margin="10,0,5,0"
  105. VerticalAlignment="Center"
  106. FontSize="25"
  107. Foreground="#FF2AB2E7"
  108. Text="海科PLC连接状态:" />
  109. <TextBlock
  110. Margin="10"
  111. HorizontalAlignment="Center"
  112. VerticalAlignment="Center"
  113. FontSize="25"
  114. Foreground="#FF2AB2E7"
  115. Text="{Binding HKPlcIsConnect}" />
  116. </StackPanel>
  117. <StackPanel Orientation="Horizontal">
  118. <TextBlock
  119. Margin="10,0,5,0"
  120. VerticalAlignment="Center"
  121. FontSize="25"
  122. Foreground="#FF2AB2E7"
  123. Text="海科PLC心跳:" />
  124. <TextBlock
  125. Margin="10"
  126. HorizontalAlignment="Center"
  127. VerticalAlignment="Center"
  128. FontSize="25"
  129. Foreground="#FF2AB2E7"
  130. Text="{Binding Heartbeat}" />
  131. </StackPanel>
  132. </WrapPanel>
  133. <WrapPanel Grid.Row="2">
  134. <TextBlock
  135. Margin="10,0,5,0"
  136. VerticalAlignment="Center"
  137. FontSize="25"
  138. Foreground="#FF2AB2E7"
  139. Text="当前下发配方状态:" />
  140. <TextBlock
  141. Margin="10"
  142. HorizontalAlignment="Center"
  143. VerticalAlignment="Center"
  144. FontSize="25"
  145. Foreground="#FF2AB2E7"
  146. Text="{Binding OrderStatus}" />
  147. </WrapPanel>
  148. <WrapPanel Grid.Row="0" Grid.Column="2">
  149. <TextBlock
  150. Margin="10,0,5,0"
  151. VerticalAlignment="Center"
  152. FontSize="25"
  153. Foreground="#FF2AB2E7"
  154. Text="柔性味魔方配料完成,延迟复位时间:" />
  155. <TextBox
  156. Width="150"
  157. Margin="10"
  158. HorizontalAlignment="Center"
  159. VerticalAlignment="Center"
  160. FontSize="25"
  161. Foreground="#FF2AB2E7"
  162. Text="{Binding time}" />
  163. <TextBlock
  164. Margin="10"
  165. HorizontalAlignment="Center"
  166. VerticalAlignment="Center"
  167. FontSize="25"
  168. Foreground="#FF2AB2E7"
  169. Text="ms" />
  170. <Button
  171. Width="100"
  172. Height="40"
  173. Margin="5,0,5,0"
  174. Panel.ZIndex="0"
  175. Command="{Binding TimeSet}"
  176. Content="设置"
  177. FontSize="20"
  178. Style="{StaticResource ImageButtonStyle}" />
  179. </WrapPanel>
  180. <WrapPanel
  181. Grid.Row="3"
  182. Grid.RowSpan="2"
  183. Grid.Column="0">
  184. <TextBlock
  185. Width="200"
  186. Margin="10,0,5,0"
  187. VerticalAlignment="Center"
  188. FontSize="25"
  189. Foreground="#FF2AB2E7"
  190. Text="当前配料状态:" />
  191. <WrapPanel>
  192. <TextBlock
  193. Margin="10,0,5,0"
  194. VerticalAlignment="Center"
  195. FontSize="25"
  196. Foreground="#FF2AB2E7"
  197. Text="配方1:" />
  198. <TextBlock
  199. Margin="10"
  200. HorizontalAlignment="Center"
  201. VerticalAlignment="Center"
  202. FontSize="25"
  203. Foreground="#FF2AB2E7"
  204. Text="{Binding Recipe1DosingStatus}" />
  205. </WrapPanel>
  206. <WrapPanel>
  207. <TextBlock
  208. Margin="10,0,5,0"
  209. VerticalAlignment="Center"
  210. FontSize="25"
  211. Foreground="#FF2AB2E7"
  212. Text="配方2:" />
  213. <TextBlock
  214. Margin="10"
  215. HorizontalAlignment="Center"
  216. VerticalAlignment="Center"
  217. FontSize="25"
  218. Foreground="#FF2AB2E7"
  219. Text="{Binding Recipe2DosingStatus}" />
  220. </WrapPanel>
  221. <WrapPanel>
  222. <TextBlock
  223. Margin="10,0,5,0"
  224. VerticalAlignment="Center"
  225. FontSize="25"
  226. Foreground="#FF2AB2E7"
  227. Text="配方3:" />
  228. <TextBlock
  229. Margin="10"
  230. HorizontalAlignment="Center"
  231. VerticalAlignment="Center"
  232. FontSize="25"
  233. Foreground="#FF2AB2E7"
  234. Text="{Binding Recipe3DosingStatus}" />
  235. </WrapPanel>
  236. <WrapPanel>
  237. <TextBlock
  238. Margin="10,0,5,0"
  239. VerticalAlignment="Center"
  240. FontSize="25"
  241. Foreground="#FF2AB2E7"
  242. Text="配方4:" />
  243. <TextBlock
  244. Margin="10"
  245. HorizontalAlignment="Center"
  246. VerticalAlignment="Center"
  247. FontSize="25"
  248. Foreground="#FF2AB2E7"
  249. Text="{Binding Recipe4DosingStatus}" />
  250. </WrapPanel>
  251. <WrapPanel>
  252. <TextBlock
  253. Margin="10,0,5,0"
  254. VerticalAlignment="Center"
  255. FontSize="25"
  256. Foreground="#FF2AB2E7"
  257. Text="配方5:" />
  258. <TextBlock
  259. Margin="10"
  260. HorizontalAlignment="Center"
  261. VerticalAlignment="Center"
  262. FontSize="25"
  263. Foreground="#FF2AB2E7"
  264. Text="{Binding Recipe5DosingStatus}" />
  265. </WrapPanel>
  266. </WrapPanel>
  267. <WrapPanel
  268. Grid.Row="3"
  269. Grid.RowSpan="2"
  270. Grid.Column="1">
  271. <TextBlock
  272. Margin="10,0,5,0"
  273. VerticalAlignment="Center"
  274. FontSize="25"
  275. Foreground="#FF2AB2E7"
  276. Text="配料情况:" />
  277. <WrapPanel>
  278. <TextBlock
  279. Margin="10,0,5,0"
  280. VerticalAlignment="Center"
  281. FontSize="25"
  282. Foreground="#FF2AB2E7"
  283. Text="配方1:" />
  284. <TextBlock
  285. Margin="10"
  286. HorizontalAlignment="Center"
  287. VerticalAlignment="Center"
  288. FontSize="25"
  289. Foreground="#FF2AB2E7"
  290. Text="{Binding Recipe1DosingComplete}" />
  291. </WrapPanel>
  292. <WrapPanel>
  293. <TextBlock
  294. Margin="10,0,5,0"
  295. VerticalAlignment="Center"
  296. FontSize="25"
  297. Foreground="#FF2AB2E7"
  298. Text="配方2:" />
  299. <TextBlock
  300. Margin="10"
  301. HorizontalAlignment="Center"
  302. VerticalAlignment="Center"
  303. FontSize="25"
  304. Foreground="#FF2AB2E7"
  305. Text="{Binding Recipe2DosingComplete}" />
  306. </WrapPanel>
  307. <WrapPanel>
  308. <TextBlock
  309. Margin="10,0,5,0"
  310. VerticalAlignment="Center"
  311. FontSize="25"
  312. Foreground="#FF2AB2E7"
  313. Text="配方3:" />
  314. <TextBlock
  315. Margin="10"
  316. HorizontalAlignment="Center"
  317. VerticalAlignment="Center"
  318. FontSize="25"
  319. Foreground="#FF2AB2E7"
  320. Text="{Binding Recipe3DosingComplete}" />
  321. </WrapPanel>
  322. <WrapPanel>
  323. <TextBlock
  324. Margin="10,0,5,0"
  325. VerticalAlignment="Center"
  326. FontSize="25"
  327. Foreground="#FF2AB2E7"
  328. Text="配方4:" />
  329. <TextBlock
  330. Margin="10"
  331. HorizontalAlignment="Center"
  332. VerticalAlignment="Center"
  333. FontSize="25"
  334. Foreground="#FF2AB2E7"
  335. Text="{Binding Recipe4DosingComplete}" />
  336. </WrapPanel>
  337. <WrapPanel>
  338. <TextBlock
  339. Margin="10,0,5,0"
  340. VerticalAlignment="Center"
  341. FontSize="25"
  342. Foreground="#FF2AB2E7"
  343. Text="配方5:" />
  344. <TextBlock
  345. Margin="10"
  346. HorizontalAlignment="Center"
  347. VerticalAlignment="Center"
  348. FontSize="25"
  349. Foreground="#FF2AB2E7"
  350. Text="{Binding Recipe5DosingComplete}" />
  351. </WrapPanel>
  352. </WrapPanel>
  353. <WrapPanel Grid.Row="1" Grid.Column="2">
  354. <!--<ComboBox
  355. x:Name="cmbList"
  356. Width="70"
  357. VerticalAlignment="Center"
  358. BorderBrush="#FF074B92"
  359. BorderThickness="1"
  360. FontFamily="楷体"
  361. FontSize="14"
  362. Foreground="LightGray"
  363. IsEditable="False"
  364. MouseLeave="ComboBox_MouseLeave"
  365. Style="{StaticResource ComboBoxStyle}"
  366. Text="{Binding RawMaterialName}"/>-->
  367. <TextBlock
  368. Margin="10,0,5,0"
  369. VerticalAlignment="Center"
  370. FontSize="25"
  371. Foreground="#FF2AB2E7"
  372. Text="料仓号:" />
  373. <TextBox
  374. Width="50"
  375. Margin="10"
  376. HorizontalAlignment="Center"
  377. VerticalAlignment="Center"
  378. FontSize="25"
  379. Foreground="#FF2AB2E7"
  380. Text="{Binding StockbinDosingCompleNum}" />
  381. <Button
  382. Width="200"
  383. Height="40"
  384. Margin="5,0,5,0"
  385. Panel.ZIndex="0"
  386. Command="{Binding StockbinDosingComple}"
  387. Content="小料料仓配料完成"
  388. FontSize="20"
  389. Style="{StaticResource ImageButtonStyle}" />
  390. <Button
  391. Width="400"
  392. Height="40"
  393. Margin="10"
  394. HorizontalAlignment="Right"
  395. Panel.ZIndex="0"
  396. Command="{Binding StockbinDosingCompleClear}"
  397. Content="清除所有小料料仓配料完成信号"
  398. FontSize="20"
  399. Style="{StaticResource ImageButtonStyle}" />
  400. </WrapPanel>
  401. <WrapPanel Grid.Row="2" Grid.Column="2">
  402. <TextBlock
  403. Margin="10,0,5,0"
  404. VerticalAlignment="Center"
  405. FontSize="25"
  406. Foreground="#FF2AB2E7"
  407. Text="配方制作完成数目:" />
  408. <TextBlock
  409. Width="150"
  410. Margin="10"
  411. HorizontalAlignment="Center"
  412. VerticalAlignment="Center"
  413. FontSize="25"
  414. Foreground="#FF2AB2E7"
  415. Text="{Binding RecipeDosingCompleNum}" />
  416. <Button
  417. Width="400"
  418. Height="40"
  419. Margin="5,0,5,0"
  420. Panel.ZIndex="0"
  421. Command="{Binding CompletedNumResetCommand}"
  422. Content="完成数目清零"
  423. FontSize="20"
  424. Style="{StaticResource ImageButtonStyle}" />
  425. </WrapPanel>
  426. </Grid>
  427. </Grid>
  428. </Grid>
  429. </UserControl>