📄 frmbookquery.vb
字号:
Imports System.Data.SqlClientImports System.Drawing.Printing'Imports Microsoft.Office.Interop.ExcelPublic Class frmBookQuery Inherits library.frmBase#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 dtpBook_pubdate As System.Windows.Forms.DateTimePicker
Friend WithEvents txtBook_author As library.mytextbox
Friend WithEvents txtBook_isbn As library.mytextbox
Friend WithEvents txtBook_pub As library.mytextbox
Friend WithEvents txtBook_name As library.mytextbox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txtBook_code 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 dbgBookList As System.Windows.Forms.DataGrid
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents ToolBar1 As System.Windows.Forms.ToolBar
Friend WithEvents ToolBarButton2 As System.Windows.Forms.ToolBarButton
Friend WithEvents ToolBarButton3 As System.Windows.Forms.ToolBarButton
Friend WithEvents ToolBarButton10 As System.Windows.Forms.ToolBarButton
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents tbtnQuery As System.Windows.Forms.ToolBarButton
Friend WithEvents tbtnReset As System.Windows.Forms.ToolBarButton
Friend WithEvents tbtnPrint As System.Windows.Forms.ToolBarButton
Friend WithEvents tbtnExcel As System.Windows.Forms.ToolBarButton
Friend WithEvents tbtnExit As System.Windows.Forms.ToolBarButton
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents Panel2 As System.Windows.Forms.Panel
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents diaSave As System.Windows.Forms.SaveFileDialog
Friend WithEvents Splitter1 As System.Windows.Forms.Splitter
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents cboBook_sort As System.Windows.Forms.ComboBox
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents radAllBook As System.Windows.Forms.RadioButton
Friend WithEvents radInlibBook As System.Windows.Forms.RadioButton
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmBookQuery))
Me.dtpBook_pubdate = New System.Windows.Forms.DateTimePicker
Me.txtBook_author = New library.mytextbox
Me.txtBook_isbn = New library.mytextbox
Me.txtBook_pub = New library.mytextbox
Me.txtBook_name = New library.mytextbox
Me.Label6 = New System.Windows.Forms.Label
Me.txtBook_code = 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.dbgBookList = New System.Windows.Forms.DataGrid
Me.Label7 = New System.Windows.Forms.Label
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.tbtnPrint = New System.Windows.Forms.ToolBarButton
Me.tbtnExcel = New System.Windows.Forms.ToolBarButton
Me.ToolBarButton10 = New System.Windows.Forms.ToolBarButton
Me.tbtnExit = New System.Windows.Forms.ToolBarButton
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.Panel1 = New System.Windows.Forms.Panel
Me.Splitter1 = New System.Windows.Forms.Splitter
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.Panel2 = New System.Windows.Forms.Panel
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.cboBook_sort = New System.Windows.Forms.ComboBox
Me.Label11 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.radAllBook = New System.Windows.Forms.RadioButton
Me.radInlibBook = New System.Windows.Forms.RadioButton
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.Label8 = New System.Windows.Forms.Label
Me.diaSave = New System.Windows.Forms.SaveFileDialog
CType(Me.dbgBookList, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
Me.Panel2.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'dtpBook_pubdate
'
Me.dtpBook_pubdate.Location = New System.Drawing.Point(464, 40)
Me.dtpBook_pubdate.Name = "dtpBook_pubdate"
Me.dtpBook_pubdate.Size = New System.Drawing.Size(128, 21)
Me.dtpBook_pubdate.TabIndex = 48
Me.dtpBook_pubdate.Value = New Date(1990, 6, 9, 11, 45, 0, 0)
'
'txtBook_author
'
Me.txtBook_author.BackColor = System.Drawing.Color.White
Me.txtBook_author.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_author.Location = New System.Drawing.Point(256, 40)
Me.txtBook_author.Name = "txtBook_author"
Me.txtBook_author.Size = New System.Drawing.Size(128, 21)
Me.txtBook_author.TabIndex = 44
Me.txtBook_author.Text = ""
'
'txtBook_isbn
'
Me.txtBook_isbn.BackColor = System.Drawing.Color.White
Me.txtBook_isbn.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_isbn.Location = New System.Drawing.Point(72, 40)
Me.txtBook_isbn.Name = "txtBook_isbn"
Me.txtBook_isbn.Size = New System.Drawing.Size(128, 21)
Me.txtBook_isbn.TabIndex = 40
Me.txtBook_isbn.Text = ""
'
'txtBook_pub
'
Me.txtBook_pub.BackColor = System.Drawing.Color.White
Me.txtBook_pub.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_pub.Location = New System.Drawing.Point(464, 8)
Me.txtBook_pub.Name = "txtBook_pub"
Me.txtBook_pub.Size = New System.Drawing.Size(128, 21)
Me.txtBook_pub.TabIndex = 38
Me.txtBook_pub.Text = ""
'
'txtBook_name
'
Me.txtBook_name.BackColor = System.Drawing.Color.White
Me.txtBook_name.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_name.Location = New System.Drawing.Point(256, 8)
Me.txtBook_name.Name = "txtBook_name"
Me.txtBook_name.Size = New System.Drawing.Size(128, 21)
Me.txtBook_name.TabIndex = 36
Me.txtBook_name.Text = ""
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(200, 40)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(56, 16)
Me.Label6.TabIndex = 35
Me.Label6.Text = "图书作者:"
'
'txtBook_code
'
Me.txtBook_code.BackColor = System.Drawing.Color.White
Me.txtBook_code.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_code.Font = New System.Drawing.Font("宋体", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.txtBook_code.Location = New System.Drawing.Point(72, 8)
Me.txtBook_code.Name = "txtBook_code"
Me.txtBook_code.Size = New System.Drawing.Size(128, 21)
Me.txtBook_code.TabIndex = 34
Me.txtBook_code.Text = ""
'
'Label5
'
Me.Label5.ForeColor = System.Drawing.Color.Red
Me.Label5.Location = New System.Drawing.Point(392, 40)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(72, 16)
Me.Label5.TabIndex = 33
Me.Label5.Text = "出版日期在"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(8, 40)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(64, 16)
Me.Label4.TabIndex = 32
Me.Label4.Text = "ISBN号:"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(392, 8)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(64, 16)
Me.Label3.TabIndex = 31
Me.Label3.Text = "出版社:"
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(200, 8)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(64, 16)
Me.Label2.TabIndex = 30
Me.Label2.Text = "图书题名:"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(64, 16)
Me.Label1.TabIndex = 29
Me.Label1.Text = "条码号:"
'
'dbgBookList
'
Me.dbgBookList.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.dbgBookList.DataMember = ""
Me.dbgBookList.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dbgBookList.Location = New System.Drawing.Point(0, 40)
Me.dbgBookList.Name = "dbgBookList"
Me.dbgBookList.Size = New System.Drawing.Size(796, 347)
Me.dbgBookList.TabIndex = 54
'
'Label7
'
Me.Label7.ForeColor = System.Drawing.Color.Red
Me.Label7.Location = New System.Drawing.Point(600, 48)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(40, 16)
Me.Label7.TabIndex = 55
Me.Label7.Text = "以后!!"
'
'ToolBar1
'
Me.ToolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat
Me.ToolBar1.AutoSize = False
Me.ToolBar1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.ToolBarButton2, Me.tbtnQuery, Me.tbtnReset, Me.ToolBarButton3, Me.tbtnPrint, Me.tbtnExcel, Me.ToolBarButton10, Me.tbtnExit})
Me.ToolBar1.ButtonSize = New System.Drawing.Size(60, 50)
Me.ToolBar1.Divider = False
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(802, 56)
Me.ToolBar1.TabIndex = 56
'
'ToolBarButton2
'
Me.ToolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
'
'tbtnQuery
'
Me.tbtnQuery.ImageIndex = 1
Me.tbtnQuery.Text = "查询"
Me.tbtnQuery.ToolTipText = "按条件查询"
'
'tbtnReset
'
Me.tbtnReset.ImageIndex = 3
Me.tbtnReset.Text = "重置"
Me.tbtnReset.ToolTipText = "清空所有内容"
'
'ToolBarButton3
'
Me.ToolBarButton3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
'
'tbtnPrint
'
Me.tbtnPrint.ImageIndex = 0
Me.tbtnPrint.Text = "打印"
Me.tbtnPrint.ToolTipText = "打印查询结果"
'
'tbtnExcel
'
Me.tbtnExcel.ImageIndex = 4
Me.tbtnExcel.Text = "Excel"
Me.tbtnExcel.ToolTipText = "将查询结果导出为Excel格式"
'
'ToolBarButton10
'
Me.ToolBarButton10.Style = System.Windows.Forms.ToolBarButtonStyle.Separator
'
'tbtnExit
'
Me.tbtnExit.ImageIndex = 2
Me.tbtnExit.Text = "退出"
Me.tbtnExit.ToolTipText = "结束查询"
'
'ImageList1
'
Me.ImageList1.ImageSize = New System.Drawing.Size(32, 32)
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'Panel1
'
Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.Panel1.Controls.Add(Me.Splitter1)
Me.Panel1.Controls.Add(Me.TextBox1)
Me.Panel1.Controls.Add(Me.Panel2)
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Top
Me.Panel1.Location = New System.Drawing.Point(0, 56)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(802, 112)
Me.Panel1.TabIndex = 57
'
'Splitter1
'
Me.Splitter1.Location = New System.Drawing.Point(0, 0)
Me.Splitter1.Name = "Splitter1"
Me.Splitter1.Size = New System.Drawing.Size(3, 108)
Me.Splitter1.TabIndex = 3
Me.Splitter1.TabStop = False
'
'TextBox1
'
Me.TextBox1.BackColor = System.Drawing.SystemColors.Info
Me.TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox1.Dock = System.Windows.Forms.DockStyle.Right
Me.TextBox1.Location = New System.Drawing.Point(678, 0)
Me.TextBox1.Multiline = True
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.ReadOnly = True
Me.TextBox1.Size = New System.Drawing.Size(120, 108)
Me.TextBox1.TabIndex = 2
Me.TextBox1.Text = "这是一个模糊检索的系统,查询条件为空表示不限制"
'
'Panel2
'
Me.Panel2.Controls.Add(Me.GroupBox2)
Me.Panel2.Controls.Add(Me.txtBook_author)
Me.Panel2.Controls.Add(Me.txtBook_name)
Me.Panel2.Controls.Add(Me.Label6)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -