|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <UserControl x:Class="BPASmartClient.MorkBF.VIew.DebugView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.MorkBF.VIew"
- xmlns:vm="clr-namespace:BPASmartClient.MorkBF.ViewModel"
- mc:Ignorable="d"
- Name="调试界面"
- d:DesignHeight="900" d:DesignWidth="1600">
- <UserControl.DataContext>
- <vm:DebugViewModel/>
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!--<Button Content="添加新菜品" Width="200" Click="Button_Click"/>
- <ListBox Grid.Row="1" ItemsSource="{Binding fryPotMessages}">
- <ListBox.Template>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <WrapPanel Orientation="Horizontal" IsItemsHost="True"></WrapPanel>
- </ControlTemplate>
- </ListBox.Template>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border Margin="5,10">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png"/>
- </Border.Background>
- <StackPanel Orientation="Horizontal" Margin="10">
- <TextBlock Text="{Binding GoodName}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Margin="10,0"/>
- <Button Content="编辑" Command="{Binding DataContext.MenuEditCommand, RelativeSource={RelativeSource AncestorType=UserControl,Mode=FindAncestor}}"
- CommandParameter="{Binding DataContext , RelativeSource={RelativeSource AncestorType=ListBoxItem,Mode=FindAncestor}}" Margin="10,0"/>
- <Button Content="删除 " Command="{Binding DataContext.MenuDeleteCommand, RelativeSource={RelativeSource AncestorType=UserControl,Mode=FindAncestor}}"
- CommandParameter="{Binding DataContext , RelativeSource={RelativeSource AncestorType=ListBoxItem,Mode=FindAncestor}}" Margin="10,0"/>
- </StackPanel>
- </Border>
-
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>-->
-
- <GroupBox Grid.Row="0" Header="炒锅1" FontSize="22">
- <WrapPanel Orientation="Horizontal">
- <Button Content="复位" Width="110" Margin="10,5" Command="{Binding FirePot_ResetCommand}" CommandParameter="1"/>
- <TextBlock Text="加热挡位" Margin="10,5"/>
- <ComboBox Width="80" ItemsSource="{Binding FireGear}" Margin="10,5" SelectedItem="{Binding FirePot1_FireGear}" SelectedIndex="0" />
- <Button Content="加热档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetFireGearCommand}" CommandParameter="1"/>
- <Button Content="加热启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartFireCommand}" CommandParameter="1"/>
- <Button Content="加热停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopFireCommand}" CommandParameter="1"/>
- <TextBlock Text="搅拌挡位" Margin="10,5"/>
- <ComboBox Width="80" ItemsSource="{Binding StirGear}" SelectedItem="{Binding FirePot1_StirGear}" Margin="10,5" SelectedIndex="0" />
- <Button Content="搅拌档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetStirGearCommand}" CommandParameter="1"/>
- <Button Content="搅拌启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartStirCommand}" CommandParameter="1"/>
- <Button Content="搅拌停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopStirCommand}" CommandParameter="1"/>
- <TextBlock Text="翻转频率" Margin="10,5"/>
- <TextBox Width="80" Text="{Binding FirePot1_TurnSpeed}" Margin="10,5"/>
- <Button Content="翻转频率设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetTurnSpeedCommand}" CommandParameter="1"/>
- <TextBlock Text="炒锅角度" Margin="10,5"/>
- <ComboBox Width="80" ItemsSource="{Binding PotAngle}" SelectedItem="{Binding FirePot1_PotAngle}" Margin="10,5" SelectedIndex="0"/>
- <Button Content="炒锅角度设定" Width="110" Margin="10,5,30,5" Cursor="Hand" Command="{Binding FirePot_SetPotAngleCommand}" CommandParameter="1" />
- <TextBlock Text="通道号" Margin="10,5" />
- <ComboBox Width="60" ItemsSource="{Binding PassWay}" SelectedItem="{Binding FirePot1_PassWay}" Margin="10,5"/>
- <TextBlock Text="需求值" Margin="10,5"/>
- <TextBox Text="{Binding FirePot1_PassValue}" Width="60" Margin="10,5"/>
- <Button Content="出料启动" Command="{Binding FirePot_StartPassWayCommand}" Margin="10,5,30,5" CommandParameter="1"/>
- <Button Content="炒锅回原点" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoOriginCommand}" CommandParameter="1"/>
- <Button Content="炒锅去投料位置" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoInFoodPositionCommand}" CommandParameter="1"/>
- <Button Content="出餐启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartOutFoodCommand}" CommandParameter="1"/>
- <Button Content="单独清洗" Width="110" Margin="10,5" Command="{Binding FirePot_CleanCommand}" CommandParameter="1"/>
- <Button Content="抽水启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="1"/>
- <Button Content="抽水关闭" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="1"/>
- <Button Content="推杆伸出" Margin="10,5"/>
- <Button Content="推杆缩回" Margin="10,5"/>
- <Button Content="炒锅翻转正转" Margin="10,5"/>
- <Button Content="炒锅翻转反转" Margin="10,5"/>
- </WrapPanel>
-
- </GroupBox>
- <GroupBox Grid.Row="1" Header="炒锅2" FontSize="22">
- <WrapPanel Orientation="Horizontal">
- <Button Content="复位" Width="110" Margin="10,5" Command="{Binding FirePot_ResetCommand}" CommandParameter="2"/>
- <TextBlock Text="加热挡位" Margin="10,5"/>
- <ComboBox Width="80" ItemsSource="{Binding FireGear}" Margin="10,5" SelectedItem="{Binding FirePot2_FireGear}" SelectedIndex="0" />
- <Button Content="加热档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetFireGearCommand}" CommandParameter="2"/>
- <Button Content="加热启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartFireCommand}" CommandParameter="2"/>
- <Button Content="加热停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopFireCommand}" CommandParameter="2"/>
- <TextBlock Text="搅拌挡位" Margin="10,5"/>
- <ComboBox Width="80" ItemsSource="{Binding StirGear}" SelectedItem="{Binding FirePot2_StirGear}" Margin="10,5" SelectedIndex="0" />
- <Button Content="搅拌档位设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetStirGearCommand}" CommandParameter="2"/>
- <Button Content="搅拌启动" Width="80" Margin="10,5" Command="{Binding FirePot_StartStirCommand}" CommandParameter="2"/>
- <Button Content="搅拌停止" Width="80" Margin="10,5,30,5" Command="{Binding FirePot_StopStirCommand}" CommandParameter="2"/>
- <TextBlock Text="翻转频率" Margin="10,5"/>
- <TextBox Width="80" Text="{Binding FirePot2_TurnSpeed}" Margin="10,5"/>
- <Button Content="翻转频率设定" Width="110" Margin="10,5" Command="{Binding FirePot_SetTurnSpeedCommand}" CommandParameter="2"/>
- <TextBlock Text="炒锅角度" Margin="10,5"/>
- <ComboBox Width="80" ItemsSource="{Binding PotAngle}" SelectedItem="{Binding FirePot2_PotAngle}" Margin="10,5" SelectedIndex="0"/>
- <Button Content="炒锅角度设定" Width="110" Margin="10,5,30,5" Cursor="Hand" Command="{Binding FirePot_SetPotAngleCommand}" CommandParameter="2" />
- <TextBlock Text="通道号" Margin="10,5" />
- <ComboBox Width="60" ItemsSource="{Binding PassWay}" SelectedItem="{Binding FirePot2_PassWay}" Margin="10,5"/>
- <TextBlock Text="需求值" Margin="10,5"/>
- <TextBox Text="{Binding FirePot2_PassValue}" Width="60" Margin="10,5"/>
- <Button Content="出料启动" Command="{Binding FirePot_StartPassWayCommand}" Margin="10,5,30,5" CommandParameter="2"/>
- <Button Content="炒锅回原点" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoOriginCommand}" CommandParameter="2"/>
- <Button Content="炒锅去投料位置" Width="110" Margin="10,5" Command="{Binding FirePot_PotGotoInFoodPositionCommand}" CommandParameter="2"/>
- <Button Content="出餐启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartOutFoodCommand}" CommandParameter="2"/>
- <Button Content="单独清洗" Width="110" Margin="10,5" Command="{Binding FirePot_CleanCommand}" CommandParameter="2"/>
- <Button Content="抽水启动" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="2"/>
- <Button Content="抽水关闭" Width="110" Margin="10,5" Command="{Binding FirePot_StartPumpWaterCommand}" CommandParameter="2"/>
- <Button Content="推杆伸出" Margin="10,5"/>
- <Button Content="推杆缩回" Margin="10,5"/>
- <Button Content="炒锅翻转正转" Margin="10,5"/>
- <Button Content="炒锅翻转反转" Margin="10,5"/>
- </WrapPanel>
- </GroupBox>
- <GroupBox Grid.Row="2" Header="机器人" FontSize="22">
- <WrapPanel Orientation="Horizontal">
- <Button Content="机器人启动" Width="110" Margin="10,5" Command="{Binding RobotStartCommand}"/>
- <Button Content="复位" Width="110" Margin="10,5" Command="{Binding RobotResetCommand}"/>
- <Button Content="程序启动" Width="110" Margin="10,5" Command="{Binding RobotProgramStartCommand}"/>
- <Button Content="机器人上使能" Width="110" Margin="10,5" Command="{Binding RobotEnableCommand}"/>
-
- <TextBlock Text="主程序任务" Margin="10,5"/>
- <ComboBox ItemsSource="{Binding RobotMainTask}" SelectedValue="{Binding MainTask}" Height="30" Width="200" Margin="10,0"/>
- <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="0"/>
- <TextBlock Text="主程序炒制任务1" Margin="30,5,10,0"/>
- <ComboBox ItemsSource="{Binding RobotSubTask1}" SelectedValue="{Binding SubTask1}" Height="30" Width="200" Margin="10,0"/>
- <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="1"/>
- <TextBlock Text="主程序炒制任务2" Margin="30,5,10,0"/>
- <ComboBox ItemsSource="{Binding RobotSubTask2}" SelectedValue="{Binding SubTask2}" Height="30" Width="200" Margin="10,0"/>
- <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="2"/>
- <TextBlock Text="子程序补料任务1" Margin="30,5,10,0"/>
- <ComboBox ItemsSource="{Binding RobotSubTask3}" SelectedValue="{Binding SubTask3}" Height="30" Width="200" Margin="10,0"/>
- <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="3"/>
- <TextBlock Text="子程序补料任务2" Margin="30,5,10,0"/>
- <ComboBox ItemsSource="{Binding RobotSubTask4}" SelectedValue="{Binding SubTask4}" Height="30" Width="200" Margin="10,0"/>
- <Button Content="任务设定" Width="100" Margin="10,5" Command="{Binding RobotActionCommand}" CommandParameter="4"/>
- </WrapPanel>
- </GroupBox>
- </Grid>
- </UserControl>
|