?? frmreadertype.vb
字號(hào):
Public Class frmReaderType Inherits 圖書(shū)管理系統(tǒng).frmBase#Region " Windows 窗體設(shè)計(jì)器生成的代碼 " Public Sub New() MyBase.New() '該調(diào)用是 Windows 窗體設(shè)計(jì)器所必需的。 InitializeComponent() '在 InitializeComponent() 調(diào)用之后添加任何初始化 End Sub '窗體重寫(xiě) 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 '注意: 以下過(guò)程是 Windows 窗體設(shè)計(jì)器所必需的 '可以使用 Windows 窗體設(shè)計(jì)器修改此過(guò)程。 '不要使用代碼編輯器修改它。 Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents DataSet11 As 圖書(shū)管理系統(tǒng).DataSet1
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents cbbMagzine As System.Windows.Forms.CheckBox
Friend WithEvents cbbBook As System.Windows.Forms.CheckBox
Friend WithEvents txbTimes As System.Windows.Forms.TextBox
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents txbMagzineCount As System.Windows.Forms.TextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents txbBookCount As System.Windows.Forms.TextBox
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents txbType As System.Windows.Forms.TextBox
Friend WithEvents Label4 As System.Windows.Forms.Label
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
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() 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.DataSet11 = New 圖書(shū)管理系統(tǒng).DataSet1
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.cbbMagzine = New System.Windows.Forms.CheckBox
Me.cbbBook = New System.Windows.Forms.CheckBox
Me.txbTimes = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.txbMagzineCount = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txbBookCount = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txbType = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
CType(Me.DataSet11, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'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", "讀者類(lèi)型", New System.Data.Common.DataColumnMapping() {New System.Data.Common.DataColumnMapping("類(lèi)型", "類(lèi)型"), New System.Data.Common.DataColumnMapping("圖書(shū)冊(cè)書(shū)", "圖書(shū)冊(cè)書(shū)"), New System.Data.Common.DataColumnMapping("期刊冊(cè)書(shū)", "期刊冊(cè)書(shū)"), New System.Data.Common.DataColumnMapping("續(xù)借次數(shù)", "續(xù)借次數(shù)"), New System.Data.Common.DataColumnMapping("限制圖書(shū)", "限制圖書(shū)"), New System.Data.Common.DataColumnMapping("限制期刊", "限制期刊")})})
Me.SqlDataAdapter1.UpdateCommand = Me.SqlUpdateCommand1
'
'SqlDeleteCommand1
'
Me.SqlDeleteCommand1.CommandText = "DELETE FROM 讀者類(lèi)型 WHERE (類(lèi)型 = @Original_類(lèi)型) AND (圖書(shū)冊(cè)書(shū) = @Original_圖書(shū)冊(cè)書(shū) OR @Origina" & _
"l_圖書(shū)冊(cè)書(shū) IS NULL AND 圖書(shū)冊(cè)書(shū) IS NULL) AND (期刊冊(cè)書(shū) = @Original_期刊冊(cè)書(shū) OR @Original_期刊冊(cè)書(shū) IS" & _
" NULL AND 期刊冊(cè)書(shū) IS NULL) AND (續(xù)借次數(shù) = @Original_續(xù)借次數(shù) OR @Original_續(xù)借次數(shù) IS NULL AND" & _
" 續(xù)借次數(shù) IS NULL) AND (限制圖書(shū) = @Original_限制圖書(shū) OR @Original_限制圖書(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_類(lèi)型", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "類(lèi)型", System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_圖書(shū)冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "圖書(shū)冊(cè)書(shū)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_期刊冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "期刊冊(cè)書(shū)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_續(xù)借次數(shù)", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "續(xù)借次數(shù)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlDeleteCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_限制圖書(shū)", System.Data.SqlDbType.Bit, 1, 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.Bit, 1, 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 讀者類(lèi)型(類(lèi)型, 圖書(shū)冊(cè)書(shū), 期刊冊(cè)書(shū), 續(xù)借次數(shù), 限制圖書(shū), 限制期刊) VALUES (@類(lèi)型, @圖書(shū)冊(cè)書(shū), @期刊冊(cè)書(shū), @續(xù)借" & _
"次數(shù), @限制圖書(shū), @限制期刊); SELECT 類(lèi)型, 圖書(shū)冊(cè)書(shū), 期刊冊(cè)書(shū), 續(xù)借次數(shù), 限制圖書(shū), 限制期刊 FROM 讀者類(lèi)型 WHERE (類(lèi)型 =" & _
" @類(lèi)型)"
Me.SqlInsertCommand1.Connection = Me.SqlConnection1
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@類(lèi)型", System.Data.SqlDbType.VarChar, 20, "類(lèi)型"))
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@圖書(shū)冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, "圖書(shū)冊(cè)書(shū)"))
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@期刊冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, "期刊冊(cè)書(shū)"))
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@續(xù)借次數(shù)", System.Data.SqlDbType.Int, 4, "續(xù)借次數(shù)"))
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@限制圖書(shū)", System.Data.SqlDbType.Bit, 1, "限制圖書(shū)"))
Me.SqlInsertCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@限制期刊", System.Data.SqlDbType.Bit, 1, "限制期刊"))
'
'SqlSelectCommand1
'
Me.SqlSelectCommand1.CommandText = "SELECT 類(lèi)型, 圖書(shū)冊(cè)書(shū), 期刊冊(cè)書(shū), 續(xù)借次數(shù), 限制圖書(shū), 限制期刊 FROM 讀者類(lèi)型"
Me.SqlSelectCommand1.Connection = Me.SqlConnection1
'
'SqlUpdateCommand1
'
Me.SqlUpdateCommand1.CommandText = "UPDATE 讀者類(lèi)型 SET 類(lèi)型 = @類(lèi)型, 圖書(shū)冊(cè)書(shū) = @圖書(shū)冊(cè)書(shū), 期刊冊(cè)書(shū) = @期刊冊(cè)書(shū), 續(xù)借次數(shù) = @續(xù)借次數(shù), 限制圖書(shū) = @限制圖書(shū)," & _
" 限制期刊 = @限制期刊 WHERE (類(lèi)型 = @Original_類(lèi)型) AND (圖書(shū)冊(cè)書(shū) = @Original_圖書(shū)冊(cè)書(shū) OR @Original_" & _
"圖書(shū)冊(cè)書(shū) IS NULL AND 圖書(shū)冊(cè)書(shū) IS NULL) AND (期刊冊(cè)書(shū) = @Original_期刊冊(cè)書(shū) OR @Original_期刊冊(cè)書(shū) IS N" & _
"ULL AND 期刊冊(cè)書(shū) IS NULL) AND (續(xù)借次數(shù) = @Original_續(xù)借次數(shù) OR @Original_續(xù)借次數(shù) IS NULL AND 續(xù)" & _
"借次數(shù) IS NULL) AND (限制圖書(shū) = @Original_限制圖書(shū) OR @Original_限制圖書(shū) IS NULL AND 限制圖書(shū) IS NU" & _
"LL) AND (限制期刊 = @Original_限制期刊 OR @Original_限制期刊 IS NULL AND 限制期刊 IS NULL); SELE" & _
"CT 類(lèi)型, 圖書(shū)冊(cè)書(shū), 期刊冊(cè)書(shū), 續(xù)借次數(shù), 限制圖書(shū), 限制期刊 FROM 讀者類(lèi)型 WHERE (類(lèi)型 = @類(lèi)型)"
Me.SqlUpdateCommand1.Connection = Me.SqlConnection1
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@類(lèi)型", System.Data.SqlDbType.VarChar, 20, "類(lèi)型"))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@圖書(shū)冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, "圖書(shū)冊(cè)書(shū)"))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@期刊冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, "期刊冊(cè)書(shū)"))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@續(xù)借次數(shù)", System.Data.SqlDbType.Int, 4, "續(xù)借次數(shù)"))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@限制圖書(shū)", System.Data.SqlDbType.Bit, 1, "限制圖書(shū)"))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@限制期刊", System.Data.SqlDbType.Bit, 1, "限制期刊"))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_類(lèi)型", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "類(lèi)型", System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_圖書(shū)冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "圖書(shū)冊(cè)書(shū)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_期刊冊(cè)書(shū)", System.Data.SqlDbType.SmallInt, 2, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "期刊冊(cè)書(shū)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_續(xù)借次數(shù)", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "續(xù)借次數(shù)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_限制圖書(shū)", System.Data.SqlDbType.Bit, 1, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "限制圖書(shū)", System.Data.DataRowVersion.Original, Nothing))
Me.SqlUpdateCommand1.Parameters.Add(New System.Data.SqlClient.SqlParameter("@Original_限制期刊", System.Data.SqlDbType.Bit, 1, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "限制期刊", System.Data.DataRowVersion.Original, Nothing))
'
'DataSet11
'
Me.DataSet11.DataSetName = "DataSet1"
Me.DataSet11.Locale = New System.Globalization.CultureInfo("zh-CN")
'
'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.cbbMagzine)
Me.GroupBox1.Controls.Add(Me.cbbBook)
Me.GroupBox1.Controls.Add(Me.txbTimes)
Me.GroupBox1.Controls.Add(Me.Label7)
Me.GroupBox1.Controls.Add(Me.txbMagzineCount)
Me.GroupBox1.Controls.Add(Me.Label6)
Me.GroupBox1.Controls.Add(Me.txbBookCount)
Me.GroupBox1.Controls.Add(Me.Label5)
Me.GroupBox1.Controls.Add(Me.txbType)
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Location = New System.Drawing.Point(0, 160)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(576, 160)
Me.GroupBox1.TabIndex = 6
Me.GroupBox1.TabStop = False
'
'cbbMagzine
'
Me.cbbMagzine.DataBindings.Add(New System.Windows.Forms.Binding("Checked", Me.DataSet11, "讀者類(lèi)型.限制期刊"))
Me.cbbMagzine.Location = New System.Drawing.Point(120, 72)
Me.cbbMagzine.Name = "cbbMagzine"
Me.cbbMagzine.Size = New System.Drawing.Size(80, 24)
Me.cbbMagzine.TabIndex = 9
Me.cbbMagzine.Text = "限制期刊"
'
'cbbBook
'
Me.cbbBook.DataBindings.Add(New System.Windows.Forms.Binding("Checked", Me.DataSet11, "讀者類(lèi)型.限制圖書(shū)"))
Me.cbbBook.Location = New System.Drawing.Point(24, 72)
Me.cbbBook.Name = "cbbBook"
Me.cbbBook.Size = New System.Drawing.Size(80, 24)
Me.cbbBook.TabIndex = 8
Me.cbbBook.Text = "限制圖書(shū)"
'
'txbTimes
'
Me.txbTimes.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "讀者類(lèi)型.續(xù)借次數(shù)"))
Me.txbTimes.Location = New System.Drawing.Point(432, 40)
Me.txbTimes.Name = "txbTimes"
Me.txbTimes.Size = New System.Drawing.Size(58, 21)
Me.txbTimes.TabIndex = 7
Me.txbTimes.Text = ""
'
'Label7
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -