Чуть-чуть подонал поля

This commit is contained in:
maksim 2024-12-03 00:16:38 +04:00
parent f5f36425c0
commit 206ffc4c76
7 changed files with 35 additions and 38 deletions

View File

@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Добавление сотрудника"
Height="600" Width="600"
Height="500" Width="600"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">

View File

@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Редактирование сотрудника"
Height="704" Width="600"
Height="600" Width="600"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">
@ -27,7 +27,7 @@
</Grid.RowDefinitions>
<!-- Блок поиска -->
<Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10">
<Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0, 0, 0, 0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
@ -39,20 +39,21 @@
<!-- Поле для поиска сотрудников -->
<Label Grid.Row="0" Grid.Column="0"
Content="Поиск сотрудника" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
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,5,0,5"
Margin="0,10,0,10"
VerticalContentAlignment="Center"
ToolTip="Введите для поиска"
TextChanged="SearchTextBox_TextChanged"/>
<!-- Поле для выбора сотрудника -->
<Label Grid.Row="1" Grid.Column="0"
Content="Выберите сотрудника" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
Content="Выберите сотрудника" Foreground="White" HorizontalAlignment="Center" Margin="0,10,0,10" VerticalContentAlignment="Center"/>
<ComboBox x:Name="EmployeeComboBox" Grid.Row="1" Grid.Column="1"
Width="400" Height="30"
Margin="0,10,0,10"
VerticalAlignment="Top"
ToolTip="Выберите сотрудника"
SelectionChanged="EmployeeComboBox_SelectionChanged" />

View File

@ -20,7 +20,6 @@
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>

View File

@ -2,12 +2,12 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Редактирование зарплаты"
Height="600" Width="600"
Height="500" Width="600"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">
<Grid Margin="0,0,0,-6">
<Grid Margin="0,0,0,0">
<TextBlock Text="Редактирование зарплаты"
HorizontalAlignment="Center" VerticalAlignment="Top"
FontSize="18" FontWeight="Bold"
@ -25,24 +25,23 @@
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Поиск зарплаты" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" />
<Label Grid.Row="0" Grid.Column="0" Content="Поиск зарплаты" Foreground="White" HorizontalAlignment="Center" Margin="0,0,10,10" />
<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" />
<Label Grid.Row="1" Grid.Column="0" Content="Выберите зарплату" Foreground="White" HorizontalAlignment="Center" Margin="0,10,10,10" />
<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 Margin="0,150,0,10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
@ -66,16 +65,15 @@
<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 Grid.Row="2" Grid.ColumnSpan="2" Margin="10">
<Label Content="Зарплата выплачена" Foreground="White" HorizontalAlignment="Center"/>
<CheckBox x:Name="PassedCheckBox" Content="Выплачено" Foreground="White" HorizontalAlignment="Center"/>
</StackPanel>
</Grid>
<!-- Кнопка сохранения -->
<Button Grid.Row="4" Content="Сохранить изменения" Width="250" Height="40"
VerticalAlignment="Bottom" Style="{StaticResource RoundedButtonStyle}"
<Button Grid.Row="4" Grid.ColumnSpan="2" Content="Сохранить изменения" Width="250" Height="40"
Style="{StaticResource RoundedButtonStyle}"
Background="#004890" Foreground="#FFFFFF"
Click="SaveButton_Click" HorizontalAlignment="Center" Margin="0,10,0,0"/>
Click="SaveButton_Click" Margin="0,10,0,0"/>
</Grid>
</Grid>
</Window>

View File

@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Добавление отпуска"
Height="500" Width="600"
Height="450" Width="600"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">

View File

@ -2,12 +2,12 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Редактирование отпуска"
Height="600" Width="600"
Height="450" Width="600"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
Background="#0D2D4F">
<Grid Margin="0,0,0,-6">
<Grid Margin="0,0,0,0">
<TextBlock Text="Редактирование отпуска"
HorizontalAlignment="Center" VerticalAlignment="Top"
FontSize="18" FontWeight="Bold"
@ -25,23 +25,22 @@
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Поиск отпуска" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" />
<Label Grid.Row="0" Grid.Column="0" Content="Поиск отпуска" Foreground="White" HorizontalAlignment="Center" Margin="0,0,10,10" />
<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" />
<Label Grid.Row="1" Grid.Column="0" Content="Выберите отпуск" Foreground="White" HorizontalAlignment="Center" Margin="0,10,10,10" />
<ComboBox x:Name="VacationComboBox" Grid.Row="1" Grid.Column="1" Width="250" Height="30"
SelectionChanged="VacationComboBox_SelectionChanged" />
</Grid>
<!-- Блок редактирования отпуска -->
<Grid Margin="0,140,0,60">
<Grid Margin="0,150,0,60">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
@ -61,13 +60,12 @@
<Label Content="Завершение отпуска" Foreground="White" HorizontalAlignment="Center"/>
<CheckBox x:Name="PassedCheckBox" Content="Завершено" Foreground="White" HorizontalAlignment="Center" />
</StackPanel>
<!-- Кнопка сохранения -->
<Button Grid.Row="4" Grid.ColumnSpan="2" Content="Сохранить изменения" Width="250" Height="40"
Style="{StaticResource RoundedButtonStyle}"
Background="#004890" Foreground="#FFFFFF"
Click="SaveButton_Click" Margin="0,10,0,0"/>
</Grid>
<!-- Кнопка сохранения -->
<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"/>
</Grid>
</Window>

View File

@ -39,21 +39,22 @@
<!-- Поле для поиска физического лица -->
<Label Grid.Row="0" Grid.Column="0"
Content="Поиск физического лица" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
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,5,0,5"
Margin="0,10,0,10"
VerticalContentAlignment="Center"
ToolTip="Введите для поиска"
TextChanged="SearchTextBox_TextChanged"/>
<!-- Поле для выбора физического лица -->
<Label Grid.Row="1" Grid.Column="0"
Content="Выберите физическое лицо" Foreground="White" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalContentAlignment="Center"/>
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>