终端一体化运控平台
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

247 строки
9.3 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkCL.View.Debug"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:converter="clr-namespace:BPASmartClient.MorkCL.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.MorkCL.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.MorkCL.ViewModel"
  11. Name="调试界面"
  12. d:DesignHeight="900"
  13. d:DesignWidth="1200"
  14. mc:Ignorable="d">
  15. <UserControl.DataContext>
  16. <vm:DebugViewModel />
  17. </UserControl.DataContext>
  18. <UserControl.Resources>
  19. <ResourceDictionary>
  20. <ResourceDictionary.MergedDictionaries>
  21. <ResourceDictionary Source="/BPASmartClient.MorkCL;component/CustomStyle/CustomStyle.xaml" />
  22. </ResourceDictionary.MergedDictionaries>
  23. <converter:FryPanConverter x:Key="FryPanConverter" />
  24. </ResourceDictionary>
  25. </UserControl.Resources>
  26. <Grid>
  27. <Grid.RowDefinitions>
  28. <RowDefinition Height="1*" />
  29. <RowDefinition Height="1*" />
  30. <RowDefinition Height="1*" />
  31. </Grid.RowDefinitions>
  32. <!--#region 炒锅控制-->
  33. <pry:ImageBorder Margin="10" />
  34. <StackPanel Margin="15" Orientation="Vertical">
  35. <StackPanel Margin="0,0,0,20" Orientation="Horizontal">
  36. <TextBlock Text="炒锅控制" />
  37. <ComboBox
  38. Width="100"
  39. Margin="25,0"
  40. FontSize="16"
  41. ItemsSource="{Binding DeviceTypes}"
  42. SelectedItem="{Binding FryingPanSelect}" />
  43. </StackPanel>
  44. <StackPanel Margin="5" Orientation="Horizontal">
  45. <Button
  46. Margin="0,0,20,0"
  47. Command="{Binding SetAutoModeCommand}"
  48. Content="设为自动模式" />
  49. <Button
  50. Margin="10,0"
  51. Command="{Binding SetManualModeCommand}"
  52. Content="设为手动模式" />
  53. <Button
  54. Margin="10,0"
  55. Command="{Binding InitalDeviceCommand}"
  56. Content="初始化设备" />
  57. <Button
  58. Width="100"
  59. Margin="10,0"
  60. Command="{Binding StopDeviceCommand}"
  61. Content="停止" />
  62. </StackPanel>
  63. <StackPanel Margin="5" Orientation="Horizontal">
  64. <TextBlock Text="搅拌设定:" />
  65. <TextBox
  66. Width="100"
  67. Margin="5,0"
  68. FontSize="16"
  69. Text="{Binding AgitaFrequency}" />
  70. <Button
  71. Margin="5,0"
  72. Command="{Binding WriteAgitaParamCommand}"
  73. Content="写入参数" />
  74. <Button
  75. Margin="5,0"
  76. Command="{Binding StartAgitateCommand}"
  77. Content="开始搅拌" />
  78. <Button
  79. Margin="5,0"
  80. Command="{Binding StopAgitateCommand}"
  81. Content="停止搅拌" />
  82. </StackPanel>
  83. <StackPanel Margin="5" Orientation="Horizontal">
  84. <TextBlock Text="加热设定:" />
  85. <TextBox
  86. Width="100"
  87. Margin="5,0"
  88. FontSize="16"
  89. Text="{Binding HeatGear}" />
  90. <Button
  91. Margin="5,0"
  92. Command="{Binding WriteHeatParamCommand}"
  93. Content="写入参数" />
  94. <Button
  95. Margin="5,0"
  96. Command="{Binding StartHeatCommand}"
  97. Content="开始加热" />
  98. <Button
  99. Margin="5,0"
  100. Command="{Binding StopHeatCommand}"
  101. Content="停止加热" />
  102. </StackPanel>
  103. <StackPanel Margin="5" Orientation="Horizontal">
  104. <TextBlock Text="通道下料:" />
  105. <TextBox
  106. Width="100"
  107. Margin="5,0"
  108. FontSize="16"
  109. Text="{Binding Weight}" />
  110. <ComboBox
  111. Width="76"
  112. Margin="5,0"
  113. FontSize="16"
  114. SelectedIndex="{Binding ChannelSelect}">
  115. <ComboBoxItem Content="1#通道" />
  116. <ComboBoxItem Content="2#通道" />
  117. <ComboBoxItem Content="3#通道" />
  118. </ComboBox>
  119. <Button
  120. Margin="5,0"
  121. Command="{Binding ChannelCuttingCommand}"
  122. Content="开始下料" />
  123. </StackPanel>
  124. <StackPanel Margin="5" Orientation="Horizontal">
  125. <TextBlock Text="去炒制位:" />
  126. <ComboBox
  127. Width="100"
  128. Margin="5,0"
  129. FontSize="16"
  130. SelectedIndex="{Binding StirFryLocSelect}">
  131. <ComboBoxItem Content="1#炒制位" />
  132. <ComboBoxItem Content="2#炒制位" />
  133. <ComboBoxItem Content="3#炒制位" />
  134. </ComboBox>
  135. <Button
  136. Margin="5,0"
  137. Command="{Binding GoFryLocCommand}"
  138. Content="写入位置" />
  139. </StackPanel>
  140. <WrapPanel Margin="0,5">
  141. <Button
  142. Width="200"
  143. Margin="5,0"
  144. HorizontalAlignment="Left"
  145. Command="{Binding GoHomeCommand}"
  146. Content="炒锅回原点(投料位置)" />
  147. <Button
  148. Width="200"
  149. Margin="5,0"
  150. HorizontalAlignment="Left"
  151. Command="{Binding GoSeasoningFeddLocCommand}"
  152. Content="炒锅去调料投料位置" />
  153. <Button
  154. Width="100"
  155. Margin="5,0"
  156. HorizontalAlignment="Left"
  157. Command="{Binding OutDiningStartCommand}"
  158. Content="出餐启动" />
  159. <Button
  160. Width="100"
  161. Margin="5,0"
  162. HorizontalAlignment="Left"
  163. Command="{Binding FryPanCleanCommand}"
  164. Content="炒锅清洗" />
  165. <!--<Button
  166. Width="100"
  167. Margin="10,0"
  168. Command="{Binding GoCleanLocCommand}"
  169. Content="去洗锅位" />-->
  170. </WrapPanel>
  171. </StackPanel>
  172. <!--#endregion-->
  173. <!--#region 机器人控制-->
  174. <pry:ImageBorder Grid.Row="1" Margin="10" />
  175. <StackPanel
  176. Grid.Row="1"
  177. Margin="15"
  178. Orientation="Vertical">
  179. <Button
  180. Width="200"
  181. Height="50"
  182. Margin="5"
  183. HorizontalAlignment="Left"
  184. Command="{Binding RobotGoCleanLocCommand}"
  185. Content="机器人去清洗位置" />
  186. <Button
  187. Width="200"
  188. Height="50"
  189. Margin="5"
  190. HorizontalAlignment="Left"
  191. Command="{Binding InitRobotVarCommand}"
  192. Content="复位机器人所有变量" />
  193. </StackPanel>
  194. <!--#endregion-->
  195. <!--#region 系统任务控制-->
  196. <pry:ImageBorder Grid.Row="2" Margin="10" />
  197. <StackPanel
  198. Grid.Row="2"
  199. Margin="15"
  200. Orientation="Vertical">
  201. <StackPanel Orientation="Horizontal">
  202. <Button
  203. Width="150"
  204. Height="35"
  205. Margin="5"
  206. Command="{Binding CancelFryPanTaskCommand}"
  207. CommandParameter="炒锅1"
  208. Content="取消当前1#炒锅任务" />
  209. <Button
  210. Width="150"
  211. Height="35"
  212. Margin="5"
  213. Command="{Binding CancelFryPanTaskCommand}"
  214. CommandParameter="炒锅2"
  215. Content="取消当前2#炒锅任务" />
  216. </StackPanel>
  217. <!--<StackPanel Orientation="Horizontal">
  218. <Button
  219. Width="150"
  220. Height="35"
  221. Margin="5"
  222. Command="{Binding ClearFryPanTaskCommand_1}"
  223. Content="清空1#炒锅任务"
  224. Visibility="Collapsed" />
  225. <Button
  226. Width="150"
  227. Height="35"
  228. Margin="5"
  229. Command="{Binding ClearFryPanTaskCommand_2}"
  230. Content="清空2#炒锅任务"
  231. Visibility="Collapsed" />
  232. </StackPanel>-->
  233. </StackPanel>
  234. <!--#endregion-->
  235. </Grid>
  236. </UserControl>