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

📄 夜审操作.frm

📁 vb酒店管理系统的原码下载
💻 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 夜审 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "夜间处理"
   ClientHeight    =   2400
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7560
   LinkTopic       =   "Form2"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2400
   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 
      Caption         =   "关闭"
      Height          =   300
      Left            =   4455
      TabIndex        =   2
      Top             =   1710
      Width           =   1245
   End
   Begin VB.CommandButton Command1 
      Caption         =   "开始"
      Height          =   300
      Left            =   1770
      TabIndex        =   1
      Top             =   1710
      Width           =   1245
   End
   Begin MSComctlLib.ProgressBar ProgressBar1 
      Height          =   270
      Left            =   270
      TabIndex        =   0
      Top             =   645
      Width           =   6960
      _ExtentX        =   12277
      _ExtentY        =   476
      _Version        =   393216
      BorderStyle     =   1
      Appearance      =   0
   End
End
Attribute VB_Name = "夜审"
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 日营业收入报表"
    Adodc1.Refresh
    While Not Adodc1.Recordset.EOF
        Adodc1.Recordset.Fields("当日发生额") = 0
        Adodc1.Recordset.Fields("现金") = 0
        Adodc1.Recordset.Fields("信用卡") = 0
        Adodc1.Recordset.Fields("挂帐") = 0
        Adodc1.Recordset.Fields("未结帐") = 0
        Adodc1.Recordset.Update
        Adodc1.Recordset.MoveNext
    Wend
    Adodc1.Recordset.Close

    Adodc3.ConnectionString = My_PROVIDER
    Adodc3.CommandType = adCmdText
    Adodc3.RecordSource = "select * from 帐务记录 where 借方<>0 and 日期 like '" & System_Date & "'"
    Adodc3.Refresh
    Adodc3.Recordset.MoveFirst
    Me.ProgressBar1.Max = Adodc3.Recordset.RecordCount
    While Not Adodc3.Recordset.EOF
        Me.ProgressBar1.Value = Adodc3.Recordset.AbsolutePosition
        KM_Number = Trim(Adodc3.Recordset.Fields("科目编码"))
        KM_Name = Adodc3.Recordset.Fields("科目名称")
        JF_jiner = Adodc3.Recordset.Fields("借方")
        BiZhong = Adodc3.Recordset.Fields("币种")
        Pay_Type = Adodc3.Recordset.Fields("支付方式")
        JieZhang_Type = IIf(IsNull(Adodc3.Recordset.Fields("结帐状态")), "", Adodc3.Recordset.Fields("结帐状态"))
        KM_NumberLen = Len(Trim(KM_Number))
        Select Case KM_NumberLen
        Case 2
            Call Account2
        Case 4
            Call Account4
        Case 6
            Call Account6
        Case Else
        
        End Select
        Adodc3.Recordset.MoveNext
    Wend
    
    Adodc3.Recordset.Close


'日营业汇总(结帐)
    Adodc3.ConnectionString = My_PROVIDER
    Adodc3.CommandType = adCmdText
    Adodc3.RecordSource = "select * from 帐务记录 where 借方<>0 and 结帐日期 like '" & System_Date & "'"
    Adodc3.Refresh
    If Adodc3.Recordset.RecordCount > 0 Then
    Adodc3.Recordset.MoveFirst
    Me.ProgressBar1.Max = Adodc3.Recordset.RecordCount
    While Not Adodc3.Recordset.EOF
        Me.ProgressBar1.Value = Adodc3.Recordset.AbsolutePosition
        KM_Number = Adodc3.Recordset.Fields("科目编码")
        KM_Name = Adodc3.Recordset.Fields("科目名称")
        JF_jiner = Adodc3.Recordset.Fields("借方")
        BiZhong = Adodc3.Recordset.Fields("币种")

⌨️ 快捷键说明

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