123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <Page x:Class="PP_Ven_MosS.ApplicationsListUser"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PP_Ven_MosS"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="ApplicationsListUser">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35"></RowDefinition>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock Text="Меню пользователя" FontWeight="Bold" FontSize="30" Margin="100,0"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Text="Служебные записки" FontWeight="Bold" FontSize="20"></TextBlock>
- </StackPanel>
- <Button Height="30" Content="Создать" FontSize="20" Style="{StaticResource BtnSt}" Name="CreateApp" Click="CreateApp_Click"></Button>
- </StackPanel>
- <StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock Text="Мероприятия" FontWeight="Bold" FontSize="20"></TextBlock>
- </StackPanel>
- <Button Height="30" Content="Запланировать" FontSize="20" Style="{StaticResource BtnSt}" Name="CreateEv" Click="CreateEv_Click"></Button>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical" Visibility="Visible">
- <StackPanel Orientation="Horizontal" >
- <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
- <TextBox Name="TB_Search_app" Width="300" Height="30" TextChanged="SearchChanged"/>
- </GroupBox>
- <ComboBox Name="CB_Sort_app" Width="200" Height="30" Margin="10,10,0,0" SelectionChanged="SortFilterChanged"></ComboBox>
- <ComboBox Name="CB_Filter_app" Width="200" Height="30" Margin="10,10,0,0" SelectionChanged="SortFilterChanged"></ComboBox>
- </StackPanel>
- <ListView x:Name="ApplicationList" Height="700">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Width="500" Height="100" BorderThickness="1" BorderBrush="Red">
- <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
- <TextBlock Text="{Binding Date_app}"/>
- <TextBlock Text="{Binding Place_app}"/>
- <TextBlock Text="{Binding Path = Application_type.Title_app_type}"/>
- <TextBlock Text="{Binding Description}"/>
- <TextBlock Text="{Binding Path = User.Surname}"/>
- <TextBlock Text="{Binding Path = Status_application.Title_status_app}" FontWeight="Bold"/>
-
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical" Visibility="Visible">
- <StackPanel Orientation="Horizontal" >
- <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
- <TextBox Name="TB_Search_event" TextChanged="TB_Search_event_TextChanged" Width="300" Height="30"/>
- </GroupBox>
- <ComboBox Name="CB_Sort_event" SelectionChanged="CB_Sort_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
- <ComboBox Name="CB_Filter_event" SelectionChanged="CB_Filter_event_SelectionChanged" Width="200" Height="30" Margin="10,10,0,0"></ComboBox>
- </StackPanel>
- <ListView Grid.Row="1" Grid.Column="0" Name="EventList" Height="700">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Width="500" Height="140" BorderThickness="1" BorderBrush="Red">
- <StackPanel Orientation="Horizontal">
- <StackPanel Margin="10,0,0,0" Width="300" Orientation="Vertical" HorizontalAlignment="Left">
- <TextBlock Text="{Binding Date_event,StringFormat=dd.MM.yyyy}"/>
- <TextBlock Text="{Binding Place_for_event}" TextWrapping="Wrap"/>
- <TextBlock Text="{Binding Title_event}"/>
- <TextBlock Text="{Binding Path=Events_type.Title_events_type}"/>
- <TextBlock Text="{Binding Description_event}"/>
- <TextBlock Text="{Binding Path=User.Surname}"/>
- <TextBlock Text="{Binding Path=Status_event.Title_status_event}" FontWeight="Bold"/>
- <TextBlock Uid="{Binding Id_event}" Loaded="TextBlock_Loaded"></TextBlock>
- </StackPanel>
- <!--<Button Style="{StaticResource BtnSt}" Name="InfoEv" Click="GoInfoForEvent_Click" Content="Информаия"></Button>-->
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackPanel>
- <StackPanel Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
- <Button Height="30" Content="Выйти" FontSize="20" Style="{StaticResource BtnSt}" Name="Exit" Click="Exit_Click"></Button>
- </StackPanel>
- </Grid>
- </Page>
|