📄 admin_stumanage.vb
字号:
Imports System.Data
'引入数据库操作类命名空间
Imports System.Data.OleDb
'引入ADO.NET操作命名空间
Public Class win_stumanage
Inherits System.Windows.Forms.Form
Dim sqlstr, sqlstr2 As String, gsqlstr As String = "select * from studentinfo" 'SQL语句标记
Dim objDS, objDS2 As DataSet '数据在内存中的缓存
Dim stuid As String, i As Integer
Public list As String = "id", zandd As String = "DESC"
#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 GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents ListView1 As System.Windows.Forms.ListView
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader2 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader3 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader4 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader5 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader6 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader7 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader8 As System.Windows.Forms.ColumnHeader
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents tbkeyword As System.Windows.Forms.TextBox
Friend WithEvents cbby As System.Windows.Forms.ComboBox
Friend WithEvents btseach As System.Windows.Forms.Button
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 LabeID As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents tbstuname As System.Windows.Forms.TextBox
Friend WithEvents cbclass As System.Windows.Forms.ComboBox
Friend WithEvents tbphone As System.Windows.Forms.TextBox
Friend WithEvents btmodi As System.Windows.Forms.Button
Friend WithEvents btdelete As System.Windows.Forms.Button
Friend WithEvents btclose As System.Windows.Forms.Button
Friend WithEvents tbstulearnid As System.Windows.Forms.TextBox
Friend WithEvents cblist As System.Windows.Forms.ComboBox
Friend WithEvents cbzandd As System.Windows.Forms.ComboBox
Friend WithEvents btadd As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(win_stumanage))
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.ListView1 = New System.Windows.Forms.ListView
Me.ColumnHeader1 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader2 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader3 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader4 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader5 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader6 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader7 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader8 = New System.Windows.Forms.ColumnHeader
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.btadd = New System.Windows.Forms.Button
Me.btclose = New System.Windows.Forms.Button
Me.btdelete = New System.Windows.Forms.Button
Me.btmodi = New System.Windows.Forms.Button
Me.tbphone = New System.Windows.Forms.TextBox
Me.Label9 = New System.Windows.Forms.Label
Me.LabeID = New System.Windows.Forms.Label
Me.cbclass = New System.Windows.Forms.ComboBox
Me.Label8 = New System.Windows.Forms.Label
Me.tbstulearnid = New System.Windows.Forms.TextBox
Me.tbstuname = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.tbkeyword = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.btseach = New System.Windows.Forms.Button
Me.cbby = New System.Windows.Forms.ComboBox
Me.Label3 = New System.Windows.Forms.Label
Me.GroupBox4 = New System.Windows.Forms.GroupBox
Me.cbzandd = New System.Windows.Forms.ComboBox
Me.Label4 = New System.Windows.Forms.Label
Me.cblist = New System.Windows.Forms.ComboBox
Me.Label2 = New System.Windows.Forms.Label
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.GroupBox4.SuspendLayout()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.ListView1)
Me.GroupBox1.ForeColor = System.Drawing.SystemColors.ControlDark
Me.GroupBox1.Location = New System.Drawing.Point(0, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(664, 344)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "学生列表"
'
'ListView1
'
Me.ListView1.BackColor = System.Drawing.Color.DarkGray
Me.ListView1.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader1, Me.ColumnHeader2, Me.ColumnHeader3, Me.ColumnHeader4, Me.ColumnHeader5, Me.ColumnHeader6, Me.ColumnHeader7, Me.ColumnHeader8})
Me.ListView1.FullRowSelect = True
Me.ListView1.GridLines = True
Me.ListView1.Location = New System.Drawing.Point(8, 16)
Me.ListView1.Name = "ListView1"
Me.ListView1.Size = New System.Drawing.Size(648, 320)
Me.ListView1.TabIndex = 14
Me.ListView1.View = System.Windows.Forms.View.Details
'
'ColumnHeader1
'
Me.ColumnHeader1.Text = "编号"
Me.ColumnHeader1.Width = 48
'
'ColumnHeader2
'
Me.ColumnHeader2.Text = "学生名"
Me.ColumnHeader2.Width = 77
'
'ColumnHeader3
'
Me.ColumnHeader3.Text = "学号"
Me.ColumnHeader3.Width = 83
'
'ColumnHeader4
'
Me.ColumnHeader4.Text = "班级"
'
'ColumnHeader5
'
Me.ColumnHeader5.Text = "联系电话"
Me.ColumnHeader5.Width = 94
'
'ColumnHeader6
'
Me.ColumnHeader6.Text = "借阅次数"
'
'ColumnHeader7
'
Me.ColumnHeader7.Text = "登陆次数"
'
'ColumnHeader8
'
Me.ColumnHeader8.Text = "最后登陆时间"
Me.ColumnHeader8.Width = 161
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.btadd)
Me.GroupBox2.Controls.Add(Me.btclose)
Me.GroupBox2.Controls.Add(Me.btdelete)
Me.GroupBox2.Controls.Add(Me.btmodi)
Me.GroupBox2.Controls.Add(Me.tbphone)
Me.GroupBox2.Controls.Add(Me.Label9)
Me.GroupBox2.Controls.Add(Me.LabeID)
Me.GroupBox2.Controls.Add(Me.cbclass)
Me.GroupBox2.Controls.Add(Me.Label8)
Me.GroupBox2.Controls.Add(Me.tbstulearnid)
Me.GroupBox2.Controls.Add(Me.tbstuname)
Me.GroupBox2.Controls.Add(Me.Label7)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.ForeColor = System.Drawing.SystemColors.ControlDark
Me.GroupBox2.Location = New System.Drawing.Point(312, 344)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(352, 96)
Me.GroupBox2.TabIndex = 1
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "学生资料"
'
'btadd
'
Me.btadd.ForeColor = System.Drawing.SystemColors.ControlText
Me.btadd.Location = New System.Drawing.Point(152, 64)
Me.btadd.Name = "btadd"
Me.btadd.Size = New System.Drawing.Size(40, 24)
Me.btadd.TabIndex = 5
Me.btadd.Text = "添加"
'
'btclose
'
Me.btclose.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.btclose.ForeColor = System.Drawing.SystemColors.ControlText
Me.btclose.Location = New System.Drawing.Point(296, 64)
Me.btclose.Name = "btclose"
Me.btclose.Size = New System.Drawing.Size(40, 24)
Me.btclose.TabIndex = 8
Me.btclose.Text = "关闭"
'
'btdelete
'
Me.btdelete.ForeColor = System.Drawing.SystemColors.ControlText
Me.btdelete.Location = New System.Drawing.Point(248, 64)
Me.btdelete.Name = "btdelete"
Me.btdelete.Size = New System.Drawing.Size(40, 24)
Me.btdelete.TabIndex = 7
Me.btdelete.Text = "删除"
'
'btmodi
'
Me.btmodi.ForeColor = System.Drawing.SystemColors.ControlText
Me.btmodi.Location = New System.Drawing.Point(200, 64)
Me.btmodi.Name = "btmodi"
Me.btmodi.Size = New System.Drawing.Size(40, 24)
Me.btmodi.TabIndex = 6
Me.btmodi.Text = "修改"
'
'tbphone
'
Me.tbphone.Location = New System.Drawing.Point(240, 40)
Me.tbphone.MaxLength = 11
Me.tbphone.Name = "tbphone"
Me.tbphone.Size = New System.Drawing.Size(88, 21)
Me.tbphone.TabIndex = 4
Me.tbphone.Text = ""
'
'Label9
'
Me.Label9.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label9.Location = New System.Drawing.Point(184, 40)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(64, 24)
Me.Label9.TabIndex = 9
Me.Label9.Text = "联系电话:"
'
'LabeID
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -