?? 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 + -