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

📄 transaction.vb

📁 图书管理系统最新的
💻 VB
📖 第 1 页 / 共 3 页
字号:
Imports System.Data.SqlClient

Public Class transaction
    Inherits System.Windows.Forms.Form

#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 btn_close As System.Windows.Forms.Button
    Friend WithEvents dg_books As System.Windows.Forms.DataGrid
    Friend WithEvents lbl_retdate As System.Windows.Forms.Label
    Friend WithEvents lbl_issuedate As System.Windows.Forms.Label
    Friend WithEvents lbl_booktitle As System.Windows.Forms.Label
    Friend WithEvents lbl_bookid As System.Windows.Forms.Label
    Friend WithEvents lbl_studid As System.Windows.Forms.Label
    Friend WithEvents lbl_fine As System.Windows.Forms.Label
    Friend WithEvents lbl_fine_disp As System.Windows.Forms.Label
    Friend WithEvents Lbl_disc As System.Windows.Forms.Label
    Friend WithEvents Cmb_desc As System.Windows.Forms.ComboBox
    Friend WithEvents btn_issue As System.Windows.Forms.Button
    Friend WithEvents btn_return As System.Windows.Forms.Button
    Friend WithEvents txt_search As System.Windows.Forms.TextBox
    Friend WithEvents btn_search As System.Windows.Forms.Button
    Friend WithEvents rd_issue As System.Windows.Forms.RadioButton
    Friend WithEvents rd_return As System.Windows.Forms.RadioButton
    Friend WithEvents txt_bookid As System.Windows.Forms.TextBox
    Friend WithEvents txt_sid As System.Windows.Forms.TextBox
    Friend WithEvents lbl_studnm As System.Windows.Forms.Label
    Friend WithEvents lbl_branch As System.Windows.Forms.Label
    Friend WithEvents txt_branch As System.Windows.Forms.TextBox
    Friend WithEvents txt_sname As System.Windows.Forms.TextBox
    Friend WithEvents gb_rtn As System.Windows.Forms.GroupBox
    Friend WithEvents grb_fine As System.Windows.Forms.GroupBox
    Friend WithEvents txt_booktitle As System.Windows.Forms.TextBox
    Friend WithEvents txt_ret As System.Windows.Forms.TextBox
    Friend WithEvents txt_issue As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.gb_rtn = New System.Windows.Forms.GroupBox
        Me.txt_issue = New System.Windows.Forms.TextBox
        Me.lbl_branch = New System.Windows.Forms.Label
        Me.txt_branch = New System.Windows.Forms.TextBox
        Me.lbl_studnm = New System.Windows.Forms.Label
        Me.txt_sname = New System.Windows.Forms.TextBox
        Me.lbl_retdate = New System.Windows.Forms.Label
        Me.txt_ret = New System.Windows.Forms.TextBox
        Me.lbl_issuedate = New System.Windows.Forms.Label
        Me.lbl_booktitle = New System.Windows.Forms.Label
        Me.txt_booktitle = New System.Windows.Forms.TextBox
        Me.lbl_bookid = New System.Windows.Forms.Label
        Me.txt_bookid = New System.Windows.Forms.TextBox
        Me.lbl_studid = New System.Windows.Forms.Label
        Me.txt_sid = New System.Windows.Forms.TextBox
        Me.rd_return = New System.Windows.Forms.RadioButton
        Me.rd_issue = New System.Windows.Forms.RadioButton
        Me.btn_close = New System.Windows.Forms.Button
        Me.dg_books = New System.Windows.Forms.DataGrid
        Me.grb_fine = New System.Windows.Forms.GroupBox
        Me.Cmb_desc = New System.Windows.Forms.ComboBox
        Me.Lbl_disc = New System.Windows.Forms.Label
        Me.lbl_fine_disp = New System.Windows.Forms.Label
        Me.lbl_fine = New System.Windows.Forms.Label
        Me.btn_issue = New System.Windows.Forms.Button
        Me.btn_return = New System.Windows.Forms.Button
        Me.txt_search = New System.Windows.Forms.TextBox
        Me.btn_search = New System.Windows.Forms.Button
        Me.Label1 = New System.Windows.Forms.Label
        Me.gb_rtn.SuspendLayout()
        CType(Me.dg_books, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.grb_fine.SuspendLayout()
        Me.SuspendLayout()
        '
        'gb_rtn
        '
        Me.gb_rtn.Controls.Add(Me.txt_issue)
        Me.gb_rtn.Controls.Add(Me.lbl_branch)
        Me.gb_rtn.Controls.Add(Me.txt_branch)
        Me.gb_rtn.Controls.Add(Me.lbl_studnm)
        Me.gb_rtn.Controls.Add(Me.txt_sname)
        Me.gb_rtn.Controls.Add(Me.lbl_retdate)
        Me.gb_rtn.Controls.Add(Me.txt_ret)
        Me.gb_rtn.Controls.Add(Me.lbl_issuedate)
        Me.gb_rtn.Controls.Add(Me.lbl_booktitle)
        Me.gb_rtn.Controls.Add(Me.txt_booktitle)
        Me.gb_rtn.Controls.Add(Me.lbl_bookid)
        Me.gb_rtn.Controls.Add(Me.txt_bookid)
        Me.gb_rtn.Controls.Add(Me.lbl_studid)
        Me.gb_rtn.Controls.Add(Me.txt_sid)
        Me.gb_rtn.Controls.Add(Me.rd_return)
        Me.gb_rtn.Controls.Add(Me.rd_issue)
        Me.gb_rtn.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.gb_rtn.ForeColor = System.Drawing.Color.Navy
        Me.gb_rtn.Location = New System.Drawing.Point(24, 16)
        Me.gb_rtn.Name = "gb_rtn"
        Me.gb_rtn.Size = New System.Drawing.Size(288, 336)
        Me.gb_rtn.TabIndex = 0
        Me.gb_rtn.TabStop = False
        Me.gb_rtn.Text = "Issue && Return"
        '
        'txt_issue
        '
        Me.txt_issue.BackColor = System.Drawing.Color.White
        Me.txt_issue.Enabled = False
        Me.txt_issue.Location = New System.Drawing.Point(112, 256)
        Me.txt_issue.Name = "txt_issue"
        Me.txt_issue.Size = New System.Drawing.Size(160, 21)
        Me.txt_issue.TabIndex = 7
        Me.txt_issue.Text = ""
        '
        'lbl_branch
        '
        Me.lbl_branch.AutoSize = True
        Me.lbl_branch.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_branch.Location = New System.Drawing.Point(16, 138)
        Me.lbl_branch.Name = "lbl_branch"
        Me.lbl_branch.Size = New System.Drawing.Size(52, 17)
        Me.lbl_branch.TabIndex = 9
        Me.lbl_branch.Text = "Branch :"
        '
        'txt_branch
        '
        Me.txt_branch.BackColor = System.Drawing.Color.White
        Me.txt_branch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt_branch.Location = New System.Drawing.Point(112, 136)
        Me.txt_branch.MaxLength = 20
        Me.txt_branch.Name = "txt_branch"
        Me.txt_branch.ReadOnly = True
        Me.txt_branch.Size = New System.Drawing.Size(160, 21)
        Me.txt_branch.TabIndex = 4
        Me.txt_branch.Text = ""
        '
        'lbl_studnm
        '
        Me.lbl_studnm.AutoSize = True
        Me.lbl_studnm.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_studnm.Location = New System.Drawing.Point(16, 97)
        Me.lbl_studnm.Name = "lbl_studnm"
        Me.lbl_studnm.Size = New System.Drawing.Size(96, 17)
        Me.lbl_studnm.TabIndex = 7
        Me.lbl_studnm.Text = "Student Name : "
        '
        'txt_sname
        '
        Me.txt_sname.BackColor = System.Drawing.Color.White
        Me.txt_sname.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt_sname.Location = New System.Drawing.Point(112, 96)
        Me.txt_sname.MaxLength = 50
        Me.txt_sname.Name = "txt_sname"
        Me.txt_sname.ReadOnly = True
        Me.txt_sname.Size = New System.Drawing.Size(160, 21)
        Me.txt_sname.TabIndex = 3
        Me.txt_sname.Text = ""
        '
        'lbl_retdate
        '
        Me.lbl_retdate.AutoSize = True
        Me.lbl_retdate.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_retdate.Location = New System.Drawing.Point(16, 296)
        Me.lbl_retdate.Name = "lbl_retdate"
        Me.lbl_retdate.Size = New System.Drawing.Size(81, 17)
        Me.lbl_retdate.TabIndex = 4
        Me.lbl_retdate.Text = "Return Date :"
        '
        'txt_ret
        '
        Me.txt_ret.BackColor = System.Drawing.Color.White
        Me.txt_ret.Enabled = False
        Me.txt_ret.Location = New System.Drawing.Point(112, 294)
        Me.txt_ret.Name = "txt_ret"
        Me.txt_ret.Size = New System.Drawing.Size(160, 21)
        Me.txt_ret.TabIndex = 8
        Me.txt_ret.Text = ""
        '
        'lbl_issuedate
        '
        Me.lbl_issuedate.AutoSize = True
        Me.lbl_issuedate.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_issuedate.Location = New System.Drawing.Point(16, 256)
        Me.lbl_issuedate.Name = "lbl_issuedate"
        Me.lbl_issuedate.Size = New System.Drawing.Size(76, 17)
        Me.lbl_issuedate.TabIndex = 3
        Me.lbl_issuedate.Text = "Issue Date : "
        '
        'lbl_booktitle
        '
        Me.lbl_booktitle.AutoSize = True
        Me.lbl_booktitle.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_booktitle.Location = New System.Drawing.Point(16, 217)
        Me.lbl_booktitle.Name = "lbl_booktitle"
        Me.lbl_booktitle.Size = New System.Drawing.Size(72, 17)
        Me.lbl_booktitle.TabIndex = 2
        Me.lbl_booktitle.Text = "Book Title : "
        '
        'txt_booktitle
        '
        Me.txt_booktitle.BackColor = System.Drawing.Color.White
        Me.txt_booktitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt_booktitle.Location = New System.Drawing.Point(112, 216)
        Me.txt_booktitle.MaxLength = 50
        Me.txt_booktitle.Name = "txt_booktitle"
        Me.txt_booktitle.ReadOnly = True
        Me.txt_booktitle.Size = New System.Drawing.Size(160, 21)
        Me.txt_booktitle.TabIndex = 6
        Me.txt_booktitle.Text = ""
        '
        'lbl_bookid
        '
        Me.lbl_bookid.AutoSize = True
        Me.lbl_bookid.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_bookid.Location = New System.Drawing.Point(16, 177)
        Me.lbl_bookid.Name = "lbl_bookid"
        Me.lbl_bookid.Size = New System.Drawing.Size(56, 17)
        Me.lbl_bookid.TabIndex = 1
        Me.lbl_bookid.Text = "Book Id :"
        '
        'txt_bookid
        '
        Me.txt_bookid.BackColor = System.Drawing.Color.White
        Me.txt_bookid.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.txt_bookid.Location = New System.Drawing.Point(112, 176)
        Me.txt_bookid.MaxLength = 6
        Me.txt_bookid.Name = "txt_bookid"
        Me.txt_bookid.ReadOnly = True
        Me.txt_bookid.Size = New System.Drawing.Size(160, 21)
        Me.txt_bookid.TabIndex = 5
        Me.txt_bookid.Text = ""
        '
        'lbl_studid
        '
        Me.lbl_studid.AutoSize = True
        Me.lbl_studid.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lbl_studid.Location = New System.Drawing.Point(16, 58)
        Me.lbl_studid.Name = "lbl_studid"
        Me.lbl_studid.Size = New System.Drawing.Size(79, 17)
        Me.lbl_studid.TabIndex = 0
        Me.lbl_studid.Text = "Student Id :  "
        '
        'txt_sid
        '
        Me.txt_sid.Location = New System.Drawing.Point(112, 56)
        Me.txt_sid.MaxLength = 6
        Me.txt_sid.Name = "txt_sid"
        Me.txt_sid.Size = New System.Drawing.Size(160, 21)
        Me.txt_sid.TabIndex = 2
        Me.txt_sid.Text = ""
        '
        'rd_return
        '
        Me.rd_return.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.rd_return.ForeColor = System.Drawing.Color.Blue
        Me.rd_return.Location = New System.Drawing.Point(160, 19)
        Me.rd_return.Name = "rd_return"
        Me.rd_return.Size = New System.Drawing.Size(72, 24)
        Me.rd_return.TabIndex = 1
        Me.rd_return.Text = "Return"
        '
        'rd_issue
        '
        Me.rd_issue.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.rd_issue.ForeColor = System.Drawing.Color.Blue
        Me.rd_issue.Location = New System.Drawing.Point(48, 20)
        Me.rd_issue.Name = "rd_issue"
        Me.rd_issue.Size = New System.Drawing.Size(72, 21)
        Me.rd_issue.TabIndex = 0
        Me.rd_issue.Text = "Issue"
        '
        'btn_close
        '
        Me.btn_close.Font = New System.Drawing.Font("Tahoma", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.btn_close.ForeColor = System.Drawing.SystemColors.ControlText
        Me.btn_close.Location = New System.Drawing.Point(712, 472)
        Me.btn_close.Name = "btn_close"
        Me.btn_close.Size = New System.Drawing.Size(72, 24)
        Me.btn_close.TabIndex = 11
        Me.btn_close.Text = "Close"
        '
        'dg_books
        '
        Me.dg_books.AlternatingBackColor = System.Drawing.Color.LightGray
        Me.dg_books.BackColor = System.Drawing.Color.Gainsboro
        Me.dg_books.BackgroundColor = System.Drawing.Color.Silver
        Me.dg_books.CaptionBackColor = System.Drawing.Color.LightSteelBlue
        Me.dg_books.CaptionForeColor = System.Drawing.Color.MidnightBlue
        Me.dg_books.DataMember = ""
        Me.dg_books.FlatMode = True
        Me.dg_books.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.dg_books.ForeColor = System.Drawing.Color.Black
        Me.dg_books.GridLineColor = System.Drawing.Color.White
        Me.dg_books.HeaderBackColor = System.Drawing.Color.MidnightBlue
        Me.dg_books.HeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        Me.dg_books.HeaderForeColor = System.Drawing.Color.White
        Me.dg_books.LinkColor = System.Drawing.Color.MidnightBlue
        Me.dg_books.Location = New System.Drawing.Point(328, 32)
        Me.dg_books.Name = "dg_books"
        Me.dg_books.ParentRowsBackColor = System.Drawing.Color.DarkGray
        Me.dg_books.ParentRowsForeColor = System.Drawing.Color.Black
        Me.dg_books.ReadOnly = True
        Me.dg_books.SelectionBackColor = System.Drawing.Color.CadetBlue
        Me.dg_books.SelectionForeColor = System.Drawing.Color.White
        Me.dg_books.Size = New System.Drawing.Size(456, 424)
        Me.dg_books.TabIndex = 12
        '
        'grb_fine
        '
        Me.grb_fine.Controls.Add(Me.Cmb_desc)
        Me.grb_fine.Controls.Add(Me.Lbl_disc)
        Me.grb_fine.Controls.Add(Me.lbl_fine_disp)

⌨️ 快捷键说明

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