亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmbase.frm

?? 星級酒店管理系統(附帶系統自寫控件源碼)
?? FRM
?? 第 1 頁 / 共 5 頁
字號:
  Exit Sub
DelErr:
  MsgBox "刪除錯誤:" & Err.Description, vbCritical
  Exit Sub
End Sub


Private Sub cmdDelSite_Click()
  
  On Error GoTo DelErr
  
  If cmdDelSite.Caption = "取消" Then
     cmdDelSite.Caption = "刪除"
     cmdModifySite.Caption = "修改"
     cmdAddSite.Enabled = True
    '1首先給出其名稱
      ftSite.Text = ""
      lstSite.Enabled = True
      ftPrice.Text = "0"
      ftSite.SetFocus
      Exit Sub
  End If
  
  If lstSite.ListCount = 0 Then Exit Sub
  If lstSite.Text = "" Then
     MsgBox "請選擇需要座位(餐桌),再刪除。  ", vbInformation
     lstSite.ListIndex = 0
     lstSite.SetFocus
     Exit Sub
  End If
  
  If MsgBox("真的要刪除〖" & Trim(Mid(lstSite.Text, 1, InStr(1, lstSite, " ", vbTextCompare) - 1)) & "〗座位(餐桌)嗎?(Y/N)    ", vbYesNo + vbInformation) = vbNo Then Exit Sub
  
  If DeleteSiteType(Trim(Mid(lstSite.Text, 1, InStr(1, lstSite, " ", vbTextCompare) - 1)), "SiteType") = True Then
     lstSite.RemoveItem lstSite.ListIndex
  End If
  
  If lstSite.ListCount = 0 Then
     cmdDelSite.Enabled = False
    Else
     cmdDelSite.Enabled = True
  End If
  
  ftSite.SetFocus
  
  Exit Sub
DelErr:
  MsgBox "刪除錯誤:" & Err.Description, vbCritical
  Exit Sub
End Sub

Private Sub cmdDelUnit_Click()

  On Error Resume Next
  
  If lstUnitType.ListCount = 0 Then Exit Sub
  If lstUnitType.Text = "" Then
     MsgBox "請選擇需要類型,再刪除。  ", vbInformation
     lstUnitType.ListIndex = 0
     lstUnitType.SetFocus
     Exit Sub
  End If
  
  If MsgBox("真的要刪除〖" & lstUnitType.Text & "〗類型嗎?(Y/N)    ", vbYesNo + vbInformation) = vbNo Then Exit Sub
  
  If DeleteType(lstUnitType.Text, "Unittype") = True Then
     lstUnitType.RemoveItem lstUnitType.ListIndex
  End If
  
  If lstUnitType.ListCount = 0 Then
     cmdDelUnit.Enabled = False
    Else
     cmdDelUnit.Enabled = True
  End If
  
  ftUnitType.SetFocus
  
End Sub

Private Function AddMenuType(sName As String, sSQL As String, iDiscount As Integer) As Boolean
  
   On Error GoTo GetERR
   
   Dim utDB As Connection
   Dim utRS As Recordset
   Set utDB = CreateObject("ADODB.Connection")
   Set utRS = CreateObject("ADODB.Recordset")
       utDB.Open Constr
      '首先查詢是否有重復
       utRS.Open sSQL, utDB, adOpenStatic, adLockOptimistic, adCmdText
       If Not (utRS.EOF And utRS.BOF) Then
          AddMenuType = False
          MsgBox "對不起,類型【" & sName & "】已經存在,修改后繼續?  ", vbExclamation
         Else
          utRS.AddNew
          utRS("CLass") = sName
          utRS("Discount") = iDiscount            '菜單打折狀態
          utRS.Update
          AddMenuType = True
       End If
       utRS.Close
       utDB.Close
       Set utRS = Nothing
       Set utDB = Nothing
       
   Exit Function
GetERR:
   AddMenuType = False
   MsgBox "添加錯誤:" & Err.Description, vbCritical
   
End Function

Private Function AddType(sName As String, sSQL As String) As Boolean
  
   On Error GoTo GetERR
   
   Dim utDB As Connection
   Dim utRS As Recordset
   Set utDB = CreateObject("ADODB.Connection")
   Set utRS = CreateObject("ADODB.Recordset")
       utDB.Open Constr
      '首先查詢是否有重復
       utRS.Open sSQL, utDB, adOpenStatic, adLockOptimistic, adCmdText
       If Not (utRS.EOF And utRS.BOF) Then
          AddType = False
          MsgBox "對不起,類型【" & sName & "】已經存在,修改后繼續?  ", vbExclamation
         Else
          utRS.AddNew
          utRS("CLass") = sName
          utRS.Update
          AddType = True
       End If
       utRS.Close
       utDB.Close
       Set utRS = Nothing
       Set utDB = Nothing
       
   Exit Function
GetERR:
   AddType = False
   MsgBox "添加錯誤:" & Err.Description, vbCritical
   
End Function

Private Function EditMenuType(sName As String, sOldName As String, sSQL As String, lDiscount As Integer) As Boolean
  
   On Error GoTo GetERR
   
  'SQL中包含原來的類型
   Dim utDB As Connection
   Dim utRS As Recordset
   
   Set utDB = CreateObject("ADODB.Connection")
   Set utRS = CreateObject("ADODB.Recordset")
   
       utDB.Open Constr
       utDB.BeginTrans
      '首先查詢是否有重復
       If UCase(sName) <> UCase(sOldName) Then
          Dim dtRs As Recordset
          Set dtRs = CreateObject("ADODB.Recordset")
              dtRs.Open "Select * from MenuType Where Class='" & sName & "'", utDB, adOpenStatic, adLockReadOnly, adCmdText
             '該編號已經存在時
              If Not (dtRs.EOF And dtRs.BOF) Then
                 utDB.RollbackTrans
                 dtRs.Close
                 Set dtRs = Nothing
                 utDB.Close
                 Set utDB = Nothing
                 EditMenuType = False
                 MsgBox "對不起,【" & sName & "】已經存在,修改后繼續?  ", vbExclamation
                 Exit Function
              End If
             '一切正常
              dtRs.Close
              Set dtRs = Nothing
       End If
       utRS.Open sSQL, utDB, adOpenStatic, adLockOptimistic, adCmdText
       If utRS.EOF And utRS.BOF Then
          EditMenuType = False
          utDB.RollbackTrans
          MsgBox "對不起,【" & sOldName & "】不存在,修改錯誤?  ", vbExclamation
         Else
          utRS("Class") = sName
          utRS("Discount") = lDiscount
          utRS.Update
         '修改其它單據的ID
          Dim sMy As String
              sMy = "Update EatList Set MType='" & sName & "' Where MType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update Cust Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update prtCust Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update ptCust Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tmpBox Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update TodayCust Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tmpCust Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tmpCust1 Set DType='" & sName & "' Where DType='" & sOldName & "'"
              utDB.Execute sMy
          utDB.CommitTrans
          EditMenuType = True
       End If
       utRS.Close
       utDB.Close
       Set utRS = Nothing
       Set utDB = Nothing
       
   Exit Function
GetERR:
   EditMenuType = False
   MsgBox "保存菜單類型錯誤:" & Err.Description, vbCritical
   
End Function

Private Function EditType(sName As String, sOldName As String, sSQL As String, lDiscount As Integer) As Boolean
  
   On Error GoTo GetERR
   
  'SQL中包含原來的類型
   Dim utDB As Connection
   Dim utRS As Recordset
   
   Set utDB = CreateObject("ADODB.Connection")
   Set utRS = CreateObject("ADODB.Recordset")
   
       utDB.Open Constr
       utDB.BeginTrans
      '首先查詢是否有重復
       If UCase(sName) <> UCase(sOldName) Then
          Dim dtRs As Recordset
          Set dtRs = CreateObject("ADODB.Recordset")
              dtRs.Open "Select * from MenuType Where Class='" & sName & "'", utDB, adOpenStatic, adLockReadOnly, adCmdText
             '該編號已經存在時
              If Not (dtRs.EOF And dtRs.BOF) Then
                 utDB.RollbackTrans
                 dtRs.Close
                 Set dtRs = Nothing
                 utDB.Close
                 Set utDB = Nothing
                 EditType = False
                 MsgBox "對不起,【" & sName & "】已經存在,修改后繼續?  ", vbExclamation
                 Exit Function
              End If
             '一切正常
              dtRs.Close
              Set dtRs = Nothing
       End If
       
       utRS.Open sSQL, utDB, adOpenStatic, adLockOptimistic, adCmdText
       If utRS.EOF And utRS.BOF Then
          EditType = False
          utDB.RollbackTrans
          MsgBox "對不起,【" & sOldName & "】不存在,修改錯誤?  ", vbExclamation
         Else
          utRS("CLass") = sName
          utRS("Discount") = lDiscount
          utRS.Update
         '修改其它單據的ID
          Dim sMy As String
              sMy = "Update EatList Set MType='" & sName & "' Where MType='" & sOldName & "'"
              utDB.Execute sMy
              
          utDB.CommitTrans
          EditType = True
       End If
       utRS.Close
       utDB.Close
       Set utRS = Nothing
       Set utDB = Nothing
       
   Exit Function
GetERR:
   EditType = False
   MsgBox "保存錯誤:" & Err.Description, vbCritical
   
End Function

Private Function EditSiteType(sName As String, sOldName As String, sSQL As String, lDiscount As Currency, lSupper As Currency, lNight As Currency) As Boolean
  
   On Error GoTo GetERR
   
  'SQL中包含原來的類型
   Dim utDB As Connection
   Dim utRS As Recordset
   
   Set utDB = CreateObject("ADODB.Connection")
   Set utRS = CreateObject("ADODB.Recordset")
   
       utDB.Open Constr
       utDB.BeginTrans
      '首先查詢是否有重復
       If UCase(sName) <> UCase(sOldName) Then
          Dim dtRs As Recordset
          Set dtRs = CreateObject("ADODB.Recordset")
              dtRs.Open "Select * from SiteType Where Class='" & sName & "'", utDB, adOpenStatic, adLockReadOnly, adCmdText
             '該編號已經存在時
              If Not (dtRs.EOF And dtRs.BOF) Then
                 utDB.RollbackTrans
                 dtRs.Close
                 Set dtRs = Nothing
                 utDB.Close
                 Set utDB = Nothing
                 EditSiteType = False
                 MsgBox "對不起,【" & sName & "】已經存在,修改后繼續?  ", vbExclamation
                 Exit Function
              End If
             '一切正常
              dtRs.Close
              Set dtRs = Nothing
       End If
       utRS.Open sSQL, utDB, adOpenStatic, adLockOptimistic, adCmdText
       If utRS.EOF And utRS.BOF Then
          EditSiteType = False
          utDB.RollbackTrans
          MsgBox "對不起,【" & sOldName & "】不存在,修改錯誤?  ", vbExclamation
         Else
          If utRS("SiteStatus") = 2 Then
             utDB.RollbackTrans
             utRS.Close
             Set utRS = Nothing
             utDB.Close
             Set utDB = Nothing
             EditSiteType = False
             MsgBox "【" & sName & "】正在上臺,不能修改。請在結帳后再修改?  ", vbExclamation
             Exit Function
          End If
          utRS("CLass") = sName
          utRS("Price") = lDiscount          '中午包廂費
          utRS("SupperPrice") = lSupper      '下午包廂費
          utRS("NightPrice") = lNight        '晚上包廂費
          utRS.Update
         '修改其它單據的ID
          Dim sMy As String
              sMy = "Update Cust Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update GatherTodayCust Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update prtCust Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update Site Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tbdBook Set Class='" & sName & "' Where Class='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tmpCust Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tmpSite Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update tmpTodayCust Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update TodayCust Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
              sMy = "Update TodayCustx Set Site='" & sName & "' Where Site='" & sOldName & "'"
              utDB.Execute sMy
          utDB.CommitTrans
          EditSiteType = True
       End If
       utRS.Close
       utDB.Close
       Set utRS = Nothing
       Set utDB = Nothing
       
   Exit Function
GetERR:
   EditSiteType = False
   MsgBox "保存錯誤:" & Err.Description, vbCritical
   
End Function

Private Function AddSiteType(sName As String, sPrice As String, SupperPrice As String, NightPrice As String, sSQL As String) As Boolean
  
   On Error GoTo GetERR
   
   Dim utDB As Connection
   Dim utRS As Recordset
   Set utDB = CreateObject("ADODB.Connection")
   Set utRS = CreateObject("ADODB.Recordset")
       utDB.Open Constr
      '首先查詢是否有重復
       utRS.Open sSQL, utDB, adOpenStatic, adLockOptimistic, adCmdText
       If Not (utRS.EOF And utRS.BOF) Then
          AddSiteType = False
          MsgBox "對不起,餐桌名稱【" & sName & "】已經存在,修改后繼續?  ", vbExclamation
         Else
          utRS.AddNew
          utRS("CLass") = sName
          utRS("Price") = CCur(sPrice)                   '中午包廂費
          utRS("SupperPrice") = CCur(SupperPrice)        '下午包廂費
          utRS("NightPrice") = CCur(NightPrice)          '晚上包廂費
          utRS("SiteStatus") = 0
          utRS.Update
          AddSiteType = True
       End If
       utRS.Close
       utDB.Close
       Set utRS = Nothing
       Set utDB = Nothing
       
   Exit Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩免费视频一区| 秋霞电影一区二区| 青青草97国产精品免费观看| 高清在线成人网| 欧美军同video69gay| 椎名由奈av一区二区三区| 轻轻草成人在线| 欧美三级日本三级少妇99| 国产蜜臀97一区二区三区| 日韩成人伦理电影在线观看| 91视频一区二区三区| 久久在线免费观看| 日韩精品成人一区二区三区| 91亚洲精华国产精华精华液| 国产视频一区二区在线观看| 久久国产生活片100| 4438x亚洲最大成人网| 午夜精品久久久久| 色噜噜狠狠成人中文综合| 国产精品每日更新在线播放网址 | 亚洲欧美激情在线| 国产在线播放一区三区四| 正在播放亚洲一区| 亚洲动漫第一页| 91麻豆视频网站| 亚洲色图清纯唯美| 在线观看日韩电影| 一区二区三区高清| 欧美日韩精品一二三区| 亚洲一区二区三区中文字幕 | 国产精品77777| 精品福利在线导航| 国产真实乱对白精彩久久| 亚洲精品一线二线三线无人区| 日韩国产欧美三级| 日韩美女一区二区三区四区| 天堂影院一区二区| 日韩欧美一级二级三级久久久| 性做久久久久久免费观看| 欧美日韩高清一区| 捆绑变态av一区二区三区| 欧美mv和日韩mv国产网站| 国产九九视频一区二区三区| 亚洲精品一区二区三区影院 | 91高清视频在线| 亚洲伊人伊色伊影伊综合网| 精品视频123区在线观看| 视频一区二区国产| 久久久国际精品| 不卡av在线免费观看| 亚洲一区国产视频| 91精品国产综合久久久蜜臀粉嫩 | 91传媒视频在线播放| 午夜精品一区二区三区电影天堂| 91精品国产色综合久久不卡蜜臀 | 国产精品久久午夜夜伦鲁鲁| 色综合久久天天| 视频一区二区欧美| 国产调教视频一区| 欧美日韩一本到| 黄色小说综合网站| 亚洲精品第一国产综合野| 7878成人国产在线观看| 国产一区二区在线免费观看| 日韩一区在线看| 欧美一二三在线| proumb性欧美在线观看| 爽好久久久欧美精品| 亚洲国产成人自拍| 欧美蜜桃一区二区三区| 成人网在线免费视频| 日韩电影在线一区| 国产精品电影一区二区| 精品日韩一区二区三区免费视频| 波多野洁衣一区| 丝袜诱惑制服诱惑色一区在线观看| 久久精品这里都是精品| 7777精品久久久大香线蕉| 丰满岳乱妇一区二区三区| 日本三级韩国三级欧美三级| 国产精品成人在线观看| 久久影音资源网| 欧美日本精品一区二区三区| 99久久久精品| www.欧美色图| 男女性色大片免费观看一区二区 | 欧美高清激情brazzers| 国产精品一卡二卡在线观看| 亚洲mv在线观看| 亚洲色图在线播放| 中文字幕av一区二区三区免费看| 欧美精品18+| 欧美性色欧美a在线播放| www..com久久爱| 国产大片一区二区| 激情av综合网| 久久成人久久鬼色| 日日夜夜一区二区| 婷婷一区二区三区| 亚洲一级在线观看| 一区二区欧美视频| 亚洲精品久久久蜜桃| 国产精品久久福利| 国产精品日韩成人| 久久久久久电影| 国产欧美日本一区二区三区| 精品国产髙清在线看国产毛片 | 色先锋久久av资源部| 成人一道本在线| 国产凹凸在线观看一区二区| 国产又黄又大久久| 国产精品一区在线观看你懂的| 久久精品99国产精品| 久久国产精品99久久久久久老狼| 蜜乳av一区二区| 久久99精品久久久久久国产越南 | 久久精品日产第一区二区三区高清版| 制服丝袜激情欧洲亚洲| 91精品婷婷国产综合久久竹菊| 欧美久久一二区| 欧美电影免费观看高清完整版| 日韩欧美激情一区| 精品国产91亚洲一区二区三区婷婷 | 91精品久久久久久久91蜜桃| 欧美一级午夜免费电影| 欧美本精品男人aⅴ天堂| 精品国产精品网麻豆系列| 久久久国产一区二区三区四区小说| 国产亚洲午夜高清国产拍精品 | 久久久精品综合| 国产精品国模大尺度视频| 亚洲乱码中文字幕| 婷婷成人综合网| 激情六月婷婷久久| 99久久久国产精品免费蜜臀| 欧美亚洲高清一区二区三区不卡| 欧美丰满一区二区免费视频| 精品播放一区二区| 中文字幕 久热精品 视频在线| 中文字幕一区二区三区精华液| 亚洲综合激情网| 日韩电影一区二区三区四区| 国产一区二区不卡| 99精品欧美一区二区三区综合在线| 欧美日韩卡一卡二| 久久女同精品一区二区| 中文字幕一区二区三区精华液 | 欧美va在线播放| 1000部国产精品成人观看| 亚洲va天堂va国产va久| 国产在线播放一区二区三区| 91传媒视频在线播放| 久久日一线二线三线suv| 中文字幕中文字幕一区二区| 日韩和欧美一区二区| 成人成人成人在线视频| 欧美一区国产二区| 亚洲欧美另类小说视频| 精品一二线国产| 欧美亚洲国产一区二区三区| 国产丝袜在线精品| 日本va欧美va瓶| 色网站国产精品| 国产欧美一区二区精品婷婷| 亚洲成人一二三| www.日韩大片| 久久久蜜桃精品| 亚洲狠狠爱一区二区三区| 国产a视频精品免费观看| 日韩一级黄色大片| 亚洲制服丝袜av| 一本到不卡免费一区二区| 久久久精品国产免大香伊| 美国三级日本三级久久99| 欧美亚洲国产一区二区三区| 国产精品全国免费观看高清| 玖玖九九国产精品| 4438x亚洲最大成人网| 亚洲在线免费播放| 色婷婷综合五月| 国产精品美女久久福利网站 | 日本一区免费视频| 日韩avvvv在线播放| 欧美在线高清视频| 国产精品白丝在线| 不卡的av在线播放| 中文字幕 久热精品 视频在线| 久久99这里只有精品| 6080日韩午夜伦伦午夜伦| 香蕉乱码成人久久天堂爱免费| 99精品黄色片免费大全| 国产精品卡一卡二| 成人国产精品免费观看| 欧美经典三级视频一区二区三区| 另类成人小视频在线| 久久先锋影音av鲁色资源网| 久久99国产精品免费| 精品国产乱码久久久久久闺蜜| 青青青伊人色综合久久| 欧美大片拔萝卜|