📄 frmzhengshu.vb
字号:
Imports System.Drawing
Imports System.Drawing.Printing
Public Class frmzhengshu
Inherits System.Windows.Forms.Form
Dim updbset As DataSet
Dim sigstudbset As DataSet
Dim fontcontext As Font = Nothing
Dim drawBrush As Brush = Nothing
Dim totalpage As Integer
Dim curpage As Integer
Dim totalline As Integer
Dim curline As Integer
Dim pagelinecount As Integer = 0
Dim testyear As String
Dim testmon As String
Dim veryear As String
Dim vermon As String
Dim verdate As String
Dim printername As String = Nothing
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents mypd As System.Drawing.Printing.PrintDocument
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GbDepartment As System.Windows.Forms.GroupBox
Friend WithEvents TvDep As System.Windows.Forms.TreeView
Friend WithEvents GbMarjoy As System.Windows.Forms.GroupBox
Friend WithEvents LbMarjoy As System.Windows.Forms.ListBox
Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
Friend WithEvents combtesttime As System.Windows.Forms.ComboBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents combtestyear As System.Windows.Forms.ComboBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents TxtPLeft As System.Windows.Forms.TextBox
Friend WithEvents TxtPNameTop As System.Windows.Forms.TextBox
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents TxtPsexTop As System.Windows.Forms.TextBox
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents TxtPDepTop As System.Windows.Forms.TextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents TxtMarTop As System.Windows.Forms.TextBox
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents TxtGrdTop As System.Windows.Forms.TextBox
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents TxtBianHaoTop As System.Windows.Forms.TextBox
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents TxtPRNameTop As System.Windows.Forms.TextBox
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents TxtPRNameLeft As System.Windows.Forms.TextBox
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents TxtPRTestYearLeft As System.Windows.Forms.TextBox
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents TxtPRTestMonLeft As System.Windows.Forms.TextBox
Friend WithEvents Label13 As System.Windows.Forms.Label
Friend WithEvents TxtPRTestMonTop As System.Windows.Forms.TextBox
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents TxtPRVerYearTop As System.Windows.Forms.TextBox
Friend WithEvents Label15 As System.Windows.Forms.Label
Friend WithEvents TxtPRVerYearLeft As System.Windows.Forms.TextBox
Friend WithEvents Label16 As System.Windows.Forms.Label
Friend WithEvents TxtPRVerMonLeft As System.Windows.Forms.TextBox
Friend WithEvents Label17 As System.Windows.Forms.Label
Friend WithEvents TxtPRVerDateLeft As System.Windows.Forms.TextBox
Friend WithEvents Label18 As System.Windows.Forms.Label
Friend WithEvents GroupBox5 As System.Windows.Forms.GroupBox
Friend WithEvents TxtBianHao As System.Windows.Forms.TextBox
Friend WithEvents Label19 As System.Windows.Forms.Label
Friend WithEvents TxtTestYear As System.Windows.Forms.TextBox
Friend WithEvents Label20 As System.Windows.Forms.Label
Friend WithEvents TxtTestMon As System.Windows.Forms.TextBox
Friend WithEvents Label21 As System.Windows.Forms.Label
Friend WithEvents TxtVerMon As System.Windows.Forms.TextBox
Friend WithEvents Label22 As System.Windows.Forms.Label
Friend WithEvents TxtVerYear As System.Windows.Forms.TextBox
Friend WithEvents Label23 As System.Windows.Forms.Label
Friend WithEvents TxtVerDate As System.Windows.Forms.TextBox
Friend WithEvents Label24 As System.Windows.Forms.Label
Friend WithEvents cmdCancel As System.Windows.Forms.Button
Friend WithEvents cmdOK As System.Windows.Forms.Button
Friend WithEvents CheckBox1 As System.Windows.Forms.CheckBox
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents CheckBox2 As System.Windows.Forms.CheckBox
Friend WithEvents Label25 As System.Windows.Forms.Label
Friend WithEvents cbprinter As System.Windows.Forms.ComboBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmzhengshu))
Me.mypd = New System.Drawing.Printing.PrintDocument
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.GbDepartment = New System.Windows.Forms.GroupBox
Me.TvDep = New System.Windows.Forms.TreeView
Me.GbMarjoy = New System.Windows.Forms.GroupBox
Me.LbMarjoy = New System.Windows.Forms.ListBox
Me.GroupBox4 = New System.Windows.Forms.GroupBox
Me.Label25 = New System.Windows.Forms.Label
Me.cbprinter = New System.Windows.Forms.ComboBox
Me.CheckBox2 = New System.Windows.Forms.CheckBox
Me.Button5 = New System.Windows.Forms.Button
Me.CheckBox1 = New System.Windows.Forms.CheckBox
Me.combtesttime = New System.Windows.Forms.ComboBox
Me.Label1 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.combtestyear = New System.Windows.Forms.ComboBox
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.Button3 = New System.Windows.Forms.Button
Me.cmdCancel = New System.Windows.Forms.Button
Me.cmdOK = New System.Windows.Forms.Button
Me.DataGrid1 = New System.Windows.Forms.DataGrid
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.GroupBox5 = New System.Windows.Forms.GroupBox
Me.TxtVerDate = New System.Windows.Forms.TextBox
Me.Label24 = New System.Windows.Forms.Label
Me.TxtVerMon = New System.Windows.Forms.TextBox
Me.Label22 = New System.Windows.Forms.Label
Me.TxtVerYear = New System.Windows.Forms.TextBox
Me.Label23 = New System.Windows.Forms.Label
Me.TxtTestMon = New System.Windows.Forms.TextBox
Me.Label21 = New System.Windows.Forms.Label
Me.TxtTestYear = New System.Windows.Forms.TextBox
Me.Label20 = New System.Windows.Forms.Label
Me.TxtBianHao = New System.Windows.Forms.TextBox
Me.Label19 = New System.Windows.Forms.Label
Me.TxtPRVerDateLeft = New System.Windows.Forms.TextBox
Me.Label18 = New System.Windows.Forms.Label
Me.TxtPRVerMonLeft = New System.Windows.Forms.TextBox
Me.Label17 = New System.Windows.Forms.Label
Me.TxtPRVerYearLeft = New System.Windows.Forms.TextBox
Me.Label16 = New System.Windows.Forms.Label
Me.TxtPRVerYearTop = New System.Windows.Forms.TextBox
Me.Label15 = New System.Windows.Forms.Label
Me.TxtPRTestMonTop = New System.Windows.Forms.TextBox
Me.Label14 = New System.Windows.Forms.Label
Me.TxtPRTestMonLeft = New System.Windows.Forms.TextBox
Me.Label13 = New System.Windows.Forms.Label
Me.TxtPRTestYearLeft = New System.Windows.Forms.TextBox
Me.Label12 = New System.Windows.Forms.Label
Me.TxtPRNameLeft = New System.Windows.Forms.TextBox
Me.Label11 = New System.Windows.Forms.Label
Me.TxtPRNameTop = New System.Windows.Forms.TextBox
Me.Label10 = New System.Windows.Forms.Label
Me.TxtBianHaoTop = New System.Windows.Forms.TextBox
Me.Label9 = New System.Windows.Forms.Label
Me.TxtGrdTop = New System.Windows.Forms.TextBox
Me.Label8 = New System.Windows.Forms.Label
Me.TxtMarTop = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.TxtPDepTop = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.TxtPsexTop = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.TxtPNameTop = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.TxtPLeft = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Button2 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.GroupBox1.SuspendLayout()
Me.GbDepartment.SuspendLayout()
Me.GbMarjoy.SuspendLayout()
Me.GroupBox4.SuspendLayout()
Me.GroupBox2.SuspendLayout()
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox3.SuspendLayout()
Me.GroupBox5.SuspendLayout()
Me.SuspendLayout()
'
'mypd
'
'
'ImageList1
'
Me.ImageList1.ImageSize = New System.Drawing.Size(30, 30)
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.GbDepartment)
Me.GroupBox1.Controls.Add(Me.GbMarjoy)
Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Left
Me.GroupBox1.Location = New System.Drawing.Point(0, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(240, 479)
Me.GroupBox1.TabIndex = 7
Me.GroupBox1.TabStop = False
'
'GbDepartment
'
Me.GbDepartment.Controls.Add(Me.TvDep)
Me.GbDepartment.Location = New System.Drawing.Point(8, 16)
Me.GbDepartment.Name = "GbDepartment"
Me.GbDepartment.Size = New System.Drawing.Size(224, 296)
Me.GbDepartment.TabIndex = 0
Me.GbDepartment.TabStop = False
Me.GbDepartment.Text = "院系信息:"
'
'TvDep
'
Me.TvDep.Cursor = System.Windows.Forms.Cursors.Hand
Me.TvDep.Dock = System.Windows.Forms.DockStyle.Fill
Me.TvDep.ImageList = Me.ImageList1
Me.TvDep.ItemHeight = 34
Me.TvDep.Location = New System.Drawing.Point(3, 17)
Me.TvDep.Name = "TvDep"
Me.TvDep.Size = New System.Drawing.Size(218, 276)
Me.TvDep.TabIndex = 0
'
'GbMarjoy
'
Me.GbMarjoy.Controls.Add(Me.LbMarjoy)
Me.GbMarjoy.Location = New System.Drawing.Point(8, 320)
Me.GbMarjoy.Name = "GbMarjoy"
Me.GbMarjoy.Size = New System.Drawing.Size(224, 152)
Me.GbMarjoy.TabIndex = 1
Me.GbMarjoy.TabStop = False
Me.GbMarjoy.Text = "专业信息:"
'
'LbMarjoy
'
Me.LbMarjoy.Cursor = System.Windows.Forms.Cursors.Hand
Me.LbMarjoy.Dock = System.Windows.Forms.DockStyle.Fill
Me.LbMarjoy.ItemHeight = 12
Me.LbMarjoy.Location = New System.Drawing.Point(3, 17)
Me.LbMarjoy.Name = "LbMarjoy"
Me.LbMarjoy.Size = New System.Drawing.Size(218, 124)
Me.LbMarjoy.TabIndex = 0
'
'GroupBox4
'
Me.GroupBox4.Controls.Add(Me.Label25)
Me.GroupBox4.Controls.Add(Me.cbprinter)
Me.GroupBox4.Controls.Add(Me.CheckBox2)
Me.GroupBox4.Controls.Add(Me.Button5)
Me.GroupBox4.Controls.Add(Me.CheckBox1)
Me.GroupBox4.Controls.Add(Me.combtesttime)
Me.GroupBox4.Controls.Add(Me.Label1)
Me.GroupBox4.Controls.Add(Me.Label3)
Me.GroupBox4.Controls.Add(Me.combtestyear)
Me.GroupBox4.Location = New System.Drawing.Point(248, 8)
Me.GroupBox4.Name = "GroupBox4"
Me.GroupBox4.Size = New System.Drawing.Size(632, 48)
Me.GroupBox4.TabIndex = 8
Me.GroupBox4.TabStop = False
Me.GroupBox4.Text = "考试时间:"
'
'Label25
'
Me.Label25.Location = New System.Drawing.Point(425, 20)
Me.Label25.Name = "Label25"
Me.Label25.Size = New System.Drawing.Size(80, 16)
Me.Label25.TabIndex = 18
Me.Label25.Text = "选择打印机:"
'
'cbprinter
'
Me.cbprinter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cbprinter.Location = New System.Drawing.Point(504, 16)
Me.cbprinter.Name = "cbprinter"
Me.cbprinter.Size = New System.Drawing.Size(120, 20)
Me.cbprinter.TabIndex = 17
'
'CheckBox2
'
Me.CheckBox2.Location = New System.Drawing.Point(376, 16)
Me.CheckBox2.Name = "CheckBox2"
Me.CheckBox2.Size = New System.Drawing.Size(48, 24)
Me.CheckBox2.TabIndex = 16
Me.CheckBox2.Text = "单人"
'
'Button5
'
Me.Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button5.Location = New System.Drawing.Point(300, 16)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(72, 24)
Me.Button5.TabIndex = 15
Me.Button5.Text = "打印设置"
'
'CheckBox1
'
Me.CheckBox1.Location = New System.Drawing.Point(216, 16)
Me.CheckBox1.Name = "CheckBox1"
Me.CheckBox1.Size = New System.Drawing.Size(80, 24)
Me.CheckBox1.TabIndex = 5
Me.CheckBox1.Text = "报表设置"
'
'combtesttime
'
Me.combtesttime.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.combtesttime.Items.AddRange(New Object() {"1", "2"})
Me.combtesttime.Location = New System.Drawing.Point(144, 18)
Me.combtesttime.Name = "combtesttime"
Me.combtesttime.Size = New System.Drawing.Size(40, 20)
Me.combtesttime.TabIndex = 2
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(88, 20)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(56, 16)
Me.Label1.TabIndex = 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -