123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <Page x:Class="PP_Ven_MosS.Pages.MenuAdmin"
- 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.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="MenuAdmin">
- <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 Grid.Row="0" HorizontalAlignment="Right" Grid.Column="1">
- <Button Content="Личный кабинет" Style="{StaticResource BtnSt}" Name="GoProfile" Click="Profile_Click"></Button>
- </StackPanel>
- <StackPanel Grid.Row="0" HorizontalAlignment="Left" Grid.Column="0">
- <Button Content="Пользователи" Style="{StaticResource BtnSt}" Name="Users" Click="Users_Click"></Button>
- </StackPanel>
- <StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
- <Button Content="Отчет" Width="100" Margin="0,0,10,0" Style="{StaticResource BtnSt}" Name="Otchet" Click="Otchet_Click"></Button>
- <TextBlock Text="Служебные записки" FontWeight="Bold" FontSize="20"></TextBlock>
- </StackPanel>
- <StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock Text="Мероприятия" FontWeight="Bold" FontSize="20"></TextBlock>
- <Button Content="Отчет" Width="100" Margin="0,0,10,0" Style="{StaticResource BtnSt}" Name="rep" Click="rep_Click"></Button>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical">
- <StackPanel Orientation="Horizontal" >
- <GroupBox Height="60" Header="Введите текст для поиска" BorderThickness="2" BorderBrush="#FF0000" Margin="10,0,0,0">
- <TextBox TextChanged="SearchChanged" Name="TB_Search_app" Width="200" Height="30"/>
- </GroupBox>
- <ComboBox SelectionChanged="SortFilterChanged" Name="CB_Sort_app" Width="200" Height="30" Margin="10,10,0,0" />
- <ComboBox SelectionChanged="SortFilterChanged" Name="CB_Filter_app" Width="200" Height="30" Margin="10,10,0,0" />
- </StackPanel>
- <ListView Grid.Row="2" Grid.Column="0" Name="ApplicationList" Height="700">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Vertical" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Width="500" Height="150" BorderThickness="1" BorderBrush="Red">
- <StackPanel Orientation="Horizontal">
- <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"/>
- <GroupBox Header="Назначить исполнителя" FontSize="10" Style="{StaticResource GBSt}" HorizontalAlignment="Right">
- <ComboBox x:Name="CBEmpl" Height="20" Loaded="CBEmpl_Loaded" SelectionChanged="CBEmpl_SelectionChanged" Uid="{Binding Id_application}"/>
- </GroupBox>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Top" Orientation="Vertical">
- <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="200" 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="2" Grid.Column="1" Name="EventList" Height="700" Margin="0,0,20,0" >
- <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" HorizontalAlignment="Left" Orientation="Vertical">
- <TextBlock Text="{Binding Date_event}"/>
- <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"/>
- <Button Content="Создать отчет" Click="Report_Click" Name="GoToReport" Style="{StaticResource BtnSt}" Uid="{Binding Id_event}"></Button>
- </StackPanel>
- <Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Удалить" Name="DeleteBtn" Style="{StaticResource BtnSt}" Click="DeleteBtn_Click" Uid="{Binding Id_event}"></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>
|