MenuAdmin.xaml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <Button Content="Отчет" Width="100" Margin="0,0,10,0" Style="{StaticResource BtnSt}" Name="rep" Click="rep_Click"></Button>
  37. </StackPanel>
  38. <StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical">
  39. <StackPanel Orientation="Horizontal" >
  40. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  41. <TextBox TextChanged="SearchChanged" Name="TB_Search_app" Width="200" Height="30"/>
  42. </GroupBox>
  43. <ComboBox SelectionChanged="SortFilterChanged" Name="CB_Sort_app" Width="200" Height="30" Margin="10,10,0,0" />
  44. <ComboBox SelectionChanged="SortFilterChanged" Name="CB_Filter_app" Width="200" Height="30" Margin="10,10,0,0" />
  45. </StackPanel>
  46. <ListView Grid.Row="2" Grid.Column="0" Name="ApplicationList" Height="700">
  47. <ListView.ItemsPanel>
  48. <ItemsPanelTemplate>
  49. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  50. </ItemsPanelTemplate>
  51. </ListView.ItemsPanel>
  52. <ListView.ItemTemplate>
  53. <DataTemplate>
  54. <Border Width="500" Height="150" BorderThickness="1" BorderBrush="Red">
  55. <StackPanel Orientation="Horizontal">
  56. <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
  57. <TextBlock Text="{Binding Date_app}"/>
  58. <TextBlock Text="{Binding Place_app}"/>
  59. <TextBlock Text="{Binding Path=Application_type.Title_app_type}"/>
  60. <TextBlock Text="{Binding Description}"/>
  61. <TextBlock Text="{Binding Path=User.Surname}"/>
  62. <TextBlock Text="{Binding Path=Status_application.Title_status_app}" FontWeight="Bold"/>
  63. <GroupBox Header="Назначить исполнителя" FontSize="10" Style="{StaticResource GBSt}" HorizontalAlignment="Right">
  64. <ComboBox x:Name="CBEmpl" Height="20" Loaded="CBEmpl_Loaded" SelectionChanged="CBEmpl_SelectionChanged" Uid="{Binding Id_application}"/>
  65. </GroupBox>
  66. </StackPanel>
  67. </StackPanel>
  68. </Border>
  69. </DataTemplate>
  70. </ListView.ItemTemplate>
  71. </ListView>
  72. </StackPanel>
  73. <StackPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Top" Orientation="Vertical">
  74. <StackPanel Orientation="Horizontal" >
  75. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  76. <TextBox Name="TB_Search_event" TextChanged="TB_Search_event_TextChanged" Width="200" Height="30"/>
  77. </GroupBox>
  78. <ComboBox Name="CB_Sort_event" SelectionChanged="CB_Sort_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
  79. <ComboBox Name="CB_Filter_event" SelectionChanged="CB_Filter_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
  80. </StackPanel>
  81. <ListView Grid.Row="2" Grid.Column="1" Name="EventList" Height="700" Margin="0,0,20,0" >
  82. <ListView.ItemsPanel>
  83. <ItemsPanelTemplate>
  84. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  85. </ItemsPanelTemplate>
  86. </ListView.ItemsPanel>
  87. <ListView.ItemTemplate>
  88. <DataTemplate>
  89. <Border Width="500" Height="140" BorderThickness="1" BorderBrush="Red">
  90. <StackPanel Orientation="Horizontal">
  91. <StackPanel Margin="10,0,0,0" Width="300" HorizontalAlignment="Left" Orientation="Vertical">
  92. <TextBlock Text="{Binding Date_event}"/>
  93. <TextBlock Text="{Binding Place_for_event}" TextWrapping="Wrap"/>
  94. <TextBlock Text="{Binding Title_event}"/>
  95. <TextBlock Text="{Binding Path=Events_type.Title_events_type}"/>
  96. <TextBlock Text="{Binding Description_event}"/>
  97. <TextBlock Text="{Binding Path=User.Surname}"/>
  98. <TextBlock Text="{Binding Path=Status_event.Title_status_event}" FontWeight="Bold"/>
  99. <Button Content="Создать отчет" Click="Report_Click" Name="GoToReport" Style="{StaticResource BtnSt}" Uid="{Binding Id_event}"></Button>
  100. </StackPanel>
  101. <Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Удалить" Name="DeleteBtn" Style="{StaticResource BtnSt}" Click="DeleteBtn_Click" Uid="{Binding Id_event}"></Button>
  102. </StackPanel>
  103. </Border>
  104. </DataTemplate>
  105. </ListView.ItemTemplate>
  106. </ListView>
  107. </StackPanel>
  108. <StackPanel Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  109. <Button Height="30" Content="Выйти" FontSize="20" Style="{StaticResource BtnSt}" Name="Exit" Click="Exit_Click"></Button>
  110. </StackPanel>
  111. </Grid>
  112. </Page>