116 lines
7.5 KiB
XML
116 lines
7.5 KiB
XML
<Window
|
|
xmlns:pi="https://github.com/ping9719/wpfex"
|
|
x:Class="智能仓储WCS管理系统.MatBaseInoScanGenarateMatInfoView"
|
|
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:hc="https://handyorg.github.io/handycontrol"
|
|
mc:Ignorable="d"
|
|
Loaded="UserControlBase_Loaded"
|
|
Height="400" Width="340" WindowStyle="None" BorderThickness="0" Background="{x:Null}" AllowsTransparency="True" WindowStartupLocation="CenterScreen" Opacity="1">
|
|
<Border BorderBrush="Gray" Background="WhiteSmoke" CornerRadius="5" BorderThickness="1">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock FontSize="22" Name="Title" Text="{Binding Title, FallbackValue= 扫描生成物料条码}" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
<Button Margin="-5,-1"
|
|
Visibility="{Binding IsClose,Converter={StaticResource Boolean2VisibilityConverter}}"
|
|
Style="{StaticResource ButtonIcon}"
|
|
hc:IconElement.Geometry="{StaticResource CloseGeometry}" HorizontalAlignment="Right"
|
|
VerticalAlignment="Top" Click="closeClick"/>
|
|
|
|
<StackPanel Margin="5,0" Grid.Row="1" >
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="两位固定码:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox MinWidth="200" MaxWidth="200" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
PreviewTextInput="txtMatBatch_PreviewTextInput"
|
|
PreviewKeyDown="TextBox_PreviewKeyDown"
|
|
Text="{Binding ChangelessCode}"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料编码:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<!--<TextBlock Text="{Binding MatCode}" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>-->
|
|
<hc:AutoCompleteTextBox Grid.Row="1" Grid.Column="1" MinWidth="120" FontSize="18" IsEditable="True"
|
|
Height="20"
|
|
IsTextSearchEnabled="True"
|
|
Name="cbxMatCode" Margin="1"
|
|
ItemsSource="{Binding Items}"
|
|
Text="{Binding MatCode}"
|
|
DisplayMemberPath="MatCode"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料名称:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBlock Text="{Binding MatName}" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料规格:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBlock Text="{Binding MatSpec}" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="两位预留码:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox MinWidth="200" MaxWidth="200" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
PreviewTextInput="txtMatBatch_PreviewTextInput"
|
|
PreviewKeyDown="TextBox_PreviewKeyDown"
|
|
Text="{Binding ReservedCode}"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料批次:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox MinWidth="200" MaxWidth="200" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
PreviewTextInput="txtMatBatch_PreviewTextInput"
|
|
PreviewKeyDown="TextBox_PreviewKeyDown"
|
|
Text="{Binding MatBatch}"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料数量:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox Name="txtMatQty" MinWidth="200" MaxWidth="200" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
PreviewTextInput="txtMatBatch_PreviewTextInput"
|
|
PreviewKeyDown="TextBox_PreviewKeyDown"
|
|
Text="{Binding MatQty}"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="打印盘数:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox Name="txtTotalCount"
|
|
MinWidth="200" MaxWidth="200" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
PreviewTextInput="txtMatBatch_PreviewTextInput"
|
|
PreviewKeyDown="TextBox_PreviewKeyDown"
|
|
Text="{Binding TotalPan}"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="{Binding MatSNsStr}" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="5" x:Name="spacingPanel" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<!--<Button Margin="5" Command="{Binding BtnGenerateCommand}" MinHeight="30" FontSize="15" Content="生成" Name="btnOk" />-->
|
|
<Button Margin="5" x:Name="BtnGeneratePrint" Command="{Binding BtnGeneratePrintCommand}" MinHeight="30" FontSize="15" Content="生成并打印" />
|
|
<Button Margin="5" MinHeight="30" FontSize="15" Content="关 闭" Click="closeClick"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|