87 lines
4.3 KiB
XML
87 lines
4.3 KiB
XML
<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"
|
|
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" />
|
|
|
|
<!-- Основная сетка -->
|
|
<Grid Margin="0,70,0,60">
|
|
<Grid.RowDefinitions>
|
|
<!-- Поле выбора сотрудника -->
|
|
<RowDefinition Height="Auto" />
|
|
<!-- Поля редактирования отпуска -->
|
|
<RowDefinition Height="5*" />
|
|
<!-- Кнопка сохранения -->
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Блок выбора сотрудника -->
|
|
<Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
|
|
<Grid.RowDefinitions>
|
|
<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="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
|
|
<ComboBox x:Name="EmployeeComboBox" Grid.Row="0" Grid.Column="1"
|
|
Width="400" Height="30"
|
|
VerticalAlignment="Top"
|
|
ToolTip="Выберите сотрудника"
|
|
SelectionChanged="EmployeeComboBox_SelectionChanged" />
|
|
</Grid>
|
|
|
|
<!-- Блок редактирования -->
|
|
<Grid Grid.Row="1" Margin="0,0,0,0">
|
|
<Grid.RowDefinitions>
|
|
<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"/>
|
|
<DatePicker x:Name="StartDatePicker" Width="250" Height="40"
|
|
ToolTip="Выберите дату начала" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="0" Grid.Column="1" Margin="10">
|
|
<Label Content="Дата окончания" Foreground="White" HorizontalAlignment="Center"/>
|
|
<DatePicker x:Name="EndDatePicker" Width="250" Height="40"
|
|
ToolTip="Выберите дату окончания" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Margin="10">
|
|
<Label Content="Выплачено?" Foreground="White" HorizontalAlignment="Center"/>
|
|
<CheckBox x:Name="PassedCheckBox" />
|
|
</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> |