123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <Page x:Class="MedicallCenter.Pages.Page_Historyy"
- 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:MedicallCenter.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="Page_Historyy"
- Style="{StaticResource WinAll}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.2*" MaxHeight="0.8in"/>
- <RowDefinition/>
- <RowDefinition Height="0.2*" MaxHeight="0.8in"/>
- </Grid.RowDefinitions>
- <Button Content="На главную" HorizontalAlignment="Left" Margin="10" Padding="10 0" Click="btnBack_Click"/>
- <TextBox x:Name="search" Text="Поиск" Style="{DynamicResource TextBoxStyle2}" Margin="2in 0.1in" Padding="10 0" GotFocus="search_GotFocus" LostFocus="search_GotFocus" TextChanged="TBoxSearch_TextChanged"/>
- <DataGrid x:Name="DataGridHistory" Grid.Row="1" AutoGenerateColumns="False" HorizontalGridLinesBrush="#045C70" VerticalGridLinesBrush="#045C70" IsReadOnly="True" Style="{DynamicResource DataGridStyle1}">
- <FrameworkElement.Resources>
- <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="LightGray"/>
- <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="#FF498C51"/>
- <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="BLue"/>
- </FrameworkElement.Resources>
- <DataGrid.Columns>
- <DataGridTextColumn Header="Номер входа" Binding="{Binding id}" Width="*">
- <DataGridTextColumn.HeaderStyle>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Background" Value="#0D0D0D"/>
- <Setter Property="BorderBrush" Value="White"/>
- <Setter Property="BorderThickness" Value="2"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="border"
- BorderBrush="#FF498C51"
- BorderThickness="0 2 2 2"
- Background="White">
- <ContentPresenter HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridTextColumn.HeaderStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Header="Дата входа" Binding="{Binding data}" Width="*">
- <DataGridTextColumn.HeaderStyle>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Background" Value="#0D0D0D"/>
- <Setter Property="BorderBrush" Value="White"/>
- <Setter Property="BorderThickness" Value="2"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="border"
- BorderBrush="#FF498C51"
- BorderThickness="0 2 2 2"
- Background="White">
- <ContentPresenter HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridTextColumn.HeaderStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Header="Как зовут" Binding="{Binding name}" Width="*">
- <DataGridTextColumn.HeaderStyle>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Background" Value="#0D0D0D"/>
- <Setter Property="BorderBrush" Value="White"/>
- <Setter Property="BorderThickness" Value="2"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="border"
- BorderBrush="#FF498C51"
- BorderThickness="0 2 2 2"
- Background="White">
- <ContentPresenter HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridTextColumn.HeaderStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Header="Логин" Binding="{Binding login}" Width="*">
- <DataGridTextColumn.HeaderStyle>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Background" Value="#0D0D0D"/>
- <Setter Property="BorderBrush" Value="White"/>
- <Setter Property="BorderThickness" Value="2"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="border"
- BorderBrush="#FF498C51"
- BorderThickness="0 2 2 2"
- Background="White">
- <ContentPresenter HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridTextColumn.HeaderStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Header="Роль" Binding="{Binding Type.role}" Width="*">
- <DataGridTextColumn.HeaderStyle>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Background" Value="#0D0D0D"/>
- <Setter Property="BorderBrush" Value="White"/>
- <Setter Property="BorderThickness" Value="2"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="border"
- BorderBrush="#045C70"
- BorderThickness="0 2 2 2"
- Background="White">
- <ContentPresenter HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridTextColumn.HeaderStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Header="Блокировка" Binding="{Binding block}" Width="*">
- <DataGridTextColumn.HeaderStyle>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Background" Value="#0D0D0D"/>
- <Setter Property="BorderBrush" Value="White"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="border"
- BorderBrush="#045C70"
- BorderThickness="0 2 2 2"
- Background="White">
- <ContentPresenter HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridTextColumn.HeaderStyle>
- </DataGridTextColumn>
- </DataGrid.Columns>
- </DataGrid>
- <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center">
- <Button Content="Назад" Width="1in" MaxWidth="2in" Margin="0 0.1in 0.1in 0.1in" Click="PreviousPageButton_Click"/>
- <Button Content="Вперед" Width="1in" MaxWidth="2in" Margin="0 0.1in" Click="NextPageButton_Click"/>
- </StackPanel>
- </Grid>
- </Page>
|