103 lines
5.6 KiB
XML
103 lines
5.6 KiB
XML
<Window x:Class="EmployeeManagmentView.Employee.AddEmployeeWindow"
|
|
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"/>
|
|
</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="JobNameTextBox"
|
|
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"/>
|
|
<DatePicker x:Name="StartDatePicker"
|
|
Width="250" Height="40"
|
|
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"/>
|
|
<DatePicker x:Name="EndDatePicker"
|
|
Width="250" Height="40"
|
|
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"/>
|
|
<TextBox x:Name="BidTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
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="PhysicalPersonComboBox"
|
|
Width="250" Height="40"
|
|
Margin="0,5"
|
|
ToolTip="Выберите физическое лицо"
|
|
Background="White" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<!-- Поле для совместительства -->
|
|
<StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Label Content="Совместительство" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="PartTimeJobTextBox"
|
|
Width="250" Height="40"
|
|
Style="{StaticResource RoundedTextBoxStyle}"
|
|
Margin="0,5"
|
|
ToolTip="Введите почасовую ставку" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
|
|
<!-- Кнопка для добавления сотрудника -->
|
|
<Button Grid.Row="3" 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>
|