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

439 lines
17 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodBigStation.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.JXJFoodBigStation.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="50" />
  18. <RowDefinition Height="50" />
  19. <RowDefinition Height="100" />
  20. <RowDefinition Height="1*" />
  21. </Grid.RowDefinitions>
  22. <!--#region 表格标题栏设置-->
  23. <Grid>
  24. <StackPanel
  25. HorizontalAlignment="left"
  26. VerticalAlignment="Center"
  27. Orientation="Horizontal">
  28. <Button
  29. Width="200"
  30. Height="40"
  31. Margin="5,0,5,0"
  32. Panel.ZIndex="0"
  33. Command="{Binding TrayInPlace}"
  34. CommandParameter="1"
  35. Content="AGV到达工位1"
  36. FontSize="20"
  37. Style="{StaticResource ImageButtonStyle}" />
  38. <Button
  39. Width="200"
  40. Height="40"
  41. Margin="5,0,5,0"
  42. Panel.ZIndex="0"
  43. Command="{Binding TrayInPlace}"
  44. CommandParameter="2"
  45. Content="AGV到达工位2"
  46. FontSize="20"
  47. Style="{StaticResource ImageButtonStyle}" />
  48. <Button
  49. Width="200"
  50. Height="40"
  51. Margin="5,0,5,0"
  52. Panel.ZIndex="0"
  53. Command="{Binding TrayInPlace}"
  54. CommandParameter="3"
  55. Content="AGV到达工位3"
  56. FontSize="20"
  57. Style="{StaticResource ImageButtonStyle}" />
  58. <Button
  59. Width="200"
  60. Height="40"
  61. Margin="5,0,5,0"
  62. Panel.ZIndex="0"
  63. Command="{Binding TrayInPlace}"
  64. CommandParameter="4"
  65. Content="AGV到达工位4"
  66. FontSize="20"
  67. Style="{StaticResource ImageButtonStyle}" />
  68. <Button
  69. Width="200"
  70. Height="40"
  71. Margin="5,0,5,0"
  72. Panel.ZIndex="0"
  73. Command="{Binding TrayInPlace}"
  74. CommandParameter="5"
  75. Content="AGV到达工位5"
  76. FontSize="20"
  77. Style="{StaticResource ImageButtonStyle}" />
  78. </StackPanel>
  79. </Grid>
  80. <Grid Grid.Row="1">
  81. <StackPanel
  82. HorizontalAlignment="left"
  83. VerticalAlignment="Center"
  84. Orientation="Horizontal">
  85. <Button
  86. Width="200"
  87. Height="40"
  88. Margin="5,0,5,0"
  89. Panel.ZIndex="0"
  90. Command="{Binding TrayLeave}"
  91. CommandParameter="1"
  92. Content="AGV离开工位1"
  93. FontSize="20"
  94. Style="{StaticResource ImageButtonStyle}" />
  95. <Button
  96. Width="200"
  97. Height="40"
  98. Margin="5,0,5,0"
  99. Panel.ZIndex="0"
  100. Command="{Binding TrayLeave}"
  101. CommandParameter="2"
  102. Content="AGV离开工位2"
  103. FontSize="20"
  104. Style="{StaticResource ImageButtonStyle}" />
  105. <Button
  106. Width="200"
  107. Height="40"
  108. Margin="5,0,5,0"
  109. Panel.ZIndex="0"
  110. Command="{Binding TrayLeave}"
  111. CommandParameter="3"
  112. Content="AGV离开工位3"
  113. FontSize="20"
  114. Style="{StaticResource ImageButtonStyle}" />
  115. <Button
  116. Width="200"
  117. Height="40"
  118. Margin="5,0,5,0"
  119. Panel.ZIndex="0"
  120. Command="{Binding TrayLeave}"
  121. CommandParameter="4"
  122. Content="AGV离开工位4"
  123. FontSize="20"
  124. Style="{StaticResource ImageButtonStyle}" />
  125. <Button
  126. Width="200"
  127. Height="40"
  128. Margin="5,0,5,0"
  129. Panel.ZIndex="0"
  130. Command="{Binding TrayLeave}"
  131. CommandParameter="5"
  132. Content="AGV离开工位5"
  133. FontSize="20"
  134. Style="{StaticResource ImageButtonStyle}" />
  135. </StackPanel>
  136. </Grid>
  137. <Grid Grid.Row="2">
  138. <StackPanel
  139. HorizontalAlignment="left"
  140. VerticalAlignment="Center"
  141. Orientation="Horizontal">
  142. <Button
  143. Width="200"
  144. Height="40"
  145. Margin="5,0,5,0"
  146. Panel.ZIndex="0"
  147. Command="{Binding ClearTrayInPlace}"
  148. Content="清除AGV到位信号"
  149. FontSize="20"
  150. Style="{StaticResource ImageButtonStyle}" />
  151. <Button
  152. Width="200"
  153. Height="40"
  154. Margin="5,0,5,0"
  155. Panel.ZIndex="0"
  156. Command="{Binding ClearAllRecipe}"
  157. Content="清除西门子所有配方"
  158. FontSize="20"
  159. Style="{StaticResource ImageButtonStyle}" />
  160. </StackPanel>
  161. </Grid>
  162. <Grid Grid.Row="3">
  163. <Grid.ColumnDefinitions>
  164. <ColumnDefinition />
  165. <ColumnDefinition />
  166. <ColumnDefinition />
  167. </Grid.ColumnDefinitions>
  168. <StackPanel>
  169. <WrapPanel>
  170. <TextBlock
  171. Margin="10,0,5,0"
  172. VerticalAlignment="Center"
  173. FontSize="25"
  174. Foreground="#FF2AB2E7"
  175. Text="PLC心跳:" />
  176. <TextBlock
  177. Margin="10"
  178. HorizontalAlignment="Center"
  179. VerticalAlignment="Center"
  180. FontSize="25"
  181. Foreground="#FF2AB2E7"
  182. Text="{Binding Heartbeat}" />
  183. </WrapPanel>
  184. <WrapPanel>
  185. <TextBlock
  186. Margin="10,0,5,0"
  187. VerticalAlignment="Center"
  188. FontSize="25"
  189. Foreground="#FF2AB2E7"
  190. Text="订单号:" />
  191. <TextBox
  192. Width="300"
  193. Margin="5"
  194. VerticalAlignment="Center"
  195. FontSize="24"
  196. Text="{Binding CancelRecipeCode}" />
  197. <Button
  198. Width="120"
  199. Height="40"
  200. Margin="5"
  201. Command="{Binding CancelRecipeCommand}"
  202. Content="取消订单"
  203. FontSize="20"
  204. Style="{StaticResource ImageButtonStyle}" />
  205. </WrapPanel>
  206. </StackPanel>
  207. <StackPanel Grid.Column="3">
  208. <WrapPanel>
  209. <TextBlock
  210. Margin="10,0,5,0"
  211. VerticalAlignment="Center"
  212. FontSize="25"
  213. Foreground="#FF2AB2E7"
  214. Text="料仓名称:" />
  215. <TextBlock
  216. Margin="5"
  217. HorizontalAlignment="Center"
  218. VerticalAlignment="Center"
  219. FontSize="25"
  220. Foreground="#FF2AB2E7"
  221. Text="{Binding StockBinName}" />
  222. </WrapPanel>
  223. <WrapPanel>
  224. <TextBlock
  225. Margin="10,0,5,0"
  226. VerticalAlignment="Center"
  227. FontSize="25"
  228. Foreground="#FF2AB2E7"
  229. Text="料仓1名称:" />
  230. <TextBlock
  231. Margin="5"
  232. HorizontalAlignment="Center"
  233. VerticalAlignment="Center"
  234. FontSize="25"
  235. Foreground="#FF2AB2E7"
  236. Text="{Binding StockBin1Name}" />
  237. </WrapPanel>
  238. <WrapPanel>
  239. <TextBlock
  240. Margin="10,0,5,0"
  241. VerticalAlignment="Center"
  242. FontSize="25"
  243. Foreground="#FF2AB2E7"
  244. Text="料仓2名称:" />
  245. <TextBlock
  246. Margin="5"
  247. HorizontalAlignment="Center"
  248. VerticalAlignment="Center"
  249. FontSize="25"
  250. Foreground="#FF2AB2E7"
  251. Text="{Binding StockBin2Name}" />
  252. </WrapPanel>
  253. <WrapPanel>
  254. <TextBlock
  255. Margin="10,0,5,0"
  256. VerticalAlignment="Center"
  257. FontSize="25"
  258. Foreground="#FF2AB2E7"
  259. Text="料仓3名称:" />
  260. <TextBlock
  261. Margin="5"
  262. HorizontalAlignment="Center"
  263. VerticalAlignment="Center"
  264. FontSize="25"
  265. Foreground="#FF2AB2E7"
  266. Text="{Binding StockBin3Name}" />
  267. </WrapPanel>
  268. <WrapPanel>
  269. <TextBlock
  270. Margin="10,0,5,0"
  271. VerticalAlignment="Center"
  272. FontSize="25"
  273. Foreground="#FF2AB2E7"
  274. Text="料仓4名称:" />
  275. <TextBlock
  276. Margin="5"
  277. HorizontalAlignment="Center"
  278. VerticalAlignment="Center"
  279. FontSize="25"
  280. Foreground="#FF2AB2E7"
  281. Text="{Binding StockBin4Name}" />
  282. </WrapPanel>
  283. <WrapPanel>
  284. <TextBlock
  285. Margin="10,0,5,0"
  286. VerticalAlignment="Center"
  287. FontSize="25"
  288. Foreground="#FF2AB2E7"
  289. Text="料仓5名称:" />
  290. <TextBlock
  291. Margin="5"
  292. HorizontalAlignment="Center"
  293. VerticalAlignment="Center"
  294. FontSize="25"
  295. Foreground="#FF2AB2E7"
  296. Text="{Binding StockBin5Name}" />
  297. </WrapPanel>
  298. <WrapPanel>
  299. <TextBlock
  300. Margin="10,0,5,0"
  301. VerticalAlignment="Center"
  302. FontSize="25"
  303. Foreground="#FF2AB2E7"
  304. Text="料仓6名称:" />
  305. <TextBlock
  306. Margin="5"
  307. HorizontalAlignment="Center"
  308. VerticalAlignment="Center"
  309. FontSize="25"
  310. Foreground="#FF2AB2E7"
  311. Text="{Binding StockBin6Name}" />
  312. </WrapPanel>
  313. <WrapPanel>
  314. <TextBlock
  315. Margin="10,0,5,0"
  316. VerticalAlignment="Center"
  317. FontSize="25"
  318. Foreground="#FF2AB2E7"
  319. Text="料仓7名称:" />
  320. <TextBlock
  321. Margin="5"
  322. HorizontalAlignment="Center"
  323. VerticalAlignment="Center"
  324. FontSize="25"
  325. Foreground="#FF2AB2E7"
  326. Text="{Binding StockBin7Name}" />
  327. </WrapPanel>
  328. <WrapPanel>
  329. <TextBlock
  330. Margin="10,0,5,0"
  331. VerticalAlignment="Center"
  332. FontSize="25"
  333. Foreground="#FF2AB2E7"
  334. Text="料仓8名称:" />
  335. <TextBlock
  336. Margin="5"
  337. HorizontalAlignment="Center"
  338. VerticalAlignment="Center"
  339. FontSize="25"
  340. Foreground="#FF2AB2E7"
  341. Text="{Binding StockBin8Name}" />
  342. </WrapPanel>
  343. <WrapPanel>
  344. <TextBlock
  345. Margin="10,0,5,0"
  346. VerticalAlignment="Center"
  347. FontSize="25"
  348. Foreground="#FF2AB2E7"
  349. Text="料仓9名称:" />
  350. <TextBlock
  351. Margin="5"
  352. HorizontalAlignment="Center"
  353. VerticalAlignment="Center"
  354. FontSize="25"
  355. Foreground="#FF2AB2E7"
  356. Text="{Binding StockBin9Name}" />
  357. </WrapPanel>
  358. <WrapPanel>
  359. <TextBlock
  360. Margin="10,0,5,0"
  361. VerticalAlignment="Center"
  362. FontSize="25"
  363. Foreground="#FF2AB2E7"
  364. Text="料仓10名称:" />
  365. <TextBlock
  366. Margin="5"
  367. HorizontalAlignment="Center"
  368. VerticalAlignment="Center"
  369. FontSize="25"
  370. Foreground="#FF2AB2E7"
  371. Text="{Binding StockBin10Name}" />
  372. </WrapPanel>
  373. <WrapPanel>
  374. <TextBlock
  375. Margin="10,0,5,0"
  376. VerticalAlignment="Center"
  377. FontSize="25"
  378. Foreground="#FF2AB2E7"
  379. Text="料仓11名称:" />
  380. <TextBlock
  381. Margin="5"
  382. HorizontalAlignment="Center"
  383. VerticalAlignment="Center"
  384. FontSize="25"
  385. Foreground="#FF2AB2E7"
  386. Text="{Binding StockBin11Name}" />
  387. </WrapPanel>
  388. <WrapPanel>
  389. <TextBlock
  390. Margin="10,0,5,0"
  391. VerticalAlignment="Center"
  392. FontSize="25"
  393. Foreground="#FF2AB2E7"
  394. Text="料仓12名称:" />
  395. <TextBlock
  396. Margin="5"
  397. HorizontalAlignment="Center"
  398. VerticalAlignment="Center"
  399. FontSize="25"
  400. Foreground="#FF2AB2E7"
  401. Text="{Binding StockBin12Name}" />
  402. </WrapPanel>
  403. <WrapPanel>
  404. <TextBlock
  405. Margin="10,0,5,0"
  406. VerticalAlignment="Center"
  407. FontSize="25"
  408. Foreground="#FF2AB2E7"
  409. Text="料仓13名称:" />
  410. <TextBlock
  411. Margin="5"
  412. HorizontalAlignment="Center"
  413. VerticalAlignment="Center"
  414. FontSize="25"
  415. Foreground="#FF2AB2E7"
  416. Text="{Binding StockBin13Name}" />
  417. </WrapPanel>
  418. <WrapPanel>
  419. <TextBlock
  420. Margin="10,0,5,0"
  421. VerticalAlignment="Center"
  422. FontSize="25"
  423. Foreground="#FF2AB2E7"
  424. Text="料仓14名称:" />
  425. <TextBlock
  426. Margin="5"
  427. HorizontalAlignment="Center"
  428. VerticalAlignment="Center"
  429. FontSize="25"
  430. Foreground="#FF2AB2E7"
  431. Text="{Binding StockBin14Name}" />
  432. </WrapPanel>
  433. </StackPanel>
  434. </Grid>
  435. </Grid>
  436. </UserControl>