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

135 lines
7.6 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="704" Width="600"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">
<Grid Margin="0,0,0,-6">
<!-- Заголовок окна -->
<TextBlock Text="Редактирование физического лица"
HorizontalAlignment="Center" VerticalAlignment="Top"
FontSize="18" FontWeight="Bold"
Foreground="#FFFFFF"
Margin="0,20,0,0" />
<!-- Основная сетка -->
<Grid Margin="0,70,0,60">
<Grid.RowDefinitions>
<!-- Поиск -->
<RowDefinition Height="2*" />
<!-- Редактирование -->
<RowDefinition Height="5*" />
<!-- Кнопка сохранения -->
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!-- Блок поиска -->
<Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Поле для поиска физического лица -->
<Label Grid.Row="0" Grid.Column="0"
Content="Поиск физического лица" Foreground="White" HorizontalAlignment="Center" Margin="0,10,0,10" VerticalContentAlignment="Center"/>
<TextBox x:Name="SearchTextBox" Grid.Row="0" Grid.Column="1"
Width="250" Height="30"
Style="{StaticResource RoundedTextBoxStyle}"
Margin="0,10,0,10"
VerticalContentAlignment="Center"
ToolTip="Введите для поиска"
TextChanged="SearchTextBox_TextChanged"/>
<!-- Поле для выбора физического лица -->
<Label Grid.Row="1" Grid.Column="0"
Content="Выберите физическое лицо" Foreground="White" HorizontalAlignment="Center" Margin="0,10,0,10" VerticalContentAlignment="Center"/>
<ComboBox x:Name="PhysicalPersonComboBox" Grid.Row="1" Grid.Column="1"
Width="400" Height="30"
VerticalAlignment="Top"
Margin="0,10,0,10"
ToolTip="Выберите физическое лицо"
SelectionChanged="PhysicalPersonComboBox_SelectionChanged" />
</Grid>
<!-- Блок редактирования -->
<Grid Grid.Row="1" Margin="0,0,0,0">
<Grid.RowDefinitions>
<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" Margin="10">
<Label Content="Имя" Foreground="White" HorizontalAlignment="Center"/>
<TextBox x:Name="NameTextBox" Width="250" Height="40"
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите имя"
PreviewTextInput="NameTextBox_PreviewTextInput"
TextChanged="NameTextBox_TextChanged"/>
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="1" Margin="10">
<Label Content="Фамилия" Foreground="White" HorizontalAlignment="Center"/>
<TextBox x:Name="SurnameTextBox" Width="250" Height="40"
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите фамилию"
PreviewTextInput="NameTextBox_PreviewTextInput"
TextChanged="NameTextBox_TextChanged"/>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="0" Margin="10" >
<Label Content="Отчество" Foreground="White" HorizontalAlignment="Center"/>
<TextBox x:Name="PatronomicTextBox" Width="250" Height="40"
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите отчество"
PreviewTextInput="NameTextBox_PreviewTextInput"
TextChanged="NameTextBox_TextChanged"/>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="1" Margin="10">
<Label Content="Дата рождения" Foreground="White" HorizontalAlignment="Center"/>
<DatePicker x:Name="BirthdayPicker" Width="250" Height="40"
ToolTip="Выберите дату рождения" />
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="0" Margin="10">
<Label Content="Пол" Foreground="White" HorizontalAlignment="Center"/>
<ComboBox x:Name="GenderComboBox" Width="250" Height="40" ToolTip="Выберите пол">
<ComboBoxItem Content="Мужчина" />
<ComboBoxItem Content="Женщина" />
</ComboBox>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="1" Margin="10">
<Label Content="Адрес" Foreground="White" HorizontalAlignment="Center"/>
<TextBox x:Name="AddressTextBox" Width="250" Height="40"
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите адрес" />
</StackPanel>
<StackPanel Grid.Row="3" Grid.Column="0" Margin="10">
<Label Content="Телефон" Foreground="White" HorizontalAlignment="Center"/>
<TextBox x:Name="TelephoneTextBox" Width="250" Height="40"
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите номер телефона"
PreviewTextInput="TelephoneTextBox_PreviewTextInput"
TextChanged="TelephoneTextBox_TextChanged"/>
</StackPanel>
</Grid>
<!-- Кнопка сохранения -->
<Button Grid.Row="2" Content="Сохранить изменения"
Width="250" Height="40"
VerticalAlignment="Bottom"
Style="{StaticResource RoundedButtonStyle}"
Background="#004890" Foreground="#FFFFFF"
Click="SaveButton_Click"
HorizontalAlignment="Center" Margin="0,10,0,0"/>
</Grid>
</Grid>
</Window>