PDFPrintDiffCredit.axaml 6.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="420" d:DesignHeight="594"
  6. MaxHeight="594" MaxWidth="420" MinHeight="594" MinWidth="420"
  7. CanResize="False"
  8. xmlns:vm="using:AvaloniaApplication4.ViewModels.StudyListsViewModels"
  9. x:DataType="vm:PDFPrintDiffCreditViewModel"
  10. x:Class="AvaloniaApplication4.Views.StudyLists.PDFPrintDiffCredit"
  11. Title="Печать ведомости"
  12. Padding="15 20 15 20">
  13. <Grid>
  14. <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
  15. <TextBlock Foreground="Black" FontFamily="Times New Roman" FontSize="9" Margin="0 0 0 10" HorizontalAlignment="Center" Text="ГБПОУ «Нижегородский Губернский колледж»"/>
  16. <TextBlock Foreground="Black" FontFamily="Times New Roman" FontWeight="Bold" FontSize="9" Margin="0 0 0 10" HorizontalAlignment="Center" Text="ЗАЧЕТНАЯ ВЕДОМОСТЬ"/>
  17. <Grid Margin="0 0 0 5">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="*"/>
  20. <ColumnDefinition Width="2*"/>
  21. </Grid.ColumnDefinitions>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="*"/>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="*"/>
  26. </Grid.RowDefinitions>
  27. <TextBlock Foreground="Black" Grid.Column="0" Margin="0 0 0 10" Grid.Row="0" FontFamily="Times New Roman" FontSize="9" Text="По дисциплине "/>
  28. <TextBlock Foreground="Black" Grid.Column="1" Margin="0 0 0 10" Grid.Row="0" TextDecorations="Underline" FontWeight="Bold" HorizontalAlignment="Stretch" FontFamily="Times New Roman" FontSize="9" Text="{Binding NameSubject}"/>
  29. <TextBlock Foreground="Black" Grid.Column="0" Margin="0 0 0 10" Grid.Row="1" FontFamily="Times New Roman" FontSize="9" Text="Специальность / профессия "/>
  30. <TextBlock Foreground="Black" Grid.Column="1" Margin="0 0 0 10" Grid.Row="1" TextDecorations="Underline" HorizontalAlignment="Stretch" FontFamily="Times New Roman" FontSize="9" Text="{Binding NameProgram}"/>
  31. <TextBlock Foreground="Black" Grid.Column="0" Margin="0 0 0 10" Grid.Row="2" TextDecorations="Underline" HorizontalAlignment="Stretch" FontFamily="Times New Roman" FontSize="9" Text="Преподаватель"/>
  32. <TextBlock Foreground="Black" Grid.Column="1" Margin="0 0 0 10" Grid.Row="2" TextDecorations="Underline" HorizontalAlignment="Stretch" FontFamily="Times New Roman" FontSize="9" Text="{Binding FioTeacher}"/>
  33. </Grid>
  34. <DataGrid ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding Grades}" RowHeight="15" ColumnHeaderHeight="15" Margin="0 0 0 20" HorizontalAlignment="Stretch" BorderBrush="Black" BorderThickness="0.5" CanUserSortColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" FontSize="4.5" FontFamily="Times New Roman" GridLinesVisibility="All" AutoGenerateColumns="False">
  35. <DataGrid.Styles>
  36. <Style Selector="DataGridColumnHeader">
  37. <Setter Property="FontSize" Value="9" />
  38. <Setter Property="Height" Value="15"/>
  39. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  40. <Setter Property="FontWeight" Value="Bold"/>
  41. <Setter Property="Foreground" Value="Black"/>
  42. <Setter Property="Padding" Value="0"/>
  43. </Style>
  44. <Style Selector="Border">
  45. <Setter Property="BorderBrush" Value="Black"/>
  46. </Style>
  47. </DataGrid.Styles>
  48. <DataGrid.Columns>
  49. <DataGridTextColumn CanUserResize="False" Binding="{Binding Number}" Foreground="Black" FontSize="9" IsReadOnly="True" Header="№ п/п"> </DataGridTextColumn>
  50. <DataGridTextColumn CanUserResize="False" Binding="{Binding Fio}" Foreground="Black" FontSize="9" IsReadOnly="True" Header="ФИО аттестуемого"></DataGridTextColumn>
  51. <DataGridTextColumn CanUserResize="False" Binding="{Binding Grage}" Foreground="Black" FontSize="9" IsReadOnly="True" Header="Оценка"></DataGridTextColumn>
  52. <DataGridTextColumn CanUserResize="False" Foreground="Black" FontSize="9" IsReadOnly="True" Header="Подпись преподавателя"></DataGridTextColumn>
  53. </DataGrid.Columns>
  54. </DataGrid>
  55. <DataGrid ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding StatisticBindings}" RowHeight="15" ColumnHeaderHeight="15" Margin="0 0 0 20" HorizontalAlignment="Stretch" BorderBrush="Black" CanUserSortColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" FontSize="4.5" FontFamily="Times New Roman" GridLinesVisibility="All" AutoGenerateColumns="False">
  56. <DataGrid.Styles>
  57. <Style Selector="DataGridColumnHeader">
  58. <Setter Property="FontSize" Value="9" />
  59. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  60. <Setter Property="VerticalContentAlignment" Value="Center"/>
  61. <Setter Property="FontWeight" Value="Bold"/>
  62. <Setter Property="Foreground" Value="Black"/>
  63. <Setter Property="Padding" Value="0"/>
  64. <Setter Property="Margin" Value="0"/>
  65. </Style>
  66. <Style Selector="Border">
  67. <Setter Property="BorderBrush" Value="Black"/>
  68. </Style>
  69. </DataGrid.Styles>
  70. <DataGrid.Columns>
  71. <DataGridTextColumn Binding="{Binding Name}" Foreground="Black" FontSize="9" IsReadOnly="True"/>
  72. <DataGridTextColumn Binding="{Binding Value}" Foreground="Black" FontSize="9" IsReadOnly="True"/>
  73. <DataGridTextColumn Foreground="Black" FontSize="9" IsReadOnly="True"/>
  74. </DataGrid.Columns>
  75. </DataGrid>
  76. <Grid Margin="0 0 0 5">
  77. <Grid.ColumnDefinitions>
  78. <ColumnDefinition Width="0.5*"/>
  79. <ColumnDefinition Width="2*"/>
  80. </Grid.ColumnDefinitions>
  81. <TextBlock Foreground="Black" Grid.Column="0" Margin="0 0 0 10" FontFamily="Times New Roman" FontSize="9" Text="Преподаватель"/>
  82. <TextBlock Foreground="Black" Grid.Column="1" Margin="0 0 0 10" HorizontalAlignment="Stretch" FontFamily="Times New Roman" FontSize="9" Text="_______________________ / _______________ /"/>
  83. </Grid>
  84. </StackPanel>
  85. </Grid>
  86. </Window>