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

253 lines
12 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="450" d:DesignWidth="1000" >
  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="*"/>
  24. <ColumnDefinition Width="*"/>
  25. </Grid.ColumnDefinitions>
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="9*"/>
  28. <RowDefinition Height="10*"/>
  29. </Grid.RowDefinitions>
  30. <GroupBox Grid.ColumnSpan="2"
  31. FontFamily="楷体"
  32. FontSize="20"
  33. Header=" 乐白机器人 ">
  34. <Grid Margin="10">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="*"/>
  37. <RowDefinition Height="*"/>
  38. <RowDefinition Height="3*"/>
  39. </Grid.RowDefinitions>
  40. <StackPanel Orientation="Horizontal">
  41. <TextBlock Text="连接状态" />
  42. <TextBlock Text="{Binding RobotConnected}"
  43. Margin="40,0"/>
  44. <TextBlock Text="机器人模式:"/>
  45. <TextBlock Text="{Binding RobotMode}"
  46. Margin="40,0"/>
  47. </StackPanel>
  48. <TextBlock Text="连接状态" />
  49. <TextBlock Text="{Binding RobotConnected}"
  50. Margin="120,0,0,0"/>
  51. <TextBlock Text="乐白机器人控制"
  52. Grid.Row="1"
  53. VerticalAlignment="Center" HorizontalAlignment="Center"/>
  54. <ListBox Grid.Row="2" Background="Transparent">
  55. <ListBox.Template>
  56. <ControlTemplate TargetType="{x:Type ListBox}">
  57. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  58. <WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"/>
  59. </ScrollViewer>
  60. </ControlTemplate>
  61. </ListBox.Template>
  62. <Button Content="机器人启动"
  63. Margin="20,5" Width="150" Height="40"
  64. Command="{Binding Button_RobotControlCommand}"
  65. CommandParameter="机器人启动">
  66. </Button>
  67. <Button Content="启动示教"
  68. Margin="20,5" Width="150" Height="40"
  69. Command="{Binding Button_RobotControlCommand}"
  70. CommandParameter="启动示教"/>
  71. <Button Content="停止示教"
  72. Margin="20,5" Width="150" Height="40"
  73. Command="{Binding Button_RobotControlCommand}"
  74. CommandParameter="停止示教"/>
  75. <Button Content="机器人急停"
  76. Margin="20,5" Width="110" Height="40"
  77. Command="{Binding Button_RobotControlCommand}"
  78. CommandParameter="机器人急停"/>
  79. </ListBox>
  80. </Grid>
  81. </GroupBox>
  82. <GroupBox Grid.Row="1"
  83. FontFamily="楷体"
  84. FontSize="20"
  85. Header=" 冰淇淋机器 ">
  86. <Grid>
  87. <Grid.RowDefinitions>
  88. <RowDefinition Height="30"/>
  89. <RowDefinition />
  90. <RowDefinition />
  91. </Grid.RowDefinitions>
  92. <TextBlock Text="连接状态" />
  93. <TextBlock Text="{Binding IceCreamConnected}"
  94. Margin="120,0,0,0"/>
  95. <Grid Grid.Row="1">
  96. <Grid.RowDefinitions>
  97. <RowDefinition />
  98. <RowDefinition />
  99. <RowDefinition />
  100. <RowDefinition />
  101. </Grid.RowDefinitions>
  102. <Grid.ColumnDefinitions>
  103. <ColumnDefinition Width="100" />
  104. <ColumnDefinition Width="80" />
  105. <ColumnDefinition Width="120" />
  106. <ColumnDefinition Width="100" />
  107. </Grid.ColumnDefinitions>
  108. <TextBlock Grid.Row="0" Grid.Column="0">预冷温度</TextBlock>
  109. <TextBlock
  110. Grid.Row="0"
  111. Grid.Column="1"
  112. Text="{Binding YLWD}" />
  113. <TextBlock Grid.Row="0" Grid.Column="2">回气温度</TextBlock>
  114. <TextBlock
  115. Grid.Row="0"
  116. Grid.Column="3"
  117. Text="{Binding HQWD}" />
  118. <TextBlock Grid.Row="1" Grid.Column="0">环境温度</TextBlock>
  119. <TextBlock
  120. Grid.Row="1"
  121. Grid.Column="1"
  122. Text="{Binding HJWD}" />
  123. <TextBlock Grid.Row="1" Grid.Column="2">当前模式</TextBlock>
  124. <TextBlock
  125. Grid.Row="1"
  126. Grid.Column="3"
  127. Text="{Binding CurrentMode}" />
  128. <TextBlock Grid.Row="2" Grid.Column="0">电流</TextBlock>
  129. <TextBlock
  130. Grid.Row="2"
  131. Grid.Column="1"
  132. Text="{Binding DL}" />
  133. <TextBlock Grid.Row="2" Grid.Column="2">电压</TextBlock>
  134. <TextBlock
  135. Grid.Row="2"
  136. Grid.Column="3"
  137. Text="{Binding DY}" />
  138. <TextBlock Grid.Row="3" Grid.Column="0">成型比</TextBlock>
  139. <TextBlock
  140. Grid.Row="3"
  141. Grid.Column="1"
  142. Text="{Binding CXB}" />
  143. <TextBlock Grid.Row="3" Grid.Column="2">故障</TextBlock>
  144. <TextBlock
  145. Grid.Row="3"
  146. Grid.Column="3"
  147. Text="{Binding IceCreamFault}" />
  148. </Grid>
  149. <StackPanel Grid.Row="2" Orientation="Vertical">
  150. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  151. <TextBlock>冰淇淋</TextBlock>
  152. <Button Command="{Binding Button_MakeIceCreamCommand}"
  153. Margin="20,0"
  154. Content="制作" />
  155. </StackPanel>
  156. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  157. <TextBlock>模式</TextBlock>
  158. <ComboBox Width="100"
  159. Margin="20,0"
  160. ItemsSource="{Binding IceCreamModes}"
  161. SelectedItem="{Binding SelecteIceCreamdMode}" />
  162. <Button Command="{Binding Button_SetIceCreamModelCommand}"
  163. Margin="20,0"
  164. Content="设置" />
  165. </StackPanel>
  166. </StackPanel>
  167. </Grid>
  168. </GroupBox>
  169. <GroupBox Grid.Row="1" Grid.Column="1"
  170. FontFamily="楷体"
  171. FontSize="20"
  172. Header=" 咖啡机">
  173. <Grid>
  174. <Grid.RowDefinitions>
  175. <RowDefinition Height="30"/>
  176. <RowDefinition />
  177. <RowDefinition />
  178. </Grid.RowDefinitions>
  179. <TextBlock Text="连接状态" />
  180. <TextBlock Text="{Binding CoffeeConnected}"
  181. Margin="120,0,0,0"/>
  182. <Grid Grid.Row="1">
  183. <Grid.Resources>
  184. <Style TargetType="TextBlock">
  185. <Setter Property="HorizontalAlignment" Value="Left" />
  186. <Setter Property="VerticalAlignment" Value="Center" />
  187. </Style>
  188. </Grid.Resources>
  189. <Grid.RowDefinitions>
  190. <RowDefinition />
  191. <RowDefinition />
  192. </Grid.RowDefinitions>
  193. <Grid.ColumnDefinitions>
  194. <ColumnDefinition Width="99" />
  195. <ColumnDefinition Width="140" />
  196. <ColumnDefinition Width="100" />
  197. <ColumnDefinition Width="171" />
  198. </Grid.ColumnDefinitions>
  199. <TextBlock Height="23" Width="100" FontSize="18" HorizontalAlignment="Center">咖啡机状态</TextBlock>
  200. <TextBlock FontSize="18"
  201. Grid.Column="1"
  202. Text="{Binding CoffeeStatus}" Height="23" Width="0" />
  203. <TextBlock Grid.Column="2" Height="23" Width="80" FontSize="18">应用状态</TextBlock>
  204. <TextBlock FontSize="18"
  205. Grid.Column="3"
  206. Text="{Binding AppStatus}" Height="23" Width="100" />
  207. <TextBlock Grid.Row="1" Grid.Column="0" Height="22" Width="80" FontSize="18">告警信息</TextBlock>
  208. <TextBlock FontSize="15"
  209. Grid.Row="1"
  210. Grid.Column="1"
  211. Text="{Binding Warning}" />
  212. <TextBlock Grid.Row="1" Grid.Column="2" Height="22" Width="80" FontSize="18">故障信息</TextBlock>
  213. <TextBlock FontSize="18"
  214. Grid.Row="1"
  215. Grid.Column="3"
  216. Text="{Binding CaffeeFault}" Height="22" Width="60" />
  217. </Grid>
  218. <StackPanel Grid.Row="2" Orientation="Vertical">
  219. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  220. <TextBlock>饮品</TextBlock>
  221. <ComboBox Margin="10,0"
  222. Width="100"
  223. ItemsSource="{Binding Coffees}"
  224. SelectedItem="{Binding SelectedCoffee}" />
  225. <Button Margin="10,0"
  226. Command="{}"
  227. Content="制作"/>
  228. <Button Margin="10,0"
  229. Command="{}"
  230. Content="停止制作"/>
  231. </StackPanel>
  232. <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
  233. <TextBlock>模式</TextBlock>
  234. <ComboBox Margin="10,0"
  235. Width="100"
  236. ItemsSource="{Binding CoffeeCmds}"
  237. SelectedItem="{Binding SelectedCoffeeCmd}"/>
  238. <Button Margin="10,0"
  239. Command="{}"
  240. Content="设置" Cursor="Hand"/>
  241. </StackPanel>
  242. </StackPanel>
  243. </Grid>
  244. </GroupBox>
  245. </Grid>
  246. </UserControl>