借阅信息.vb

来自「本页只为图象处理爱好者交流之用, 未经本人同意, 请勿下载. 另,本书及所附」· VB 代码 · 共 511 行 · 第 1/2 页

VB
511
字号
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 lbl借阅日期 As System.Windows.Forms.Label
    Friend WithEvents edit证号 As System.Windows.Forms.TextBox
    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 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 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.lbl借阅日期 = New System.Windows.Forms.Label()
        Me.edit证号 = New System.Windows.Forms.TextBox()
        Me.edit书号 = New System.Windows.Forms.TextBox()
        Me.edit借阅日期 = New System.Windows.Forms.TextBox()
        Me.lbl应归还日期 = New System.Windows.Forms.Label()
        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.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;Persist Security Info=False;User ID=sa;Initial Catalog=Library;" & _
        "Data Source=yinlm;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=40" & _
        "96;Workstation ID=YINLM;Use Encryption for Data=False;Tag with column collation " & _
        "when possible=False"
        '
        'OleDbInsertCommand1
        '
        Me.OleDbInsertCommand1.CommandText = "INSERT INTO 借阅信息(证号, 书号, 借阅日期, 应归还日期, 实际归还日期, 续借) VALUES (?, ?, ?, ?, ?, ?); SELE" & _
        "CT 证号, 书号, 借阅日期, 应归还日期, 实际归还日期, 续借 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, "借阅日期"))
        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("借阅日期", "借阅日期"), New System.Data.Common.DataColumnMapping("应归还日期", "应归还日期"), New System.Data.Common.DataColumnMapping("实际归还日期", "实际归还日期"), New System.Data.Common.DataColumnMapping("续借", "续借")})})
        '
        'btnUpdate
        '
        Me.btnUpdate.Location = New System.Drawing.Point(280, 224)
        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(280, 256)
        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(16, 256)
        Me.btnNavFirst.Name = "btnNavFirst"
        Me.btnNavFirst.Size = New System.Drawing.Size(40, 23)
        Me.btnNavFirst.TabIndex = 15
        Me.btnNavFirst.Text = "<<"
        '
        'btnNavPrev
        '
        Me.btnNavPrev.Location = New System.Drawing.Point(56, 256)
        Me.btnNavPrev.Name = "btnNavPrev"
        Me.btnNavPrev.Size = New System.Drawing.Size(35, 23)
        Me.btnNavPrev.TabIndex = 16
        Me.btnNavPrev.Text = "<"
        '
        'lblNavLocation
        '
        Me.lblNavLocation.BackColor = System.Drawing.Color.White
        Me.lblNavLocation.Location = New System.Drawing.Point(88, 256)
        Me.lblNavLocation.Name = "lblNavLocation"
        Me.lblNavLocation.Size = New System.Drawing.Size(95, 23)
        Me.lblNavLocation.TabIndex = 17
        Me.lblNavLocation.Text = "无记录"
        Me.lblNavLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'btnNavNext
        '
        Me.btnNavNext.Location = New System.Drawing.Point(184, 256)
        Me.btnNavNext.Name = "btnNavNext"
        Me.btnNavNext.Size = New System.Drawing.Size(35, 23)
        Me.btnNavNext.TabIndex = 18
        Me.btnNavNext.Text = ">"
        '
        'btnLast
        '
        Me.btnLast.Location = New System.Drawing.Point(224, 256)
        Me.btnLast.Name = "btnLast"
        Me.btnLast.Size = New System.Drawing.Size(40, 23)
        Me.btnLast.TabIndex = 19
        Me.btnLast.Text = ">>"
        '
        'btnAdd
        '
        Me.btnAdd.Location = New System.Drawing.Point(288, 24)
        Me.btnAdd.Name = "btnAdd"
        Me.btnAdd.TabIndex = 20
        Me.btnAdd.Text = "添加(&A)"
        '
        'btnDelete
        '
        Me.btnDelete.Location = New System.Drawing.Point(288, 56)
        Me.btnDelete.Name = "btnDelete"
        Me.btnDelete.TabIndex = 21
        Me.btnDelete.Text = "删除(&D)"
        '
        'btnCancel
        '
        Me.btnCancel.Location = New System.Drawing.Point(288, 88)
        Me.btnCancel.Name = "btnCancel"
        Me.btnCancel.TabIndex = 22
        Me.btnCancel.Text = "取消(&C)"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.lbl证号, Me.lbl书号, Me.lbl借阅日期, Me.edit证号, Me.edit书号, Me.edit借阅日期, Me.lbl应归还日期, Me.lbl实际归还日期, Me.lbl续借, Me.edit应归还日期, Me.edit实际归还日期, Me.edit续借})
        Me.GroupBox1.Location = New System.Drawing.Point(16, 16)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(248, 224)
        Me.GroupBox1.TabIndex = 23
        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(29, 14)
        Me.lbl证号.TabIndex = 15
        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 = 16
        Me.lbl书号.Text = "书号"
        '
        'lbl借阅日期
        '
        Me.lbl借阅日期.AutoSize = True
        Me.lbl借阅日期.Location = New System.Drawing.Point(16, 88)
        Me.lbl借阅日期.Name = "lbl借阅日期"
        Me.lbl借阅日期.Size = New System.Drawing.Size(54, 14)
        Me.lbl借阅日期.TabIndex = 17
        Me.lbl借阅日期.Text = "借阅日期"
        '
        'edit证号
        '
        Me.edit证号.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.objLib借阅信息, "借阅信息.证号"))
        Me.edit证号.Location = New System.Drawing.Point(112, 24)
        Me.edit证号.Name = "edit证号"
        Me.edit证号.Size = New System.Drawing.Size(120, 21)
        Me.edit证号.TabIndex = 18
        Me.edit证号.Text = ""
        '
        'edit书号
        '
        Me.edit书号.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.objLib借阅信息, "借阅信息.书号"))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?