You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

525 lines
27 KiB

<?xml version="1.0" encoding="utf-8"?>
<Window x:Class="Housing.Login.StartupLoginWindow"
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"
mc:Ignorable="d"
Title="Housing HMI Login"
Width="760"
Height="760"
MinWidth="560"
MinHeight="620"
d:DesignWidth="760"
d:DesignHeight="760"
WindowStartupLocation="CenterScreen"
Background="{StaticResource HmiScreenBackgroundBrush}"
UseLayoutRounding="True"
SnapsToDevicePixels="True">
<Window.Resources>
<Style x:Key="FieldLabelStyle" TargetType="TextBlock">
<Setter Property="Foreground" Value="{StaticResource HmiMutedTextBrush}"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Margin" Value="0,0,0,6"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
<Style x:Key="InputStyle" TargetType="TextBox">
<Setter Property="Height" Value="42"/>
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Background" Value="{StaticResource HmiInputBrush}"/>
<Setter Property="Foreground" Value="{StaticResource HmiTextBrush}"/>
<Setter Property="BorderBrush" Value="#3F6178"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="19"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="CaretBrush" Value="{StaticResource HmiAccentBrush}"/>
<Setter Property="SelectionBrush" Value="{StaticResource HmiAccentBlueBrush}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="FieldChrome"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="3"
SnapsToDevicePixels="True">
<Grid>
<Rectangle Height="2"
VerticalAlignment="Top"
Fill="{StaticResource HmiAccentBrush}"
Opacity="0.42"/>
<ScrollViewer x:Name="PART_ContentHost"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter TargetName="FieldChrome" Property="BorderBrush" Value="{StaticResource HmiAccentBrush}"/>
<Setter TargetName="FieldChrome" Property="BorderThickness" Value="2"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="FieldChrome" Property="Opacity" Value="0.55"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="PasswordInputStyle" TargetType="PasswordBox">
<Setter Property="Height" Value="42"/>
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Background" Value="{StaticResource HmiInputBrush}"/>
<Setter Property="Foreground" Value="{StaticResource HmiTextBrush}"/>
<Setter Property="BorderBrush" Value="#3F6178"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="19"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="CaretBrush" Value="{StaticResource HmiAccentBrush}"/>
<Setter Property="SelectionBrush" Value="{StaticResource HmiAccentBlueBrush}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type PasswordBox}">
<Border x:Name="FieldChrome"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="3"
SnapsToDevicePixels="True">
<Grid>
<Rectangle Height="2"
VerticalAlignment="Top"
Fill="{StaticResource HmiAccentBrush}"
Opacity="0.42"/>
<ScrollViewer x:Name="PART_ContentHost"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter TargetName="FieldChrome" Property="BorderBrush" Value="{StaticResource HmiAccentBrush}"/>
<Setter TargetName="FieldChrome" Property="BorderThickness" Value="2"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="FieldChrome" Property="Opacity" Value="0.55"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="CommandButtonStyle" TargetType="Button">
<Setter Property="Height" Value="58"/>
<Setter Property="Foreground" Value="{StaticResource HmiTextBrush}"/>
<Setter Property="Background" Value="{StaticResource HmiButtonBrush}"/>
<Setter Property="BorderBrush" Value="{StaticResource HmiAccentBrush}"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="FontSize" Value="23"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="ButtonChrome"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4"
SnapsToDevicePixels="True">
<Grid>
<Border BorderBrush="#FFFFFF"
BorderThickness="0,1,0,0"
Opacity="0.18"/>
<Rectangle Height="4"
VerticalAlignment="Bottom"
Fill="{StaticResource HmiAccentBrush}"
Opacity="0.65"/>
<ContentPresenter RecognizesAccessKey="True"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="ButtonChrome" Property="Background" Value="{StaticResource HmiButtonHoverBrush}"/>
<Setter TargetName="ButtonChrome" Property="BorderBrush" Value="#76EAFF"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="ButtonChrome" Property="Background" Value="{StaticResource HmiButtonPressedBrush}"/>
<Setter TargetName="ButtonChrome" Property="BorderBrush" Value="{StaticResource HmiRunBrush}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="ButtonChrome" Property="Opacity" Value="0.45"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="SectionCaptionStyle" TargetType="TextBlock">
<Setter Property="Foreground" Value="{StaticResource HmiAccentBrush}"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Margin" Value="0,0,0,8"/>
</Style>
<Style x:Key="FieldTileStyle" TargetType="Border">
<Setter Property="Background" Value="#121D26"/>
<Setter Property="BorderBrush" Value="#30475A"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="12,9"/>
</Style>
</Window.Resources>
<Grid>
<Grid.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#07111C" Offset="0"/>
<GradientStop Color="#0A1B2A" Offset="0.48"/>
<GradientStop Color="#02060A" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<Border HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="{StaticResource HmiPanelBrush}"
BorderBrush="{StaticResource HmiPanelInnerBorderBrush}"
BorderThickness="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0"
Background="{StaticResource HmiPanelHeaderBrush}"
BorderBrush="{StaticResource HmiPanelInnerBorderBrush}"
BorderThickness="0,0,0,1"
Padding="24,16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="AMO HOUSING ASSEMBLY"
Foreground="{StaticResource HmiTextBrush}"
FontSize="27"
FontWeight="Bold"
TextWrapping="Wrap"/>
<TextBlock Text="CONTROL SYSTEM ACCESS"
Foreground="{StaticResource HmiAccentBrush}"
FontSize="13"
FontWeight="SemiBold"
Margin="0,3,0,0"/>
</StackPanel>
<StackPanel Grid.Column="1"
Orientation="Horizontal"
VerticalAlignment="Center"
Margin="18,0,0,0">
<StackPanel Margin="0,0,12,0">
<Ellipse Width="11"
Height="11"
Fill="{StaticResource HmiRunBrush}"
Stroke="#94F7C5"
StrokeThickness="1"/>
<TextBlock Text="PWR"
Foreground="{StaticResource HmiMutedTextBrush}"
FontSize="10"
Margin="0,4,0,0"/>
</StackPanel>
<StackPanel Margin="0,0,12,0">
<Ellipse Width="11"
Height="11"
Fill="{StaticResource HmiAccentBrush}"
Stroke="#8BEFFF"
StrokeThickness="1"/>
<TextBlock Text="PLC"
Foreground="{StaticResource HmiMutedTextBrush}"
FontSize="10"
Margin="0,4,0,0"/>
</StackPanel>
<StackPanel>
<Ellipse Width="11"
Height="11"
Fill="{StaticResource HmiWarningBrush}"
Stroke="#FFD391"
StrokeThickness="1"/>
<TextBlock Text="AUTH"
Foreground="{StaticResource HmiMutedTextBrush}"
FontSize="10"
Margin="0,4,0,0"/>
</StackPanel>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1"
Background="#0A121B"
BorderBrush="#253849"
BorderThickness="0,0,0,1"
Padding="22,8">
<DockPanel LastChildFill="True">
<TextBlock Text="SYSTEM READY"
Foreground="{StaticResource HmiRunBrush}"
FontSize="12"
FontWeight="Bold"
Margin="0,0,16,0"
VerticalAlignment="Center"/>
<Rectangle Width="1"
Fill="#304454"
Margin="0,0,16,0"/>
<TextBlock Text="Operator verification required before line operation"
Foreground="{StaticResource HmiMutedTextBrush}"
FontSize="12"
VerticalAlignment="Center"
TextWrapping="Wrap"/>
</DockPanel>
</Border>
<Grid Grid.Row="2" Margin="26,22">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="14"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="14"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="18"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
Text="PRODUCT CONFIGURATION"
Style="{StaticResource SectionCaptionStyle}"/>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="8"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0"
Grid.Column="0"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Maker"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="MakerTextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
<Border Grid.Row="0"
Grid.Column="2"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Model"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="ModelTextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
<Border Grid.Row="2"
Grid.Column="0"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Variant 1"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="Variant1TextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
<Border Grid.Row="2"
Grid.Column="2"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Variant 2"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="Variant2TextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
</Grid>
<TextBlock Grid.Row="3"
Text="OPERATOR AUTHENTICATION"
Style="{StaticResource SectionCaptionStyle}"/>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="ID"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="OperatorTextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
<Border Grid.Column="2"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="PW"
Style="{StaticResource FieldLabelStyle}"/>
<PasswordBox x:Name="PasswordBox"
Grid.Row="1"
Style="{StaticResource PasswordInputStyle}"/>
</Grid>
</Border>
</Grid>
<TextBlock Grid.Row="6"
Text="LINE INFORMATION"
Style="{StaticResource SectionCaptionStyle}"/>
<Grid Grid.Row="7">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Line"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="LineNoTextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
<Border Grid.Column="2"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Lot No"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="LotNoTextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
<Border Grid.Column="4"
Style="{StaticResource FieldTileStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="Jig No"
Style="{StaticResource FieldLabelStyle}"/>
<TextBox x:Name="JigNoTextBox"
Grid.Row="1"
Style="{StaticResource InputStyle}"/>
</Grid>
</Border>
</Grid>
<Button x:Name="LoginButton"
Grid.Row="9"
Content="ACCESS / LOG IN"
Style="{StaticResource CommandButtonStyle}"
Click="LogInButton_Click"/>
</Grid>
</Grid>
</Border>
</Grid>
</Window>