90 lines
8.0 KiB
Plaintext
90 lines
8.0 KiB
Plaintext
![]() |
<Window xmlns="https://github.com/avaloniaui"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||
|
x:Class="kursovaya.TeacherWindow"
|
||
|
x:CompileBindings="False"
|
||
|
Title="TeacherWindow">
|
||
|
<Border Background="Bisque">
|
||
|
<DockPanel>
|
||
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Background="LightBlue" Height="30">
|
||
|
<Button DockPanel.Dock="Left" Content="Назад" Click="ButtonBack_OnClick" Width="100" HorizontalAlignment="Left" Foreground="Black" Background="LightGray"/>
|
||
|
<ComboBox x:Name="GroupComboBox" HorizontalAlignment="Center"/>
|
||
|
<ComboBox x:Name="DisciplineComboBox" HorizontalAlignment="Center"/>
|
||
|
<Button Content="Просмотр аттестации" Click="CheckAttest_OnClick" Foreground="Black"/>
|
||
|
|
||
|
</StackPanel>
|
||
|
<Grid DockPanel.Dock="Top" ColumnDefinitions="3*,1*,1*,1*,1*,1*" Background="LightGray" Height="35">
|
||
|
<TextBlock Grid.Column="0" Text="ФИО Студента" VerticalAlignment="Center" Margin="5" FontWeight="Bold" Foreground="Black"/>
|
||
|
<TextBlock Grid.Column="1" Text="1 Аттестация" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" Foreground="Black"/>
|
||
|
<TextBlock Grid.Column="2" Text="2 Аттестация" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" Foreground="Black"/>
|
||
|
<TextBlock Grid.Column="3" Text="3 Аттестация" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" Foreground="Black"/>
|
||
|
<TextBlock Grid.Column="4" Text="Итог" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" Foreground="Black"/>
|
||
|
<TextBlock Grid.Column="5" Text="Оценка" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" Foreground="Black"/>
|
||
|
</Grid>
|
||
|
<ScrollViewer>
|
||
|
<ItemsControl x:Name="FlatAttestationGrid" ItemsSource="{Binding AttestationsTeachers}">
|
||
|
<ItemsControl.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<Grid ColumnDefinitions="3*,1*,1*,1*,1*,1*" Margin="2" Background="LightGray" Height="40">
|
||
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
||
|
<TextBlock Text="{Binding StudentFIO}" VerticalAlignment="Center" Margin="10,0" Foreground="Black"/>
|
||
|
</Border>
|
||
|
<Border Grid.Column="1" BorderBrush="Black" BorderThickness="0.5">
|
||
|
<Button Content="{Binding AttestFirst}" Tag="{Binding}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="Black" Background="Transparent" BorderThickness="0" Padding="0" Click="FirstAttest_OnClick">
|
||
|
<Button.Styles>
|
||
|
<Style Selector="Button">
|
||
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
</Style>
|
||
|
</Button.Styles>
|
||
|
</Button>
|
||
|
</Border>
|
||
|
|
||
|
<Border Grid.Column="2" BorderBrush="Black" BorderThickness="0.5">
|
||
|
<Button Content="{Binding AttestSecond}" Tag="{Binding}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="Black" Background="Transparent" BorderThickness="0" Padding="0" Click="SecondAttest_OnClick">
|
||
|
<Button.Styles>
|
||
|
<Style Selector="Button">
|
||
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
</Style>
|
||
|
</Button.Styles>
|
||
|
</Button>
|
||
|
</Border>
|
||
|
|
||
|
<Border Grid.Column="3" BorderBrush="Black" BorderThickness="0.5">
|
||
|
<Button Content="{Binding AttestThird}" Tag="{Binding}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="Black" Background="Transparent" BorderThickness="0" Padding="0" Click="ThirdAttest_OnClick">
|
||
|
<Button.Styles>
|
||
|
<Style Selector="Button">
|
||
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
</Style>
|
||
|
</Button.Styles>
|
||
|
</Button>
|
||
|
</Border>
|
||
|
|
||
|
<Border Grid.Column="4" BorderBrush="Black" BorderThickness="0.5">
|
||
|
<TextBlock Text="{Binding Total}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Black"/>
|
||
|
</Border>
|
||
|
|
||
|
<Border Grid.Column="5" BorderBrush="Black" BorderThickness="0.5">
|
||
|
<TextBlock Text="{Binding Grade}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Black"/>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ItemsControl.ItemTemplate>
|
||
|
</ItemsControl>
|
||
|
</ScrollViewer>
|
||
|
</DockPanel>
|
||
|
</Border>
|
||
|
</Window>
|