📄 frmconsume.vb
字号:
Public Class frmConsume Inherits 酒店管理系统.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 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 Label7 As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents cbbContent As System.Windows.Forms.ComboBox
Friend WithEvents txbRemark As System.Windows.Forms.TextBox
Friend WithEvents txbMoney As System.Windows.Forms.TextBox
Friend WithEvents txbInId As System.Windows.Forms.TextBox
Friend WithEvents SqlDataAdapter1 As System.Data.SqlClient.SqlDataAdapter
Friend WithEvents DataSet11 As 酒店管理系统.DataSet1
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 btnOpen As System.Windows.Forms.Button
Friend WithEvents tmConsume As System.Windows.Forms.DateTimePicker
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmConsume))
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.tmConsume = New System.Windows.Forms.DateTimePicker
Me.DataSet11 = New 酒店管理系统.DataSet1
Me.btnOpen = New System.Windows.Forms.Button
Me.cbbContent = New System.Windows.Forms.ComboBox
Me.Label8 = New System.Windows.Forms.Label
Me.txbRemark = New System.Windows.Forms.TextBox
Me.txbMoney = New System.Windows.Forms.TextBox
Me.txbInId = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
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.tmConsume)
Me.GroupBox1.Controls.Add(Me.btnOpen)
Me.GroupBox1.Controls.Add(Me.cbbContent)
Me.GroupBox1.Controls.Add(Me.Label8)
Me.GroupBox1.Controls.Add(Me.txbRemark)
Me.GroupBox1.Controls.Add(Me.txbMoney)
Me.GroupBox1.Controls.Add(Me.txbInId)
Me.GroupBox1.Controls.Add(Me.Label7)
Me.GroupBox1.Controls.Add(Me.Label6)
Me.GroupBox1.Controls.Add(Me.Label5)
Me.GroupBox1.Controls.Add(Me.Label4)
Me.GroupBox1.Location = New System.Drawing.Point(0, 172)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(600, 160)
Me.GroupBox1.TabIndex = 4
Me.GroupBox1.TabStop = False
'
'tmConsume
'
Me.tmConsume.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "帐单明细.消费时间"))
Me.tmConsume.Format = System.Windows.Forms.DateTimePickerFormat.Short
Me.tmConsume.Location = New System.Drawing.Point(280, 80)
Me.tmConsume.Name = "tmConsume"
Me.tmConsume.Size = New System.Drawing.Size(120, 21)
Me.tmConsume.TabIndex = 11
'
'DataSet11
'
Me.DataSet11.DataSetName = "DataSet1"
Me.DataSet11.Locale = New System.Globalization.CultureInfo("zh-CN")
'
'btnOpen
'
Me.btnOpen.Image = CType(resources.GetObject("btnOpen.Image"), System.Drawing.Image)
Me.btnOpen.Location = New System.Drawing.Point(128, 31)
Me.btnOpen.Name = "btnOpen"
Me.btnOpen.Size = New System.Drawing.Size(26, 23)
Me.btnOpen.TabIndex = 10
'
'cbbContent
'
Me.cbbContent.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "帐单明细.消费内容"))
Me.cbbContent.Items.AddRange(New Object() {"加收房费", "加收水电费", "视频点播费", "宽带上网费", "商品使用费", "其他费用"})
Me.cbbContent.Location = New System.Drawing.Point(11, 79)
Me.cbbContent.Name = "cbbContent"
Me.cbbContent.Size = New System.Drawing.Size(121, 20)
Me.cbbContent.TabIndex = 9
'
'Label8
'
Me.Label8.Location = New System.Drawing.Point(11, 60)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(56, 16)
Me.Label8.TabIndex = 8
Me.Label8.Text = "消费内容"
'
'txbRemark
'
Me.txbRemark.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "帐单明细.备注"))
Me.txbRemark.Location = New System.Drawing.Point(11, 129)
Me.txbRemark.Name = "txbRemark"
Me.txbRemark.Size = New System.Drawing.Size(389, 21)
Me.txbRemark.TabIndex = 7
Me.txbRemark.Text = ""
'
'txbMoney
'
Me.txbMoney.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "帐单明细.消费金额"))
Me.txbMoney.Location = New System.Drawing.Point(160, 79)
Me.txbMoney.Name = "txbMoney"
Me.txbMoney.TabIndex = 3
Me.txbMoney.Text = ""
'
'txbInId
'
Me.txbInId.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "帐单明细.入住单号"))
Me.txbInId.Location = New System.Drawing.Point(11, 32)
Me.txbInId.Name = "txbInId"
Me.txbInId.TabIndex = 1
Me.txbInId.Text = ""
'
'Label7
'
Me.Label7.Location = New System.Drawing.Point(11, 107)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(56, 16)
Me.Label7.TabIndex = 6
Me.Label7.Text = "备注"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(296, 60)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(56, 16)
Me.Label6.TabIndex = 4
Me.Label6.Text = "消费时间"
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(161, 60)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(56, 16)
Me.Label5.TabIndex = 2
Me.Label5.Text = "消费金额"
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(11, 15)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(56, 16)
Me.Label4.TabIndex = 0
Me.Label4.Text = "入住单号"
'
'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("帐单编号", "帐单编号"), New System.Data.Common.DataColumnMapping("入住单号", "入住单号"), New System.Data.Common.DataColumnMapping("消费内容", "消费内容"), New System.Data.Common.DataColumnMapping("消费金额", "消费金额"), New System.Data.Common.DataColumnMapping("消费时间", "消费时间"), New System.Data.Common.DataColumnMapping("备注", "备注")})})
Me.SqlDataAdapter1.UpdateCommand = Me.SqlUpdateCommand1
'
'SqlDeleteCommand1
'
Me.SqlDeleteCommand1.CommandText = "DELETE FROM 帐单明细 WHERE (帐单编号 = @Original_帐单编号) AND (入住单号 = @Original_入住单号) AND (备" & _
"注 = @Original_备注 OR @Original_备注 IS NULL AND 备注 IS NULL) AND (消费内容 = @Original_消" & _
"费内容 OR @Original_消费内容 IS NULL AND 消费内容 IS NULL) AND (消费时间 = @Original_消费时间 OR @O" & _
"riginal_消费时间 IS NULL AND 消费时间 IS NULL) AND (消费金额 = @Original_消费金额 OR @Original_消" & _
"费金额 IS NULL AND 消费金额 IS NULL)"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -