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.
 
 
 

248 lines
12 KiB

<?xml version="1.0" encoding="utf-8"?>
<Window x:Class="Housing.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Housing Assembly"
Width="1200"
Height="800"
MinWidth="840"
MinHeight="560"
WindowStartupLocation="CenterScreen"
WindowState="Maximized"
UseLayoutRounding="True"
SnapsToDevicePixels="True">
<Window.Resources>
<Style x:Key="LabelStyle" TargetType="TextBlock">
<Setter Property="Foreground" Value="#303030"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
<Style x:Key="InputBoxStyle" TargetType="TextBox">
<Setter Property="Height" Value="60"/>
<Setter Property="MinWidth" Value="160"/>
<Setter Property="Background" Value="#FFFDF4"/>
<Setter Property="Foreground" Value="#111111"/>
<Setter Property="BorderBrush" Value="#B8B8B8"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="10,0"/>
</Style>
<Style x:Key="OutputBoxStyle" TargetType="TextBox">
<Setter Property="MinHeight" Value="220"/>
<Setter Property="Background" Value="White"/>
<Setter Property="Foreground" Value="#111111"/>
<Setter Property="BorderBrush" Value="#B8B8B8"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="40"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="12"/>
<Setter Property="IsReadOnly" Value="True"/>
</Style>
<Style x:Key="RangeBoxStyle" TargetType="TextBox">
<Setter Property="Width" Value="70"/>
<Setter Property="Height" Value="32"/>
<Setter Property="Background" Value="#FFFDF4"/>
<Setter Property="Foreground" Value="#111111"/>
<Setter Property="BorderBrush" Value="#B8B8B8"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Margin" Value="6,0,0,10"/>
</Style>
<Style x:Key="LogoutButtonStyle" TargetType="Button">
<Setter Property="Height" Value="34"/>
<Setter Property="MinWidth" Value="92"/>
<Setter Property="Padding" Value="12,0"/>
<Setter Property="Background" Value="#6A2B2B"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="#6A2B2B"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="Bold"/>
</Style>
</Window.Resources>
<ScrollViewer VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Disabled"
Background="#F4F4F4">
<Grid MinHeight="620" Margin="28">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="22"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="22"/>
<RowDefinition Height="*"/>
<RowDefinition Height="22"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Housing Assembly 검사 화면"
Foreground="#111111"
FontSize="30"
FontWeight="Bold"
VerticalAlignment="Center"
TextWrapping="Wrap"/>
<StackPanel Grid.Column="1"
Orientation="Horizontal"
VerticalAlignment="Center">
<TextBlock Text="Login ID"
Foreground="#404040"
FontSize="18"
FontWeight="SemiBold"
Margin="0,0,10,0"
VerticalAlignment="Center"/>
<TextBlock x:Name="OperatorTextBlock"
Text="-"
Foreground="#111111"
FontSize="18"
FontWeight="Bold"
Margin="0,0,14,0"
VerticalAlignment="Center"/>
<Button x:Name="LogoutButton"
Content="로그아웃"
Style="{StaticResource LogoutButtonStyle}"
Visibility="Collapsed"
Click="LogoutButton_Click"/>
</StackPanel>
</Grid>
<Border Grid.Row="2"
Background="White"
BorderBrush="#D0D0D0"
BorderThickness="1"
Padding="22">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="22"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="PCB_Barcode 입력" Style="{StaticResource LabelStyle}"/>
<TextBox x:Name="BarcodeTextBox"
Grid.Row="1"
Style="{StaticResource InputBoxStyle}"
KeyDown="BarcodeTextBox_KeyDown"
TextChanged="BarcodeTextBox_TextChanged"/>
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Text="IC_SN 출력" Style="{StaticResource LabelStyle}"/>
<TextBox x:Name="IcSnOutputTextBox"
Grid.Row="1"
Style="{StaticResource InputBoxStyle}"
Background="White"
IsReadOnly="True"/>
</Grid>
</Grid>
</Border>
<Border Grid.Row="4"
Background="White"
BorderBrush="#D0D0D0"
BorderThickness="1"
Padding="22">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="22"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="22"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<DockPanel LastChildFill="False">
<TextBlock Text="PT_Vol_1 / V 출력" Style="{StaticResource LabelStyle}"/>
<TextBox x:Name="VMinTextBox" Style="{StaticResource RangeBoxStyle}"/>
<TextBlock Text="~"
FontSize="18"
FontWeight="Bold"
Margin="6,0,0,10"
VerticalAlignment="Center"/>
<TextBox x:Name="VMaxTextBox" Style="{StaticResource RangeBoxStyle}"/>
</DockPanel>
<TextBox x:Name="VOutputTextBox"
Grid.Row="1"
Text="0.00"
Style="{StaticResource OutputBoxStyle}"/>
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<DockPanel LastChildFill="False">
<TextBlock Text="PT_Current_1 / A 출력" Style="{StaticResource LabelStyle}"/>
<TextBox x:Name="AMinTextBox" Style="{StaticResource RangeBoxStyle}"/>
<TextBlock Text="~"
FontSize="18"
FontWeight="Bold"
Margin="6,0,0,10"
VerticalAlignment="Center"/>
<TextBox x:Name="AMaxTextBox" Style="{StaticResource RangeBoxStyle}"/>
</DockPanel>
<TextBox x:Name="AOutputTextBox"
Grid.Row="1"
Text="0.00"
Style="{StaticResource OutputBoxStyle}"/>
</Grid>
<Grid Grid.Column="4">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="Result / 결과 출력" Style="{StaticResource LabelStyle}"/>
<TextBox x:Name="ResultOutputTextBox"
Grid.Row="1"
Style="{StaticResource OutputBoxStyle}"
FontSize="22"
FontWeight="SemiBold"
HorizontalContentAlignment="Left"
VerticalContentAlignment="Top"
TextWrapping="Wrap"
AcceptsReturn="True"
VerticalScrollBarVisibility="Auto"/>
</Grid>
</Grid>
</Border>
<Grid Grid.Row="6"/>
</Grid>
</ScrollViewer>
</Window>