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

235 lines
13 KiB

  1. <UserControl x:Class="BPASmartClient.JXJFoodBigStation.View.ManualFlowView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.ViewModel"
  8. mc:Ignorable="d"
  9. d:DesignHeight="1080" d:DesignWidth="1920">
  10. <UserControl.DataContext>
  11. <vm:ManualFlowViewModel />
  12. </UserControl.DataContext>
  13. <Grid Margin="10">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="50" />
  16. <RowDefinition Height="50" />
  17. <RowDefinition Height="100" />
  18. <RowDefinition Height="1*" />
  19. </Grid.RowDefinitions>
  20. <!--#region 表格标题栏设置-->
  21. <Grid>
  22. <StackPanel Orientation="Horizontal" HorizontalAlignment="left" VerticalAlignment="Center">
  23. <Button
  24. Width="200"
  25. Height="40"
  26. Margin="5,0,5,0"
  27. Command="{Binding TrayInPlace}"
  28. CommandParameter="1"
  29. Content="AGV到达工位1"
  30. FontSize="20"
  31. Panel.ZIndex="0"
  32. Style="{StaticResource ImageButtonStyle}"></Button>
  33. <Button
  34. Width="200"
  35. Height="40"
  36. Margin="5,0,5,0"
  37. Command="{Binding TrayInPlace}"
  38. CommandParameter="2"
  39. Content="AGV到达工位2"
  40. FontSize="20"
  41. Panel.ZIndex="0"
  42. Style="{StaticResource ImageButtonStyle}"></Button>
  43. <Button
  44. Width="200"
  45. Height="40"
  46. Margin="5,0,5,0"
  47. Command="{Binding TrayInPlace}"
  48. CommandParameter="3"
  49. Content="AGV到达工位3"
  50. FontSize="20"
  51. Panel.ZIndex="0"
  52. Style="{StaticResource ImageButtonStyle}"></Button>
  53. <Button
  54. Width="200"
  55. Height="40"
  56. Margin="5,0,5,0"
  57. Command="{Binding TrayInPlace}"
  58. CommandParameter="4"
  59. Content="AGV到达工位4"
  60. FontSize="20"
  61. Panel.ZIndex="0"
  62. Style="{StaticResource ImageButtonStyle}"></Button>
  63. <Button
  64. Width="200"
  65. Height="40"
  66. Margin="5,0,5,0"
  67. Command="{Binding TrayInPlace}"
  68. CommandParameter="5"
  69. Content="AGV到达工位5"
  70. FontSize="20"
  71. Panel.ZIndex="0"
  72. Style="{StaticResource ImageButtonStyle}"></Button>
  73. </StackPanel>
  74. </Grid>
  75. <Grid Grid.Row="1">
  76. <StackPanel Orientation="Horizontal" HorizontalAlignment="left" VerticalAlignment="Center">
  77. <Button
  78. Width="200"
  79. Height="40"
  80. Margin="5,0,5,0"
  81. Command="{Binding TrayLeave}"
  82. CommandParameter="1"
  83. Content="AGV离开工位1"
  84. FontSize="20"
  85. Panel.ZIndex="0"
  86. Style="{StaticResource ImageButtonStyle}"></Button>
  87. <Button
  88. Width="200"
  89. Height="40"
  90. Margin="5,0,5,0"
  91. Command="{Binding TrayLeave}"
  92. CommandParameter="2"
  93. Content="AGV离开工位2"
  94. FontSize="20"
  95. Panel.ZIndex="0"
  96. Style="{StaticResource ImageButtonStyle}"></Button>
  97. <Button
  98. Width="200"
  99. Height="40"
  100. Margin="5,0,5,0"
  101. Command="{Binding TrayLeave}"
  102. CommandParameter="3"
  103. Content="AGV离开工位3"
  104. FontSize="20"
  105. Panel.ZIndex="0"
  106. Style="{StaticResource ImageButtonStyle}"></Button>
  107. <Button
  108. Width="200"
  109. Height="40"
  110. Margin="5,0,5,0"
  111. Command="{Binding TrayLeave}"
  112. CommandParameter="4"
  113. Content="AGV离开工位4"
  114. FontSize="20"
  115. Panel.ZIndex="0"
  116. Style="{StaticResource ImageButtonStyle}"></Button>
  117. <Button
  118. Width="200"
  119. Height="40"
  120. Margin="5,0,5,0"
  121. Command="{Binding TrayLeave}"
  122. CommandParameter="5"
  123. Content="AGV离开工位5"
  124. FontSize="20"
  125. Panel.ZIndex="0"
  126. Style="{StaticResource ImageButtonStyle}"></Button>
  127. </StackPanel>
  128. </Grid>
  129. <Grid Grid.Row="2">
  130. <StackPanel Orientation="Horizontal" HorizontalAlignment="left" VerticalAlignment="Center">
  131. <Button
  132. Width="200"
  133. Height="40"
  134. Margin="5,0,5,0"
  135. Command="{Binding ClearTrayInPlace}"
  136. Content="清除AGV到位信号"
  137. FontSize="20"
  138. Panel.ZIndex="0"
  139. Style="{StaticResource ImageButtonStyle}"></Button>
  140. <Button
  141. Width="200"
  142. Height="40"
  143. Margin="5,0,5,0"
  144. Command="{Binding ClearAllRecipe}"
  145. Content="清除西门子所有配方"
  146. FontSize="20"
  147. Panel.ZIndex="0"
  148. Style="{StaticResource ImageButtonStyle}"></Button>
  149. </StackPanel>
  150. </Grid>
  151. <Grid Grid.Row="3">
  152. <Grid.ColumnDefinitions>
  153. <ColumnDefinition></ColumnDefinition>
  154. <ColumnDefinition></ColumnDefinition>
  155. <ColumnDefinition></ColumnDefinition>
  156. </Grid.ColumnDefinitions>
  157. <StackPanel>
  158. <WrapPanel>
  159. <TextBlock Text="plc心跳:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  160. <TextBlock Text="{Binding Heartbeat}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="10"></TextBlock>
  161. </WrapPanel>
  162. <WrapPanel>
  163. <TextBlock Text="订单号:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  164. <TextBox Width="300" Margin="5" Text="{Binding CancelRecipeCode}" FontSize="24" VerticalAlignment="Center"></TextBox>
  165. <Button Style="{StaticResource ImageButtonStyle}" Width="120" Height="40" FontSize="20" Content="取消订单" Margin="5" Command="{Binding CancelRecipeCommand}"></Button>
  166. </WrapPanel>
  167. </StackPanel>
  168. <StackPanel Grid.Column="3">
  169. <WrapPanel>
  170. <TextBlock Text="料仓名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  171. <TextBlock Text="{Binding StockBinName}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  172. </WrapPanel>
  173. <WrapPanel>
  174. <TextBlock Text="料仓1名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  175. <TextBlock Text="{Binding StockBin1Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  176. </WrapPanel>
  177. <WrapPanel>
  178. <TextBlock Text="料仓2名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  179. <TextBlock Text="{Binding StockBin2Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  180. </WrapPanel>
  181. <WrapPanel>
  182. <TextBlock Text="料仓3名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  183. <TextBlock Text="{Binding StockBin3Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  184. </WrapPanel>
  185. <WrapPanel>
  186. <TextBlock Text="料仓4名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  187. <TextBlock Text="{Binding StockBin4Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  188. </WrapPanel>
  189. <WrapPanel>
  190. <TextBlock Text="料仓5名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  191. <TextBlock Text="{Binding StockBin5Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  192. </WrapPanel>
  193. <WrapPanel>
  194. <TextBlock Text="料仓6名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  195. <TextBlock Text="{Binding StockBin6Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  196. </WrapPanel>
  197. <WrapPanel>
  198. <TextBlock Text="料仓7名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  199. <TextBlock Text="{Binding StockBin7Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  200. </WrapPanel>
  201. <WrapPanel>
  202. <TextBlock Text="料仓8名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  203. <TextBlock Text="{Binding StockBin8Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  204. </WrapPanel>
  205. <WrapPanel>
  206. <TextBlock Text="料仓9名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  207. <TextBlock Text="{Binding StockBin9Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  208. </WrapPanel>
  209. <WrapPanel>
  210. <TextBlock Text="料仓10名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  211. <TextBlock Text="{Binding StockBin10Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  212. </WrapPanel>
  213. <WrapPanel>
  214. <TextBlock Text="料仓11名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  215. <TextBlock Text="{Binding StockBin11Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  216. </WrapPanel>
  217. <WrapPanel>
  218. <TextBlock Text="料仓12名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  219. <TextBlock Text="{Binding StockBin12Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  220. </WrapPanel>
  221. <WrapPanel>
  222. <TextBlock Text="料仓13名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  223. <TextBlock Text="{Binding StockBin13Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  224. </WrapPanel>
  225. <WrapPanel>
  226. <TextBlock Text="料仓14名称:" Foreground="#FF2AB2E7" FontSize="25" Margin="10,0,5,0" VerticalAlignment="Center"></TextBlock>
  227. <TextBlock Text="{Binding StockBin14Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" FontSize="25" Margin="5"></TextBlock>
  228. </WrapPanel>
  229. </StackPanel>
  230. </Grid>
  231. </Grid>
  232. </UserControl>