📄 管理者信息.vb
字号:
Public Class 管理者信息
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写处置以清理组件列表。
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 OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents OleDbInsertCommand1 As System.Data.OleDb.OleDbCommand
Friend WithEvents objLib管理者信息 As 图书馆管理.Lib管理者信息
Friend WithEvents OleDbConnection1 As System.Data.OleDb.OleDbConnection
Friend WithEvents OleDbDataAdapter1 As System.Data.OleDb.OleDbDataAdapter
Friend WithEvents btnUpdate As System.Windows.Forms.Button
Friend WithEvents btnCancelAll As System.Windows.Forms.Button
Friend WithEvents btnNavFirst As System.Windows.Forms.Button
Friend WithEvents btnNavPrev As System.Windows.Forms.Button
Friend WithEvents lblNavLocation As System.Windows.Forms.Label
Friend WithEvents btnNavNext As System.Windows.Forms.Button
Friend WithEvents btnLast As System.Windows.Forms.Button
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnDelete As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents lbl用户名称 As System.Windows.Forms.Label
Friend WithEvents lbl密码 As System.Windows.Forms.Label
Friend WithEvents edit用户名称 As System.Windows.Forms.TextBox
Friend WithEvents edit密码 As System.Windows.Forms.TextBox
Friend WithEvents lbl权限 As System.Windows.Forms.Label
Friend WithEvents edit权限 As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand()
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection()
Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand()
Me.objLib管理者信息 = New 图书馆管理.Lib管理者信息()
Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter()
Me.btnUpdate = New System.Windows.Forms.Button()
Me.btnCancelAll = New System.Windows.Forms.Button()
Me.btnNavFirst = New System.Windows.Forms.Button()
Me.btnNavPrev = New System.Windows.Forms.Button()
Me.lblNavLocation = New System.Windows.Forms.Label()
Me.btnNavNext = New System.Windows.Forms.Button()
Me.btnLast = New System.Windows.Forms.Button()
Me.btnAdd = New System.Windows.Forms.Button()
Me.btnDelete = New System.Windows.Forms.Button()
Me.btnCancel = New System.Windows.Forms.Button()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.lbl用户名称 = New System.Windows.Forms.Label()
Me.lbl密码 = New System.Windows.Forms.Label()
Me.edit用户名称 = New System.Windows.Forms.TextBox()
Me.edit密码 = New System.Windows.Forms.TextBox()
Me.lbl权限 = New System.Windows.Forms.Label()
Me.edit权限 = New System.Windows.Forms.TextBox()
CType(Me.objLib管理者信息, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'OleDbSelectCommand1
'
Me.OleDbSelectCommand1.CommandText = "SELECT 用户名称, 密码, 权限 FROM 管理者信息"
Me.OleDbSelectCommand1.Connection = Me.OleDbConnection1
'
'OleDbConnection1
'
Me.OleDbConnection1.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Librar" & _
"y;Data Source=yinlm;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=" & _
"4096;Workstation ID=YINLM;Use Encryption for Data=False;Tag with column collatio" & _
"n when possible=False"
'
'OleDbInsertCommand1
'
Me.OleDbInsertCommand1.CommandText = "INSERT INTO 管理者信息(用户名称, 密码, 权限) VALUES (?, ?, ?); SELECT 用户名称, 密码, 权限 FROM 管理者信息"
Me.OleDbInsertCommand1.Connection = Me.OleDbConnection1
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("用户名称", System.Data.OleDb.OleDbType.VarChar, 10, "用户名称"))
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("密码", System.Data.OleDb.OleDbType.VarChar, 10, "密码"))
Me.OleDbInsertCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("权限", System.Data.OleDb.OleDbType.VarChar, 10, "权限"))
'
'objLib管理者信息
'
Me.objLib管理者信息.DataSetName = "Lib管理者信息"
Me.objLib管理者信息.Locale = New System.Globalization.CultureInfo("zh-CN")
Me.objLib管理者信息.Namespace = "http://www.tempuri.org/Lib管理者信息.xsd"
'
'OleDbDataAdapter1
'
Me.OleDbDataAdapter1.InsertCommand = Me.OleDbInsertCommand1
Me.OleDbDataAdapter1.SelectCommand = Me.OleDbSelectCommand1
Me.OleDbDataAdapter1.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "管理者信息", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("用户名称", "用户名称"), New System.Data.Common.DataColumnMapping("密码", "密码"), New System.Data.Common.DataColumnMapping("权限", "权限")})})
'
'btnUpdate
'
Me.btnUpdate.Location = New System.Drawing.Point(256, 144)
Me.btnUpdate.Name = "btnUpdate"
Me.btnUpdate.Size = New System.Drawing.Size(88, 23)
Me.btnUpdate.TabIndex = 1
Me.btnUpdate.Text = "更新(&U)"
'
'btnCancelAll
'
Me.btnCancelAll.Location = New System.Drawing.Point(256, 176)
Me.btnCancelAll.Name = "btnCancelAll"
Me.btnCancelAll.Size = New System.Drawing.Size(88, 23)
Me.btnCancelAll.TabIndex = 2
Me.btnCancelAll.Text = "全部取消(&N)"
'
'btnNavFirst
'
Me.btnNavFirst.Location = New System.Drawing.Point(8, 144)
Me.btnNavFirst.Name = "btnNavFirst"
Me.btnNavFirst.Size = New System.Drawing.Size(40, 23)
Me.btnNavFirst.TabIndex = 9
Me.btnNavFirst.Text = "<<"
'
'btnNavPrev
'
Me.btnNavPrev.Location = New System.Drawing.Point(48, 144)
Me.btnNavPrev.Name = "btnNavPrev"
Me.btnNavPrev.Size = New System.Drawing.Size(35, 23)
Me.btnNavPrev.TabIndex = 10
Me.btnNavPrev.Text = "<"
'
'lblNavLocation
'
Me.lblNavLocation.BackColor = System.Drawing.Color.White
Me.lblNavLocation.Location = New System.Drawing.Point(80, 144)
Me.lblNavLocation.Name = "lblNavLocation"
Me.lblNavLocation.Size = New System.Drawing.Size(88, 23)
Me.lblNavLocation.TabIndex = 11
Me.lblNavLocation.Text = "无记录"
Me.lblNavLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'btnNavNext
'
Me.btnNavNext.Location = New System.Drawing.Point(168, 144)
Me.btnNavNext.Name = "btnNavNext"
Me.btnNavNext.Size = New System.Drawing.Size(35, 23)
Me.btnNavNext.TabIndex = 12
Me.btnNavNext.Text = ">"
'
'btnLast
'
Me.btnLast.Location = New System.Drawing.Point(203, 144)
Me.btnLast.Name = "btnLast"
Me.btnLast.Size = New System.Drawing.Size(40, 23)
Me.btnLast.TabIndex = 13
Me.btnLast.Text = ">>"
'
'btnAdd
'
Me.btnAdd.Location = New System.Drawing.Point(8, 176)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.TabIndex = 14
Me.btnAdd.Text = "添加(&A)"
'
'btnDelete
'
Me.btnDelete.Location = New System.Drawing.Point(88, 176)
Me.btnDelete.Name = "btnDelete"
Me.btnDelete.TabIndex = 15
Me.btnDelete.Text = "删除(&D)"
'
'btnCancel
'
Me.btnCancel.Location = New System.Drawing.Point(168, 176)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.TabIndex = 16
Me.btnCancel.Text = "取消(&C)"
'
'GroupBox1
'
Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.lbl用户名称, Me.lbl密码, Me.edit用户名称, Me.edit密码, Me.lbl权限, Me.edit权限})
Me.GroupBox1.Location = New System.Drawing.Point(8, 8)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(336, 128)
Me.GroupBox1.TabIndex = 17
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "管理者信息"
'
'lbl用户名称
'
Me.lbl用户名称.AutoSize = True
Me.lbl用户名称.Location = New System.Drawing.Point(16, 24)
Me.lbl用户名称.Name = "lbl用户名称"
Me.lbl用户名称.Size = New System.Drawing.Size(54, 14)
Me.lbl用户名称.TabIndex = 9
Me.lbl用户名称.Text = "用户名称"
'
'lbl密码
'
Me.lbl密码.AutoSize = True
Me.lbl密码.Location = New System.Drawing.Point(16, 56)
Me.lbl密码.Name = "lbl密码"
Me.lbl密码.Size = New System.Drawing.Size(29, 14)
Me.lbl密码.TabIndex = 10
Me.lbl密码.Text = "密码"
'
'edit用户名称
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -