📄 frmselect.vb
字号:
Public Class frmSelect
Inherits System.Windows.Forms.Form
Private dtData As DataTable
Private dtSubject As DataTable
#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 Label3 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents dgdList As System.Windows.Forms.DataGrid
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents txbGrade As System.Windows.Forms.TextBox
Friend WithEvents txbName As System.Windows.Forms.TextBox
Friend WithEvents txbId As System.Windows.Forms.TextBox
Friend WithEvents btnDisplay As System.Windows.Forms.Button
Friend WithEvents btnDel As System.Windows.Forms.Button
Friend WithEvents btnSelect As System.Windows.Forms.Button
Friend WithEvents btnSearch As System.Windows.Forms.Button
Friend WithEvents txbCNumber As System.Windows.Forms.TextBox
Friend WithEvents txbCId As System.Windows.Forms.TextBox
Friend WithEvents txbCName As System.Windows.Forms.TextBox
Friend WithEvents txbPY As System.Windows.Forms.TextBox
Friend WithEvents dgdSubject As System.Windows.Forms.DataGrid
Friend WithEvents grbTop As System.Windows.Forms.GroupBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmSelect))
Me.grbTop = New System.Windows.Forms.GroupBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.txbGrade = New System.Windows.Forms.TextBox
Me.txbName = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.txbId = New System.Windows.Forms.TextBox
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.dgdList = New System.Windows.Forms.DataGrid
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.Label9 = New System.Windows.Forms.Label
Me.dgdSubject = New System.Windows.Forms.DataGrid
Me.btnDisplay = New System.Windows.Forms.Button
Me.btnDel = New System.Windows.Forms.Button
Me.btnSelect = New System.Windows.Forms.Button
Me.btnSearch = New System.Windows.Forms.Button
Me.Label8 = New System.Windows.Forms.Label
Me.txbCNumber = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.txbCId = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txbCName = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txbPY = New System.Windows.Forms.TextBox
Me.grbTop.SuspendLayout()
Me.GroupBox1.SuspendLayout()
CType(Me.dgdList, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox2.SuspendLayout()
CType(Me.dgdSubject, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'grbTop
'
Me.grbTop.Controls.Add(Me.Label4)
Me.grbTop.Controls.Add(Me.Label3)
Me.grbTop.Controls.Add(Me.txbGrade)
Me.grbTop.Controls.Add(Me.txbName)
Me.grbTop.Controls.Add(Me.Label2)
Me.grbTop.Controls.Add(Me.Label1)
Me.grbTop.Controls.Add(Me.txbId)
Me.grbTop.Dock = System.Windows.Forms.DockStyle.Top
Me.grbTop.Location = New System.Drawing.Point(0, 0)
Me.grbTop.Name = "grbTop"
Me.grbTop.Size = New System.Drawing.Size(640, 64)
Me.grbTop.TabIndex = 3
Me.grbTop.TabStop = False
Me.grbTop.Text = "学生信息"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(376, 11)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(256, 40)
Me.Label4.TabIndex = 7
Me.Label4.Text = "这里输入学号后回车,正常操作是学生用自己的学号登陆到系统,只能选择自己的课程。因为系统没有制作登陆功能,所以这么处理。"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(264, 27)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(32, 15)
Me.Label3.TabIndex = 6
Me.Label3.Text = "班级"
'
'txbGrade
'
Me.txbGrade.Location = New System.Drawing.Point(304, 22)
Me.txbGrade.Name = "txbGrade"
Me.txbGrade.ReadOnly = True
Me.txbGrade.Size = New System.Drawing.Size(56, 21)
Me.txbGrade.TabIndex = 5
Me.txbGrade.Text = ""
'
'txbName
'
Me.txbName.Location = New System.Drawing.Point(192, 22)
Me.txbName.Name = "txbName"
Me.txbName.ReadOnly = True
Me.txbName.Size = New System.Drawing.Size(56, 21)
Me.txbName.TabIndex = 4
Me.txbName.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(160, 27)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(32, 15)
Me.Label2.TabIndex = 3
Me.Label2.Text = "姓名"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 27)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(32, 15)
Me.Label1.TabIndex = 2
Me.Label1.Text = "学号"
'
'txbId
'
Me.txbId.Location = New System.Drawing.Point(40, 22)
Me.txbId.Name = "txbId"
Me.txbId.Size = New System.Drawing.Size(112, 21)
Me.txbId.TabIndex = 1
Me.txbId.Text = ""
'
'GroupBox1
'
Me.GroupBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.GroupBox1.Controls.Add(Me.dgdList)
Me.GroupBox1.Location = New System.Drawing.Point(0, 64)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(640, 120)
Me.GroupBox1.TabIndex = 4
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "已选课程"
'
'dgdList
'
Me.dgdList.CaptionVisible = False
Me.dgdList.DataMember = ""
Me.dgdList.Dock = System.Windows.Forms.DockStyle.Fill
Me.dgdList.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgdList.Location = New System.Drawing.Point(3, 17)
Me.dgdList.Name = "dgdList"
Me.dgdList.Size = New System.Drawing.Size(634, 100)
Me.dgdList.TabIndex = 0
'
'GroupBox2
'
Me.GroupBox2.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.GroupBox2.Controls.Add(Me.Label9)
Me.GroupBox2.Controls.Add(Me.dgdSubject)
Me.GroupBox2.Controls.Add(Me.btnDisplay)
Me.GroupBox2.Controls.Add(Me.btnDel)
Me.GroupBox2.Controls.Add(Me.btnSelect)
Me.GroupBox2.Controls.Add(Me.btnSearch)
Me.GroupBox2.Controls.Add(Me.Label8)
Me.GroupBox2.Controls.Add(Me.txbCNumber)
Me.GroupBox2.Controls.Add(Me.Label7)
Me.GroupBox2.Controls.Add(Me.txbCId)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.txbCName)
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.Controls.Add(Me.txbPY)
Me.GroupBox2.Location = New System.Drawing.Point(0, 184)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(640, 136)
Me.GroupBox2.TabIndex = 5
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "课程信息"
'
'Label9
'
Me.Label9.Location = New System.Drawing.Point(288, 40)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(328, 40)
Me.Label9.TabIndex = 16
Me.Label9.Text = "选择相应的课程序号,单击【选课】按钮,系统先检查该课程编号是否已选或上课时间是否冲突,注意一个课程编号可以对应多个课序号,既一门课在多个时间上的情况。"
'
'dgdSubject
'
Me.dgdSubject.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.dgdSubject.CaptionVisible = False
Me.dgdSubject.DataMember = ""
Me.dgdSubject.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgdSubject.Location = New System.Drawing.Point(3, 88)
Me.dgdSubject.Name = "dgdSubject"
Me.dgdSubject.Size = New System.Drawing.Size(634, 44)
Me.dgdSubject.TabIndex = 15
'
'btnDisplay
'
Me.btnDisplay.Location = New System.Drawing.Point(512, 13)
Me.btnDisplay.Name = "btnDisplay"
Me.btnDisplay.Size = New System.Drawing.Size(64, 23)
Me.btnDisplay.TabIndex = 14
Me.btnDisplay.Text = "显示课表"
'
'btnDel
'
Me.btnDel.Location = New System.Drawing.Point(440, 13)
Me.btnDel.Name = "btnDel"
Me.btnDel.Size = New System.Drawing.Size(48, 23)
Me.btnDel.TabIndex = 13
Me.btnDel.Text = "删除"
'
'btnSelect
'
Me.btnSelect.Location = New System.Drawing.Point(368, 13)
Me.btnSelect.Name = "btnSelect"
Me.btnSelect.Size = New System.Drawing.Size(48, 23)
Me.btnSelect.TabIndex = 12
Me.btnSelect.Text = "选课"
'
'btnSearch
'
Me.btnSearch.Location = New System.Drawing.Point(288, 13)
Me.btnSearch.Name = "btnSearch"
Me.btnSearch.Size = New System.Drawing.Size(48, 23)
Me.btnSearch.TabIndex = 11
Me.btnSearch.Text = "查询"
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(152, 52)
Me.Label8.Name = "Label8"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -