change - 物料特征上传数据组改为参数配置
parent
81d1ba7821
commit
a5a6aa74e9
@ -1,88 +0,0 @@
|
||||
<Window x:Class="MaterialTraceabilityUI.Login"
|
||||
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" ResizeMode="NoResize"
|
||||
Title="登录RFID物料追溯系统" Height="350" Width="400" Icon="芯片.png">
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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">
|
||||
<Label Content="账号" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
||||
<TextBox x:Name="username" 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="请输入登录账号"/>
|
||||
</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">
|
||||
<Label Content="密码" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
||||
<PasswordBox Height="23" HorizontalAlignment="Left" Name="password" VerticalContentAlignment="Center" Width="120" PasswordChar="*"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Content="登录" Background="#007DFA" Foreground="White" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Height="30" VerticalAlignment="Center" HorizontalAlignment="Center" Click="Button_Click"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
</Window>
|
@ -1,111 +0,0 @@
|
||||
<UserControl x:Class="MaterialTraceabilityUI.SysConfigPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MaterialTraceabilityUI"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800"
|
||||
Background="Transparent" Loaded="UserControl_Loaded">
|
||||
<Border CornerRadius="10" Background="White" Margin="0,10,0,0">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="80"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="10" Background="Transparent">
|
||||
<Grid>
|
||||
<StackPanel Margin="15,0" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
|
||||
|
||||
<Label Margin="20,0,0,0" Content="参数类型" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
|
||||
<ComboBox x:Name="paramType" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30">
|
||||
|
||||
</ComboBox>
|
||||
|
||||
<Label Content="参数名称" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
|
||||
<TextBox x:Name="paramKey" Width="150" HorizontalAlignment="Left" Height="30"/>
|
||||
|
||||
<Button x:Name="seachClick" Content="查询" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Seach_Click"/>
|
||||
|
||||
<Button x:Name="saveClick" Content="保存" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Save_Click"/>
|
||||
|
||||
<Button x:Name="editClick" Content="设置" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Edit_Click"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" Margin="0,5,0,0" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="0" Background="Transparent">
|
||||
<DataGrid x:Name="SysCientDataGrid" Style="{DynamicResource DataGridStyle}" ColumnHeaderHeight="22" RowHeight="20" AutoGenerateColumns="False" RowHeaderWidth="0" GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden">
|
||||
<DataGrid.Resources>
|
||||
<Style x:Key="DataGridStyle" TargetType="DataGrid">
|
||||
<Setter Property="AlternationCount" Value="2"/>
|
||||
<Setter Property="ColumnHeaderStyle" Value="{DynamicResource DataGridColumnHeaderStyle}"/>
|
||||
<Setter Property="CellStyle" Value="{DynamicResource DataGridCellStyle}"/>
|
||||
<Setter Property="RowStyle" Value="{DynamicResource DataGridRowStyle}"/>
|
||||
</Style>
|
||||
<Style x:Key="DataGridColumnHeaderStyle" TargetType="DataGridColumnHeader">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="Background" Value="White"/>
|
||||
</Style>
|
||||
<Style x:Key="DataGridRowStyle" TargetType="{x:Type DataGridRow}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridRow}">
|
||||
<Grid x:Name="DGR_Border" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"/>
|
||||
<DataGridCellsPresenter Grid.Column="1" ItemsPanel="{TemplateBinding ItemsPanel}"/>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="BorderBrush" Value="#00BCD4"/>
|
||||
</Trigger>
|
||||
<Trigger Property="AlternationIndex" Value="0">
|
||||
<Setter Property="Background" Value="#E9F3FD"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsNewItem" Value="True">
|
||||
<Setter Property="Margin" Value="{Binding NewItemMargin, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="DataGridCellStyle" TargetType="{x:Type DataGridCell}">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
||||
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
|
||||
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="Foreground" Value="Gray"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</DataGrid.Resources>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding Id}" Header="编号" IsReadOnly="True" Width="30"/>
|
||||
<DataGridTextColumn Binding="{Binding paramType}" Header="参数类型" Width="*"/>
|
||||
<DataGridTextColumn Binding="{Binding paramKey}" Header="参数名称" Width="*"/>
|
||||
<DataGridTextColumn Binding="{Binding paramValue}" Header="参数值" Width="*"/>
|
||||
<DataGridTextColumn Binding="{Binding remark}" Header="备注" Width="*"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
Loading…
Reference in New Issue