StockerInfo.xaml 9.69 KB
<UserControl x:Class="HHECS.Controls.StockerInfo"
             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" 
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="250" Padding="5,5">
    <UserControl.Resources>
        <Style x:Key="labStyle" TargetType="{x:Type Label}" >
            <Setter Property="Foreground" Value="Blue"/>
            <Setter Property="Margin" Value="0,0"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
        </Style>
        <Style x:Key="txtBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="Margin" Value="0,0"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
        </Style>
    </UserControl.Resources>
    <Grid Background="#FFA5CCFB">
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Label x:Name="lab_Name" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="6" HorizontalContentAlignment="Center" Style="{DynamicResource labStyle}" FontWeight="Bold" FontSize="18" VerticalContentAlignment="Center" HorizontalAlignment="Center">堆垛机名</Label>

        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="2" Grid.Column="0" TextWrapping="Wrap" Text="任务限制" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="1" Grid.Column="2" TextWrapping="Wrap" Text="执行状态" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="1" Grid.Column="4" TextWrapping="Wrap" Text="操作模式" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="1" Grid.Column="0" TextWrapping="Wrap" Text="是否有货" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="2" Grid.Column="2" TextWrapping="Wrap" Text="任务类型" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="2" Grid.Column="4" TextWrapping="Wrap" Text="任务号1" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="3" Grid.Column="0" TextWrapping="Wrap" Text="当前出入口" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="3" Grid.Column="2" TextWrapping="Wrap" Text="当前列" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="3" Grid.Column="4" TextWrapping="Wrap" Text="当前层" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="4" Grid.Column="0" TextWrapping="Wrap" Text="水平测距" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="4" Grid.Column="2" TextWrapping="Wrap" Text="起升测距" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="4" Grid.Column="4" TextWrapping="Wrap" Text="货叉测距" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="7" Grid.Column="0" TextWrapping="Wrap" Text="运行变频器" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="7" Grid.Column="2" TextWrapping="Wrap" Text="起升变频器" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="7" Grid.Column="4" TextWrapping="Wrap" Text="运行超时" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="8" Grid.Column="0" TextWrapping="Wrap" Text="起升超时" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="8" Grid.Column="2" TextWrapping="Wrap" Text="货叉超时" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="8" Grid.Column="4" TextWrapping="Wrap" Text="超高1" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="9" Grid.Column="0" TextWrapping="Wrap" Text="超高2" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="9" Grid.Column="2" TextWrapping="Wrap" Text="超高3" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="9" Grid.Column="4" TextWrapping="Wrap" Text="货物超高" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="10" Grid.Column="0" TextWrapping="Wrap" Text="水平激光数据" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="10" Grid.Column="2" TextWrapping="Wrap" Text="TextBlock" />
        <TextBlock Style="{DynamicResource txtBlockStyle}"  Grid.Row="10" Grid.Column="4" TextWrapping="Wrap" Text="TextBlock" />

        <Label x:Name="lab_Fork1ForkHasPallet" Style="{DynamicResource labStyle}"  Grid.Row="1" Grid.Column="1" Content="未获取" />
        <Label x:Name="lab_Fork1TaskExcuteStatus" Style="{DynamicResource labStyle}"  Grid.Row="1" Grid.Column="3" Content="未获取" />
        <Label x:Name="lab_OperationModel" Style="{DynamicResource labStyle}"  Grid.Row="1" Grid.Column="5" Content="未获取" />
        <Label x:Name="lab_TaskLimit" Style="{DynamicResource labStyle}"  Grid.Row="2" Grid.Column="1" Content="未获取" />
        <Label x:Name="lab_Fork1TaskType" Style="{DynamicResource labStyle}"  Grid.Row="2" Grid.Column="3" Content="未获取" />
        <Label x:Name="lab_Fork1TaskNo" Style="{DynamicResource labStyle}"  Grid.Row="2" Grid.Column="5" Content="未获取" />
        <Label x:Name="lab_CurrentStation" Style="{DynamicResource labStyle}"  Grid.Row="3" Grid.Column="1" Content="未获取" />
        <Label x:Name="lab_CurrentColumn" Style="{DynamicResource labStyle}"  Grid.Row="3" Grid.Column="3" Content="未获取" />
        <Label x:Name="lab_CurrentLayer" Style="{DynamicResource labStyle}"  Grid.Row="3" Grid.Column="5" Content="未获取" />
        <Label x:Name="lab_HorizontalDistance" Style="{DynamicResource labStyle}"  Grid.Row="4" Grid.Column="1" Content="未获取"  />
        <Label x:Name="lab_VerticalDistance" Style="{DynamicResource labStyle}"  Grid.Row="4" Grid.Column="3" Content="未获取"  />
        <Label x:Name="lab_ForkDistance" Style="{DynamicResource labStyle}"  Grid.Row="4" Grid.Column="5" Content="未获取"  />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="7" Grid.Column="1" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="7" Grid.Column="3" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="7" Grid.Column="5" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="8" Grid.Column="1" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="8" Grid.Column="3" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="8" Grid.Column="5" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="9" Grid.Column="1" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="9" Grid.Column="3" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="9" Grid.Column="5" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="10" Grid.Column="1" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="10" Grid.Column="3" Content="未获取" />
        <Label Style="{DynamicResource labStyle}"  Grid.Row="10" Grid.Column="5" Content="未获取" />


        <ListBox x:Name="list_Alarm" Grid.Column="0" Grid.ColumnSpan="6" Grid.Row="6" Grid.RowSpan="7" >
            <TextBlock Text="报警信息:"></TextBlock>
        </ListBox>
        <StackPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="6" Orientation="Horizontal">
            <Button x:Name="Btn_Delete" Style="{x:Null}" Background="Yellow" Click="Btn_Delete_Click"   Content="删除任务" FontSize="10"  HorizontalAlignment="Left"  VerticalAlignment="Top" Width="75" Height="27" Margin="8,3,0,0"/>
            <Button x:Name="Btn_Override" Style="{x:Null}" Background="Yellow" Click="Btn_Override_Click"   Content="重新下发" FontSize="10"  HorizontalAlignment="Left"  VerticalAlignment="Top" Width="75" Height="27" Margin="8,3,0,0"/>
            <Button x:Name="Btn_EOut" Style="{x:Null}" Background="Yellow" Click="Btn_EOut_Click" Content="空  出" FontSize="10" HorizontalAlignment="Left" VerticalAlignment="Top"  Width="60" Height="27"  Margin="8,3,0,0"/>
            <Button x:Name="Btn_DIn" Style="{x:Null}" Background="Yellow"  Click="Btn_DIn_Click" Content="重  入" FontSize="10"  HorizontalAlignment="Center" VerticalAlignment="Top" Width="60" Height="27" Margin="8,3,0,0"/>
            <Button x:Name="Btn_ForkError" Style="{x:Null}" Background="Yellow"  Click="Btn_ForkError_Click"  Content="取货错误" FontSize="10"  HorizontalAlignment="Right" VerticalAlignment="Top" Width="75" Height="27" Margin="8,3,0,0" Visibility="Collapsed"/>
        </StackPanel>

    </Grid>
</UserControl>