PIbd-42_Kashin_M.I_CPO_Cour.../EmployeeManagmentView/PhysicalPerson/EditPhysicalPersonWindow.xaml

138 lines
7.4 KiB
XML

<Window x:Class="EmployeeManagmentView.PhysicalPerson.EditPhysicalPersonWindow"
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>
<!-- Поле для поиска физических лиц -->
<StackPanel Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
<Label Content="Поиск физического лица" Foreground="White" HorizontalAlignment="Center"/>
<TextBox x:Name="SearchTextBox"
Width="250" Height="40"
Margin="0,5"
ToolTip="Введите для поиска"
HorizontalAlignment="Center"
TextChanged="SearchTextBox_TextChanged"/>
</StackPanel>
<!-- Поле для выбора физического лица -->
<StackPanel Grid.Row="4" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
<Label Content="Выберите физическое лицо" Foreground="White" HorizontalAlignment="Center"/>
<ComboBox x:Name="PhysicalPersonComboBox"
Width="400" Height="40"
SelectionChanged="PhysicalPersonComboBox_SelectionChanged"
ToolTip="Выберите физическое лицо" HorizontalAlignment="Center"/>
</StackPanel>
</Grid>
<!-- Кнопка для сохранения изменений -->
<Button Content="Сохранить изменения"
Width="250" Height="40"
VerticalAlignment="Bottom"
Style="{StaticResource RoundedButtonStyle}"
Background="#004890" Foreground="#FFFFFF"
Click="SaveButton_Click"
HorizontalAlignment="Center" Margin="0,10,0,10"/>
</Grid>
</Window>