WinTaskInfo.xaml 4.72 KB
<Window x:Class="HHECS.View.TaskInfo.WinTaskInfo"
        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:control="clr-namespace:HHECS.Controls"
        mc:Ignorable="d" 
        Title="任务查看" Height="450" Width="800" Closing="Window_Closing">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="240"/>
            <ColumnDefinition Width="277*"/>
        </Grid.ColumnDefinitions>
        <Button x:Name="btn_Query" Content="查询" HorizontalAlignment="Left" Margin="53,222,0,0" VerticalAlignment="Top" Width="75" RenderTransformOrigin="0.975,2.244" Click="btn_Query_Click"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,29,0,0" TextWrapping="Wrap" Text="任务号:" VerticalAlignment="Top" FontSize="14"/>
        <ComboBox x:Name="cbx_TaskStatus" HorizontalAlignment="Left" Margin="85,102,0,0" VerticalAlignment="Top" Width="120" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,66,0,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,69,0,0" TextWrapping="Wrap" Text="托盘号:" VerticalAlignment="Top" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,106,0,0" TextWrapping="Wrap" Text="任务状态:" VerticalAlignment="Top" FontSize="14"/>
        <TextBox x:Name="txt_TaskNo" HorizontalAlignment="Left" Height="23" Margin="85,24,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
        <TextBox x:Name="txt_Pallet" HorizontalAlignment="Left" Height="23" Margin="85,66,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
        <DockPanel x:Name="DPMain" Grid.Column="1" >
            <control:DataPager x:Name="page" DockPanel.Dock="Bottom" PageIndex="{Binding PageIndex}" PageSize="{Binding PageSize}" TotalCount="{Binding TotalCount}"
                                   PageChanged="page_PageChanged"></control:DataPager>
            <DataGrid x:Name="dgv_1" AutoGenerateColumns="False" IsReadOnly="True">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="任务号" Binding="{Binding Id}"/>
                    <DataGridTextColumn Header="仓库" Binding="{Binding WarehouseCode}"/>
                    <DataGridTextColumn Header="优先级" Binding="{Binding Priority}"/>
                    <DataGridTextColumn Header="任务类型" Binding="{Binding Type}"/>
                    <DataGridTextColumn Header="站台" Binding="{Binding Station}"/>
                    <DataGridTextColumn Header="托盘号" Binding="{Binding ContainerCode}"/>
                    <DataGridTextColumn Header="源地址" Binding="{Binding SourceLocation}"/>
                    <DataGridTextColumn Header="目标地址" Binding="{Binding DestinationLocation}"/>
                    <DataGridTextColumn Header="首状态" Binding="{Binding FirstStatus}"/>
                    <DataGridTextColumn Header="尾状态" Binding="{Binding LastStatus}"/>
                    <DataGridTextColumn Header="创建人" Binding="{Binding CreatedBy}"/>
                    <DataGridTextColumn Header="创建时间" Binding="{Binding Created}"/>
                    <DataGridTextColumn Header="最后更新时间" Binding="{Binding LastUpdatedBy}"/>
                </DataGrid.Columns>
            </DataGrid>
        </DockPanel>
        <TextBlock HorizontalAlignment="Left" Margin="10,142,0,0" TextWrapping="Wrap" Text="开始时间:" VerticalAlignment="Top" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,176,0,0" TextWrapping="Wrap" Text="结束时间:" VerticalAlignment="Top" FontSize="14"/>
        <DatePicker x:Name="beginTime" HorizontalAlignment="Left" Margin="85,140,0,0" VerticalAlignment="Top" Width="120"/>
        <DatePicker x:Name="endTime" HorizontalAlignment="Left" Margin="85,174,0,0" VerticalAlignment="Top" Width="120"/>
        <Button Content="新增" HorizontalAlignment="Left" Margin="145,222,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click" Visibility="Collapsed"/>
        <Button x:Name="btn_Delete" Content="删除" HorizontalAlignment="Left" Margin="145,261,0,0" VerticalAlignment="Top" Width="75"  Click="btn_Delete_Click" Visibility="Collapsed"/>
        <Button x:Name="btn_SendToWCS" Content="下发" HorizontalAlignment="Left" Margin="53,261,0,0" VerticalAlignment="Top" Width="75" Click="btn_SendToWCS_Click"/>
        <Button x:Name="btn_modifyStatus" Content="修改状态" HorizontalAlignment="Left" Margin="53,300,0,0" VerticalAlignment="Top" Width="91" Click="btn_modifyStatus_Click"/>

    </Grid>
</Window>