93 lines
5.6 KiB
XML
93 lines
5.6 KiB
XML
<Window
|
|
xmlns:pi="https://github.com/ping9719/wpfex"
|
|
x:Class="智能仓储WCS管理系统.MatBaseInfoAddOrUpdateView"
|
|
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"
|
|
Height="320" Width="320" 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="18" 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 Name="MatCode" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
Style="{StaticResource TextBoxExtend}"
|
|
hc:InfoElement.Placeholder="此项必填"
|
|
></TextBox>
|
|
<TextBlock Text="*" Foreground="Red" VerticalAlignment="Center">
|
|
</TextBlock>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料名称:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox Name="MatName" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
Style="{StaticResource TextBoxExtend}"
|
|
hc:InfoElement.Placeholder="此项必填"
|
|
></TextBox>
|
|
<TextBlock Text="*" Foreground="Red" VerticalAlignment="Center">
|
|
</TextBlock>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料规格:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox Name="MatSpec" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料单位:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox Name="MatUnit" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="物料客户:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<TextBox Name="MatCustomer" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
Style="{StaticResource TextBoxExtend}">
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
|
<TextBlock Text="状 态:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
|
<ComboBox Name="IsEnable" MinWidth="100" Grid.Row="0" Grid.Column="1" FontSize="15"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
SelectedValuePath="Tag" SelectedValue="{Binding IsEnable}">
|
|
<ComboBoxItem IsSelected="True" Tag="True">启用</ComboBoxItem>
|
|
<ComboBoxItem Tag="False">禁用</ComboBoxItem>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="5" x:Name="spacingPanel" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Button Margin="5" MinHeight="30" FontSize="15" Content="确认" Name="btnOk" Click="btnOk_Click"/>
|
|
<Button Margin="5" MinHeight="30" FontSize="15" Content="取消" Click="closeClick"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|