📄 frmaddbook.vb
字号:
Imports System.Data.SqlClient
Public Class FrmAddBook
Inherits library.frmBase
Public strPubConnection As String
#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 GroupBox1 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 Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents Label13 As System.Windows.Forms.Label
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents dbgBook As System.Windows.Forms.DataGrid
Friend WithEvents txtBook_code As library.mytextbox
Friend WithEvents txtBook_name As library.mytextbox
Friend WithEvents txtBook_pub As library.mytextbox
Friend WithEvents txtBook_isbn As library.mytextbox
Friend WithEvents txtBook_page As library.mytextbox
Friend WithEvents txtBook_author As library.mytextbox
Friend WithEvents txtBook_price As library.mytextbox
Friend WithEvents dtpBook_pubdate As System.Windows.Forms.DateTimePicker
Friend WithEvents dtpBook_adddate As System.Windows.Forms.DateTimePicker
Friend WithEvents cboBook_place As System.Windows.Forms.ComboBox
Friend WithEvents cboBook_sort As System.Windows.Forms.ComboBox
Friend WithEvents txtBook_remarks As library.mytextbox
Friend WithEvents txtBookcodeFind As library.mytextbox
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnCreatBookcode As System.Windows.Forms.Button
Friend WithEvents btnDelete1Book As System.Windows.Forms.Button
Friend WithEvents btnExit As System.Windows.Forms.Button
Friend WithEvents btnReset As System.Windows.Forms.Button
Friend WithEvents btnEditBook As System.Windows.Forms.Button
Friend WithEvents Label15 As System.Windows.Forms.Label
Friend WithEvents txtBook_id As library.mytextbox
Friend WithEvents txtBook_idFind As library.mytextbox
Friend WithEvents TextBox1 As library.mytextbox
Friend WithEvents ilsICON As System.Windows.Forms.ImageList
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(FrmAddBook))
Me.dbgBook = New System.Windows.Forms.DataGrid
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.txtBook_id = New library.mytextbox
Me.Label15 = New System.Windows.Forms.Label
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.btnExit = New System.Windows.Forms.Button
Me.ilsICON = New System.Windows.Forms.ImageList(Me.components)
Me.btnReset = New System.Windows.Forms.Button
Me.btnDelete1Book = New System.Windows.Forms.Button
Me.btnEditBook = New System.Windows.Forms.Button
Me.btnAdd = New System.Windows.Forms.Button
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.Label13 = New System.Windows.Forms.Label
Me.txtBookcodeFind = New library.mytextbox
Me.txtBook_idFind = New library.mytextbox
Me.Label14 = New System.Windows.Forms.Label
Me.btnCreatBookcode = New System.Windows.Forms.Button
Me.txtBook_remarks = New library.mytextbox
Me.cboBook_sort = New System.Windows.Forms.ComboBox
Me.cboBook_place = New System.Windows.Forms.ComboBox
Me.dtpBook_adddate = New System.Windows.Forms.DateTimePicker
Me.dtpBook_pubdate = New System.Windows.Forms.DateTimePicker
Me.txtBook_price = New library.mytextbox
Me.Label12 = New System.Windows.Forms.Label
Me.Label11 = New System.Windows.Forms.Label
Me.txtBook_author = New library.mytextbox
Me.Label10 = New System.Windows.Forms.Label
Me.txtBook_page = New library.mytextbox
Me.Label9 = New System.Windows.Forms.Label
Me.txtBook_isbn = New library.mytextbox
Me.Label8 = New System.Windows.Forms.Label
Me.txtBook_pub = New library.mytextbox
Me.Label7 = New System.Windows.Forms.Label
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.TextBox1 = New library.mytextbox
CType(Me.dbgBook, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'dbgBook
'
Me.dbgBook.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.dbgBook.BackColor = System.Drawing.Color.Snow
Me.dbgBook.BackgroundColor = System.Drawing.SystemColors.ActiveCaptionText
Me.dbgBook.CaptionVisible = False
Me.dbgBook.DataMember = ""
Me.dbgBook.HeaderForeColor = System.Drawing.SystemColors.ControlText
Me.dbgBook.Location = New System.Drawing.Point(0, 280)
Me.dbgBook.Name = "dbgBook"
Me.dbgBook.ReadOnly = True
Me.dbgBook.Size = New System.Drawing.Size(584, 248)
Me.dbgBook.TabIndex = 1
Me.dbgBook.TabStop = False
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.txtBook_id)
Me.GroupBox1.Controls.Add(Me.Label15)
Me.GroupBox1.Controls.Add(Me.GroupBox3)
Me.GroupBox1.Controls.Add(Me.GroupBox2)
Me.GroupBox1.Controls.Add(Me.btnCreatBookcode)
Me.GroupBox1.Controls.Add(Me.txtBook_remarks)
Me.GroupBox1.Controls.Add(Me.cboBook_sort)
Me.GroupBox1.Controls.Add(Me.cboBook_place)
Me.GroupBox1.Controls.Add(Me.dtpBook_adddate)
Me.GroupBox1.Controls.Add(Me.dtpBook_pubdate)
Me.GroupBox1.Controls.Add(Me.txtBook_price)
Me.GroupBox1.Controls.Add(Me.Label12)
Me.GroupBox1.Controls.Add(Me.Label11)
Me.GroupBox1.Controls.Add(Me.txtBook_author)
Me.GroupBox1.Controls.Add(Me.Label10)
Me.GroupBox1.Controls.Add(Me.txtBook_page)
Me.GroupBox1.Controls.Add(Me.Label9)
Me.GroupBox1.Controls.Add(Me.txtBook_isbn)
Me.GroupBox1.Controls.Add(Me.Label8)
Me.GroupBox1.Controls.Add(Me.txtBook_pub)
Me.GroupBox1.Controls.Add(Me.Label7)
Me.GroupBox1.Controls.Add(Me.txtBook_name)
Me.GroupBox1.Controls.Add(Me.Label6)
Me.GroupBox1.Controls.Add(Me.txtBook_code)
Me.GroupBox1.Controls.Add(Me.Label5)
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Controls.Add(Me.Label3)
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.Dock = System.Windows.Forms.DockStyle.Top
Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup
Me.GroupBox1.Location = New System.Drawing.Point(0, 0)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(712, 272)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "图书详细资料"
'
'txtBook_id
'
Me.txtBook_id.BackColor = System.Drawing.SystemColors.Menu
Me.txtBook_id.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_id.Location = New System.Drawing.Point(280, 224)
Me.txtBook_id.Name = "txtBook_id"
Me.txtBook_id.ReadOnly = True
Me.txtBook_id.Size = New System.Drawing.Size(128, 21)
Me.txtBook_id.TabIndex = 28
Me.txtBook_id.TabStop = False
Me.txtBook_id.Text = ""
Me.txtBook_id.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'Label15
'
Me.Label15.ForeColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(0, Byte), CType(192, Byte))
Me.Label15.Location = New System.Drawing.Point(216, 224)
Me.Label15.Name = "Label15"
Me.Label15.Size = New System.Drawing.Size(64, 16)
Me.Label15.TabIndex = 27
Me.Label15.Text = "图书编号:"
'
'GroupBox3
'
Me.GroupBox3.BackColor = System.Drawing.SystemColors.ScrollBar
Me.GroupBox3.Controls.Add(Me.btnExit)
Me.GroupBox3.Controls.Add(Me.btnReset)
Me.GroupBox3.Controls.Add(Me.btnDelete1Book)
Me.GroupBox3.Controls.Add(Me.btnEditBook)
Me.GroupBox3.Controls.Add(Me.btnAdd)
Me.GroupBox3.Location = New System.Drawing.Point(424, 128)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(280, 136)
Me.GroupBox3.TabIndex = 13
Me.GroupBox3.TabStop = False
Me.GroupBox3.Text = "记录编辑"
'
'btnExit
'
Me.btnExit.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnExit.ImageIndex = 3
Me.btnExit.ImageList = Me.ilsICON
Me.btnExit.Location = New System.Drawing.Point(16, 72)
Me.btnExit.Name = "btnExit"
Me.btnExit.Size = New System.Drawing.Size(256, 56)
Me.btnExit.TabIndex = 4
Me.btnExit.Text = "退出"
Me.btnExit.TextAlign = System.Drawing.ContentAlignment.BottomCenter
'
'ilsICON
'
Me.ilsICON.ImageSize = New System.Drawing.Size(32, 32)
Me.ilsICON.ImageStream = CType(resources.GetObject("ilsICON.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ilsICON.TransparentColor = System.Drawing.Color.Transparent
'
'btnReset
'
Me.btnReset.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnReset.ImageIndex = 4
Me.btnReset.ImageList = Me.ilsICON
Me.btnReset.Location = New System.Drawing.Point(208, 16)
Me.btnReset.Name = "btnReset"
Me.btnReset.Size = New System.Drawing.Size(64, 56)
Me.btnReset.TabIndex = 3
Me.btnReset.Text = "复位"
Me.btnReset.TextAlign = System.Drawing.ContentAlignment.BottomCenter
'
'btnDelete1Book
'
Me.btnDelete1Book.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnDelete1Book.ImageIndex = 1
Me.btnDelete1Book.ImageList = Me.ilsICON
Me.btnDelete1Book.Location = New System.Drawing.Point(144, 16)
Me.btnDelete1Book.Name = "btnDelete1Book"
Me.btnDelete1Book.Size = New System.Drawing.Size(64, 56)
Me.btnDelete1Book.TabIndex = 2
Me.btnDelete1Book.Text = "删除记录"
Me.btnDelete1Book.TextAlign = System.Drawing.ContentAlignment.BottomCenter
'
'btnEditBook
'
Me.btnEditBook.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnEditBook.ImageIndex = 2
Me.btnEditBook.ImageList = Me.ilsICON
Me.btnEditBook.Location = New System.Drawing.Point(80, 16)
Me.btnEditBook.Name = "btnEditBook"
Me.btnEditBook.Size = New System.Drawing.Size(64, 56)
Me.btnEditBook.TabIndex = 1
Me.btnEditBook.Text = "修改记录"
Me.btnEditBook.TextAlign = System.Drawing.ContentAlignment.BottomCenter
'
'btnAdd
'
Me.btnAdd.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnAdd.ImageIndex = 0
Me.btnAdd.ImageList = Me.ilsICON
Me.btnAdd.Location = New System.Drawing.Point(16, 16)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(64, 56)
Me.btnAdd.TabIndex = 0
Me.btnAdd.Text = "添加记录"
Me.btnAdd.TextAlign = System.Drawing.ContentAlignment.BottomCenter
'
'GroupBox2
'
Me.GroupBox2.BackColor = System.Drawing.SystemColors.InactiveBorder
Me.GroupBox2.Controls.Add(Me.Label13)
Me.GroupBox2.Controls.Add(Me.txtBookcodeFind)
Me.GroupBox2.Controls.Add(Me.txtBook_idFind)
Me.GroupBox2.Controls.Add(Me.Label14)
Me.GroupBox2.Location = New System.Drawing.Point(424, 16)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(280, 104)
Me.GroupBox2.TabIndex = 12
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "图书定位"
'
'Label13
'
Me.Label13.Location = New System.Drawing.Point(24, 24)
Me.Label13.Name = "Label13"
Me.Label13.Size = New System.Drawing.Size(64, 16)
Me.Label13.TabIndex = 26
Me.Label13.Text = "条码号:"
'
'txtBookcodeFind
'
Me.txtBookcodeFind.BackColor = System.Drawing.Color.White
Me.txtBookcodeFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBookcodeFind.Location = New System.Drawing.Point(88, 24)
Me.txtBookcodeFind.Name = "txtBookcodeFind"
Me.txtBookcodeFind.Size = New System.Drawing.Size(176, 21)
Me.txtBookcodeFind.TabIndex = 0
Me.txtBookcodeFind.Text = ""
'
'txtBook_idFind
'
Me.txtBook_idFind.BackColor = System.Drawing.Color.White
Me.txtBook_idFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_idFind.Location = New System.Drawing.Point(88, 64)
Me.txtBook_idFind.Name = "txtBook_idFind"
Me.txtBook_idFind.Size = New System.Drawing.Size(176, 21)
Me.txtBook_idFind.TabIndex = 1
Me.txtBook_idFind.Text = ""
'
'Label14
'
Me.Label14.Location = New System.Drawing.Point(24, 64)
Me.Label14.Name = "Label14"
Me.Label14.Size = New System.Drawing.Size(64, 16)
Me.Label14.TabIndex = 26
Me.Label14.Text = "图书编号:"
'
'btnCreatBookcode
'
Me.btnCreatBookcode.Location = New System.Drawing.Point(192, 32)
Me.btnCreatBookcode.Name = "btnCreatBookcode"
Me.btnCreatBookcode.Size = New System.Drawing.Size(16, 21)
Me.btnCreatBookcode.TabIndex = 24
Me.btnCreatBookcode.TabStop = False
Me.btnCreatBookcode.Text = "<"
'
'txtBook_remarks
'
Me.txtBook_remarks.BackColor = System.Drawing.Color.White
Me.txtBook_remarks.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtBook_remarks.Location = New System.Drawing.Point(280, 112)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -