main_kfgl_tjbb.frm

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

FRM
658
字号
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin ComctlLib.ImageList ImageList2 
      Left            =   0
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   16777215
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   5
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":0442
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":1094
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":1CE6
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":2938
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":358A
            Key             =   ""
         EndProperty
      EndProperty
   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         =   "main_kfgl_tjbb.frx":41DC
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":44F6
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":4810
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":4B2A
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":5164
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":5666
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":5988
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":5D4E
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":6320
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":695A
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":6D0C
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":70BE
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":7410
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":7762
            Key             =   ""
         EndProperty
         BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":7AB4
            Key             =   ""
         EndProperty
         BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":7E06
            Key             =   ""
         EndProperty
         BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":8158
            Key             =   ""
         EndProperty
         BeginProperty ListImage18 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "main_kfgl_tjbb.frx":84AA
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "main_kfgl_tjbb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
    '初始化窗口位置
Me.Left = MDIForm1.Picture1.Width
Me.Top = (Screen.Height - Me.Height) / 2
    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
    
    Select Case Button.key
        Case "关闭"
            Unload Me
        Case "打印"
            Set rtpRS = Adodc1.Recordset
            rtpTitle = Me.Caption
            Call rtpExcel
    End Select
End Sub

⌨️ 快捷键说明

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