main_kfgl_krcx.frm

来自「星级酒店客房管理系统一套很不错的系统」· FRM 代码 · 共 1,700 行 · 第 1/5 页

FRM
1,700 行
字号
         EndProperty
         BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":3F238
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":40D8A
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":428DC
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":4442E
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":45F80
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":47AD2
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":49624
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":4B176
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":4CCC8
            Key             =   ""
         EndProperty
         BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":4E81A
            Key             =   ""
         EndProperty
         BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":5036C
            Key             =   ""
         EndProperty
         BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":51EBE
            Key             =   ""
         EndProperty
         BeginProperty ListImage18 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":53A10
            Key             =   ""
         EndProperty
         BeginProperty ListImage19 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":55562
            Key             =   ""
         EndProperty
         BeginProperty ListImage20 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":570B4
            Key             =   ""
         EndProperty
         BeginProperty ListImage21 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":58C06
            Key             =   ""
         EndProperty
         BeginProperty ListImage22 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":5A758
            Key             =   ""
         EndProperty
         BeginProperty ListImage23 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":5C2AA
            Key             =   ""
         EndProperty
         BeginProperty ListImage24 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":5DDFC
            Key             =   ""
         EndProperty
         BeginProperty ListImage25 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":5F94E
            Key             =   ""
         EndProperty
         BeginProperty ListImage26 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":614A0
            Key             =   ""
         EndProperty
         BeginProperty ListImage27 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":62FF2
            Key             =   ""
         EndProperty
         BeginProperty ListImage28 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":64B44
            Key             =   ""
         EndProperty
         BeginProperty ListImage29 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":66696
            Key             =   ""
         EndProperty
         BeginProperty ListImage30 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":681E8
            Key             =   ""
         EndProperty
         BeginProperty ListImage31 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":69D3A
            Key             =   ""
         EndProperty
         BeginProperty ListImage32 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":6B88C
            Key             =   ""
         EndProperty
         BeginProperty ListImage33 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":6D3DE
            Key             =   ""
         EndProperty
         BeginProperty ListImage34 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":6EF30
            Key             =   ""
         EndProperty
         BeginProperty ListImage35 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":70A82
            Key             =   ""
         EndProperty
         BeginProperty ListImage36 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":725D4
            Key             =   ""
         EndProperty
         BeginProperty ListImage37 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":74126
            Key             =   ""
         EndProperty
         BeginProperty ListImage38 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":75C78
            Key             =   ""
         EndProperty
         BeginProperty ListImage39 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":777CA
            Key             =   ""
         EndProperty
         BeginProperty ListImage40 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":7931C
            Key             =   ""
         EndProperty
         BeginProperty ListImage41 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":7AE6E
            Key             =   ""
         EndProperty
         BeginProperty ListImage42 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":7C9C0
            Key             =   ""
         EndProperty
         BeginProperty ListImage43 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":7E512
            Key             =   ""
         EndProperty
         BeginProperty ListImage44 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":80064
            Key             =   ""
         EndProperty
         BeginProperty ListImage45 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":81BB6
            Key             =   ""
         EndProperty
         BeginProperty ListImage46 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":83708
            Key             =   ""
         EndProperty
         BeginProperty ListImage47 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":8525A
            Key             =   ""
         EndProperty
         BeginProperty ListImage48 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":86DAC
            Key             =   ""
         EndProperty
         BeginProperty ListImage49 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":888FE
            Key             =   ""
         EndProperty
         BeginProperty ListImage50 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":8A450
            Key             =   ""
         EndProperty
         BeginProperty ListImage51 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_krcx.frx":8BFA2
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "main_kfgl_krcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Dim DJ_query As Boolean
Dim DATA_edit As Boolean
Dim Field_Type As Integer
Dim Field_Value As String
Dim FindFieldC As String
Dim ZH_find As String
Dim ZH_find1 As String
Dim ZH_ysh As String
Dim SF_BG As Boolean
Dim BD_BG As Boolean
Dim Or_Field As String
Dim US_Field As String
Dim Data_Rec As Long
Dim TY_XG As Boolean
Dim FB_table1 As String

Public sqlStr As String

Private Sub Command1_Click()
    Adodc1.Recordset.Fields("级别") = "黑名单"
    Adodc1.Recordset.Fields("级别类型") = Me.Combo10.Text
    Adodc1.Recordset.Update
End Sub

