?? frmbooktype.vb
字號(hào):
Public Class frmBookType Inherits 圖書管理系統(tǒng).frmBase#Region " Windows 窗體設(shè)計(jì)器生成的代碼 " Public Sub New() MyBase.New() '該調(diào)用是 Windows 窗體設(shè)計(jì)器所必需的。 InitializeComponent() '在 InitializeComponent() 調(diào)用之后添加任何初始化 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 窗體設(shè)計(jì)器所必需的 Private components As System.ComponentModel.IContainer '注意: 以下過程是 Windows 窗體設(shè)計(jì)器所必需的 '可以使用 Windows 窗體設(shè)計(jì)器修改此過程。 '不要使用代碼編輯器修改它。 Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
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 txbName As System.Windows.Forms.TextBox
Friend WithEvents txbCode As System.Windows.Forms.TextBox
Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents SqlSelectCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlInsertCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlUpdateCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlDeleteCommand1 As System.Data.SqlClient.SqlCommand
Friend WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
Friend WithEvents DataSet11 As 圖書管理系統(tǒng).DataSet1
Friend WithEvents txbDays As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.txbDays = New System.Windows.Forms.TextBox
Me.DataSet11 = New 圖書管理系統(tǒng).DataSet1
Me.Label6 = New System.Windows.Forms.Label
Me.txbName = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txbCode = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.SqlDataAdapter1 = New System.Data.SqlClient.SqlDataAdapter
Me.SqlDeleteCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
Me.SqlInsertCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlSelectCommand1 = New System.Data.SqlClient.SqlCommand
Me.SqlUpdateCommand1 = New System.Data.SqlClient.SqlCommand
Me.GroupBox1.SuspendLayout()
CType(Me.DataSet11, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.GroupBox1.Controls.Add(Me.txbDays)
Me.GroupBox1.Controls.Add(Me.Label6)
Me.GroupBox1.Controls.Add(Me.txbName)
Me.GroupBox1.Controls.Add(Me.Label5)
Me.GroupBox1.Controls.Add(Me.txbCode)
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Location = New System.Drawing.Point(8, 160)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(560, 80)
Me.GroupBox1.TabIndex = 7
Me.GroupBox1.TabStop = False
'
'txbDays
'
Me.txbDays.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "圖書類型.可借天數(shù)"))
Me.txbDays.Location = New System.Drawing.Point(384, 48)
Me.txbDays.Name = "txbDays"
Me.txbDays.TabIndex = 5
Me.txbDays.Text = ""
'
'DataSet11
'
Me.DataSet11.DataSetName = "DataSet1"
Me.DataSet11.Locale = New System.Globalization.CultureInfo("zh-CN")
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(384, 24)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(56, 15)
Me.Label6.TabIndex = 4
Me.Label6.Text = "可借天數(shù)"
'
'txbName
'
Me.txbName.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "圖書類型.類型名稱"))
Me.txbName.Location = New System.Drawing.Point(144, 48)
Me.txbName.Name = "txbName"
Me.txbName.Size = New System.Drawing.Size(216, 21)
Me.txbName.TabIndex = 3
Me.txbName.Text = ""
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(144, 24)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(56, 15)
Me.Label5.TabIndex = 2
Me.Label5.Text = "類型名稱"
'
'txbCode
'
Me.txbCode.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "圖書類型.類型編號(hào)"))
Me.txbCode.Location = New System.Drawing.Point(24, 48)
Me.txbCode.Name = "txbCode"
Me.txbCode.Size = New System.Drawing.Size(91, 21)
Me.txbCode.TabIndex = 1
Me.txbCode.Text = ""
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(24, 24)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 15)
Me.Label4.TabIndex = 0
Me.Label4.Text = "類型編號(hào)"
'
'SqlDataAdapter1
'
Me.SqlDataAdapter1.DeleteCommand = Me.SqlDeleteCommand1
Me.SqlDataAdapter1.InsertCommand = Me.SqlInsertCommand1
Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1
Me.SqlDataAdapter1.TableMappings.AddRange(New System.Data.Common.DataTableMapping() {New System.Data.Common.DataTableMapping("Table", "圖書類型", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("類型編號(hào)", "類型編號(hào)"), New System.Data.Common.DataColumnMapping("類型名稱", "類型名稱"), New System.Data.Common.DataColumnMapping("可借天數(shù)", "可借天數(shù)")})})
Me.SqlDataAdapter1.UpdateCommand = Me.SqlUpdateCommand1
'
'SqlDeleteCommand1
'
Me.SqlDeleteCommand1.CommandText = "DELETE FROM 圖書類型 WHERE (類型編號(hào) = @Original_類型編號(hào)) AND (可借天數(shù) = @Original_可借天數(shù) OR @Ori" & _
"ginal_可借天數(shù) IS NULL AND 可借天數(shù) IS NULL) AND (類型名稱 = @Original_類型名稱 OR @Original_類型名" & _
"稱 IS NULL AND 類型名稱 IS NULL)"
Me.SqlDeleteCommand1.Connection = Me.SqlConnection1
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_類型編號(hào)", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "類型編號(hào)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_可借天數(shù)", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "可借天數(shù)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_類型名稱", System.Data.SqlDbType.VarChar, 100, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "類型名稱", System.Data.DataRowVersion.Original, Nothing))
'
'SqlConnection1
'
Me.SqlConnection1.ConnectionString = "workstation id=CS;packet size=4096;integrated security=SSPI;data source=CS;persis" & _
"t security info=False;initial catalog=libbook"
'
'SqlInsertCommand1
'
Me.SqlInsertCommand1.CommandText = "INSERT INTO 圖書類型(類型編號(hào), 類型名稱, 可借天數(shù)) VALUES (@類型編號(hào), @類型名稱, @可借天數(shù)); SELECT 類型編號(hào), 類型名" & _
"稱, 可借天數(shù) FROM 圖書類型 WHERE (類型編號(hào) = @類型編號(hào))"
Me.SqlInsertCommand1.Connection = Me.SqlConnection1
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@類型編號(hào)", System.Data.SqlDbType.VarChar, 50, "類型編號(hào)"))
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -