宾馆客房管理系统(13)

发布时间:2021-06-06

宾馆客房管理设计,工具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文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219