ApplicationsListUser.xaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <Page x:Class="PP_Ven_MosS.ApplicationsListUser"
  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"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="ApplicationsListUser">
  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 Orientation="Vertical" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">
  25. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  26. <TextBlock Text="Служебные записки" FontWeight="Bold" FontSize="20"></TextBlock>
  27. </StackPanel>
  28. <Button Height="30" Content="Создать" FontSize="20" Style="{StaticResource BtnSt}" Name="CreateApp" Click="CreateApp_Click"></Button>
  29. </StackPanel>
  30. <StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  31. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  32. <TextBlock Text="Мероприятия" FontWeight="Bold" FontSize="20"></TextBlock>
  33. </StackPanel>
  34. <Button Height="30" Content="Запланировать" FontSize="20" Style="{StaticResource BtnSt}" Name="CreateEv" Click="CreateEv_Click"></Button>
  35. </StackPanel>
  36. <StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical" Visibility="Visible">
  37. <StackPanel Orientation="Horizontal" >
  38. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  39. <TextBox Name="TB_Search_app" Width="300" Height="30" TextChanged="SearchChanged"/>
  40. </GroupBox>
  41. <ComboBox Name="CB_Sort_app" Width="200" Height="30" Margin="10,10,0,0" SelectionChanged="SortFilterChanged"></ComboBox>
  42. <ComboBox Name="CB_Filter_app" Width="200" Height="30" Margin="10,10,0,0" SelectionChanged="SortFilterChanged"></ComboBox>
  43. </StackPanel>
  44. <ListView x:Name="ApplicationList" Height="700">
  45. <ListView.ItemsPanel>
  46. <ItemsPanelTemplate>
  47. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  48. </ItemsPanelTemplate>
  49. </ListView.ItemsPanel>
  50. <ListView.ItemTemplate>
  51. <DataTemplate>
  52. <Border Width="500" Height="100" BorderThickness="1" BorderBrush="Red">
  53. <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
  54. <TextBlock Text="{Binding Date_app}"/>
  55. <TextBlock Text="{Binding Place_app}"/>
  56. <TextBlock Text="{Binding Path = Application_type.Title_app_type}"/>
  57. <TextBlock Text="{Binding Description}"/>
  58. <TextBlock Text="{Binding Path = User.Surname}"/>
  59. <TextBlock Text="{Binding Path = Status_application.Title_status_app}" FontWeight="Bold"/>
  60. </StackPanel>
  61. </Border>
  62. </DataTemplate>
  63. </ListView.ItemTemplate>
  64. </ListView>
  65. </StackPanel>
  66. <StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical" Visibility="Visible">
  67. <StackPanel Orientation="Horizontal" >
  68. <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
  69. <TextBox Name="TB_Search_event" TextChanged="TB_Search_event_TextChanged" Width="300" Height="30"/>
  70. </GroupBox>
  71. <ComboBox Name="CB_Sort_event" SelectionChanged="CB_Sort_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
  72. <ComboBox Name="CB_Filter_event" SelectionChanged="CB_Filter_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
  73. </StackPanel>
  74. <ListView Grid.Row="1" Grid.Column="0" Name="EventList" Height="700">
  75. <ListView.ItemsPanel>
  76. <ItemsPanelTemplate>
  77. <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
  78. </ItemsPanelTemplate>
  79. </ListView.ItemsPanel>
  80. <ListView.ItemTemplate>
  81. <DataTemplate>
  82. <Border Width="500" Height="150" BorderThickness="1" BorderBrush="Red">
  83. <StackPanel Orientation="Horizontal">
  84. <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
  85. <TextBlock Text="{Binding Date_event,StringFormat=dd.MM.yyyy}"/>
  86. <TextBlock Text="{Binding Place_for_event}" TextWrapping="Wrap"/>
  87. <TextBlock Text="{Binding Title_event}"/>
  88. <TextBlock Text="{Binding Path=Events_type.Title_events_type}"/>
  89. <TextBlock Text="{Binding Description_event}"/>
  90. <TextBlock Text="{Binding Path=User.Surname}"/>
  91. <TextBlock Text="{Binding Path=Status_event.Title_status_event}" FontWeight="Bold"/>
  92. <TextBlock Uid="{Binding Id_event}" Loaded="TextBlock_Loaded"></TextBlock>
  93. <TextBlock Text="{Binding score}"></TextBlock>
  94. </StackPanel>
  95. <!--<Button Style="{StaticResource BtnSt}" Name="InfoEv" Click="GoInfoForEvent_Click" Content="Информаия"></Button>-->
  96. </StackPanel>
  97. </Border>
  98. </DataTemplate>
  99. </ListView.ItemTemplate>
  100. </ListView>
  101. </StackPanel>
  102. <StackPanel Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  103. <Button Height="30" Content="Выйти" FontSize="20" Style="{StaticResource BtnSt}" Name="Exit" Click="Exit_Click"></Button>
  104. </StackPanel>
  105. </Grid>
  106. </Page>