WinTest.xaml 23.1 KB
<Window x:Class="XingYe_ACS.UI.WinTest"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:XingYe_ACS.UI"
        mc:Ignorable="d"
        Title="手动任务" Height="500" Width="500"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None" AllowsTransparency="True" Background="Transparent"
        Loaded="Window_Loaded" Icon="/XingYe_ACS;component/Image/Icon.ico">
    <Border Background="White" BorderThickness="1" BorderBrush="{StaticResource HHLGRed}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid  Name="Spl_title" Grid.Row="0" Grid.ColumnSpan="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>
                <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
                           MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
                       Foreground="{StaticResource HHAst2}" FontSize="20">手 动 任 务</TextBlock>
                <Button Name="BtnClose" Grid.Column="3" Background="{StaticResource HHLGRed}" Foreground="White"  Width="20" Margin="2" Click="BtnClose_Click">X</Button>
            </Grid>
            <StackPanel Height="2" Grid.Row="1" Background="{StaticResource HHLGRed}"></StackPanel>
            <TabControl Grid.Row="2">
                <!--<TabItem Header="初始化风淋门" BorderThickness="2" BorderBrush="Green">
                    <StackPanel>
                        <TextBlock FontSize="20">风淋门地址</TextBlock>
                        <ComboBox Name="ComBox_LiftAddress">
                            <ComboBoxItem>外侧|1</ComboBoxItem>
                            <ComboBoxItem>内侧|2</ComboBoxItem>
                        </ComboBox>
                        <Button Name="Btn_SendLift" Click="Btn_SendLift_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">初始化风淋门状态</Button>

                    </StackPanel>
                </TabItem>-->
                <!--<TabItem Header="出入库任务">
                    <TabControl>
                        <TabItem Header="单独出入库任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>旋转角度/出库货架号</TextBlock>
                                <TextBox Name="TBox_ShelfOri">H00</TextBox>
                                <TextBlock>站台号</TextBlock>
                                <TextBox Name="TBox_WsNo">WS01</TextBox>
                                <Button Name="Btn_TaskSend" Click="Btn_TaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送出库任务</Button>
                                <Button Name="Btn_MoveBack" Click="Btn_MoveBack_Click" Height="52" Margin="120,0" Background="{StaticResource HHLGRed}" Foreground="White">发送回库任务</Button>
                                <Button Name="Btn_RototeTask" Click="Btn_RototeTask_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送旋转任务</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="多个出入库任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>起始X值</TextBlock>
                                <TextBox Name="TBox_StartX">66</TextBox>
                                <TextBlock>终止X值</TextBlock>
                                <TextBox Name="TBox_EndX">73</TextBox>
                                <TextBlock>起始Y值</TextBlock>
                                <TextBox Name="TBox_StartY">24</TextBox>
                                <TextBlock>终止Y值</TextBlock>
                                <TextBox Name="TBox_EndY">34</TextBox>
                                <TextBlock>站台号</TextBlock>
                                <TextBox Name="TBox_WsNos">ws01</TextBox>
                                <Button Name="Btn_DoubleTaskSend" Click="Btn_DoubleTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送出库任务</Button>
                            </StackPanel>
                        </TabItem>
                    </TabControl>
                </TabItem>-->
                <TabItem Header="单步任务">
                    <TabControl>
                        <TabItem Header="单步任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>任务类型</TextBlock>
                                <ComboBox Name="ComBox_TaskType" SelectedIndex="0">
                                    <ComboBoxItem>手动行走|1</ComboBoxItem>
                                    <ComboBoxItem>手动顶升|2</ComboBoxItem>
                                    <ComboBoxItem>手动下降|3</ComboBoxItem>
                                    <ComboBoxItem>充电|5</ComboBoxItem>
                                    <ComboBoxItem>取消充电|6</ComboBoxItem>
                                    <ComboBoxItem>回家-1|经过W1入库电梯</ComboBoxItem>
                                    <ComboBoxItem>回家-2|经过C1区电梯</ComboBoxItem>
                                    <ComboBoxItem>回家-3|经过W1备料电梯</ComboBoxItem>
                                </ComboBox>
                                <TextBlock>Agv</TextBlock>
                                <TextBox Name="Tbox_Agv">A11_3108</TextBox>

                                <TextBlock>起点:(旋转任务时,此框为角度1、2、3)</TextBlock>
                                <TextBox Name="Tbox_Spoint"></TextBox>

                                <TextBlock>终点:</TextBlock>
                                <TextBox Name="Tbox_Epoint">296</TextBox>

                                <Button Name="Btn_OK" Click="Btn_OK_Click" Height="52" Margin="120,20,120,0" Background="{StaticResource HHLGRed}" Foreground="White">发送</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="配送测试任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock Height="26">任务类型选择</TextBlock>
                                <ComboBox Name="ComBox_TaskTypeList" Height="26">
                                    
                                </ComboBox>
                                <TextBlock>起点区域</TextBlock>
                                <ComboBox Name="ComBox_StartList" Height="20"></ComboBox>
                                <TextBlock>终点区域</TextBlock>
                                <ComboBox Name="ComBox_EndList" Height="20"></ComboBox>
                                <Button Name="TuoPan_GoHomeTaskSend" Click="TuoPan_GoHomeTaskSend_Click" Height="52" Margin="120,50,120,0" Background="{StaticResource HHLGRed}" Foreground="White">测试配送</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="测试行走任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>任务类型</TextBlock>
                                <ComboBox Name="ComBox_WalkTaskType" SelectedIndex="0">
                                    <ComboBoxItem>行走|1</ComboBoxItem>
                                </ComboBox>

                                <TextBlock>Agv</TextBlock>
                                <TextBox Name="Tbox_WalkAgv">A22_61</TextBox>

                                <TextBlock>终点:</TextBlock>
                                <TextBox Name="Tbox_WalkEpoint"></TextBox>

                                <Button Name="Btn_WalkOK" Click="Btn_WalkOK_Click" Height="50" Margin="120,30,120,30" Background="{StaticResource HHLGRed}" Foreground="White">开始</Button>
                                <Button Name="Btn_WalkClose" Click="Btn_Close_Click" Height="50" Margin="120,0,120,0" Background="{StaticResource HHLGRed}" Foreground="White">结束</Button>
                            </StackPanel>
                        </TabItem>
                        <!--<TabItem Header="测试托盘" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>终点码值</TextBlock>
                                <TextBox Name="TuoPan_MoveEndBarcode">11</TextBox>
                                <TextBlock >小车号</TextBlock>
                                <TextBox Name="AgvNo">A02_007;A02_009</TextBox>

                                <Button Name="TuoPan_SingleMoveTaskSend" Click="TuoPan_SingleMoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">X方向测试</Button>
                                <Button Name="TuoPan_SingleYMoveTaskSend" Click="TuoPan_SingleYMoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">Y方向测试</Button>
                            </StackPanel>
                        </TabItem>-->
                    </TabControl>
                </TabItem>
                <!--<TabItem Header="移库任务">
                    <TabControl>
                        <TabItem Header="单独移库任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>起点信息(货架号)</TextBlock>
                                <TextBox Name="TBox_MoveShelfNo"></TextBox>
                                <TextBlock>终点信息(码值)</TextBlock>
                                <TextBox Name="TBox_MoveEndBarcode"></TextBox>
                                <Button Name="Btn_SingleMoveTaskSend" Click="Btn_SingleMoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送移库任务</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="单独回库任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>起点信息(货架号)</TextBlock>
                                <TextBox Name="TBox_MoveBackShelfNo"></TextBox>
                                <TextBlock>终点信息(码值)</TextBlock>
                                <TextBox Name="TBox_MoveBackEndBarcode"></TextBox>
                                <Button Name="Btn_SingleMoveBackTaskSend" Click="Btn_SingleMoveBackTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送回库任务</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="整列移库任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>整列坐标y值</TextBlock>
                                <TextBox Name="TBox_MoveIntX"></TextBox>
                                <TextBlock>执行任务小车</TextBlock>
                                <TextBox Name="TBox_MoveAgvNo">A02_0</TextBox>
                                <Button Name="Btn_MoveTaskSend" Click="Btn_MoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送整列移库任务</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="整列回库任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>整列坐标X值</TextBlock>
                                <TextBox Name="TBox_MoveBackIntX"></TextBox>
                                <TextBlock>执行任务小车</TextBlock>
                                <TextBox Name="TBox_MoveBackAgvNo">A02_0</TextBox>
                                <Button Name="Btn_MoveBackTaskSend" Click="Btn_MoveBackTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送整列回库任务</Button>
                            </StackPanel>
                        </TabItem>
                    </TabControl>
                </TabItem>-->
                <TabItem Header="一键关机" BorderThickness="2" BorderBrush="Green">
                    <StackPanel>
                        <TextBlock>关机选择</TextBlock>
                        <ComboBox Name="Combo_offType">
                            <ComboBoxItem>单独关机</ComboBoxItem>
                            <ComboBoxItem>全部关机</ComboBoxItem>
                        </ComboBox>
                        <TextBlock Height="29">小车号</TextBlock>
                        <TextBox Name="TBox_offAgvNo">A11_3108</TextBox>
                        <Button Name="Btn_Off" Click="Btn_Off_Click" Height="52" Margin="120,20" Background="{StaticResource HHLGRed}" Foreground="White">关 机</Button>
                        
                    </StackPanel>
                </TabItem>
                <!--<TabItem Header="切换货架方向" BorderThickness="2" BorderBrush="Green">
                    <StackPanel>
                        <TextBlock>当前货架</TextBlock>
                        <TextBox Name="TBox_CurrentShelf" KeyDown="TBox_CurrentShelf_KeyDown"></TextBox>
                        <TextBlock>当前货架方向</TextBlock>
                        <TextBox Name="TBox_CurrentShelfOri"></TextBox>
                        <TextBlock Height="29">更改货架方向</TextBlock>
                        <TextBox Name="TBox_ChangeShelfOri" KeyDown="TBox_ChangeShelfOri_KeyDown"></TextBox>
                        <Button Name="Btn_UpdateShelfOri" Click="Btn_UpdateShelfOri_Click" Height="52" Margin="120,20" Background="{StaticResource HHLGRed}" Foreground="White">更新货架方向</Button>

                    </StackPanel>
                </TabItem>
                <TabItem Header="叉车测试任务" BorderThickness="2" BorderBrush="Green">
                    <StackPanel>
                        <TextBlock>起点货架号</TextBlock>
                        <TextBox Name="TBox_StartShelfNo"></TextBox>
                        <TextBlock>终点货架号</TextBlock>
                        <TextBox Name="TBox_EndShelfNo"></TextBox>
                        <Button Name="Btn_SendTask" Click="Btn_SendTask_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">移货任务</Button>
                        <Button x:Name="Btn_SendCargoTask" Click="SendCargoTask" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White" Content="放货任务"/>
                        <Button Name="Btn_SendPickTask" Click="SendPickTask" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">取货任务</Button>
                        <Button x:Name="Btn_SendTestTask" Click="SendTestTask" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White" Content="先放再取"/>
                    </StackPanel>
                </TabItem>-->
                <TabItem Header="新型小车测试任务">
                    <TabControl>
                    <TabItem Header="循环行走任务" BorderThickness="2" BorderBrush="Green">
                        <StackPanel>
                           <TextBlock>任务终点</TextBlock>
                           <TextBox Name="TBox_EndPoint"></TextBox>
                           <TextBlock>小车号</TextBlock>
                           <TextBox Name="TBox_AgvNo">A11_3108</TextBox>
                           <Button Name="Btn_WalktaskStart" Click="Btn_WalktaskStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                           <Button Name="Btn_WalktaskEnd" Click="Btn_WalktaskEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
                        </StackPanel>
                    </TabItem>
                        <TabItem Header="循环耦合旋转任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>小车号</TextBlock>
                                <TextBox Name="TBox_RotateAgv">A11_3108</TextBox>
                                <Button Name="Btn_RotateStart" Click="Btn_RotateStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                                <Button Name="Btn_RotateEnd" Click="Btn_RotateEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="循环升降任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>小车号</TextBlock>
                                <TextBox Name="TBox_LiftAgv">A11_3108</TextBox>
                                <Button Name="Btn_LiftStart" Click="Btn_LiftStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                                <Button Name="Btn_LiftEnd" Click="Btn_LiftEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="循环托盘旋转任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>小车号</TextBlock>
                                <TextBox Name="TBox_PalletAgv">A11_3108</TextBox>
                                <Button Name="Btn_PalletStart" Click="Btn_PalletStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                                <Button Name="Btn_PalletEnd" Click="Btn_PalletEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="充电电量监测" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>小车号</TextBlock>
                                <TextBox Name="TBox_ChargeAgv">A11_3108</TextBox>
                                <Button Name="Btn_ChargeStart" Click="Btn_ChargeStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                                <Button Name="Btn_ChargeEnd" Click="Btn_ChargeEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
                            </StackPanel>
                        </TabItem>
                        <TabItem Header="拐点弧线行走任务" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>小车号</TextBlock>
                                <TextBox Name="TBox_CurveAgv">A11_3108</TextBox>
                                <TextBlock>拐点起点</TextBlock>
                                <TextBox Name="TBox_CurveStartPoint"></TextBox>
                                <TextBlock>拐点终点</TextBlock>
                                <TextBox Name="TBox_CurveEndPoint"></TextBox>
                                <Button Name="Btn_CurveStart" Click="Btn_CurveStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                            </StackPanel>
                        </TabItem>
                    </TabControl>
                </TabItem>
                <TabItem Header="单步控制">
                    <TabControl>
                        <TabItem Header="单步控制" BorderThickness="2" BorderBrush="Green">
                            <StackPanel>
                                <TextBlock>任务类型</TextBlock>
                                <ComboBox Name="ComBox_SingleControl" SelectedIndex="0">
                                    <ComboBoxItem>手动行走|1</ComboBoxItem>
                                    <ComboBoxItem>手动顶升|2</ComboBoxItem>
                                    <ComboBoxItem>手动下降|3</ComboBoxItem>
                                    <ComboBoxItem>手动旋转|4</ComboBoxItem>
                                    <ComboBoxItem>充电|5</ComboBoxItem>
                                    <ComboBoxItem>取消充电|6</ComboBoxItem>
                                </ComboBox>

                                <TextBlock>Agv</TextBlock>
                                <TextBox Name="Tbox_SingleAgv">A11_3108</TextBox>

                                <TextBlock>单步任务</TextBlock>
                                <TextBox Name="Tbox_SingleTask"></TextBox>
                                <!--Click="Btn_SingleOK_Click"-->
                                <Button Name="Btn_SingleOK"  Height="52" Margin="120,20,120,0" Background="{StaticResource HHLGRed}" Foreground="White" PreviewMouseDown="Border_Canv_PreviewMouseDown" PreviewMouseUp="Border_Canv_PreviewMouseUp">发送</Button>
                            </StackPanel>
                        </TabItem>
                    </TabControl>
                </TabItem>
                <TabItem Header="测试">
                    <Button Name="Btn_WalktaskStart22" Click="Btn_TaskStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
                </TabItem>
            </TabControl>
            <StackPanel Height="2" Grid.Row="3" Background="{StaticResource HHLGRed}"></StackPanel>
            <TextBlock Grid.Row="4" FontSize="20" HorizontalAlignment="Center"
                       Foreground="{StaticResource HHAst2}">控制台系统</TextBlock>
        </Grid>
    </Border>
</Window>