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

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