add-一线下线扫描登录界面
parent
fcea2a9e9d
commit
99c5042f03
Binary file not shown.
After Width: | Height: | Size: 2.3 MiB |
@ -1,58 +0,0 @@
|
||||
<Window x:Class="Aucma.Core.ProductOffLineCX1.Views.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:Aucma.Core.ProductOffLineCX1.Views"
|
||||
mc:Ignorable="d" WindowStartupLocation="CenterScreen"
|
||||
Title="登录" Height="500" Width="500" Name="window" Background="White"
|
||||
ResizeMode="NoResize" Topmost="True">
|
||||
<Border Margin="5" Background="#1254AB" CornerRadius="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
|
||||
</Border.Effect>
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.Column="0" BorderBrush="#1254AB" BorderThickness="3" CornerRadius="5" Background="Transparent" Margin="5,5">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
||||
</Border.Effect>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" Margin="50,0,0,0">
|
||||
<TextBlock Text=" 选择班组:" FontSize="20" Foreground="#FFFFFF" Margin="10,0,0,0" Width="129"/>
|
||||
<ComboBox SelectedItem="{Binding SelectedMaterialType}" Width="150" Margin="5 0 0 0" VerticalAlignment="Center" FontSize="30" Foreground="White">
|
||||
<ComboBoxItem Content="一线白班" Foreground="Blue"/>
|
||||
<ComboBoxItem Content="一线夜班" Foreground="Blue" />
|
||||
</ComboBox>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Margin="50,0,0,0">
|
||||
<TextBlock Text="条码系统账号:" FontSize="20" Foreground="#FFFFFF" Margin="10,0,0,0"/>
|
||||
<TextBox FontSize="20" Text="{Binding BarcodeAccount}" Foreground="#FFFFFF" Width="150" Margin="5,0,10,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Content="登 录" FontSize="20" Command="{Binding SaveCommand}" Background="#FF36B5C1" BorderBrush="#FF36B5C1" Foreground="white" Margin="0,0,10,0" Height="50" Width="100" Click="Button_Click" />
|
||||
<Button Content="取 消" FontSize="20" Command="{Binding CloseWindowCommand}" CommandParameter="{Binding ElementName=window}" Background="#FF9900" Foreground="white" Margin="10,0,0,0" Height="50" BorderBrush="#FF9900" Width="100" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
@ -0,0 +1,89 @@
|
||||
<Window x:Class="Aucma.Core.ProductOffLineCX1.Views.LoginPageView"
|
||||
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
|
||||
mc:Ignorable="d"
|
||||
Title="登录"
|
||||
x:Name="MainWindow"
|
||||
FontFamily="Microsoft YaHei"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
WindowState="Maximized" d:DesignWidth="1200" d:DesignHeight="900"
|
||||
>
|
||||
<Window.Background>
|
||||
<ImageBrush ImageSource="/Assets/Images/login-background.png" />
|
||||
</Window.Background>
|
||||
<Border Margin="5" Background="Transparent">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.5*"/>
|
||||
<RowDefinition Height="2*"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<UniformGrid Grid.Row="0">
|
||||
<StackPanel HorizontalAlignment="Left">
|
||||
<Image Source="/Assets/Images/Newlog.png" Width="100" />
|
||||
</StackPanel>
|
||||
</UniformGrid>
|
||||
<UniformGrid Grid.Row="1" Margin="0 10">
|
||||
<Border BorderThickness="4" CornerRadius="5" x:Name="DialogHost" Width="400" Height="420" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
||||
<StackPanel Background="White">
|
||||
|
||||
<ComboBox Margin="0 50 0 0"
|
||||
x:Name="selectTeamComboBox"
|
||||
Width="300"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{StaticResource MaterialDesignDivider}"
|
||||
materialDesign:HintAssist.Hint="班组"
|
||||
SelectedValuePath="TeamCode"
|
||||
DisplayMemberPath="TeamName"
|
||||
ItemsSource="{Binding TeamMembersList}"
|
||||
Style="{StaticResource MaterialDesignOutlinedComboBox}" />
|
||||
<TextBox Margin="0 10 0 0"
|
||||
x:Name="txtBarCode"
|
||||
Width="300" FontSize="18"
|
||||
materialDesign:HintAssist.Hint="条码系统账号"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{StaticResource MaterialDesignDivider}"
|
||||
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||||
GotFocus="TextBox_GotFocus"
|
||||
LostFocus="TextBox_LostFocus"/>
|
||||
<TextBox Margin="0 10 0 0"
|
||||
x:Name="txtUserName"
|
||||
Width="300" FontSize="18"
|
||||
materialDesign:HintAssist.Hint="用户名"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{StaticResource MaterialDesignDivider}"
|
||||
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||||
GotFocus="TextBox_GotFocus"
|
||||
LostFocus="TextBox_LostFocus"/>
|
||||
<PasswordBox
|
||||
Margin="0 10 0 0"
|
||||
x:Name="txtPassword"
|
||||
Width="300"
|
||||
FontSize="12"
|
||||
materialDesign:HintAssist.Hint="密码"
|
||||
BorderThickness="1"
|
||||
BorderBrush="{StaticResource MaterialDesignDivider}"
|
||||
Style="{StaticResource MaterialDesignOutlinedPasswordBox}"
|
||||
GotFocus="TextBox_GotFocus"
|
||||
LostFocus="TextBox_LostFocus"/>
|
||||
<Button Margin="0 20 0 0"
|
||||
x:Name="loginBtn"
|
||||
Style="{StaticResource MaterialDesignFlatMidBgButton}"
|
||||
Width="300"
|
||||
Height="53"
|
||||
Command="{Binding LoginCommand}"
|
||||
materialDesign:ButtonAssist.CornerRadius="10"
|
||||
Content="登录" Click="loginBtn_Click"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</UniformGrid>
|
||||
<UniformGrid Grid.Row="2">
|
||||
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
Loading…
Reference in New Issue