终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

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