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

508 lines
21 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodSmallStation.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.JXJFoodSmallStation.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. Name="test1"
  29. Width="200"
  30. Height="40"
  31. Margin="5"
  32. Panel.ZIndex="0"
  33. Command="{Binding Test1Command}"
  34. Content="AGV送托盘完成"
  35. FontSize="20"
  36. Style="{StaticResource ImageButtonStyle}"
  37. Visibility="{Binding VisibilityBtn1}" />
  38. <Button
  39. Name="test2"
  40. Width="200"
  41. Height="40"
  42. Margin="5"
  43. Panel.ZIndex="0"
  44. Command="{Binding Test2Command}"
  45. Content="粉料仓配料完成"
  46. FontSize="20"
  47. Style="{StaticResource ImageButtonStyle}"
  48. Visibility="{Binding VisibilityBtn2}" />
  49. <Button
  50. Name="test3"
  51. Width="200"
  52. Height="40"
  53. Margin="5"
  54. Panel.ZIndex="0"
  55. Command="{Binding Test3Command}"
  56. Content="AGV取托盘完成"
  57. FontSize="20"
  58. Style="{StaticResource ImageButtonStyle}"
  59. Visibility="{Binding VisibilityBtn3}" />
  60. <TextBlock
  61. Width="100"
  62. Margin="10"
  63. HorizontalAlignment="Center"
  64. VerticalAlignment="Center"
  65. FontSize="25"
  66. Foreground="#FF2AB2E7" />
  67. <!--<Button
  68. Width="200"
  69. Height="40"
  70. Margin="5"
  71. Panel.ZIndex="0"
  72. Command="{Binding Test5Command}"
  73. Content="粉料仓提升到位"
  74. FontSize="20"
  75. Style="{StaticResource ImageButtonStyle}" />-->
  76. <Button
  77. Width="200"
  78. Height="40"
  79. Margin="5"
  80. Command="{Binding BPAResetCommand}"
  81. Content="上位机初始化"
  82. FontSize="20"
  83. Style="{StaticResource ImageButtonStyle}" />
  84. </StackPanel>
  85. </Grid>
  86. <Grid Grid.Row="1">
  87. <StackPanel
  88. HorizontalAlignment="left"
  89. VerticalAlignment="Center"
  90. Orientation="Horizontal">
  91. <Button
  92. Width="200"
  93. Height="40"
  94. Margin="5,0,5,0"
  95. Panel.ZIndex="0"
  96. Command="{Binding SystemReset}"
  97. Content="PLC系统复位"
  98. FontSize="20"
  99. Style="{StaticResource ImageButtonStyle}" />
  100. <Button
  101. Width="200"
  102. Height="40"
  103. Margin="5,0,5,0"
  104. Panel.ZIndex="0"
  105. Command="{Binding CLearRecipeInfo}"
  106. Content="PLC配方清零"
  107. FontSize="20"
  108. Style="{StaticResource ImageButtonStyle}" />
  109. <WrapPanel Margin="400,0">
  110. <TextBlock
  111. Margin="10,0,5,0"
  112. VerticalAlignment="Center"
  113. FontSize="25"
  114. Foreground="#FF2AB2E7"
  115. Text="订单号:" />
  116. <TextBox
  117. Width="300"
  118. Margin="5"
  119. VerticalAlignment="Center"
  120. FontSize="24"
  121. Text="{Binding CancelRecipeCode}" />
  122. <Button
  123. Width="120"
  124. Height="40"
  125. Margin="5"
  126. Command="{Binding CancelRecipeCommand}"
  127. Content="取消订单"
  128. FontSize="20"
  129. Style="{StaticResource ImageButtonStyle}" />
  130. </WrapPanel>
  131. </StackPanel>
  132. </Grid>
  133. <Grid Grid.Row="2">
  134. <Grid>
  135. <Grid.ColumnDefinitions>
  136. <ColumnDefinition />
  137. <ColumnDefinition />
  138. <ColumnDefinition />
  139. <ColumnDefinition />
  140. </Grid.ColumnDefinitions>
  141. <Grid.RowDefinitions>
  142. <RowDefinition />
  143. <RowDefinition />
  144. <RowDefinition />
  145. <RowDefinition />
  146. <RowDefinition />
  147. </Grid.RowDefinitions>
  148. <StackPanel Grid.Column="1" Orientation="Vertical">
  149. <StackPanel Orientation="Horizontal">
  150. <TextBlock
  151. Margin="10,0,5,0"
  152. VerticalAlignment="Center"
  153. FontSize="25"
  154. Foreground="#FF2AB2E7"
  155. Text="海科plc心跳:" />
  156. <TextBlock
  157. Margin="10"
  158. HorizontalAlignment="Center"
  159. VerticalAlignment="Center"
  160. FontSize="25"
  161. Foreground="#FF2AB2E7"
  162. Text="{Binding Heartbeat}" />
  163. </StackPanel>
  164. </StackPanel>
  165. <WrapPanel Grid.Row="0">
  166. <TextBlock
  167. Margin="10,0,5,0"
  168. VerticalAlignment="Center"
  169. FontSize="25"
  170. Foreground="#FF2AB2E7"
  171. Text="西门子 连接状态:" />
  172. <TextBlock
  173. Margin="10"
  174. HorizontalAlignment="Center"
  175. VerticalAlignment="Center"
  176. FontSize="25"
  177. Foreground="#FF2AB2E7"
  178. Text="{Binding SiemensIsConnect}" />
  179. <TextBlock
  180. Margin="10,0,5,0"
  181. VerticalAlignment="Center"
  182. FontSize="25"
  183. Foreground="#FF2AB2E7"
  184. Text="海科plc连接状态:" />
  185. <TextBlock
  186. Margin="10"
  187. HorizontalAlignment="Center"
  188. VerticalAlignment="Center"
  189. FontSize="25"
  190. Foreground="#FF2AB2E7"
  191. Text="{Binding HKPlcIsConnect}" />
  192. <TextBlock
  193. Margin="10,0,5,0"
  194. VerticalAlignment="Center"
  195. FontSize="25"
  196. Foreground="#FF2AB2E7"
  197. Text="风送plc连接状态:" />
  198. <TextBlock
  199. Margin="10"
  200. HorizontalAlignment="Center"
  201. VerticalAlignment="Center"
  202. FontSize="25"
  203. Foreground="#FF2AB2E7"
  204. Text="{Binding WindSendIsConnect}" />
  205. </WrapPanel>
  206. <WrapPanel Grid.Row="2">
  207. <TextBlock
  208. Margin="10,0,5,0"
  209. VerticalAlignment="Center"
  210. FontSize="25"
  211. Foreground="#FF2AB2E7"
  212. Text="当前下发配方状态:" />
  213. <TextBlock
  214. Margin="10"
  215. HorizontalAlignment="Center"
  216. VerticalAlignment="Center"
  217. FontSize="25"
  218. Foreground="#FF2AB2E7"
  219. Text="{Binding OrderStatus}" />
  220. </WrapPanel>
  221. <WrapPanel Grid.Row="0" Grid.Column="2">
  222. <TextBlock
  223. Margin="10,0,5,0"
  224. VerticalAlignment="Center"
  225. FontSize="25"
  226. Foreground="#FF2AB2E7"
  227. Text="柔性味魔方配料完成,延迟复位时间:" />
  228. <TextBox
  229. Width="150"
  230. Margin="10"
  231. HorizontalAlignment="Center"
  232. VerticalAlignment="Center"
  233. FontSize="25"
  234. Foreground="#FF2AB2E7"
  235. Text="{Binding time}" />
  236. <TextBlock
  237. Margin="10"
  238. HorizontalAlignment="Center"
  239. VerticalAlignment="Center"
  240. FontSize="25"
  241. Foreground="#FF2AB2E7"
  242. Text="ms" />
  243. <Button
  244. Width="100"
  245. Height="40"
  246. Margin="5,0,5,0"
  247. Panel.ZIndex="0"
  248. Command="{Binding TimeSet}"
  249. Content="设置"
  250. FontSize="20"
  251. Style="{StaticResource ImageButtonStyle}" />
  252. </WrapPanel>
  253. <WrapPanel
  254. Grid.Row="3"
  255. Grid.RowSpan="2"
  256. Grid.Column="0">
  257. <TextBlock
  258. Width="200"
  259. Margin="10,0,5,0"
  260. VerticalAlignment="Center"
  261. FontSize="25"
  262. Foreground="#FF2AB2E7"
  263. Text="当前配料状态:" />
  264. <WrapPanel>
  265. <TextBlock
  266. Margin="10,0,5,0"
  267. VerticalAlignment="Center"
  268. FontSize="25"
  269. Foreground="#FF2AB2E7"
  270. Text="配方1:" />
  271. <TextBlock
  272. Margin="10"
  273. HorizontalAlignment="Center"
  274. VerticalAlignment="Center"
  275. FontSize="25"
  276. Foreground="#FF2AB2E7"
  277. Text="{Binding Recipe1DosingStatus}" />
  278. </WrapPanel>
  279. <WrapPanel>
  280. <TextBlock
  281. Margin="10,0,5,0"
  282. VerticalAlignment="Center"
  283. FontSize="25"
  284. Foreground="#FF2AB2E7"
  285. Text="配方2:" />
  286. <TextBlock
  287. Margin="10"
  288. HorizontalAlignment="Center"
  289. VerticalAlignment="Center"
  290. FontSize="25"
  291. Foreground="#FF2AB2E7"
  292. Text="{Binding Recipe2DosingStatus}" />
  293. </WrapPanel>
  294. <WrapPanel>
  295. <TextBlock
  296. Margin="10,0,5,0"
  297. VerticalAlignment="Center"
  298. FontSize="25"
  299. Foreground="#FF2AB2E7"
  300. Text="配方3:" />
  301. <TextBlock
  302. Margin="10"
  303. HorizontalAlignment="Center"
  304. VerticalAlignment="Center"
  305. FontSize="25"
  306. Foreground="#FF2AB2E7"
  307. Text="{Binding Recipe3DosingStatus}" />
  308. </WrapPanel>
  309. <WrapPanel>
  310. <TextBlock
  311. Margin="10,0,5,0"
  312. VerticalAlignment="Center"
  313. FontSize="25"
  314. Foreground="#FF2AB2E7"
  315. Text="配方4:" />
  316. <TextBlock
  317. Margin="10"
  318. HorizontalAlignment="Center"
  319. VerticalAlignment="Center"
  320. FontSize="25"
  321. Foreground="#FF2AB2E7"
  322. Text="{Binding Recipe4DosingStatus}" />
  323. </WrapPanel>
  324. <WrapPanel>
  325. <TextBlock
  326. Margin="10,0,5,0"
  327. VerticalAlignment="Center"
  328. FontSize="25"
  329. Foreground="#FF2AB2E7"
  330. Text="配方5:" />
  331. <TextBlock
  332. Margin="10"
  333. HorizontalAlignment="Center"
  334. VerticalAlignment="Center"
  335. FontSize="25"
  336. Foreground="#FF2AB2E7"
  337. Text="{Binding Recipe5DosingStatus}" />
  338. </WrapPanel>
  339. </WrapPanel>
  340. <WrapPanel
  341. Grid.Row="3"
  342. Grid.RowSpan="2"
  343. Grid.Column="1">
  344. <TextBlock
  345. Margin="10,0,5,0"
  346. VerticalAlignment="Center"
  347. FontSize="25"
  348. Foreground="#FF2AB2E7"
  349. Text="配料情况:" />
  350. <WrapPanel>
  351. <TextBlock
  352. Margin="10,0,5,0"
  353. VerticalAlignment="Center"
  354. FontSize="25"
  355. Foreground="#FF2AB2E7"
  356. Text="配方1:" />
  357. <TextBlock
  358. Margin="10"
  359. HorizontalAlignment="Center"
  360. VerticalAlignment="Center"
  361. FontSize="25"
  362. Foreground="#FF2AB2E7"
  363. Text="{Binding Recipe1DosingComplete}" />
  364. </WrapPanel>
  365. <WrapPanel>
  366. <TextBlock
  367. Margin="10,0,5,0"
  368. VerticalAlignment="Center"
  369. FontSize="25"
  370. Foreground="#FF2AB2E7"
  371. Text="配方2:" />
  372. <TextBlock
  373. Margin="10"
  374. HorizontalAlignment="Center"
  375. VerticalAlignment="Center"
  376. FontSize="25"
  377. Foreground="#FF2AB2E7"
  378. Text="{Binding Recipe2DosingComplete}" />
  379. </WrapPanel>
  380. <WrapPanel>
  381. <TextBlock
  382. Margin="10,0,5,0"
  383. VerticalAlignment="Center"
  384. FontSize="25"
  385. Foreground="#FF2AB2E7"
  386. Text="配方3:" />
  387. <TextBlock
  388. Margin="10"
  389. HorizontalAlignment="Center"
  390. VerticalAlignment="Center"
  391. FontSize="25"
  392. Foreground="#FF2AB2E7"
  393. Text="{Binding Recipe3DosingComplete}" />
  394. </WrapPanel>
  395. <WrapPanel>
  396. <TextBlock
  397. Margin="10,0,5,0"
  398. VerticalAlignment="Center"
  399. FontSize="25"
  400. Foreground="#FF2AB2E7"
  401. Text="配方4:" />
  402. <TextBlock
  403. Margin="10"
  404. HorizontalAlignment="Center"
  405. VerticalAlignment="Center"
  406. FontSize="25"
  407. Foreground="#FF2AB2E7"
  408. Text="{Binding Recipe4DosingComplete}" />
  409. </WrapPanel>
  410. <WrapPanel>
  411. <TextBlock
  412. Margin="10,0,5,0"
  413. VerticalAlignment="Center"
  414. FontSize="25"
  415. Foreground="#FF2AB2E7"
  416. Text="配方5:" />
  417. <TextBlock
  418. Margin="10"
  419. HorizontalAlignment="Center"
  420. VerticalAlignment="Center"
  421. FontSize="25"
  422. Foreground="#FF2AB2E7"
  423. Text="{Binding Recipe5DosingComplete}" />
  424. </WrapPanel>
  425. </WrapPanel>
  426. <WrapPanel Grid.Row="1" Grid.Column="2">
  427. <!--<ComboBox
  428. x:Name="cmbList"
  429. Width="70"
  430. VerticalAlignment="Center"
  431. BorderBrush="#FF074B92"
  432. BorderThickness="1"
  433. FontFamily="楷体"
  434. FontSize="14"
  435. Foreground="LightGray"
  436. IsEditable="False"
  437. MouseLeave="ComboBox_MouseLeave"
  438. Style="{StaticResource ComboBoxStyle}"
  439. Text="{Binding RawMaterialName}"/>-->
  440. <TextBlock
  441. Margin="10,0,5,0"
  442. VerticalAlignment="Center"
  443. FontSize="25"
  444. Foreground="#FF2AB2E7"
  445. Text="料仓号:" />
  446. <TextBox
  447. Width="50"
  448. Margin="10"
  449. HorizontalAlignment="Center"
  450. VerticalAlignment="Center"
  451. FontSize="25"
  452. Foreground="#FF2AB2E7"
  453. Text="{Binding StockbinDosingCompleNum}" />
  454. <Button
  455. Width="200"
  456. Height="40"
  457. Margin="5,0,5,0"
  458. Panel.ZIndex="0"
  459. Command="{Binding StockbinDosingComple}"
  460. Content="小料料仓配料完成"
  461. FontSize="20"
  462. Style="{StaticResource ImageButtonStyle}" />
  463. <Button
  464. Width="400"
  465. Height="40"
  466. Margin="10"
  467. HorizontalAlignment="Right"
  468. Panel.ZIndex="0"
  469. Command="{Binding StockbinDosingCompleClear}"
  470. Content="清除所有小料料仓配料完成信号"
  471. FontSize="20"
  472. Style="{StaticResource ImageButtonStyle}" />
  473. </WrapPanel>
  474. <WrapPanel Grid.Row="2" Grid.Column="2">
  475. <TextBlock
  476. Margin="10,0,5,0"
  477. VerticalAlignment="Center"
  478. FontSize="25"
  479. Foreground="#FF2AB2E7"
  480. Text="配方制作完成数目:" />
  481. <TextBlock
  482. Width="150"
  483. Margin="10"
  484. HorizontalAlignment="Center"
  485. VerticalAlignment="Center"
  486. FontSize="25"
  487. Foreground="#FF2AB2E7"
  488. Text="{Binding RecipeDosingCompleNum}" />
  489. <Button
  490. Width="400"
  491. Height="40"
  492. Margin="5,0,5,0"
  493. Panel.ZIndex="0"
  494. Command="{Binding CompletedNumResetCommand}"
  495. Content="完成数目清零"
  496. FontSize="20"
  497. Style="{StaticResource ImageButtonStyle}" />
  498. </WrapPanel>
  499. </Grid>
  500. </Grid>
  501. </Grid>
  502. </UserControl>