📄 zsdj.vb
字号:
Imports System.data.SqlClient
Public Class zsdj
Inherits System.Windows.Forms.Form
Dim constr As String = "server=.;database=RoomManager;integrated security=true"
Dim con As New SqlConnection(constr)
Dim com As SqlCommand
Dim dr As SqlDataReader
Dim state 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 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 Button1 As System.Windows.Forms.Button
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox2 As System.Windows.Forms.ComboBox
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox3 As System.Windows.Forms.ComboBox
Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox4 As System.Windows.Forms.ComboBox
Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
Friend WithEvents TextBox7 As System.Windows.Forms.TextBox
Friend WithEvents ComboBox5 As System.Windows.Forms.ComboBox
Friend WithEvents Label13 As System.Windows.Forms.Label
Friend WithEvents TextBox8 As System.Windows.Forms.TextBox
Friend WithEvents Label14 As System.Windows.Forms.Label
Friend WithEvents TextBox9 As System.Windows.Forms.TextBox
Friend WithEvents Label15 As System.Windows.Forms.Label
Friend WithEvents TextBox10 As System.Windows.Forms.TextBox
Friend WithEvents Label16 As System.Windows.Forms.Label
Friend WithEvents TextBox11 As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.Label11 = New System.Windows.Forms.Label
Me.Label12 = New System.Windows.Forms.Label
Me.Button1 = New System.Windows.Forms.Button
Me.Button2 = New System.Windows.Forms.Button
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.ComboBox1 = New System.Windows.Forms.ComboBox
Me.TextBox3 = New System.Windows.Forms.TextBox
Me.ComboBox2 = New System.Windows.Forms.ComboBox
Me.TextBox4 = New System.Windows.Forms.TextBox
Me.ComboBox3 = New System.Windows.Forms.ComboBox
Me.TextBox5 = New System.Windows.Forms.TextBox
Me.ComboBox4 = New System.Windows.Forms.ComboBox
Me.TextBox6 = New System.Windows.Forms.TextBox
Me.TextBox7 = New System.Windows.Forms.TextBox
Me.ComboBox5 = New System.Windows.Forms.ComboBox
Me.Label13 = New System.Windows.Forms.Label
Me.TextBox8 = New System.Windows.Forms.TextBox
Me.Label14 = New System.Windows.Forms.Label
Me.TextBox9 = New System.Windows.Forms.TextBox
Me.Label15 = New System.Windows.Forms.Label
Me.TextBox10 = New System.Windows.Forms.TextBox
Me.Label16 = New System.Windows.Forms.Label
Me.TextBox11 = New System.Windows.Forms.TextBox
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label1.Location = New System.Drawing.Point(40, 40)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(88, 23)
Me.Label1.TabIndex = 0
Me.Label1.Text = "客户ID"
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label2.Location = New System.Drawing.Point(312, 40)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(88, 23)
Me.Label2.TabIndex = 1
Me.Label2.Text = "姓 名"
'
'Label3
'
Me.Label3.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label3.Location = New System.Drawing.Point(40, 80)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(88, 23)
Me.Label3.TabIndex = 2
Me.Label3.Text = "是否为预定"
'
'Label4
'
Me.Label4.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label4.Location = New System.Drawing.Point(312, 80)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(88, 23)
Me.Label4.TabIndex = 3
Me.Label4.Text = "预定码"
'
'Label5
'
Me.Label5.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label5.Location = New System.Drawing.Point(40, 120)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(88, 23)
Me.Label5.TabIndex = 4
Me.Label5.Text = "性 别"
'
'Label6
'
Me.Label6.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label6.Location = New System.Drawing.Point(312, 120)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(88, 23)
Me.Label6.TabIndex = 5
Me.Label6.Text = "房间ID"
'
'Label7
'
Me.Label7.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label7.Location = New System.Drawing.Point(40, 160)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(88, 23)
Me.Label7.TabIndex = 6
Me.Label7.Text = "证件类别"
'
'Label8
'
Me.Label8.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label8.Location = New System.Drawing.Point(312, 160)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(88, 23)
Me.Label8.TabIndex = 7
Me.Label8.Text = "证件号"
'
'Label9
'
Me.Label9.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label9.Location = New System.Drawing.Point(40, 200)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(88, 23)
Me.Label9.TabIndex = 8
Me.Label9.Text = "房间属性"
'
'Label10
'
Me.Label10.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label10.Location = New System.Drawing.Point(40, 280)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(88, 23)
Me.Label10.TabIndex = 9
Me.Label10.Text = "入住时间"
'
'Label11
'
Me.Label11.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label11.Location = New System.Drawing.Point(312, 280)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(88, 23)
Me.Label11.TabIndex = 10
Me.Label11.Text = "退房时间"
'
'Label12
'
Me.Label12.Font = New System.Drawing.Font("宋体", 12.0!)
Me.Label12.Location = New System.Drawing.Point(40, 320)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(88, 23)
Me.Label12.TabIndex = 11
Me.Label12.Text = "可用状态"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(384, 376)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 10
Me.Button1.Text = "确 定"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(496, 376)
Me.Button2.Name = "Button2"
Me.Button2.TabIndex = 11
Me.Button2.Text = "退 出"
'
'TextBox1
'
Me.TextBox1.Font = New System.Drawing.Font("宋体", 10.0!)
Me.TextBox1.Location = New System.Drawing.Point(128, 40)
Me.TextBox1.MaxLength = 40
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.ReadOnly = True
Me.TextBox1.Size = New System.Drawing.Size(80, 23)
Me.TextBox1.TabIndex = 22
Me.TextBox1.Text = "自动生成"
'
'TextBox2
'
Me.TextBox2.Font = New System.Drawing.Font("宋体", 10.0!)
Me.TextBox2.Location = New System.Drawing.Point(392, 40)
Me.TextBox2.MaxLength = 10
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(80, 23)
Me.TextBox2.TabIndex = 0
Me.TextBox2.Text = ""
'
'ComboBox1
'
Me.ComboBox1.Font = New System.Drawing.Font("宋体", 10.0!)
Me.ComboBox1.Items.AddRange(New Object() {"是", "否"})
Me.ComboBox1.Location = New System.Drawing.Point(128, 81)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(40, 21)
Me.ComboBox1.TabIndex = 1
Me.ComboBox1.Text = "否"
'
'TextBox3
'
Me.TextBox3.Font = New System.Drawing.Font("宋体", 10.0!)
Me.TextBox3.Location = New System.Drawing.Point(392, 80)
Me.TextBox3.MaxLength = 10
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.ReadOnly = True
Me.TextBox3.Size = New System.Drawing.Size(80, 23)
Me.TextBox3.TabIndex = 23
Me.TextBox3.Text = "否"
'
'ComboBox2
'
Me.ComboBox2.Font = New System.Drawing.Font("宋体", 10.0!)
Me.ComboBox2.Items.AddRange(New Object() {"男", "女"})
Me.ComboBox2.Location = New System.Drawing.Point(128, 118)
Me.ComboBox2.Name = "ComboBox2"
Me.ComboBox2.Size = New System.Drawing.Size(40, 21)
Me.ComboBox2.TabIndex = 2
Me.ComboBox2.Text = "男"
'
'TextBox4
'
Me.TextBox4.Font = New System.Drawing.Font("宋体", 10.0!)
Me.TextBox4.Location = New System.Drawing.Point(392, 120)
Me.TextBox4.MaxLength = 10
Me.TextBox4.Name = "TextBox4"
Me.TextBox4.ReadOnly = True
Me.TextBox4.Size = New System.Drawing.Size(80, 23)
Me.TextBox4.TabIndex = 24
Me.TextBox4.Text = "自动生成"
'
'ComboBox3
'
Me.ComboBox3.Font = New System.Drawing.Font("宋体", 10.0!)
Me.ComboBox3.Items.AddRange(New Object() {"身份证", "军人证", "签证"})
Me.ComboBox3.Location = New System.Drawing.Point(128, 160)
Me.ComboBox3.Name = "ComboBox3"
Me.ComboBox3.Size = New System.Drawing.Size(80, 21)
Me.ComboBox3.TabIndex = 3
Me.ComboBox3.Text = "身份证"
'
'TextBox5
'
Me.TextBox5.Font = New System.Drawing.Font("宋体", 10.0!)
Me.TextBox5.Location = New System.Drawing.Point(392, 160)
Me.TextBox5.MaxLength = 32
Me.TextBox5.Name = "TextBox5"
Me.TextBox5.Size = New System.Drawing.Size(144, 23)
Me.TextBox5.TabIndex = 4
Me.TextBox5.Text = ""
'
'ComboBox4
'
Me.ComboBox4.Font = New System.Drawing.Font("宋体", 10.0!)
Me.ComboBox4.Location = New System.Drawing.Point(128, 200)
Me.ComboBox4.Name = "ComboBox4"
Me.ComboBox4.Size = New System.Drawing.Size(80, 21)
Me.ComboBox4.TabIndex = 5
Me.ComboBox4.Text = "标准单间"
'
'TextBox6
'
Me.TextBox6.Font = New System.Drawing.Font("宋体", 10.0!)
Me.TextBox6.Location = New System.Drawing.Point(128, 280)
Me.TextBox6.Name = "TextBox6"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -