WinHistory.xaml 5.28 KB
<Window x:Class="XingYe_ACS.UI.WinHistory"
        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="WinHistory" Height="700" Width="1000"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None" AllowsTransparency="True" Background="Transparent"
        Loaded="Window_Loaded">
    <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 Grid.Row="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"></RowDefinition>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>
                <Grid Background="{StaticResource HHLGRed}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="184*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    
                    <TextBlock Foreground="White" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="3">任务类型:</TextBlock>
                    <ComboBox Name="cBoxTaskType" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" MinWidth="200" IsEditable="True" VerticalAlignment="Center" Margin="3"></ComboBox>

                    <TextBlock Foreground="White" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="3" >Agv编号:</TextBlock>
                    <TextBox Name="tBoxAgvNo" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" MinWidth="200"  VerticalAlignment="Center" Margin="3"></TextBox>

                    <TextBlock Foreground="White" Grid.Row="0" Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="3">开始时间:</TextBlock>
                    <DatePicker Name="CalendarStart" Grid.Row="0" Grid.Column="5" HorizontalAlignment="Left" Margin="3" MinWidth="200"  VerticalAlignment="Center"></DatePicker>
                    <TextBlock Foreground="White" Grid.Row="1" Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="3">结束时间:</TextBlock>
                    <DatePicker Name="CalendarEnd" Grid.Row="1" Grid.Column="5" HorizontalAlignment="Left" MinWidth="200"  VerticalAlignment="Center" Margin="3"></DatePicker>
                    <Button Name="BtnQuery" Click="BtnQuery_Click" Grid.Column="6" HorizontalAlignment="Right" MinWidth="100" Margin="0,17,210,22" Grid.RowSpan="2">历史记录查询</Button>
                </Grid>
                <DataGrid Grid.Row="1" Name="Grid_History" CanUserAddRows="False" CanUserDeleteRows="False"></DataGrid>
            </Grid>
            <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>
            </Grid>

            <StackPanel Height="2" Grid.Row="1" Background="{StaticResource HHLGRed}"></StackPanel>
            <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>