MenuAdmin.xaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <Page x:Class="PP_Ven_MosS.Pages.MenuAdmin"
  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:PP_Ven_MosS.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="MenuAdmin">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="35"></RowDefinition>
  13. <RowDefinition Height="70"></RowDefinition>
  14. <RowDefinition></RowDefinition>
  15. <RowDefinition Height="30"></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition ></ColumnDefinition>
  19. <ColumnDefinition ></ColumnDefinition>
  20. </Grid.ColumnDefinitions>
  21. <StackPanel Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  22. <TextBlock Text="Меню администратора" FontWeight="Bold" FontSize="30" Margin="100,0"></TextBlock>
  23. </StackPanel>
  24. <StackPanel Grid.Row="0" HorizontalAlignment="Right" Grid.Column="1">
  25. <Button Content="Личный кабинет" Style="{StaticResource BtnSt}" Name="GoProfile" Click="Profile_Click"></Button>
  26. </StackPanel>
  27. <StackPanel Grid.Row="0" HorizontalAlignment="Left" Grid.Column="0">
  28. <Button Content="Пользователи" Style="{StaticResource BtnSt}" Name="Users" Click="Users_Click"></Button>
  29. </StackPanel>
  30. <StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  31. <Button Content="Отчет" Width="100" Margin="0,0,10,0" Style="{StaticResource BtnSt}" Name="Otchet" Click="Otchet_Click"></Button>
  32. <TextBlock Text="Служебные записки" FontWeight="Bold" FontSize="20"></TextBlock>
  33. </StackPanel>
  34. <StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  35. <TextBlock Text="Мероприятия" FontWeight="Bold" FontSize="20"></TextBlock>
  36. </StackPanel>
  37. <StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical">
  38. <StackPanel Orientation="Horizontal" >
  39. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  40. <TextBox TextChanged="SearchChanged" Name="TB_Search_app" Width="200" Height="30"/>
  41. </GroupBox>
  42. <ComboBox SelectionChanged="SortFilterChanged" Name="CB_Sort_app" Width="200" Height="30" Margin="10,10,0,0" />
  43. <ComboBox SelectionChanged="SortFilterChanged" Name="CB_Filter_app" Width="200" Height="30" Margin="10,10,0,0" />
  44. </StackPanel>
  45. <ListView Grid.Row="2" Grid.Column="0" Name="ApplicationList" Height="700">
  46. <ListView.ItemsPanel>
  47. <ItemsPanelTemplate>
  48. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  49. </ItemsPanelTemplate>
  50. </ListView.ItemsPanel>
  51. <ListView.ItemTemplate>
  52. <DataTemplate>
  53. <Border Width="500" Height="150" BorderThickness="1" BorderBrush="Red">
  54. <StackPanel Orientation="Horizontal">
  55. <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
  56. <TextBlock Text="{Binding Date_app}"/>
  57. <TextBlock Text="{Binding Place_app}"/>
  58. <TextBlock Text="{Binding Path=Application_type.Title_app_type}"/>
  59. <TextBlock Text="{Binding Description}"/>
  60. <TextBlock Text="{Binding Path=User.Surname}"/>
  61. <TextBlock Text="{Binding Path=Status_application.Title_status_app}" FontWeight="Bold"/>
  62. <GroupBox Header="Назначить исполнителя" FontSize="10" Style="{StaticResource GBSt}" HorizontalAlignment="Right">
  63. <ComboBox x:Name="CBEmpl" Height="20" Loaded="CBEmpl_Loaded" SelectionChanged="CBEmpl_SelectionChanged" Uid="{Binding Id_application}"/>
  64. </GroupBox>
  65. </StackPanel>
  66. </StackPanel>
  67. </Border>
  68. </DataTemplate>
  69. </ListView.ItemTemplate>
  70. </ListView>
  71. </StackPanel>
  72. <StackPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Top" Orientation="Vertical">
  73. <StackPanel Orientation="Horizontal" >
  74. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  75. <TextBox Name="TB_Search_event" TextChanged="TB_Search_event_TextChanged" Width="200" Height="30"/>
  76. </GroupBox>
  77. <ComboBox Name="CB_Sort_event" SelectionChanged="CB_Sort_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
  78. <ComboBox Name="CB_Filter_event" SelectionChanged="CB_Filter_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
  79. </StackPanel>
  80. <ListView Grid.Row="2" Grid.Column="1" Name="EventList" Height="700" Margin="0,0,20,0" >
  81. <ListView.ItemsPanel>
  82. <ItemsPanelTemplate>
  83. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  84. </ItemsPanelTemplate>
  85. </ListView.ItemsPanel>
  86. <ListView.ItemTemplate>
  87. <DataTemplate>
  88. <Border Width="500" Height="140" BorderThickness="1" BorderBrush="Red">
  89. <StackPanel Orientation="Horizontal">
  90. <StackPanel Margin="10,0,0,0" Width="300" HorizontalAlignment="Left" Orientation="Vertical">
  91. <TextBlock Text="{Binding Date_event}"/>
  92. <TextBlock Text="{Binding Place_for_event}" TextWrapping="Wrap"/>
  93. <TextBlock Text="{Binding Title_event}"/>
  94. <TextBlock Text="{Binding Path=Events_type.Title_events_type}"/>
  95. <TextBlock Text="{Binding Description_event}"/>
  96. <TextBlock Text="{Binding Path=User.Surname}"/>
  97. <TextBlock Text="{Binding Path=Status_event.Title_status_event}" FontWeight="Bold"/>
  98. <Button Content="Создать отчет" Click="Report_Click" Name="GoToReport" Style="{StaticResource BtnSt}" Uid="{Binding Id_event}"></Button>
  99. </StackPanel>
  100. <Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Удалить" Name="DeleteBtn" Style="{StaticResource BtnSt}" Click="DeleteBtn_Click" Uid="{Binding Id_event}"></Button>
  101. </StackPanel>
  102. </Border>
  103. </DataTemplate>
  104. </ListView.ItemTemplate>
  105. </ListView>
  106. </StackPanel>
  107. <StackPanel Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  108. <Button Height="30" Content="Выйти" FontSize="20" Style="{StaticResource BtnSt}" Name="Exit" Click="Exit_Click"></Button>
  109. </StackPanel>
  110. </Grid>
  111. </Page>