⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_kfgl_ys.frm

📁 星级酒店客房管理系统一套很不错的系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form main_kfgl_ys 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "【夜审稽核】"
   ClientHeight    =   1245
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7560
   Icon            =   "main_kfgl_ys.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1245
   ScaleWidth      =   7560
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc3 
      Height          =   330
      Left            =   180
      Top             =   1935
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc3"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   210
      Top             =   1590
      Visible         =   0   'False
      Width           =   1350
      _ExtentX        =   2381
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc2"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   195
      Top             =   1230
      Visible         =   0   'False
      Width           =   1740
      _ExtentX        =   3069
      _ExtentY        =   609
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Height          =   375
      Left            =   5160
      Picture         =   "main_kfgl_ys.frx":1982
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   720
      Width           =   940
   End
   Begin VB.CommandButton Command1 
      Height          =   375
      Left            =   4080
      Picture         =   "main_kfgl_ys.frx":27D4
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   720
      Width           =   940
   End
   Begin MSComctlLib.ProgressBar ProgressBar1 
      Height          =   270
      Left            =   270
      TabIndex        =   0
      Top             =   240
      Width           =   6960
      _ExtentX        =   12277
      _ExtentY        =   476
      _Version        =   393216
      BorderStyle     =   1
      Appearance      =   0
   End
End
Attribute VB_Name = "main_kfgl_ys"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Dim FAccount_id As String
Dim FAccount_line As Long
Dim Account_Line2 As Long
Dim KM_Number As String
Dim KM_Name As String
Dim KR_Name As String
Dim JF_jiner, JF_jiner2, JF_jiner3, JF_jiner4, JF_jiner5 As Currency
Dim BiZhong, Pay_Type As String
Dim JieZhang_Type As String
Dim KM_NumberLen As Integer

Private Sub Command1_Click()
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 参数"
    Adodc1.Refresh
    Adodc1.Recordset.Fields("系统状态") = "夜审"
    Adodc1.Recordset.Update
    Adodc1.Recordset.Close
'房费结转
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 住宿情况 where 当前状态 like '入住'"
    Adodc1.Refresh
    Me.ProgressBar1.Max = Adodc1.Recordset.RecordCount
    
    While Not Adodc1.Recordset.EOF
        Me.ProgressBar1.Value = Adodc1.Recordset.AbsolutePosition
        FAccount_id = Adodc1.Recordset.Fields("帐号")
        FAccount_line = Adodc1.Recordset.Fields("帐务笔数") + 1
        RoomNO = Adodc1.Recordset.Fields("房号")
        Room_Rate = Adodc1.Recordset.Fields("房价")
        KR_Name = Adodc1.Recordset.Fields("姓名")
        If Room_Rate <> 0 Then
            Adodc3.ConnectionString = My_PROVIDER
            Adodc3.CommandType = adCmdText
            Adodc3.RecordSource = "select * from 帐务记录 where 帐号 like '" & FAccount_id & "' order by 行"
            Adodc3.Refresh
            Adodc3.Recordset.AddNew
            Adodc3.Recordset.Fields("帐号") = FAccount_id
            Adodc3.Recordset.Fields("行") = FAccount_line
            Adodc3.Recordset.Fields("日期") = System_Date
            Adodc3.Recordset.Fields("时间") = Left(Time, 5)
            Adodc3.Recordset.Fields("房号") = RoomNO
            Adodc3.Recordset.Fields("科目编码") = "300101"
            Adodc3.Recordset.Fields("科目名称") = "房  费"
            Adodc3.Recordset.Fields("借方") = Room_Rate
            Adodc3.Recordset.Fields("支付方式") = "预付款扣"
            Adodc3.Recordset.Fields("操作员") = "夜审"
            Adodc3.Recordset.Fields("币种") = "RMB"
            Adodc3.Recordset.Fields("姓名") = KR_Name
            Adodc3.Recordset.Update
            Account_Line2 = Adodc3.Recordset.RecordCount
            Adodc3.Recordset.Close
            Adodc1.Recordset.Fields("平衡金额") = Adodc1.Recordset.Fields("平衡金额") + Room_Rate
            Adodc1.Recordset.Fields("费用类") = Adodc1.Recordset.Fields("费用类") + Room_Rate
            Adodc1.Recordset.Fields("房租") = Adodc1.Recordset.Fields("房租") + Room_Rate
            Adodc1.Recordset.Fields("全日房") = Adodc1.Recordset.Fields("全日房") + Room_Rate
            Adodc1.Recordset.Fields("帐务笔数") = Adodc1.Recordset.Fields("帐务笔数") + 1
            Adodc1.Recordset.Update
            If Account_Line2 <> facount_line Then
                Adodc1.Recordset.Fields("标志") = "帐务笔数不符"
                Adodc1.Recordset.Update
            End If
        End If
        Adodc1.Recordset.MoveNext
    Wend
    Adodc1.Recordset.Close
'日营业汇总(发生额)    清零
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 日营业收入报表"

⌨️ 快捷键说明

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