You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
6.9 KiB
XML
115 lines
6.9 KiB
XML
<Window x:Class="MaterialTraceabilityUI.WriteInfo"
|
|
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:MaterialTraceabilityUI"
|
|
mc:Ignorable="d"
|
|
Title="手动写入物料信息" Height="350" Width="400" Icon="芯片.png" ResizeMode="NoResize">
|
|
<Border Margin="5" Background="White" CornerRadius="10">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
|
|
</Border.Effect>
|
|
<Grid VerticalAlignment="Center">
|
|
<!--<Border Background="#007DFA" CornerRadius="10,10,0,0" Height="80" VerticalAlignment="Top"></Border>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="75"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
-->
|
|
<!--左侧标题-->
|
|
<!--
|
|
<StackPanel Margin="1,1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Source="Assets/Images/宁德LOG.png" Width="150"/>
|
|
<StackPanel Margin="15,15">
|
|
<TextBlock Text="RFID物料追溯系统" Foreground="White" FontSize="20"/>
|
|
<TextBlock Text="RFID material tracking system" Foreground="#88DDDDDD"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Height="215">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="180"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Column="0" Margin="0,10" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<Border Background="#007DFA" BorderBrush="#007DFA" BorderThickness="2" CornerRadius="15">
|
|
<Image Source="Assets/Images/芯片.png" Width="100" Height="90"/>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>-->
|
|
<StackPanel Grid.Column="1" Margin="0,10" VerticalAlignment="Center">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="60"/>
|
|
<RowDefinition Height="60"/>
|
|
<RowDefinition Height="60"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Label Content="RFID条码" Width="80" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
<TextBox x:Name="rfidCode" Height="23" TextWrapping="Wrap" Width="272" VerticalAlignment="Center">
|
|
<TextBox.Resources>
|
|
<VisualBrush x:Key="HIntText" TileMode="None" Opacity="0.5" Stretch="None" AlignmentX="Left">
|
|
<VisualBrush.Visual>
|
|
<TextBlock Text="请输入RFID条码信息"/>
|
|
</VisualBrush.Visual>
|
|
</VisualBrush>
|
|
</TextBox.Resources>
|
|
<TextBox.Style>
|
|
<Style TargetType="TextBox">
|
|
<Style.Triggers>
|
|
<Trigger Property="Text" Value="{x:Null}">
|
|
<Setter Property="Background" Value="{StaticResource HIntText}"/>
|
|
</Trigger>
|
|
<Trigger Property="Text" Value="">
|
|
<Setter Property="Background" Value="{StaticResource HIntText}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</TextBox.Style>
|
|
</TextBox>
|
|
</StackPanel>
|
|
|
|
<!--<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<Label Content="SFC条码" Width="80" VerticalAlignment="Center" />
|
|
<TextBox x:Name="sfcCode" Height="23" TextWrapping="Wrap" Width="120" VerticalAlignment="Center" HorizontalAlignment="Right">
|
|
<TextBox.Resources>
|
|
<VisualBrush x:Key="HIntText" TileMode="None" Opacity="0.5" Stretch="None" AlignmentX="Left">
|
|
<VisualBrush.Visual>
|
|
<TextBlock Text="请输入SFC条码信息"/>
|
|
</VisualBrush.Visual>
|
|
</VisualBrush>
|
|
</TextBox.Resources>
|
|
<TextBox.Style>
|
|
<Style TargetType="TextBox">
|
|
<Style.Triggers>
|
|
<Trigger Property="Text" Value="{x:Null}">
|
|
<Setter Property="Background" Value="{StaticResource HIntText}"/>
|
|
</Trigger>
|
|
<Trigger Property="Text" Value="">
|
|
<Setter Property="Background" Value="{StaticResource HIntText}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</TextBox.Style>
|
|
</TextBox>
|
|
</StackPanel>-->
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<UniformGrid Columns="2">
|
|
<Button Content="写入" Background="#007DFA" Foreground="White" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Height="30" VerticalAlignment="Center" Margin="15,0" HorizontalAlignment="Center" Click="Button_Click"/>
|
|
<Button Content="清除" Background="#007DFA" Foreground="White" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Height="30" VerticalAlignment="Center" Margin="15,0" HorizontalAlignment="Center" Click="Button_Click_1"/>
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</Border>
|
|
</Window>
|