2024-12-01 16:34:36 +04:00
|
|
|
<Window x:Class="EmployeeManagmentView.Employee.Vacation.EditVacationWindow"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-12-01 17:32:41 +04:00
|
|
|
Title="Редактирование отпуска"
|
|
|
|
Height="600" 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" />
|
|
|
|
|
2024-12-01 18:08:18 +04:00
|
|
|
<!-- Блок поиска и выбора отпуска -->
|
|
|
|
<Grid HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,70,0,0">
|
2024-12-01 17:32:41 +04:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
2024-12-01 18:08:18 +04:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2024-12-01 17:32:41 +04:00
|
|
|
|
2024-12-01 18:08:18 +04:00
|
|
|
<Label Grid.Row="0" Grid.Column="0" Content="Поиск отпуска" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" />
|
|
|
|
<TextBox x:Name="SearchTextBox" Grid.Row="0" Grid.Column="1" Width="250" Height="30"
|
|
|
|
Style="{StaticResource RoundedTextBoxStyle}" ToolTip="Введите для поиска"
|
|
|
|
TextChanged="SearchTextBox_TextChanged" />
|
2024-12-01 17:32:41 +04:00
|
|
|
|
2024-12-01 18:08:18 +04:00
|
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Выберите отпуск" Foreground="White" HorizontalAlignment="Right" Margin="0,10,10,0" />
|
|
|
|
<ComboBox x:Name="VacationComboBox" Grid.Row="1" Grid.Column="1" Width="250" Height="30"
|
|
|
|
SelectionChanged="VacationComboBox_SelectionChanged" />
|
|
|
|
</Grid>
|
2024-12-01 17:32:41 +04:00
|
|
|
|
2024-12-01 18:08:18 +04:00
|
|
|
<!-- Блок редактирования отпуска -->
|
|
|
|
<Grid Margin="0,140,0,60">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
2024-12-01 17:32:41 +04:00
|
|
|
|
2024-12-01 18:08:18 +04:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2024-12-01 17:32:41 +04:00
|
|
|
|
2024-12-01 18:08:18 +04:00
|
|
|
<StackPanel Grid.Row="0" Grid.Column="0" Margin="10">
|
|
|
|
<Label Content="Дата начала" Foreground="White" HorizontalAlignment="Center"/>
|
|
|
|
<DatePicker x:Name="StartDatePicker" Width="250" Height="40" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="1" Margin="10">
|
|
|
|
<Label Content="Дата окончания" Foreground="White" HorizontalAlignment="Center"/>
|
|
|
|
<DatePicker x:Name="EndDatePicker" Width="250" Height="40" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="10">
|
|
|
|
<Label Content="Сохранить" Foreground="White" HorizontalAlignment="Center"/>
|
|
|
|
<CheckBox x:Name="PassedCheckBox" Content="Завершено" Foreground="White" />
|
|
|
|
</StackPanel>
|
2024-12-01 17:32:41 +04:00
|
|
|
|
|
|
|
</Grid>
|
2024-12-01 18:08:18 +04:00
|
|
|
|
|
|
|
<!-- Кнопка сохранения -->
|
|
|
|
<Button Grid.Row="3" Content="Сохранить изменения" Width="250" Height="40"
|
|
|
|
VerticalAlignment="Bottom" Style="{StaticResource RoundedButtonStyle}"
|
|
|
|
Background="#004890" Foreground="#FFFFFF"
|
|
|
|
Click="SaveButton_Click" HorizontalAlignment="Center" Margin="0,10,0,0"/>
|
2024-12-01 16:34:36 +04:00
|
|
|
</Grid>
|
2024-12-01 18:08:18 +04:00
|
|
|
</Window>
|