86 lines
4.7 KiB
XML
86 lines
4.7 KiB
XML
<Window x:Class="EmployeeManagmentView.Employee.Salary.EditSalaryWindow"
|
|
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 HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,70,0,0">
|
|
<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="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" />
|
|
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Выберите зарплату" Foreground="White" HorizontalAlignment="Right" Margin="0,10,10,0" />
|
|
<ComboBox x:Name="SalaryComboBox" Grid.Row="1" Grid.Column="1" Width="250" Height="30"
|
|
SelectionChanged="SalaryComboBox_SelectionChanged" />
|
|
</Grid>
|
|
|
|
<!-- Блок редактирования зарплаты -->
|
|
<Grid Margin="0,140,0,60">
|
|
<Grid.RowDefinitions>
|
|
<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" Margin="10">
|
|
<Label Content="Часы работы" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="CountHoursTextBox" Width="250" Height="40" Style="{StaticResource RoundedTextBoxStyle}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="0" Grid.Column="1" Margin="10">
|
|
<Label Content="Ставка за час" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="PriceHourTextBox" Width="250" Height="40" Style="{StaticResource RoundedTextBoxStyle}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="0" Margin="10">
|
|
<Label Content="Премия" Foreground="White" HorizontalAlignment="Center"/>
|
|
<TextBox x:Name="PremiumTextBox" Width="250" Height="40" Style="{StaticResource RoundedTextBoxStyle}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Grid.Column="1" Margin="10">
|
|
<Label Content="Дата" Foreground="White" HorizontalAlignment="Center"/>
|
|
<DatePicker x:Name="DatePicker" Width="250" Height="40" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="10">
|
|
<Label Content="Сохранить" Foreground="White" HorizontalAlignment="Center"/>
|
|
<CheckBox x:Name="PassedCheckBox" Content="Завершено" Foreground="White" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="10">
|
|
<Label Content="Сотрудник" Foreground="White" HorizontalAlignment="Center"/>
|
|
<ComboBox x:Name="EmployeeComboBox" Width="250" Height="40" />
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<!-- Кнопка сохранения -->
|
|
<Button Grid.Row="4" 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>
|
|
</Window> |