<Window x:Class="Khd.Core.Wpf.TaskForm.Inventory.InventoryTaskEditForm"
        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:Khd.Core.Wpf.TaskForm.Inventory"
        mc:Ignorable="d"
        Background="#333333"
        Closed="Window_Closed"
                xmlns:hc="https://handyorg.github.io/handycontrol"
        WindowStyle="None"
        Loaded="Window_Loaded"
        WindowStartupLocation="CenterScreen"
        Height="600" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="7*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
            <TextBlock Text="料箱号:" FontSize="30" Foreground="White" />
            <TextBlock x:Name="ContainerNo" FontSize="30" Foreground="White" Margin="5,0,0,0"/>
        </StackPanel>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border BorderBrush="White" BorderThickness="2" CornerRadius="5" Padding="10">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="5*" />
                    </Grid.RowDefinitions>
                    <TextBlock Text="该物料原库存信息" FontSize="24" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    <TextBlock x:Name="MaterialSpec" Grid.Row="1" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="Wrap" MaxWidth="400"/>
                    <Grid Grid.Row="2">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="6*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="2*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="条码" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        <TextBlock Text="数量" FontSize="16" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="2"/>
                        <TextBlock x:Name="BarCode" Grid.Row="1" FontSize="16" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Center" TextWrapping="Wrap"/>
                        <TextBlock x:Name="Count" Grid.Column="2" Grid.Row="1" FontSize="16" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Center" TextWrapping="Wrap"/>
                    </Grid>
                </Grid>
            </Border>
            <Border BorderBrush="White" Grid.Column="1" BorderThickness="2" CornerRadius="5" Padding="10">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="6*" />
                    </Grid.RowDefinitions>
                    <TextBlock Text="该物料新库存信息" FontSize="24" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
                        <TextBox x:Name="NewBarCode" LostFocus="NewBarCode_LostFocus" Width="250" FontSize="20" hc:InfoElement.Placeholder="请扫描条码" Style="{StaticResource TextBoxExtend}" />
                        <RepeatButton x:Name="ScanButton" Content="添加" Style="{StaticResource RepeatButtonPrimary}" Width="100" Margin="20,0,0,0" Click="ScanButton_Click" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="2">
                        <TextBox x:Name="NewCount" Width="200" FontSize="20" Margin="5" hc:InfoElement.Placeholder="请输入数量" Style="{StaticResource TextBoxExtend}"  />
                    </StackPanel>
                    <StackPanel Orientation="Vertical"  Grid.Row="3" Margin="0,10,0,0">
                        <GroupBox Height="250" Header="确认" Padding="10">
                            <Border Background="{DynamicResource RegionBrush}" CornerRadius="4">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*" />
                                        <RowDefinition Height="4*" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="2*" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Text="条码" FontSize="16"  VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                    <TextBlock Text="数量" Grid.Column="1" FontSize="16"  VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                    <TextBlock x:Name="BarCodeList"  Grid.Column="0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                    <TextBlock x:Name="CountList" Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                </Grid>
                            </Border>
                        </GroupBox>
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,20,0,0">
                            <Button x:Name="SaveButton" Content="保存" Style="{StaticResource ButtonPrimary}" Width="100" Click="SaveButton_Click" />
                            <Button x:Name="CancelButton" Content="取消" Style="{StaticResource ButtonPrimary}" Width="100" Margin="20,0,0,0" Click="CancelButton_Click" />
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>
