终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

153 righe
13 KiB

  1. <UserControl x:Class="BPASmartClient.MorkBF.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:local="clr-namespace:BPASmartClient.MorkBF.VIew"
  7. xmlns:vm="clr-namespace:BPASmartClient.MorkBF.ViewModel"
  8. mc:Ignorable="d"
  9. Name="调试界面"
  10. d:DesignHeight="900" d:DesignWidth="1600">
  11. <UserControl.DataContext>
  12. <vm:DebugViewModel/>
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  18. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  19. </ResourceDictionary.MergedDictionaries>
  20. </ResourceDictionary>
  21. </UserControl.Resources>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="*"/>
  26. <RowDefinition Height="*"/>
  27. </Grid.RowDefinitions>
  28. <!--<Button Content="添加新菜品" Width="200" Click="Button_Click"/>
  29. <ListBox Grid.Row="1" ItemsSource="{Binding fryPotMessages}">
  30. <ListBox.Template>
  31. <ControlTemplate TargetType="{x:Type ListBox}">
  32. <WrapPanel Orientation="Horizontal" IsItemsHost="True"></WrapPanel>
  33. </ControlTemplate>
  34. </ListBox.Template>
  35. <ListBox.ItemTemplate>
  36. <DataTemplate>
  37. <Border Margin="5,10">
  38. <Border.Background>
  39. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png"/>
  40. </Border.Background>
  41. <StackPanel Orientation="Horizontal" Margin="10">
  42. <TextBlock Text="{Binding GoodName}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Margin="10,0"/>
  43. <Button Content="编辑" Command="{Binding DataContext.MenuEditCommand, RelativeSource={RelativeSource AncestorType=UserControl,Mode=FindAncestor}}"
  44. CommandParameter="{Binding DataContext , RelativeSource={RelativeSource AncestorType=ListBoxItem,Mode=FindAncestor}}" Margin="10,0"/>
  45. <Button Content="删除 " Command="{Binding DataContext.MenuDeleteCommand, RelativeSource={RelativeSource AncestorType=UserControl,Mode=FindAncestor}}"
  46. CommandParameter="{Binding DataContext , RelativeSource={RelativeSource AncestorType=ListBoxItem,Mode=FindAncestor}}" Margin="10,0"/>
  47. </StackPanel>
  48. </Border>
  49. </DataTemplate>
  50. </ListBox.ItemTemplate>
  51. </ListBox>-->
  52. <GroupBox Grid.Row="0" Header="炒锅1" FontSize="22">
  53. <WrapPanel Orientation="Horizontal">
  54. <Button Content="复位" Width="110" Margin="10,5" Command="{Binding FirePot_ResetCommand}" CommandParameter="1"/>
  55. <TextBlock Text="加热挡位" Margin="10,5"/>
  56. <ComboBox Width="80" ItemsSource="{Binding FireGear}" Margin="10,5" SelectedItem="{Binding FirePot1_FireGear}" SelectedIndex="0" />
  57. <Button Content="加热档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetFireGearCommand}" CommandParameter="1"/>
  58. <Button Content="加热启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartFireCommand}" CommandParameter="1"/>
  59. <Button Content="加热停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopFireCommand}" CommandParameter="1"/>
  60. <TextBlock Text="搅拌挡位" Margin="10,5"/>
  61. <ComboBox Width="80" ItemsSource="{Binding StirGear}" SelectedItem="{Binding FirePot1_StirGear}" Margin="10,5" SelectedIndex="0" />
  62. <Button Content="搅拌档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetStirGearCommand}" CommandParameter="1"/>
  63. <Button Content="搅拌启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartStirCommand}" CommandParameter="1"/>
  64. <Button Content="搅拌停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopStirCommand}" CommandParameter="1"/>
  65. <TextBlock Text="翻转频率" Margin="10,5"/>
  66. <TextBox Width="80" Text="{Binding FirePot1_TurnSpeed}" Margin="10,5"/>
  67. <Button Content="翻转频率设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetTurnSpeedCommand}" CommandParameter="1"/>
  68. <TextBlock Text="炒锅角度" Margin="10,5"/>
  69. <ComboBox Width="80" ItemsSource="{Binding PotAngle}" SelectedItem="{Binding FirePot1_PotAngle}" Margin="10,5" SelectedIndex="0"/>
  70. <Button Content="炒锅角度设定" Width="110" Margin="10,5,30,5" Cursor="Hand" Command="{Binding FirePot_SetPotAngleCommand}" CommandParameter="1" />
  71. <TextBlock Text="通道号" Margin="10,5" />
  72. <ComboBox Width="60" ItemsSource="{Binding PassWay}" SelectedItem="{Binding FirePot1_PassWay}" Margin="10,5"/>
  73. <TextBlock Text="需求值" Margin="10,5"/>
  74. <TextBox Text="{Binding FirePot1_PassValue}" Width="60" Margin="10,5"/>
  75. <Button Content="出料启动" Command="{Binding FirePot_StartPassWayCommand}" Margin="10,5,30,5" CommandParameter="1"/>
  76. <Button Content="炒锅回原点" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoOriginCommand}" CommandParameter="1"/>
  77. <Button Content="炒锅去投料位置" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoInFoodPositionCommand}" CommandParameter="1"/>
  78. <Button Content="出餐启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartOutFoodCommand}" CommandParameter="1"/>
  79. <Button Content="单独清洗" Width="110" Margin="10,5" Command="{Binding FirePot_CleanCommand}" CommandParameter="1"/>
  80. <Button Content="抽水启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="1"/>
  81. <Button Content="抽水关闭" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="1"/>
  82. <Button Content="推杆伸出" Margin="10,5"/>
  83. <Button Content="推杆缩回" Margin="10,5"/>
  84. <Button Content="炒锅翻转正转" Margin="10,5"/>
  85. <Button Content="炒锅翻转反转" Margin="10,5"/>
  86. </WrapPanel>
  87. </GroupBox>
  88. <GroupBox Grid.Row="1" Header="炒锅2" FontSize="22">
  89. <WrapPanel Orientation="Horizontal">
  90. <Button Content="复位" Width="110" Margin="10,5" Command="{Binding FirePot_ResetCommand}" CommandParameter="2"/>
  91. <TextBlock Text="加热挡位" Margin="10,5"/>
  92. <ComboBox Width="80" ItemsSource="{Binding FireGear}" Margin="10,5" SelectedItem="{Binding FirePot2_FireGear}" SelectedIndex="0" />
  93. <Button Content="加热档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetFireGearCommand}" CommandParameter="2"/>
  94. <Button Content="加热启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartFireCommand}" CommandParameter="2"/>
  95. <Button Content="加热停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopFireCommand}" CommandParameter="2"/>
  96. <TextBlock Text="搅拌挡位" Margin="10,5"/>
  97. <ComboBox Width="80" ItemsSource="{Binding StirGear}" SelectedItem="{Binding FirePot2_StirGear}" Margin="10,5" SelectedIndex="0" />
  98. <Button Content="搅拌档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetStirGearCommand}" CommandParameter="2"/>
  99. <Button Content="搅拌启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartStirCommand}" CommandParameter="2"/>
  100. <Button Content="搅拌停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopStirCommand}" CommandParameter="2"/>
  101. <TextBlock Text="翻转频率" Margin="10,5"/>
  102. <TextBox Width="80" Text="{Binding FirePot2_TurnSpeed}" Margin="10,5"/>
  103. <Button Content="翻转频率设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetTurnSpeedCommand}" CommandParameter="2"/>
  104. <TextBlock Text="炒锅角度" Margin="10,5"/>
  105. <ComboBox Width="80" ItemsSource="{Binding PotAngle}" SelectedItem="{Binding FirePot2_PotAngle}" Margin="10,5" SelectedIndex="0"/>
  106. <Button Content="炒锅角度设定" Width="110" Margin="10,5,30,5" Cursor="Hand" Command="{Binding FirePot_SetPotAngleCommand}" CommandParameter="2" />
  107. <TextBlock Text="通道号" Margin="10,5" />
  108. <ComboBox Width="60" ItemsSource="{Binding PassWay}" SelectedItem="{Binding FirePot2_PassWay}" Margin="10,5"/>
  109. <TextBlock Text="需求值" Margin="10,5"/>
  110. <TextBox Text="{Binding FirePot2_PassValue}" Width="60" Margin="10,5"/>
  111. <Button Content="出料启动" Command="{Binding FirePot_StartPassWayCommand}" Margin="10,5,30,5" CommandParameter="2"/>
  112. <Button Content="炒锅回原点" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoOriginCommand}" CommandParameter="2"/>
  113. <Button Content="炒锅去投料位置" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoInFoodPositionCommand}" CommandParameter="2"/>
  114. <Button Content="出餐启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartOutFoodCommand}" CommandParameter="2"/>
  115. <Button Content="单独清洗" Width="110" Margin="10,5" Command="{Binding FirePot_CleanCommand}" CommandParameter="2"/>
  116. <Button Content="抽水启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="2"/>
  117. <Button Content="抽水关闭" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="2"/>
  118. <Button Content="推杆伸出" Margin="10,5"/>
  119. <Button Content="推杆缩回" Margin="10,5"/>
  120. <Button Content="炒锅翻转正转" Margin="10,5"/>
  121. <Button Content="炒锅翻转反转" Margin="10,5"/>
  122. </WrapPanel>
  123. </GroupBox>
  124. <GroupBox Grid.Row="2" Header="机器人" FontSize="22">
  125. <WrapPanel Orientation="Horizontal">
  126. <Button Content="机器人启动" Width="110" Margin="10,5" Command="{Binding RobotStartCommand}"/>
  127. <Button Content="复位" Width="110" Margin="10,5" Command="{Binding RobotResetCommand}"/>
  128. <Button Content="程序启动" Width="110" Margin="10,5" Command="{Binding RobotProgramStartCommand}"/>
  129. <Button Content="机器人上使能" Width="110" Margin="10,5" Command="{Binding RobotEnableCommand}"/>
  130. <TextBlock Text="主程序任务" Margin="10,5"/>
  131. <ComboBox ItemsSource="{Binding RobotMainTask}" SelectedValue="{Binding MainTask}" Height="30" Width="200" Margin="10,0"/>
  132. <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="0"/>
  133. <TextBlock Text="主程序炒制任务1" Margin="30,5,10,0"/>
  134. <ComboBox ItemsSource="{Binding RobotSubTask1}" SelectedValue="{Binding SubTask1}" Height="30" Width="200" Margin="10,0"/>
  135. <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="1"/>
  136. <TextBlock Text="主程序炒制任务2" Margin="30,5,10,0"/>
  137. <ComboBox ItemsSource="{Binding RobotSubTask2}" SelectedValue="{Binding SubTask2}" Height="30" Width="200" Margin="10,0"/>
  138. <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="2"/>
  139. <TextBlock Text="子程序补料任务1" Margin="30,5,10,0"/>
  140. <ComboBox ItemsSource="{Binding RobotSubTask3}" SelectedValue="{Binding SubTask3}" Height="30" Width="200" Margin="10,0"/>
  141. <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="3"/>
  142. <TextBlock Text="子程序补料任务2" Margin="30,5,10,0"/>
  143. <ComboBox ItemsSource="{Binding RobotSubTask4}" SelectedValue="{Binding SubTask4}" Height="30" Width="200" Margin="10,0"/>
  144. <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="4"/>
  145. </WrapPanel>
  146. </GroupBox>
  147. </Grid>
  148. </UserControl>