终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

323 行
16 KiB

  1. <UserControl x:Class="BPASmartClient.MorkT.View.DebugView"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:vm ="clr-namespace:BPASmartClient.MorkT.ViewModel"
  7. mc:Ignorable="d"
  8. Name="调试界面"
  9. d:DesignHeight="500" d:DesignWidth="1000" Unloaded="Dubug_Unloaded">
  10. <UserControl.DataContext>
  11. <vm:DebugViewModel/>
  12. </UserControl.DataContext>
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  18. </ResourceDictionary.MergedDictionaries>
  19. </ResourceDictionary>
  20. </UserControl.Resources>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="10*"/>
  24. <ColumnDefinition Width="10*"/>
  25. </Grid.ColumnDefinitions>
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="384*"/>
  28. <RowDefinition Height="111*"/>
  29. <RowDefinition Height="5*"/>
  30. </Grid.RowDefinitions>
  31. <GroupBox Grid.ColumnSpan="2" Visibility="Collapsed"
  32. FontFamily="楷体"
  33. FontSize="20"
  34. Header=" 乐白机器人 ">
  35. <Grid Margin="10">
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="*"/>
  38. <RowDefinition Height="*"/>
  39. <RowDefinition Height="3*"/>
  40. </Grid.RowDefinitions>
  41. <StackPanel Orientation="Horizontal">
  42. <TextBlock Text="连接状态" />
  43. <TextBlock Text="{Binding RobotConnected}"
  44. Margin="40,0"/>
  45. <TextBlock Text="机器人模式:"/>
  46. <TextBlock Text="{Binding RobotMode}"
  47. Margin="40,0"/>
  48. <TextBlock Text="机器人自嗨时间间隔:"/>
  49. <TextBox Text="{Binding TimeInterval}" Width="40" Margin="10,0,5,0"/>
  50. <TextBlock Text="分"/>
  51. </StackPanel>
  52. <TextBlock Text="连接状态" />
  53. <TextBlock Text="{Binding RobotConnected}"
  54. Margin="120,0,0,0"/>
  55. <TextBlock Text="乐白机器人控制"
  56. Grid.Row="1"
  57. VerticalAlignment="Center" HorizontalAlignment="Center"/>
  58. <ListBox Grid.Row="2" Background="Transparent">
  59. <ListBox.Template>
  60. <ControlTemplate TargetType="{x:Type ListBox}">
  61. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  62. <WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"/>
  63. </ScrollViewer>
  64. </ControlTemplate>
  65. </ListBox.Template>
  66. <Button Content="机器人启动"
  67. Margin="20,5" Width="150" Height="60"
  68. Command="{Binding Button_RobotControlCommand}"
  69. CommandParameter="机器人启动" Cursor="Hand">
  70. </Button>
  71. <Button Content="启动示教"
  72. Margin="20,5" Width="150" Height="60"
  73. Command="{Binding Button_RobotControlCommand}"
  74. CommandParameter="启动示教"/>
  75. <Button Content="停止示教"
  76. Margin="20,5" Width="150" Height="60"
  77. Command="{Binding Button_RobotControlCommand}"
  78. CommandParameter="停止示教"/>
  79. <Button Content="机器人急停"
  80. Margin="20,5" Width="110" Height="60"
  81. Command="{Binding Button_RobotControlCommand}"
  82. CommandParameter="机器人急停"/>
  83. <!--<Button Content="机器人回原点"
  84. Margin="20,5" Width="110" Height="60"
  85. Command="{Binding Button_GoToHomeCommand}"
  86. CommandParameter="机器人急停">-->
  87. <!--</Button>-->
  88. </ListBox>
  89. </Grid>
  90. </GroupBox>
  91. <GroupBox Grid.Row="0"
  92. FontFamily="楷体"
  93. FontSize="20"
  94. Header=" 冰淇淋机器 ">
  95. <Grid>
  96. <Grid.RowDefinitions>
  97. <RowDefinition Height="30"/>
  98. <RowDefinition Height="10*" />
  99. <RowDefinition Height="10*"/>
  100. </Grid.RowDefinitions>
  101. <TextBlock Text="连接状态" />
  102. <TextBlock Text="{Binding IceCreamConnected}"
  103. Margin="120,0,0,0"/>
  104. <Grid Grid.Row="1">
  105. <Grid.RowDefinitions>
  106. <RowDefinition />
  107. <RowDefinition />
  108. <RowDefinition />
  109. <RowDefinition />
  110. </Grid.RowDefinitions>
  111. <Grid.ColumnDefinitions>
  112. <ColumnDefinition Width="100" />
  113. <ColumnDefinition Width="80" />
  114. <ColumnDefinition Width="120" />
  115. <ColumnDefinition Width="100" />
  116. </Grid.ColumnDefinitions>
  117. <TextBlock Grid.Row="0" Grid.Column="0">预冷温度</TextBlock>
  118. <TextBlock
  119. Grid.Row="0"
  120. Grid.Column="1"
  121. Text="{Binding YLWD}" />
  122. <TextBlock Grid.Row="0" Grid.Column="2">回气温度</TextBlock>
  123. <TextBlock
  124. Grid.Row="0"
  125. Grid.Column="3"
  126. Text="{Binding HQWD}" />
  127. <TextBlock Grid.Row="1" Grid.Column="0">环境温度</TextBlock>
  128. <TextBlock
  129. Grid.Row="1"
  130. Grid.Column="1"
  131. Text="{Binding HJWD}" />
  132. <TextBlock Grid.Row="1" Grid.Column="2">当前模式</TextBlock>
  133. <TextBlock
  134. Grid.Row="1"
  135. Grid.Column="3"
  136. Text="{Binding CurrentMode}" />
  137. <TextBlock Grid.Row="2" Grid.Column="0">电流</TextBlock>
  138. <TextBlock
  139. Grid.Row="2"
  140. Grid.Column="1"
  141. Text="{Binding DL}" />
  142. <TextBlock Grid.Row="2" Grid.Column="2">电压</TextBlock>
  143. <TextBlock
  144. Grid.Row="2"
  145. Grid.Column="3"
  146. Text="{Binding DY}" />
  147. <TextBlock Grid.Row="3" Grid.Column="0">成型比</TextBlock>
  148. <TextBlock
  149. Grid.Row="3"
  150. Grid.Column="1"
  151. Text="{Binding CXB}" />
  152. <TextBlock Grid.Row="3" Grid.Column="2">故障</TextBlock>
  153. <TextBlock
  154. Grid.Row="3"
  155. Grid.Column="3"
  156. Text="{Binding IceCreamFault}" />
  157. </Grid>
  158. <StackPanel Grid.Row="2" Orientation="Vertical">
  159. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  160. <TextBlock>冰淇淋</TextBlock>
  161. <Button Command="{Binding Button_MakeIceCreamCommand}"
  162. Margin="40,5" Height="50" Width="170"
  163. Content="制作" />
  164. </StackPanel>
  165. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" Height="70">
  166. <TextBlock >模式</TextBlock>
  167. <ComboBox Width="100" Height="40" FontSize="22"
  168. Margin="20,0"
  169. ItemsSource="{Binding IceCreamModes}"
  170. SelectedItem="{Binding SelecteIceCreamdMode}" />
  171. <Button Command="{Binding Button_SetIceCreamModelCommand}"
  172. Margin="20,0" Height="50" Width="150"
  173. Content="设置" />
  174. </StackPanel>
  175. </StackPanel>
  176. </Grid>
  177. </GroupBox>
  178. <!--<GroupBox Grid.Row="2" Grid.Column="0"
  179. FontSize="20" FontFamily="楷体"
  180. Header="单片机冰淇淋" >
  181. <Grid>
  182. <Grid.RowDefinitions>
  183. <RowDefinition Height="*"/>
  184. <RowDefinition Height="*"/>
  185. <RowDefinition Height="5*"/>
  186. </Grid.RowDefinitions>
  187. <TextBlock Text="连接状态" />
  188. <TextBlock Text="{Binding SCChipIsConnect}"
  189. Margin="120,0,0,0"/>
  190. <TextBlock Grid.Row="1" Text="单片机控制" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  191. <ListBox Grid.Row="2" Background="Transparent">
  192. <ListBox.Template>
  193. <ControlTemplate TargetType="{x:Type ListBox}">
  194. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  195. <WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"/>
  196. </ScrollViewer>
  197. </ControlTemplate>
  198. </ListBox.Template>
  199. <Button Content="咖啡杯落杯" Height="40" Width="120"
  200. Command="{Binding Button_CupControlCommand}"
  201. CommandParameter="CUP_COFFEE"
  202. Margin="10,10,50,10" Cursor="Hand"/>
  203. <Button Content="冰淇淋杯落杯" Height="40" Width="120"
  204. Command="{Binding Button_CupControlCommand}"
  205. CommandParameter="CUP_ICECREAM" Margin="10,10,50,10"
  206. />
  207. <Button Content="单片机冰淇淋制冷" Height="40" Width="120"
  208. Command="{Binding Button_SCChipRefrigerationCommand}" Cursor="Hand"
  209. Margin="10,10,50,10"
  210. />
  211. <Button Content="单片机冰淇淋打料" Height="40" Width="120" Margin="10,10,50,10"
  212. Command="{Binding Button_SCChipDischargeCommand}" Cursor="Hand" />
  213. <Button Content="单片机冰淇淋模拟" Height="40" Width="120"
  214. Command="{Binding Button_SCChipTestCommand}" Cursor="Hand"
  215. Margin="10,10,50,10"/>
  216. </ListBox>
  217. </Grid>
  218. </GroupBox>-->
  219. <GroupBox Grid.Row="0" Grid.Column="1"
  220. FontFamily="楷体"
  221. FontSize="20"
  222. Header=" 咖啡机">
  223. <Grid>
  224. <Grid.RowDefinitions>
  225. <RowDefinition Height="30"/>
  226. <RowDefinition />
  227. <RowDefinition />
  228. </Grid.RowDefinitions>
  229. <TextBlock Text="连接状态" />
  230. <TextBlock Text="{Binding CoffeeConnected}"
  231. Margin="120,0,0,0"/>
  232. <Grid Grid.Row="1">
  233. <Grid.Resources>
  234. <Style TargetType="TextBlock">
  235. <Setter Property="HorizontalAlignment" Value="Left" />
  236. <Setter Property="VerticalAlignment" Value="Center" />
  237. </Style>
  238. </Grid.Resources>
  239. <Grid.RowDefinitions>
  240. <RowDefinition />
  241. <RowDefinition />
  242. </Grid.RowDefinitions>
  243. <Grid.ColumnDefinitions>
  244. <ColumnDefinition Width="99" />
  245. <ColumnDefinition Width="140" />
  246. <ColumnDefinition Width="100" />
  247. <ColumnDefinition Width="171" />
  248. </Grid.ColumnDefinitions>
  249. <TextBlock Height="23" Width="100" FontSize="18" HorizontalAlignment="Center">咖啡机状态</TextBlock>
  250. <TextBlock FontSize="18"
  251. Grid.Column="1"
  252. Text="{Binding CoffeeStatus}" Height="23" />
  253. <TextBlock Grid.Column="2" Height="23" Width="80" FontSize="18">应用状态</TextBlock>
  254. <TextBlock FontSize="18"
  255. Grid.Column="3"
  256. Text="{Binding AppStatus}" Height="23"/>
  257. <TextBlock Grid.Row="1" Grid.Column="0" Height="22" Width="80" FontSize="18">告警信息</TextBlock>
  258. <TextBlock FontSize="15"
  259. Grid.Row="1"
  260. Grid.Column="1"
  261. Text="{Binding Warning}" />
  262. <TextBlock Grid.Row="1" Grid.Column="2" Height="22" Width="80" FontSize="18">故障信息</TextBlock>
  263. <TextBlock FontSize="18"
  264. Grid.Row="1"
  265. Grid.Column="3"
  266. Text="{Binding CaffeeFault}" Height="22" Width="60" />
  267. </Grid>
  268. <StackPanel Grid.Row="2" Orientation="Vertical">
  269. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" Height="60">
  270. <TextBlock>饮品</TextBlock>
  271. <ComboBox Margin="10,0" Height="40" FontSize="20"
  272. Width="120"
  273. ItemsSource="{Binding Coffees}"
  274. SelectedItem="{Binding SelectedCoffee}" />
  275. <Button Margin="10,0" Height="40" Width="120"
  276. Command="{}"
  277. Content="制作"/>
  278. <Button Margin="10,0" Height="40" Width="120"
  279. Command="{}"
  280. Content="停止制作" Cursor="Hand"/>
  281. </StackPanel>
  282. <StackPanel Margin="0,10,0,0" Orientation="Horizontal" Height="60">
  283. <TextBlock>模式</TextBlock>
  284. <ComboBox Margin="10,0" Height="40" Width="120" FontSize="20"
  285. ItemsSource="{Binding CoffeeCmds}"
  286. SelectedItem="{Binding SelectedCoffeeCmd}"/>
  287. <Button Margin="10,0" Height="40" Width="120"
  288. Command="{}"
  289. Content="设置" Cursor="Hand"/>
  290. </StackPanel>
  291. </StackPanel>
  292. </Grid>
  293. </GroupBox>
  294. <GroupBox Header="单片机控制"
  295. FontSize="18"
  296. Grid.Row="1" Grid.ColumnSpan="2"
  297. Margin="0,0,0,10" HorizontalAlignment="Left" Width="1000">
  298. <StackPanel Orientation="Horizontal"
  299. VerticalAlignment="Center" >
  300. <Button Content="咖啡杯落杯" Height="40" Width="170"
  301. Command="{Binding Button_CupControlCommand}"
  302. CommandParameter="CUP_COFFEE"
  303. Margin="10,10,50,10" Cursor="Hand"/>
  304. <Button Content="冰淇淋杯落杯" Height="40" Width="170"
  305. Command="{Binding Button_CupControlCommand}"
  306. CommandParameter="CUP_ICECREAM" Margin="10,10,50,10"
  307. />
  308. </StackPanel>
  309. </GroupBox>
  310. </Grid>
  311. </UserControl>