ViewEmployees.xaml 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <Page x:Class="Детский_сад.ViewEmployees"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Детский_сад"
  7. mc:Ignorable="d"
  8. d:DesignHeight="630" d:DesignWidth="1250"
  9. Title="ViewEmployees">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="1*" MaxHeight="60"/>
  13. <RowDefinition Height="1.5*" MaxHeight="90"/>
  14. <RowDefinition Height="6*"/>
  15. </Grid.RowDefinitions>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition/>
  18. <ColumnDefinition/>
  19. <ColumnDefinition/>
  20. </Grid.ColumnDefinitions>
  21. <TextBlock Text="Сортировка по фамилии" Style="{StaticResource tbViewEmp}"/>
  22. <StackPanel Grid.Row="1" Margin="10 0 10 0" VerticalAlignment="Center">
  23. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  24. <RadioButton Name="rbSortAsc" Content="По возрастанию" Style="{StaticResource rbViewEmp}" Click="rbSortAsc_Click"/>
  25. <RadioButton Name="rbSortDesc" Content="По убыванию" Style="{StaticResource rbViewEmp}" Click="rbSortDesc_Click"/>
  26. </StackPanel>
  27. </StackPanel>
  28. <TextBlock Grid.Column="1" Text="Сортировка по полу" Style="{StaticResource tbViewEmp}"/>
  29. <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  30. <RadioButton Name="rbMale" Content="Мужской" Style="{StaticResource rbViewEmp}" Click="rbMale_Click"/>
  31. <RadioButton Name="rbFemale" Content="Женский" Style="{StaticResource rbViewEmp}" Click="rbFemale_Click"/>
  32. </StackPanel>
  33. <TextBlock Grid.Column="2" Text="Поиск" Style="{StaticResource tbViewEmp}"/>
  34. <StackPanel Grid.Column="2" Grid.Row="1" Margin="10 0 10 0" VerticalAlignment="Center">
  35. <StackPanel Grid.Column="2" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
  36. <RadioButton Name="rbFindSurname" Content="По фамилии" Style="{StaticResource rbViewEmp}" Click="rbFindSurname_Click"/>
  37. <RadioButton Name="rbFindName" Content="По имени" Style="{StaticResource rbViewEmp}" Click="rbFindSurname_Click"/>
  38. </StackPanel>
  39. <TextBox Name="tboxFind" Style="{StaticResource tboxReg}" HorizontalAlignment="Center" TextChanged="tboxFind_TextChanged"/>
  40. </StackPanel>
  41. <DataGrid Name="dg" Grid.Row="2" Grid.ColumnSpan="3" Style="{StaticResource dgViewEmp}">
  42. <DataGrid.Columns>
  43. <DataGridTextColumn Header="Фамилия" Binding="{Binding Surname}" MinWidth="100"/>
  44. <DataGridTextColumn Header="Имя" Binding="{Binding Names}" MinWidth="100"/>
  45. <DataGridTextColumn Header="Отчество" Binding="{Binding Patronymic}" MinWidth="120"/>
  46. <DataGridTextColumn Header="Дата рождения" Binding="{Binding Birthdate, StringFormat={}{0:dd.MM.yyyy}}" MinWidth="110"/>
  47. <DataGridTextColumn Header="Пол" Binding="{Binding Genders.Gender}" MinWidth="60"/>
  48. <DataGridTextColumn Header="Должность" Binding="{Binding Positions.Position}" MinWidth="200"/>
  49. <DataGridTextColumn Header="Улица" Binding="{Binding Street}" MinWidth="150"/>
  50. <DataGridTextColumn Header="Строение" Binding="{Binding Building}" MinWidth="60"/>
  51. <DataGridTextColumn Header="Телефон" Binding="{Binding Phone}" MinWidth="120"/>
  52. <DataGridTextColumn Header="Логин" Binding="{Binding Login_user}" MinWidth="120"/>
  53. </DataGrid.Columns>
  54. </DataGrid>
  55. <Button Name="btnBack" Grid.Row="2" Content="Назад" Template="{StaticResource btnTemplate}" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="10" Click="btnBack_Click"/>
  56. <Button Name="btnDefault" Grid.Row="2" Grid.Column="2" Content="Очистить фильтр" Template="{StaticResource btnTemplate}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="10" Click="btnDefault_Click"/>
  57. </Grid>
  58. </Page>