Frm_Pallet.xaml 2.73 KB
<Window x:Class="HHWCSHost.View.Frm_Pallet"
        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:HHWCSHost.View"
        mc:Ignorable="d"
        Title="托盘" Height="450" Width="800" Closing="Window_Closing">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="240"/>
            <ColumnDefinition Width="277*"/>
        </Grid.ColumnDefinitions>
        <DataGrid x:Name="dgv_1" Grid.Column="1" AutoGenerateColumns="False"  IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Id"  Binding="{Binding Id}"></DataGridTextColumn>
                <DataGridTextColumn Header="托盘号" Binding="{Binding Code}"></DataGridTextColumn>
                <DataGridTextColumn Header="状态" Binding="{Binding Status}"></DataGridTextColumn>
                <DataGridTextColumn Header="打印次数" Binding="{Binding PrintCount}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <TextBlock HorizontalAlignment="Left" Margin="42,69,0,0" TextWrapping="Wrap" Text="编号:" VerticalAlignment="Top" FontSize="14"/>
        <TextBox x:Name="txt_code" HorizontalAlignment="Left" Height="23" Margin="90,67,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" FontSize="14"/>
        <CheckBox x:Name="cb_isPrint" Content="是否已打印" HorizontalAlignment="Left" Margin="30,114,0,0" VerticalAlignment="Top" FontSize="14"/>
        <CheckBox x:Name="cb_isInWarehouse" Content="是否在库" HorizontalAlignment="Left" Margin="128,114,0,0" VerticalAlignment="Top" FontSize="14"/>
        <Button x:Name="btn_print" Content="打印" HorizontalAlignment="Left" Margin="135,258,0,0" VerticalAlignment="Top" Width="75" Click="btn_print_Click"/>
        <Button x:Name="btn_query" Content="查询" HorizontalAlignment="Left" Margin="135,172,0,0" VerticalAlignment="Top" Width="75" Click="btn_query_Click"/>
        <Rectangle Fill="#FF07427F" Height="2" Margin="12,233,28,0"  VerticalAlignment="Top" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="-1"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
        <CheckBox x:Name="cb_IsDoublePrint" Content="双打" Margin="76,263,116,0" VerticalAlignment="Top"/>


    </Grid>
</Window>