139 lines
8.5 KiB
XML
139 lines
8.5 KiB
XML
<Window
|
||
xmlns:pi="https://github.com/ping9719/wpfex"
|
||
x:Class="货架标准上位机.ShelfInfoAddOrUpdateView"
|
||
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="440" 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>
|
||
<ComboBox Grid.Row="0" Grid.Column="1"
|
||
DisplayMemberPath="ShelfTypeName"
|
||
ItemsSource="{Binding ShelfTypeItems}"
|
||
SelectedItem="{Binding SelectedShelfTypeItem}"
|
||
IsEditable="False"
|
||
MinWidth="200"
|
||
FontSize="18" />
|
||
<TextBlock Text="*" Foreground="Red" VerticalAlignment="Center">
|
||
</TextBlock>
|
||
</StackPanel>
|
||
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="货架编码:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
||
<TextBox Name="txtShelfCode" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Style="{StaticResource TextBoxExtend}"
|
||
Text="{Binding ShelfCode}"
|
||
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="txtRowCounts" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Style="{StaticResource TextBoxExtend}"
|
||
Text="{Binding RowCounts}"
|
||
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="txtColumnCounts" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Style="{StaticResource TextBoxExtend}"
|
||
Text="{Binding ColumnCounts}"
|
||
hc:InfoElement.Placeholder="此项必填">
|
||
</TextBox>
|
||
<TextBlock Text="*" Foreground="Red" VerticalAlignment="Center">
|
||
</TextBlock>
|
||
</StackPanel>
|
||
|
||
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="报警灯ID:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
||
<TextBox Name="txtLightId" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Style="{StaticResource TextBoxExtend}"
|
||
hc:InfoElement.Placeholder="此项必填"
|
||
Text="{Binding LightId}">
|
||
</TextBox>
|
||
<TextBlock Text="*" Foreground="Red" VerticalAlignment="Center">
|
||
</TextBlock>
|
||
</StackPanel>
|
||
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="TCP信息:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
||
<TextBox Name="txtClientIp" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Style="{StaticResource TextBoxExtend}"
|
||
hc:InfoElement.Placeholder="此项必填"
|
||
Text="{Binding ClientIp}">
|
||
</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="txtGroupName" MinWidth="200" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Style="{StaticResource TextBoxExtend}"
|
||
hc:InfoElement.Placeholder="此项必填"
|
||
Text="{Binding GroupName}">
|
||
</TextBox>
|
||
<TextBlock Text="*" Foreground="Red" VerticalAlignment="Center">
|
||
</TextBlock>
|
||
</StackPanel>
|
||
|
||
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="是否绑定: " FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
||
<ComboBox Name="IsBind" MinWidth="100" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
SelectedValuePath="Tag" SelectedValue="{Binding IsBind}">
|
||
<ComboBoxItem Tag="True">启用</ComboBoxItem>
|
||
<ComboBoxItem Tag="False" IsSelected="True">禁用</ComboBoxItem>
|
||
</ComboBox>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<TextBlock Text="绑定后货架编码:" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBlock>
|
||
<TextBox Name="txtBindShelfCode" MinWidth="150" MaxWidth="150" Grid.Row="0" Grid.Column="1" FontSize="15"
|
||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||
Text="{Binding BindShelfCode}"
|
||
Style="{StaticResource TextBoxExtend}">
|
||
</TextBox>
|
||
</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>
|