📄 frmborrow.vb
字号:
Public Class frmBorrow
Inherits System.Windows.Forms.Form
Private dtData As DataTable
#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 ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
Friend WithEvents tbbSave As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbQuit As System.Windows.Forms.ToolBarButton
Friend WithEvents tbbExit As System.Windows.Forms.ToolBarButton
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 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 Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents dgdList As System.Windows.Forms.DataGrid
Friend WithEvents rbnReaderCode As System.Windows.Forms.RadioButton
Friend WithEvents rbnReaderNumber As System.Windows.Forms.RadioButton
Friend WithEvents rbnCode As System.Windows.Forms.RadioButton
Friend WithEvents rbnBookNumber As System.Windows.Forms.RadioButton
Friend WithEvents txbName As System.Windows.Forms.TextBox
Friend WithEvents txbType As System.Windows.Forms.TextBox
Friend WithEvents txbCount As System.Windows.Forms.TextBox
Friend WithEvents txbBook As System.Windows.Forms.TextBox
Friend WithEvents txbReader As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmBorrow))
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.ToolBar1 = New System.Windows.Forms.ToolBar
Me.tbbSave = New System.Windows.Forms.ToolBarButton
Me.tbbQuit = New System.Windows.Forms.ToolBarButton
Me.tbbExit = New System.Windows.Forms.ToolBarButton
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.Label4 = New System.Windows.Forms.Label
Me.txbCount = New System.Windows.Forms.TextBox
Me.Label3 = New System.Windows.Forms.Label
Me.txbType = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.txbName = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.rbnReaderCode = New System.Windows.Forms.RadioButton
Me.rbnReaderNumber = New System.Windows.Forms.RadioButton
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.dgdList = New System.Windows.Forms.DataGrid
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.txbBook = New System.Windows.Forms.TextBox
Me.rbnCode = New System.Windows.Forms.RadioButton
Me.rbnBookNumber = New System.Windows.Forms.RadioButton
Me.txbReader = New System.Windows.Forms.TextBox
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
CType(Me.dgdList, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'ImageList1
'
Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'ToolBar1
'
Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.tbbSave, Me.tbbQuit, Me.tbbExit})
Me.ToolBar1.DropDownArrows = True
Me.ToolBar1.ImageList = Me.ImageList1
Me.ToolBar1.Location = New System.Drawing.Point(0, 0)
Me.ToolBar1.Name = "ToolBar1"
Me.ToolBar1.ShowToolTips = True
Me.ToolBar1.Size = New System.Drawing.Size(688, 41)
Me.ToolBar1.TabIndex = 0
'
'tbbSave
'
Me.tbbSave.ImageIndex = 0
Me.tbbSave.Text = "确定借书"
'
'tbbQuit
'
Me.tbbQuit.ImageIndex = 1
Me.tbbQuit.Text = "取消借书"
'
'tbbExit
'
Me.tbbExit.ImageIndex = 2
Me.tbbExit.Text = "退出"
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Controls.Add(Me.txbCount)
Me.GroupBox1.Controls.Add(Me.Label3)
Me.GroupBox1.Controls.Add(Me.txbType)
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.txbName)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.Controls.Add(Me.txbReader)
Me.GroupBox1.Controls.Add(Me.rbnReaderCode)
Me.GroupBox1.Controls.Add(Me.rbnReaderNumber)
Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Top
Me.GroupBox1.Location = New System.Drawing.Point(0, 41)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(688, 71)
Me.GroupBox1.TabIndex = 1
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "读者信息(请按照 条形码 或者编号 输入读者信息后回车,该功能这么实现主要是演示如何用扫描枪管理图书馆的业务)"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(496, 35)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 16)
Me.Label4.TabIndex = 9
Me.Label4.Text = "可借册数"
'
'txbCount
'
Me.txbCount.Location = New System.Drawing.Point(552, 30)
Me.txbCount.Name = "txbCount"
Me.txbCount.Size = New System.Drawing.Size(56, 21)
Me.txbCount.TabIndex = 8
Me.txbCount.Text = ""
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(400, 35)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(32, 16)
Me.Label3.TabIndex = 7
Me.Label3.Text = "类型"
'
'txbType
'
Me.txbType.Location = New System.Drawing.Point(432, 30)
Me.txbType.Name = "txbType"
Me.txbType.Size = New System.Drawing.Size(56, 21)
Me.txbType.TabIndex = 6
Me.txbType.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(288, 35)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(32, 16)
Me.Label2.TabIndex = 5
Me.Label2.Text = "姓名"
'
'txbName
'
Me.txbName.Location = New System.Drawing.Point(320, 30)
Me.txbName.Name = "txbName"
Me.txbName.Size = New System.Drawing.Size(56, 21)
Me.txbName.TabIndex = 4
Me.txbName.Text = ""
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(192, 37)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(80, 16)
Me.Label1.TabIndex = 3
Me.Label1.Text = "回车确认输入"
'
'rbnReaderCode
'
Me.rbnReaderCode.Location = New System.Drawing.Point(16, 41)
Me.rbnReaderCode.Name = "rbnReaderCode"
Me.rbnReaderCode.Size = New System.Drawing.Size(64, 24)
Me.rbnReaderCode.TabIndex = 1
Me.rbnReaderCode.Text = "条形码"
'
'rbnReaderNumber
'
Me.rbnReaderNumber.Checked = True
Me.rbnReaderNumber.Location = New System.Drawing.Point(16, 16)
Me.rbnReaderNumber.Name = "rbnReaderNumber"
Me.rbnReaderNumber.Size = New System.Drawing.Size(64, 24)
Me.rbnReaderNumber.TabIndex = 0
Me.rbnReaderNumber.TabStop = True
Me.rbnReaderNumber.Text = "编号"
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.dgdList)
Me.GroupBox2.Controls.Add(Me.Label6)
Me.GroupBox2.Controls.Add(Me.Label5)
Me.GroupBox2.Controls.Add(Me.txbBook)
Me.GroupBox2.Controls.Add(Me.rbnCode)
Me.GroupBox2.Controls.Add(Me.rbnBookNumber)
Me.GroupBox2.Dock = System.Windows.Forms.DockStyle.Fill
Me.GroupBox2.Location = New System.Drawing.Point(0, 112)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(688, 161)
Me.GroupBox2.TabIndex = 2
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "借阅图书信息(请按照 条形码 或者 编号 输入图书信息后回车)"
'
'dgdList
'
Me.dgdList.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.dgdList.CaptionVisible = False
Me.dgdList.DataMember = ""
Me.dgdList.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dgdList.Location = New System.Drawing.Point(8, 80)
Me.dgdList.Name = "dgdList"
Me.dgdList.Size = New System.Drawing.Size(680, 72)
Me.dgdList.TabIndex = 9
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(280, 36)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(328, 32)
Me.Label6.TabIndex = 8
Me.Label6.Text = "说明:借阅数量不可超过可借数量,借阅日期取当前日期,应还日期根究借阅日期和图书类型中的可借天数自动计算。"
'
'Label5
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -