宾馆客房管理系统(13)

时间:2026-01-25   来源:未知    
字号:

宾馆客房管理设计,工具sql和vs2008.

Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click

Dim yuju10 As String = "select orderno,bookmoney,discount from t_book , t_vip where t_book.guestid=t_vip.guestid and roomid='" & TextBox16.Text & "' " Dim spq10 As SqlDataAdapter

spq10 = New SqlDataAdapter(yuju10, sql) Dim sjj10 As New DataSet() spq10.Fill(sjj10, "inn2")

DataGrid2.DataSource = sjj10.Tables("inn2") Dim mybind As BindingManagerBase mybind = BindingContext(sjj10, "inn2")

TextBox17.DataBindings.Add("text", sjj10.Tables("inn2"), "orderno") TextBox18.DataBindings.Add("text", sjj10.Tables("inn2"), "discount") TextBox19.DataBindings.Add("text", sjj10.Tables("inn2"), "bookmoney")

End Sub

Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click

Dim yuju11 As String = "select orderno,bookmoney,discount,intime,bookmoney from t_room and t_vip where t_room.guestid=t_vip.guestid and roomid='" & TextBox16.Text & "' " Dim spq11 As SqlDataAdapter

spq11 = New SqlDataAdapter(yuju11, sql) Dim sjj11 As New DataSet() spq11.Fill(sjj11, "inn5")

TextBox20.Text = sjj11.Tables("inn5").Columns(4).ToString

Dim yujus As String = "update t_room set status='true' where roomid='" & TextBox16.Text & "'"

Dim cmmds As New SqlCommand(yujus, sql)

Dim yuju15 As String = "insert into t_check values('" & TextBox17.Text & "','','','" & TextBox20.Text & "','','" & TextBox17.Text & "')"

Dim cmmd15 As New SqlCommand(yuju15, sql)

Dim yuju16 As String = "delete from t_book where roomid='" & TextBox16.Text & "'"

Dim cmmd16 As New SqlCommand(yuju16,sql) Dim ii As Integer Dim ff As Integer Dim tt As Integer sql.Open() Try

ii = cmmds.ExecuteNonQuery() ff = cmmds.ExecuteNonQuery() tt = cmmds.ExecuteNonQuery()

宾馆客房管理系统(13).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:19 元/月 原价:99元
低至 0.1 元/份 每月下载300
全站内容免费自由复制
VIP包月下载
特价:19 元/月 原价:99元
低至 0.1 元/份 每月下载300
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)