118 lines
6.2 KiB
XML
118 lines
6.2 KiB
XML
<Window x:Class="EmployeeManagmentView.PhysicalPerson.AddPhysicalPersonWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Добавление физического лица"
|
|
Height="600" Width="600"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterScreen"
|
|
Background="#0D2D4F">
|
|
|
|
<Grid>
|
|
<!-- Заголовок окна -->
|
|
<TextBlock Text="Добавление физического лица"
|
|
HorizontalAlignment="Center" VerticalAlignment="Top"
|
|
FontSize="18" FontWeight="Bold"
|
|
Foreground="#FFFFFF"
|
|
Margin="0,20,0,0" />
|
|
|
|
<!-- Сетка для ввода данных в два столбца -->
|
|
<Grid Margin="0,60">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Поле для имени -->
|
|
<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Имя" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="NameTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
Margin="0,5"
|
|
ToolTip="Введите имя" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для фамилии -->
|
|
<StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Фамилия" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="SurnameTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
Margin="0,5"
|
|
ToolTip="Введите фамилию" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для отчества -->
|
|
<StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Отчество" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="PatronomicTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
Margin="0,5"
|
|
ToolTip="Введите отчество" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для выбора даты рождения -->
|
|
<StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Дата рождения" Foreground="White" HorizontalAlignment="Center"/>
|
|
<DatePicker x:Name="BirthdayPicker"
|
|
Width="250" Height="40"
|
|
Margin="0,5"
|
|
ToolTip="Выберите дату рождения" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для выбора пола -->
|
|
<StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Пол" Foreground="White" HorizontalAlignment="Center"/>
|
|
<ComboBox x:Name="GenderComboBox"
|
|
Width="250" Height="40"
|
|
Margin="0,5"
|
|
ToolTip="Выберите пол"
|
|
Background="White" HorizontalAlignment="Center">
|
|
<ComboBoxItem Content="Мужчина"/>
|
|
<ComboBoxItem Content="Женщина"/>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для адреса -->
|
|
<StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Адрес" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="AddressTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
Margin="0,5"
|
|
ToolTip="Введите адрес" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для телефона -->
|
|
<StackPanel Grid.Row="3" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Телефон" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="TelephoneTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
Margin="0,5"
|
|
ToolTip="Введите номер телефона" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Кнопка для добавления физического лица -->
|
|
<Button Grid.Row="4" Grid.ColumnSpan="2" Content="Добавить физическое лицо"
|
|
Width="250" Height="40"
|
|
Margin="0,10"
|
|
Style="{StaticResource RoundedButtonStyle}"
|
|
Click="SaveButton_Click"
|
|
Background="#004890" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|