Private Sub Command10_Click()
    Adodc1.Recordset.AddNew
    Adodc1.Recordset.Fields("姓名") = KeRen.Text
    Adodc1.Recordset.Fields("英文姓名") = Text2.Text
    Adodc1.Recordset.Fields("性别") = Combo1.Text
    Adodc1.Recordset.Fields("出生日期") = Text4.Text
    Adodc1.Recordset.Fields("籍贯") = Text5.Text
    Adodc1.Recordset.Fields("长住地址") = Text6.Text
    Adodc1.Recordset.Fields("联系电话") = Text7.Text
    Adodc1.Recordset.Fields("身份或职业") = Text8.Text
    Adodc1.Recordset.Fields("证件号码") = Text9.Text
    Adodc1.Recordset.Fields("客人类别") = Combo2.Text
    Adodc1.Recordset.Fields("级别") = Text11.Text
    'Adodc1.Recordset.Fields("密码") = Text12.Text
    'Adodc1.Recordset.Fields("折扣") = Text13.Text
    Adodc1.Recordset.Fields("操作员") = CzyName
    Adodc1.Recordset.Update
    Me.Picture5.Visible = False
End Sub

Private Sub Command11_Click()
    Me.Picture5.Visible = False
End Sub

Private Sub Command12_Click(Index As Integer)
    Dim i As Integer
    Dim Room_No2 As String
    On Error GoTo E3008
PE3008:
    Select Case Index
        Case Is = 0
            Unload Me
        Case Is = 2
            Adodc1.ConnectionString = My_PROVIDER
            Adodc1.CommandType = adCmdText
           Adodc1.RecordSource = sqlStr '"select * from " & FB_table1
           Adodc1.Refresh

        Case Is = 3
            If FindFieldC = "" Then
                MsgBox "请注意:您未选择字段!", 48, "提示"
            Else
                Me.Picture1.Visible = True
                Me.Label13.Caption = "{" & FindFieldC & "}"
                Me.Field_Z.Text = ""
                Me.Field_Z.SetFocus
                If Not DJ_query Then
                    ZH_find1 = ""
                End If
            End If
        Case Is = 4
            If Not DJ_query Then
                DJ_query = True
                Me.Command12(4).Value = tbrPressed
            Else
                DJ_query = False
                Me.Command12(4).Value = tbrUnpressed
            End If
            
        Case Is = 1
            BB_type = "用户档案"
            Select Case Me.Caption
            Case "在住客人预付和消费表"
                BB_type = "报表"
            Case "挂帐明细报表"
                BB_type = "报表"
            End Select
            Set rtpRS = Adodc1.Recordset
            rtpTitle = Me.Caption
            Call rtpExcel
            
        Case Is = 5
            Or_Field = FindFieldC
            MsgBox "按 [" & Or_Field & "] 排序!", 64, "提示"
            Adodc1.ConnectionString = My_PROVIDER
            Adodc1.CommandType = adCmdText
            Adodc1.RecordSource = "select * from " & US_Field & " order by " & Or_Field
            Adodc1.Refresh
            Set DataGrid1.DataSource = Adodc1
            DataGrid1.Refresh
            DataGrid1.Visible = True
        
        Case Is = 6
            If Not (IsNull(Adodc1.Recordset.Fields("客人留言")) Or Len(Trim(Adodc1.Recordset.Fields("客人留言"))) = 0) Then
                MsgBox "请注意:客人{" & Adodc1.Recordset.Fields("姓名") & "}留言:" & Adodc1.Recordset.Fields("客人留言") & "!", 64, "留言提示"
            End If
            Registration_Type = "售出"
            Load_Statu = "使用"
            main_kfgl_ft.Show 1
'保存房态
    If Room_Statu = "空房" Then
        If Load_Statu = "使用" Then
            Adodc9.ConnectionString = My_PROVIDER
            Adodc9.CommandType = adCmdText
            Adodc9.RecordSource = "select * from 客房 where 房号 like '" & RoomNO & "'"
            Adodc9.Refresh
            Adodc9.Recordset.Fields("当前状态") = Registration_Type
            Adodc9.Recordset.Fields("出售方式") = Room_Use_Type
            Adodc9.Recordset.Fields("帐号") = Account_ID
            Adodc9.Recordset.Fields("住客") = 1
            Adodc9.Recordset.Update
            Adodc9.Recordset.Close
        End If
    Else
        If Room_Statu = "预订" Then
            If Account_ID = QAccount_ID Then
                Adodc9.ConnectionString = My_PROVIDER
                Adodc9.CommandType = adCmdText
                Adodc9.RecordSource = "select * from 客房 where 房号 like '" & RoomNO & "'"
                Adodc9.Refresh
                Adodc9.Recordset.Fields("当前状态") = Registration_Type
                Adodc9.Recordset.Fields("出售方式") = Room_Use_Type
                Adodc9.Recordset.Fields("帐号") = Account_ID
                Adodc9.Recordset.Update
                Adodc9.Recordset.Close
            Else
                MsgBox "请注意:" & RoomNO & "房间当前状态是:[" & Room_Statu & "],被[" & QAccount_ID & "]帐号" & Room_Share_Type & ",不能" & Registration_Type & "!", 48, "提示"
                Room_Update = False
            End If
        Else
            If Room_Statu = "售出" Then
            

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?