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

📄 frmborrowbook.vb

📁 The Management Information System of Library using .NET
💻 VB
📖 第 1 页 / 共 3 页
字号:
Imports System.Data.SqlClient
Public Class frmBorrowBook
    Inherits library.frmBase
    Dim CurBorrowNo As Int16 '当前借书 数
    Dim AllborrowNo As Int16 '总共借书数
    Dim BorrowDays As Int16  '可借书最大天数
    Dim BorrowBooks As Int16 '可借书最大册数

    Dim PubAu_id As String
    Dim PubBook_code As String
    Dim PubAuIsLost As Boolean '图书证是否丢失 丢失为true

#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 txtAu_adr As library.mytextbox
    Friend WithEvents txtAu_name As library.mytextbox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents txtAu_id As library.mytextbox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    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 Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents txtBook_price As library.mytextbox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents txtBook_author As library.mytextbox
    Friend WithEvents txtBook_page As library.mytextbox
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents txtBook_isbn As library.mytextbox
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents txtBook_pub As library.mytextbox
    Friend WithEvents Label14 As System.Windows.Forms.Label
    Friend WithEvents txtBook_name As library.mytextbox
    Friend WithEvents Label15 As System.Windows.Forms.Label
    Friend WithEvents txtBook_code As library.mytextbox
    Friend WithEvents Label16 As System.Windows.Forms.Label
    Friend WithEvents Label17 As System.Windows.Forms.Label
    Friend WithEvents Label18 As System.Windows.Forms.Label
    Friend WithEvents Label19 As System.Windows.Forms.Label
    Friend WithEvents Label20 As System.Windows.Forms.Label
    Friend WithEvents dbgBorrowList As System.Windows.Forms.DataGrid
    Friend WithEvents txtAu_adddate As library.mytextbox
    Friend WithEvents txtAu_sort As library.mytextbox
    Friend WithEvents txtAu_sex As library.mytextbox
    Friend WithEvents txtTotalBorrowNo As library.mytextbox
    Friend WithEvents txtBook_remarks As library.mytextbox
    Friend WithEvents txtBook_sort As library.mytextbox
    Friend WithEvents txtBook_pubdate As library.mytextbox
    Friend WithEvents txtBook_place As library.mytextbox
    Friend WithEvents txtBorrowQinkuang As library.mytextbox
    Friend WithEvents lblIsInLib As System.Windows.Forms.Label
    Friend WithEvents txtMaxBorrowDays As library.mytextbox
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
    Friend WithEvents ToolBarButton2 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbtnQuery As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbtnReset As System.Windows.Forms.ToolBarButton
    Friend WithEvents ToolBarButton3 As System.Windows.Forms.ToolBarButton
    Friend WithEvents tbtnExit As System.Windows.Forms.ToolBarButton
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmBorrowBook))
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.txtMaxBorrowDays = New library.mytextbox
        Me.Label10 = New System.Windows.Forms.Label
        Me.txtTotalBorrowNo = New library.mytextbox
        Me.Label8 = New System.Windows.Forms.Label
        Me.txtAu_adddate = New library.mytextbox
        Me.txtBorrowQinkuang = New library.mytextbox
        Me.Label7 = New System.Windows.Forms.Label
        Me.txtAu_sort = New library.mytextbox
        Me.txtAu_sex = New library.mytextbox
        Me.txtAu_adr = New library.mytextbox
        Me.txtAu_name = New library.mytextbox
        Me.Label6 = New System.Windows.Forms.Label
        Me.txtAu_id = New library.mytextbox
        Me.Label5 = New System.Windows.Forms.Label
        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.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.txtBook_remarks = New library.mytextbox
        Me.txtBook_sort = New library.mytextbox
        Me.txtBook_pubdate = New library.mytextbox
        Me.txtBook_place = New library.mytextbox
        Me.txtBook_price = New library.mytextbox
        Me.Label12 = New System.Windows.Forms.Label
        Me.Label11 = New System.Windows.Forms.Label
        Me.txtBook_author = New library.mytextbox
        Me.txtBook_page = New library.mytextbox
        Me.Label9 = New System.Windows.Forms.Label
        Me.txtBook_isbn = New library.mytextbox
        Me.Label13 = New System.Windows.Forms.Label
        Me.txtBook_pub = New library.mytextbox
        Me.Label14 = New System.Windows.Forms.Label
        Me.txtBook_name = New library.mytextbox
        Me.Label15 = New System.Windows.Forms.Label
        Me.txtBook_code = New library.mytextbox
        Me.Label16 = New System.Windows.Forms.Label
        Me.Label17 = New System.Windows.Forms.Label
        Me.Label18 = New System.Windows.Forms.Label
        Me.Label19 = New System.Windows.Forms.Label
        Me.Label20 = New System.Windows.Forms.Label
        Me.lblIsInLib = New System.Windows.Forms.Label
        Me.dbgBorrowList = New System.Windows.Forms.DataGrid
        Me.ToolBar1 = New System.Windows.Forms.ToolBar
        Me.ToolBarButton2 = New System.Windows.Forms.ToolBarButton
        Me.tbtnQuery = New System.Windows.Forms.ToolBarButton
        Me.tbtnReset = New System.Windows.Forms.ToolBarButton
        Me.ToolBarButton3 = New System.Windows.Forms.ToolBarButton
        Me.tbtnExit = New System.Windows.Forms.ToolBarButton
        Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        CType(Me.dbgBorrowList, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        '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.txtMaxBorrowDays)
        Me.GroupBox1.Controls.Add(Me.Label10)
        Me.GroupBox1.Controls.Add(Me.txtTotalBorrowNo)
        Me.GroupBox1.Controls.Add(Me.Label8)
        Me.GroupBox1.Controls.Add(Me.txtAu_adddate)
        Me.GroupBox1.Controls.Add(Me.txtBorrowQinkuang)
        Me.GroupBox1.Controls.Add(Me.Label7)
        Me.GroupBox1.Controls.Add(Me.txtAu_sort)
        Me.GroupBox1.Controls.Add(Me.txtAu_sex)
        Me.GroupBox1.Controls.Add(Me.txtAu_adr)
        Me.GroupBox1.Controls.Add(Me.txtAu_name)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Controls.Add(Me.txtAu_id)
        Me.GroupBox1.Controls.Add(Me.Label5)
        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(8, 0)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(704, 96)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "读者基本情况"
        '
        'txtMaxBorrowDays
        '
        Me.txtMaxBorrowDays.BackColor = System.Drawing.Color.White
        Me.txtMaxBorrowDays.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtMaxBorrowDays.Location = New System.Drawing.Point(520, 64)
        Me.txtMaxBorrowDays.Name = "txtMaxBorrowDays"
        Me.txtMaxBorrowDays.ReadOnly = True
        Me.txtMaxBorrowDays.Size = New System.Drawing.Size(104, 21)
        Me.txtMaxBorrowDays.TabIndex = 51
        Me.txtMaxBorrowDays.TabStop = False
        Me.txtMaxBorrowDays.Text = ""
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(432, 64)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(88, 16)
        Me.Label10.TabIndex = 50
        Me.Label10.Text = "最大借书时间:"
        '
        'txtTotalBorrowNo
        '
        Me.txtTotalBorrowNo.BackColor = System.Drawing.Color.White
        Me.txtTotalBorrowNo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtTotalBorrowNo.Location = New System.Drawing.Point(296, 64)
        Me.txtTotalBorrowNo.Name = "txtTotalBorrowNo"
        Me.txtTotalBorrowNo.ReadOnly = True
        Me.txtTotalBorrowNo.Size = New System.Drawing.Size(128, 21)
        Me.txtTotalBorrowNo.TabIndex = 49
        Me.txtTotalBorrowNo.TabStop = False
        Me.txtTotalBorrowNo.Text = ""
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(224, 64)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(64, 16)
        Me.Label8.TabIndex = 48
        Me.Label8.Text = "累计借书:"
        '
        'txtAu_adddate
        '
        Me.txtAu_adddate.BackColor = System.Drawing.Color.White
        Me.txtAu_adddate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtAu_adddate.Location = New System.Drawing.Point(496, 40)
        Me.txtAu_adddate.Name = "txtAu_adddate"
        Me.txtAu_adddate.ReadOnly = True
        Me.txtAu_adddate.Size = New System.Drawing.Size(128, 21)
        Me.txtAu_adddate.TabIndex = 47
        Me.txtAu_adddate.TabStop = False
        Me.txtAu_adddate.Text = ""
        '
        'txtBorrowQinkuang
        '
        Me.txtBorrowQinkuang.BackColor = System.Drawing.Color.White
        Me.txtBorrowQinkuang.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtBorrowQinkuang.Location = New System.Drawing.Point(88, 64)
        Me.txtBorrowQinkuang.Name = "txtBorrowQinkuang"
        Me.txtBorrowQinkuang.ReadOnly = True
        Me.txtBorrowQinkuang.Size = New System.Drawing.Size(128, 21)
        Me.txtBorrowQinkuang.TabIndex = 46
        Me.txtBorrowQinkuang.TabStop = False
        Me.txtBorrowQinkuang.Text = ""
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(16, 64)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(64, 16)
        Me.Label7.TabIndex = 45
        Me.Label7.Text = "借阅情况:"
        '
        'txtAu_sort
        '
        Me.txtAu_sort.BackColor = System.Drawing.Color.White
        Me.txtAu_sort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtAu_sort.Location = New System.Drawing.Point(296, 40)
        Me.txtAu_sort.Name = "txtAu_sort"
        Me.txtAu_sort.ReadOnly = True
        Me.txtAu_sort.Size = New System.Drawing.Size(128, 21)
        Me.txtAu_sort.TabIndex = 44
        Me.txtAu_sort.TabStop = False
        Me.txtAu_sort.Text = ""
        '
        'txtAu_sex
        '
        Me.txtAu_sex.BackColor = System.Drawing.Color.White
        Me.txtAu_sex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtAu_sex.Location = New System.Drawing.Point(88, 40)
        Me.txtAu_sex.Name = "txtAu_sex"
        Me.txtAu_sex.ReadOnly = True
        Me.txtAu_sex.Size = New System.Drawing.Size(128, 21)
        Me.txtAu_sex.TabIndex = 43
        Me.txtAu_sex.TabStop = False
        Me.txtAu_sex.Text = ""
        '
        'txtAu_adr
        '
        Me.txtAu_adr.BackColor = System.Drawing.Color.White
        Me.txtAu_adr.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtAu_adr.Location = New System.Drawing.Point(496, 16)
        Me.txtAu_adr.Name = "txtAu_adr"
        Me.txtAu_adr.ReadOnly = True
        Me.txtAu_adr.Size = New System.Drawing.Size(128, 21)
        Me.txtAu_adr.TabIndex = 39
        Me.txtAu_adr.TabStop = False
        Me.txtAu_adr.Text = ""
        '
        'txtAu_name
        '
        Me.txtAu_name.BackColor = System.Drawing.Color.White
        Me.txtAu_name.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtAu_name.Location = New System.Drawing.Point(296, 16)
        Me.txtAu_name.Name = "txtAu_name"
        Me.txtAu_name.ReadOnly = True
        Me.txtAu_name.Size = New System.Drawing.Size(128, 21)
        Me.txtAu_name.TabIndex = 31
        Me.txtAu_name.TabStop = False
        Me.txtAu_name.Text = ""
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(224, 40)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(64, 16)
        Me.Label6.TabIndex = 40
        Me.Label6.Text = "读者类别:"
        '
        'txtAu_id
        '
        Me.txtAu_id.BackColor = System.Drawing.SystemColors.Info
        Me.txtAu_id.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txtAu_id.Location = New System.Drawing.Point(88, 16)
        Me.txtAu_id.Name = "txtAu_id"
        Me.txtAu_id.Size = New System.Drawing.Size(128, 21)
        Me.txtAu_id.TabIndex = 0
        Me.txtAu_id.Text = ""
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(432, 40)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(64, 16)
        Me.Label5.TabIndex = 37
        Me.Label5.Text = "办证日期:"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(432, 16)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(64, 16)
        Me.Label4.TabIndex = 36
        Me.Label4.Text = "读者地址:"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(16, 40)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(64, 16)
        Me.Label3.TabIndex = 34
        Me.Label3.Text = "读者性别:"
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(224, 16)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(64, 16)
        Me.Label2.TabIndex = 32
        Me.Label2.Text = "读者姓名:"
        '
        'Label1
        '
        Me.Label1.ForeColor = System.Drawing.Color.Red
        Me.Label1.Location = New System.Drawing.Point(16, 16)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(64, 16)
        Me.Label1.TabIndex = 29
        Me.Label1.Text = "图书证号:"
        '
        'GroupBox2
        '
        Me.GroupBox2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.GroupBox2.Controls.Add(Me.txtBook_remarks)

⌨️ 快捷键说明

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