StockerInfo.xaml 8.65 KB
<UserControl x:Class="HHWCSHost.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" 
             xmlns:local="clr-namespace:HHWCSHost.Controls"
             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="1" 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="2" 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="任务号2" />
        <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="3" 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_TaskValidate" Style="{DynamicResource labStyle}"  Grid.Row="1" Grid.Column="1" Content="未获取" />
        <Label x:Name="lab_WorkModel" 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_WorkStatus" Style="{DynamicResource labStyle}"  Grid.Row="2" Grid.Column="1" Content="未获取" />
        <Label x:Name="lab_TaskExcuteStatus" Style="{DynamicResource labStyle}"  Grid.Row="2" Grid.Column="3" Content="未获取" />
        <Label x:Name="lab_TaskNo1" Style="{DynamicResource labStyle}"  Grid.Row="2" Grid.Column="5" Content="未获取" />
        <Label x:Name="lab_TaskNo2" 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="4" 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>
        <Button x:Name="Btn_DIn" Click="Btn_DIn_Click" Grid.ColumnSpan="2" Content="重入" FontSize="10" Grid.Column="4" HorizontalAlignment="Left" Grid.Row="5" VerticalAlignment="Top" Width="60" Height="27" Margin="10,2.8,0,0"/>
        <Button x:Name="Btn_EOut" Click="Btn_EOut_Click" Content="空出" FontSize="10" Grid.ColumnSpan="2" Grid.Column="2" HorizontalAlignment="Left" Margin="9,2.8,0,0" Grid.Row="5" Width="60" Height="27" VerticalAlignment="Top"/>

    </Grid>
</UserControl>