⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_returnbook.vb

📁 基于VBNET编写的图书馆管理系统
💻 VB
📖 第 1 页 / 共 2 页
字号:
Imports System.Data.OleDb
Imports System.DateTime
Imports System.Math
Public Class frm_ReturnBook
    Inherits System.Windows.Forms.Form
    Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\Library.mdb")
    Dim MyCommand
    Dim e As Exception
    Dim MyCommand2
    Dim MyReader As OleDbDataReader
    Dim MyReader2 As OleDbDataReader
    Dim dbset As New DataSet
    Dim dataA
    Dim currentDate As Date
#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    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

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents BtnReturn As System.Windows.Forms.Button
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button3 As System.Windows.Forms.Button
    Friend WithEvents TxtIssueNo As System.Windows.Forms.TextBox
    Friend WithEvents TxtSN As System.Windows.Forms.TextBox
    Friend WithEvents TxtBookName As System.Windows.Forms.TextBox
    Friend WithEvents TxtAuthorName As System.Windows.Forms.TextBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents TxtReaderNo As System.Windows.Forms.TextBox
    Friend WithEvents TxtReaderName As System.Windows.Forms.TextBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents TxtIssueDate As System.Windows.Forms.TextBox
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents TxtOverDueDate As System.Windows.Forms.TextBox
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents TxtChargeType As System.Windows.Forms.TextBox
    Friend WithEvents TextBox10 As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frm_ReturnBook))
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.TxtChargeType = New System.Windows.Forms.TextBox
        Me.Label9 = New System.Windows.Forms.Label
        Me.TxtOverDueDate = New System.Windows.Forms.TextBox
        Me.Label8 = New System.Windows.Forms.Label
        Me.TxtIssueDate = New System.Windows.Forms.TextBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.TxtReaderName = New System.Windows.Forms.TextBox
        Me.TxtReaderNo = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.TxtAuthorName = New System.Windows.Forms.TextBox
        Me.TxtBookName = New System.Windows.Forms.TextBox
        Me.TxtSN = New System.Windows.Forms.TextBox
        Me.TxtIssueNo = New System.Windows.Forms.TextBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.BtnReturn = New System.Windows.Forms.Button
        Me.Button2 = New System.Windows.Forms.Button
        Me.Button3 = New System.Windows.Forms.Button
        Me.TextBox10 = New System.Windows.Forms.TextBox
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.TxtChargeType)
        Me.GroupBox1.Controls.Add(Me.Label9)
        Me.GroupBox1.Controls.Add(Me.TxtOverDueDate)
        Me.GroupBox1.Controls.Add(Me.Label8)
        Me.GroupBox1.Controls.Add(Me.TxtIssueDate)
        Me.GroupBox1.Controls.Add(Me.Label7)
        Me.GroupBox1.Controls.Add(Me.TxtReaderName)
        Me.GroupBox1.Controls.Add(Me.TxtReaderNo)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Controls.Add(Me.Label5)
        Me.GroupBox1.Controls.Add(Me.TxtAuthorName)
        Me.GroupBox1.Controls.Add(Me.TxtBookName)
        Me.GroupBox1.Controls.Add(Me.TxtSN)
        Me.GroupBox1.Controls.Add(Me.TxtIssueNo)
        Me.GroupBox1.Controls.Add(Me.Label4)
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.Label1)
        Me.GroupBox1.Location = New System.Drawing.Point(10, 9)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(527, 206)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "归还信息"
        '
        'TxtChargeType
        '
        Me.TxtChargeType.BackColor = System.Drawing.SystemColors.Info
        Me.TxtChargeType.Enabled = False
        Me.TxtChargeType.Location = New System.Drawing.Point(81, 164)
        Me.TxtChargeType.Name = "TxtChargeType"
        Me.TxtChargeType.Size = New System.Drawing.Size(164, 21)
        Me.TxtChargeType.TabIndex = 17
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.Location = New System.Drawing.Point(10, 167)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(53, 12)
        Me.Label9.TabIndex = 16
        Me.Label9.Text = "费用类型"
        '
        'TxtOverDueDate
        '
        Me.TxtOverDueDate.BackColor = System.Drawing.SystemColors.Info
        Me.TxtOverDueDate.Enabled = False
        Me.TxtOverDueDate.Location = New System.Drawing.Point(346, 129)
        Me.TxtOverDueDate.Name = "TxtOverDueDate"
        Me.TxtOverDueDate.Size = New System.Drawing.Size(162, 21)
        Me.TxtOverDueDate.TabIndex = 15
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.Location = New System.Drawing.Point(278, 132)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(53, 12)
        Me.Label8.TabIndex = 14
        Me.Label8.Text = "过期期限"
        '
        'TxtIssueDate
        '
        Me.TxtIssueDate.BackColor = System.Drawing.SystemColors.Info
        Me.TxtIssueDate.Enabled = False
        Me.TxtIssueDate.Location = New System.Drawing.Point(346, 95)
        Me.TxtIssueDate.Name = "TxtIssueDate"
        Me.TxtIssueDate.Size = New System.Drawing.Size(162, 21)
        Me.TxtIssueDate.TabIndex = 13
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.Location = New System.Drawing.Point(278, 98)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(53, 12)
        Me.Label7.TabIndex = 12
        Me.Label7.Text = "借阅日期"
        '
        'TxtReaderName
        '
        Me.TxtReaderName.BackColor = System.Drawing.SystemColors.Info
        Me.TxtReaderName.Enabled = False
        Me.TxtReaderName.Location = New System.Drawing.Point(346, 60)
        Me.TxtReaderName.Name = "TxtReaderName"
        Me.TxtReaderName.Size = New System.Drawing.Size(163, 21)
        Me.TxtReaderName.TabIndex = 11
        '
        'TxtReaderNo
        '
        Me.TxtReaderNo.BackColor = System.Drawing.SystemColors.Info
        Me.TxtReaderNo.Enabled = False
        Me.TxtReaderNo.Location = New System.Drawing.Point(346, 26)
        Me.TxtReaderNo.Name = "TxtReaderNo"
        Me.TxtReaderNo.Size = New System.Drawing.Size(163, 21)
        Me.TxtReaderNo.TabIndex = 10
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.Location = New System.Drawing.Point(278, 63)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(53, 12)
        Me.Label6.TabIndex = 9
        Me.Label6.Text = "读者姓名"
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.Location = New System.Drawing.Point(278, 29)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(53, 12)
        Me.Label5.TabIndex = 8
        Me.Label5.Text = "读者编号"
        '
        'TxtAuthorName
        '
        Me.TxtAuthorName.BackColor = System.Drawing.SystemColors.Info
        Me.TxtAuthorName.Enabled = False
        Me.TxtAuthorName.Location = New System.Drawing.Point(82, 129)
        Me.TxtAuthorName.Name = "TxtAuthorName"
        Me.TxtAuthorName.Size = New System.Drawing.Size(163, 21)
        Me.TxtAuthorName.TabIndex = 7
        '
        'TxtBookName
        '
        Me.TxtBookName.BackColor = System.Drawing.SystemColors.Info
        Me.TxtBookName.Enabled = False
        Me.TxtBookName.Location = New System.Drawing.Point(82, 95)
        Me.TxtBookName.Name = "TxtBookName"
        Me.TxtBookName.Size = New System.Drawing.Size(163, 21)
        Me.TxtBookName.TabIndex = 6
        '
        'TxtSN
        '
        Me.TxtSN.BackColor = System.Drawing.SystemColors.Info
        Me.TxtSN.Enabled = False
        Me.TxtSN.Location = New System.Drawing.Point(82, 60)
        Me.TxtSN.Name = "TxtSN"
        Me.TxtSN.Size = New System.Drawing.Size(163, 21)
        Me.TxtSN.TabIndex = 5
        '
        'TxtIssueNo
        '
        Me.TxtIssueNo.Location = New System.Drawing.Point(82, 26)
        Me.TxtIssueNo.Name = "TxtIssueNo"
        Me.TxtIssueNo.Size = New System.Drawing.Size(163, 21)
        Me.TxtIssueNo.TabIndex = 4
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.Location = New System.Drawing.Point(10, 129)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(53, 12)
        Me.Label4.TabIndex = 3
        Me.Label4.Text = "作者姓名"
        '
        'Label3

⌨️ 快捷键说明

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