📄 jshs.vb
字号:
Public Class jshs
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 Label1 As System.Windows.Forms.Label
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents RadioButton1 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton3 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton4 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton5 As System.Windows.Forms.RadioButton
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents Button5 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.Button3 = New System.Windows.Forms.Button
Me.Button4 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.Label3 = New System.Windows.Forms.Label
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.Button2 = New System.Windows.Forms.Button
Me.RadioButton1 = New System.Windows.Forms.RadioButton
Me.RadioButton2 = New System.Windows.Forms.RadioButton
Me.RadioButton3 = New System.Windows.Forms.RadioButton
Me.RadioButton4 = New System.Windows.Forms.RadioButton
Me.RadioButton5 = New System.Windows.Forms.RadioButton
Me.Label4 = New System.Windows.Forms.Label
Me.TextBox4 = New System.Windows.Forms.TextBox
Me.Button5 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(56, 64)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(48, 16)
Me.Label1.TabIndex = 0
Me.Label1.Text = "ID编号"
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(104, 56)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(104, 21)
Me.TextBox1.TabIndex = 1
Me.TextBox1.Text = ""
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(104, 96)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(104, 21)
Me.TextBox2.TabIndex = 3
Me.TextBox2.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(56, 104)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(48, 16)
Me.Label2.TabIndex = 2
Me.Label2.Text = "分类号"
'
'Button3
'
Me.Button3.Location = New System.Drawing.Point(192, 240)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(64, 24)
Me.Button3.TabIndex = 4
Me.Button3.Text = "书名查询"
'
'Button4
'
Me.Button4.Location = New System.Drawing.Point(344, 240)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(56, 24)
Me.Button4.TabIndex = 7
Me.Button4.Text = "返 回"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(48, 240)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(64, 24)
Me.Button1.TabIndex = 8
Me.Button1.Text = "编号查询"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(56, 144)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(34, 16)
Me.Label3.TabIndex = 9
Me.Label3.Text = "书名"
'
'TextBox3
'
Me.TextBox3.Location = New System.Drawing.Point(104, 136)
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.Size = New System.Drawing.Size(296, 21)
Me.TextBox3.TabIndex = 10
Me.TextBox3.Text = ""
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(112, 240)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(80, 24)
Me.Button2.TabIndex = 11
Me.Button2.Text = "分类号查询"
'
'RadioButton1
'
Me.RadioButton1.Checked = True
Me.RadioButton1.Location = New System.Drawing.Point(37, 13)
Me.RadioButton1.Name = "RadioButton1"
Me.RadioButton1.Size = New System.Drawing.Size(56, 32)
Me.RadioButton1.TabIndex = 12
Me.RadioButton1.TabStop = True
Me.RadioButton1.Text = "力学"
'
'RadioButton2
'
Me.RadioButton2.Location = New System.Drawing.Point(113, 16)
Me.RadioButton2.Name = "RadioButton2"
Me.RadioButton2.Size = New System.Drawing.Size(64, 24)
Me.RadioButton2.TabIndex = 13
Me.RadioButton2.Text = "数学"
'
'RadioButton3
'
Me.RadioButton3.Location = New System.Drawing.Point(184, 16)
Me.RadioButton3.Name = "RadioButton3"
Me.RadioButton3.Size = New System.Drawing.Size(88, 24)
Me.RadioButton3.TabIndex = 14
Me.RadioButton3.Text = "通信资料"
'
'RadioButton4
'
Me.RadioButton4.Location = New System.Drawing.Point(272, 16)
Me.RadioButton4.Name = "RadioButton4"
Me.RadioButton4.Size = New System.Drawing.Size(64, 24)
Me.RadioButton4.TabIndex = 15
Me.RadioButton4.Text = "物理"
'
'RadioButton5
'
Me.RadioButton5.Location = New System.Drawing.Point(336, 16)
Me.RadioButton5.Name = "RadioButton5"
Me.RadioButton5.Size = New System.Drawing.Size(80, 24)
Me.RadioButton5.TabIndex = 16
Me.RadioButton5.Text = "信科资料"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(56, 184)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 16)
Me.Label4.TabIndex = 17
Me.Label4.Text = "出版社"
'
'TextBox4
'
Me.TextBox4.Location = New System.Drawing.Point(104, 179)
Me.TextBox4.Name = "TextBox4"
Me.TextBox4.Size = New System.Drawing.Size(194, 21)
Me.TextBox4.TabIndex = 18
Me.TextBox4.Text = ""
'
'Button5
'
Me.Button5.Location = New System.Drawing.Point(256, 240)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(88, 24)
Me.Button5.TabIndex = 19
Me.Button5.Text = "出版社查询"
'
'jshs
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(466, 308)
Me.ControlBox = False
Me.Controls.Add(Me.Button5)
Me.Controls.Add(Me.TextBox4)
Me.Controls.Add(Me.TextBox3)
Me.Controls.Add(Me.TextBox2)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.RadioButton5)
Me.Controls.Add(Me.RadioButton4)
Me.Controls.Add(Me.RadioButton3)
Me.Controls.Add(Me.RadioButton2)
Me.Controls.Add(Me.RadioButton1)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Label1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow
Me.Name = "jshs"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "借书还书查询"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Me.Close()
End Sub
Private Sub jshs_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
jieshu = False
type_book = "lixue"
End Sub
Private Sub RadioButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.Click
type_book = "lixue"
End Sub
Private Sub RadioButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton2.Click
type_book = "shuxue"
End Sub
Private Sub RadioButton3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton3.Click
type_book = "tongxinziliao"
End Sub
Private Sub RadioButton4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton4.Click
type_book = "wuli"
End Sub
Private Sub RadioButton5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton5.Click
type_book = "xinkeziliao"
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim str, name As String
Dim answer As DialogResult
str = "SELECT ID,FLH,SM,ZB,CBS,JYZ FROM " & type_book & " WHERE ID='" & Trim(TextBox1.Text) & "'"
Call ReadMdb(str)
If OleSuccess Then
jieshu = True
Me.Close()
End If
End Sub
Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim str, name As String
Dim answer As DialogResult
str = "SELECT ID,FLH,SM,ZB,CBS,JYZ FROM " & type_book & " WHERE FLH='" & Trim(TextBox2.Text) & "'"
Call ReadMdb(str)
If OleSuccess Then
jieshu = True
Me.Close()
End If
End Sub
Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim str, name As String
Dim answer As DialogResult
str = "SELECT ID,FLH,SM,ZB,CBS,JYZ FROM " & type_book & " WHERE SM LIKE '%" & Trim(TextBox3.Text) & "%'"
Call ReadMdb(str)
If OleSuccess Then
jieshu = True
Me.Close()
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Dim str, name As String
Dim answer As DialogResult
str = "SELECT ID,FLH,SM,ZB,CBS,JYZ FROM " & type_book & " WHERE CBS LIKE '%" & Trim(TextBox4.Text) & "%'"
Call ReadMdb(str)
If OleSuccess Then
jieshu = True
Me.Close()
End If
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -