终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

284 řádky
14 KiB

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