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

📄 统计报表.frm

📁 vb酒店管理系统的原码下载
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      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 ComctlLib.ImageList ImageList1 
      Left            =   0
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   18
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":0000
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":031A
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":0634
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":094E
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":0F88
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":148A
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":17AC
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":1B72
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":2144
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":277E
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":2B30
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":2EE2
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":3234
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":3586
            Key             =   ""
         EndProperty
         BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":38D8
            Key             =   ""
         EndProperty
         BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":3C2A
            Key             =   ""
         EndProperty
         BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":3F7C
            Key             =   ""
         EndProperty
         BeginProperty ListImage18 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "统计报表.frx":42CE
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "统计报表form"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'星级酒店管理系统最初功能演示版,提供所有星级酒店管理中的客房管理,
'房态管理,客史管理,客人资料管理,帐务管理,报表管理,餐饮收费管理
'菜谱管理,夜审处理,数据库备份等功能.所有功能皆可以运行,(但有一些BUG未处理)
'此代码完全可以完成星级酒店上述管理功能.(提供者:帅)
'--------------------------------------------------------------
'代码编写于:2001.12  系统分析:帅   代码编写:帅    版权所有:帅
'--------------------------------------------------------------
'本份代码仅提供给程序太平洋的所有朋友学习,研究之用.
'其它网站一律不得转载,否则为侵权行为,本人保留法律追诉权力.
'这也是本人最早的VB版程序,代码质量不好.望笑纳.:)
'--------------------------------------------------------------
'提供日期:2003-05-31    提供者:帅
'--------------------------------------------------------------
'系统提从与ACCESS或SQL相接,在登录时,选择全局数据库,就与SQL数据库
'连接,字符串存放在SERVER.DAT文本文件中;选择本地数据库,与本地ACCESS
'数据库相连,连接字符串存放在LOCAT.DAT文件中.(当前存放为e:\hotel2\room.mdb)
'---------------------------------------------------------------
'将ACCESS中所有表导入SQL中,并将有的表中的ID字段改为自动编码,就可以使用.
'---------------------------------------------------------------------
'
'

Private Sub Form_Load()
    Top = 0
    Left = 0
    Select Case Query_Type
    Case "全体操作员交班统计表"
                BB_type = "报表"
    Me.Caption = Query_Type
    
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select 时间,帐号,房号,姓名,科目编码,科目名称,币种,贷方 as 金额,操作员 from 帐务记录 where 日期 like '" & System_Date & "' and 科目编码 like '10%' order by 科目编码"
    Adodc1.Refresh
    
    Set DataGrid1.DataSource = Adodc1
    DataGrid1.ReBind
    DataGrid1.Refresh
    DataGrid1.Columns(0).Width = 500
    DataGrid1.Columns(1).Width = 1200
    DataGrid1.Columns(2).Width = 700
    
    FB_table2 = Adodc1.RecordSource
    Adodc2.ConnectionString = My_PROVIDER
    Adodc2.CommandType = adCmdText
    Adodc2.RecordSource = "select 科目编码,科目名称,币种,sum(贷方) as 金额合计 from 帐务记录 where 日期 like '" & System_Date & "' and 科目编码 like '10%' group by 科目编码,科目名称,币种"
    Adodc2.Refresh
    Set DataGrid2.DataSource = Adodc2
    DataGrid2.ReBind
    DataGrid2.Refresh
    
    FB_SumTable = Adodc2.RecordSource
    
    
    Case "个人操作员交班统计表"
                BB_type = "报表"
    Me.Caption = Query_Type
    
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select 时间,帐号,房号,姓名,科目编码,科目名称,币种,贷方 as 金额,操作员 from 帐务记录 where 日期 like '" & System_Date & "' and 科目编码 like '10%' and 操作员 like '" & CzyName & "'order by 科目编码"
    Adodc1.Refresh
    
    Set DataGrid1.DataSource = Adodc1
    DataGrid1.ReBind
    DataGrid1.Refresh
    DataGrid1.Columns(0).Width = 500
    DataGrid1.Columns(1).Width = 1200
    DataGrid1.Columns(2).Width = 700
    
    FB_table2 = Adodc1.RecordSource
    Adodc2.ConnectionString = My_PROVIDER
    Adodc2.CommandType = adCmdText
    Adodc2.RecordSource = "select 科目编码,科目名称,币种,sum(贷方) as 金额合计 from 帐务记录 where 日期 like '" & System_Date & "' and 科目编码 like '10%' and 操作员 like '" & CzyName & "' group by 科目编码,科目名称,币种"
    Adodc2.Refresh
    Set DataGrid2.DataSource = Adodc2
    DataGrid2.ReBind
    DataGrid2.Refresh
    
    FB_SumTable = Adodc2.RecordSource
    
    
    Case "日营业收入报表"
                BB_type = "报表"
        Me.Caption = "日营业收入报表"
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select * from 日营业收入报表 where 日期 like '" & CStr(CDate(System_Date) - 1) & "'"
        Adodc1.Refresh
    
        Set DataGrid1.DataSource = Adodc1
        DataGrid1.ReBind
        DataGrid1.Refresh
        DataGrid1.Columns(0).Width = 1500
        DataGrid1.Columns(1).Width = 1200
        DataGrid1.Columns(2).Width = 700

        FB_table2 = Adodc1.RecordSource
        
        Adodc2.ConnectionString = My_PROVIDER
        Adodc2.CommandType = adCmdText
        Adodc2.RecordSource = "select 日期,sum(当日发生额) as 当日发生额,sum(当月发生额累计) as 当月发生额累计,sum(现金) as 现金,sum(信用卡) as 信用卡,sum(挂帐) as 挂帐,sum(当月累计) as 当月累计 from 日营业收入报表 where 日期 like '" & CStr(CDate(System_Date) - 1) & "' group by 日期"
        Adodc2.Refresh
        
        Set DataGrid2.DataSource = Adodc2
        DataGrid2.ReBind
        DataGrid2.Refresh

        FB_SumTable = Adodc2.RecordSource
    Case "当日收银汇总表"
        Me.Caption = "当日收银汇总表"
        BB_type = "报表"
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select 日期,操作员,支付方式, sum(贷方) as 金额 from 帐务记录 where 日期 like '" & System_Date & "' group by 日期,操作员,支付方式"
        Adodc1.Refresh
    
        Set DataGrid1.DataSource = Adodc1
        DataGrid1.ReBind
        DataGrid1.Refresh
        DataGrid1.Columns(0).Width = 1500
        DataGrid1.Columns(1).Width = 1200
        DataGrid1.Columns(2).Width = 1500

        FB_table2 = Adodc1.RecordSource
        FB_SumTable = Adodc1.RecordSource
        DataGrid2.Visible = False
    
    Case "当日收预付款报表"
        Me.Caption = "当日收预付款报表"
        BB_type = "报表"
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select 日期,时间,房号,姓名,贷方 as 金额,对应科目,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 科目名称 like '预付款'"
        Adodc1.Refresh
    
        Set DataGrid1.DataSource = Adodc1
        DataGrid1.ReBind
        DataGrid1.Refresh
        DataGrid1.Columns(0).Width = 1500
        DataGrid1.Columns(1).Width = 1200
        DataGrid1.Columns(2).Width = 1500

        FB_table2 = Adodc1.RecordSource
        FB_SumTable = Adodc1.RecordSource
        DataGrid2.Visible = False
        
    Case "当日全日房租报表"
        Me.Caption = "当日全日房租报表"
        BB_type = "报表"
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select 日期,时间,房号,姓名,借方 as 房租,对应科目,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 科目名称 like '房  费'"
        Adodc1.Refresh
    
        Set DataGrid1.DataSource = Adodc1
        DataGrid1.ReBind
        DataGrid1.Refresh
        DataGrid1.Columns(0).Width = 1500
        DataGrid1.Columns(1).Width = 1200
        DataGrid1.Columns(2).Width = 1500

        FB_table2 = Adodc1.RecordSource
        FB_SumTable = Adodc1.RecordSource
        DataGrid2.Visible = False
    Case "当日半日房租报表"
        Me.Caption = "当日半日房租报表"
        BB_type = "报表"
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select 日期,时间,房号,姓名,借方 as 房租,对应科目,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 科目名称 like '半日房'"
        Adodc1.Refresh
    
        Set DataGrid1.DataSource = Adodc1
        DataGrid1.ReBind
        DataGrid1.Refresh
        DataGrid1.Columns(0).Width = 1500
        DataGrid1.Columns(1).Width = 1200
        DataGrid1.Columns(2).Width = 1500

        FB_table2 = Adodc1.RecordSource
        FB_SumTable = Adodc1.RecordSource
        DataGrid2.Visible = False
    Case "当日钟点房租报表"
        Me.Caption = "当日钟点房租报表"
        BB_type = "报表"
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select 日期,时间,房号,姓名,借方 as 房租,对应科目,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 科目名称 like '钟点房'"
        Adodc1.Refresh
    
        Set DataGrid1.DataSource = Adodc1
        DataGrid1.ReBind
        DataGrid1.Refresh
        DataGrid1.Columns(0).Width = 1500
        DataGrid1.Columns(1).Width = 1200
        DataGrid1.Columns(2).Width = 1500

        FB_table2 = Adodc1.RecordSource
        FB_SumTable = Adodc1.RecordSource
        DataGrid2.Visible = False


    End Select
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
    Dim i As Integer
    Dim SFZ As String
    
    'On Error GoTo E3008
PE3008:
    Select Case Button.Key
        Case "关闭"

            Unload Me
        Case "打印"

            BB_title = Me.Caption
            万能报表.Show

    End Select
End Sub

⌨️ 快捷键说明

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