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

📄 main_kfgl_dryyy.frm

📁 星级酒店客房管理系统一套很不错的系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Begin VB.CommandButton Command1 
         BackColor       =   &H80000009&
         Caption         =   "打印"
         Height          =   680
         Index           =   1
         Left            =   720
         Picture         =   "main_kfgl_dryyy.frx":25C4
         Style           =   1  'Graphical
         TabIndex        =   9
         Top             =   0
         Width           =   720
      End
      Begin VB.CommandButton Command1 
         BackColor       =   &H80000009&
         Caption         =   "关闭"
         Height          =   680
         Index           =   0
         Left            =   1710
         Picture         =   "main_kfgl_dryyy.frx":3206
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   0
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Label1"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   18
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   5640
         TabIndex        =   6
         Top             =   240
         Width           =   1170
      End
   End
   Begin MSAdodcLib.Adodc Adodc3 
      Height          =   345
      Left            =   3135
      Top             =   6600
      Visible         =   0   'False
      Width           =   1905
      _ExtentX        =   3360
      _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         =   "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 Adodc1 
      Height          =   390
      Left            =   1560
      Top             =   7200
      Visible         =   0   'False
      Width           =   1830
      _ExtentX        =   3228
      _ExtentY        =   688
      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 MSAdodcLib.Adodc Adodc2 
      Height          =   390
      Left            =   1245
      Top             =   6450
      Visible         =   0   'False
      Width           =   2535
      _ExtentX        =   4471
      _ExtentY        =   688
      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
End
Attribute VB_Name = "main_kfgl_dryyy"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim CzyName1 As String

Private Sub Command1_Click(Index As Integer)
    Dim i As Integer
    Dim SFZ As String
    
    'On Error GoTo E3008
PE3008:
    Select Case Index
        Case Is = 0
            Unload Me
        Case Is = 1
            Set rtpRS = Adodc2.Recordset
            rtpTitle = Me.Caption
            Call rtpExcel
        Case Is = 2
            Me.Caption = System_Date & "   全体营业员收银详细报表"
            Label1.Caption = Me.Caption
            Adodc2.ConnectionString = My_PROVIDER
            Adodc2.CommandType = adCmdText
            Adodc2.RecordSource = "select 帐号,房号,姓名,贷方 as 金额,科目名称,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 贷方<>0"
            Adodc2.Refresh
            Set DataGrid2.DataSource = Adodc2
            DataGrid2.ReBind
            DataGrid2.Refresh
            DataGrid2.Columns(0).Width = 1000
            DataGrid2.Columns(3).Width = 1100
            DataGrid2.Columns(4).Width = 1100
            FB_table2 = Adodc2.RecordSource

            Adodc3.ConnectionString = My_PROVIDER
            Adodc3.CommandType = adCmdText
            Adodc3.RecordSource = "select 日期,支付方式,sum(贷方) as 金额 from 帐务记录 where 日期 like '" & System_Date & "' and 贷方<>0 group by 日期,支付方式"
            Adodc3.Refresh
            Set DataGrid3.DataSource = Adodc3
            DataGrid3.ReBind
            DataGrid3.Refresh
            FB_SumTable = Adodc3.RecordSource
    End Select
End Sub

Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
    CzyName1 = Adodc1.Recordset.Fields("操作员")
    Me.Caption = CzyName1 & " " & Format(System_Date, "yyyy年mm月dd日") & " [" & Report_Type & "]收入详细报表"
    Select Case Report_Type
    Case "客房部"
        Adodc2.ConnectionString = My_PROVIDER
        Adodc2.CommandType = adCmdText
        'Adodc2.RecordSource = "select 帐号,房号,姓名,贷方 as 金额,发票号,科目名称,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 操作员 like '" & CzyName1 & "' and 贷方<>0 and 支付方式<>'结帐' and 支付方式<>'预付款扣' and 支付方式<>'挂帐' and 支付方式<>'转帐' and 支付方式<>'挂帐'"
       'Adodc2.RecordSource = "select 帐号,房号,姓名,贷方 as 金额,发票号,科目名称,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 操作员 like '" & CzyName1 & "' and 贷方<>0"
       Adodc2.RecordSource = "select 帐号,房号,姓名,贷方 as 金额,发票号,科目名称,支付方式 from 帐务记录 where  操作员 like '" & CzyName1 & "' and 贷方<>0"
        Adodc2.Refresh
        Set DataGrid2.DataSource = Adodc2
        DataGrid2.ReBind
        DataGrid2.Refresh
        DataGrid2.Columns(0).Width = 1000
        DataGrid2.Columns(3).Width = 1100
        DataGrid2.Columns(4).Width = 1100
        FB_table2 = Adodc2.RecordSource

        Adodc3.ConnectionString = My_PROVIDER
        Adodc3.CommandType = adCmdText
        Adodc3.RecordSource = "select 日期,操作员,支付方式,科目名称,sum(贷方) as 金额 from 帐务记录 where 日期 like '" & System_Date & "' and 操作员 like '" & CzyName1 & "' and 贷方<>0 group by 日期,操作员,支付方式,科目名称"
        Adodc3.Refresh
        Set DataGrid3.DataSource = Adodc3
        DataGrid3.ReBind
        DataGrid3.Refresh
        FB_SumTable = Adodc3.RecordSource
    Case "餐饮部"
        Adodc2.ConnectionString = My_PROVIDER
        Adodc2.CommandType = adCmdText
        'Adodc2.RecordSource = "select 帐号,房号,姓名,贷方 as 金额,发票号,科目名称,支付方式 from 帐务记录 where 日期 like '" & System_Date & "' and 操作员 like '" & CzyName1 & "' and 贷方<>0 and 支付方式<>'结帐' and 支付方式<>'预付款扣' and 支付方式<>'挂帐' and 支付方式<>'转帐' and 支付方式<>'挂帐'"
        Adodc2.RecordSource = "select 日期,发票号,房号桌号,应收金额,折扣,折扣金额,实收金额,支付方式,帐户名称,批准人员,操作员 from 餐厅营业表 where 日期 like '" & System_Date & "' and 操作员 like '" & CzyName1 & "' and 贷方<>0 and 发票号<>'999999'"
        Adodc2.Refresh
        Set DataGrid2.DataSource = Adodc2
        DataGrid2.ReBind
        DataGrid2.Refresh
        DataGrid2.Columns(0).Width = 1000
        DataGrid2.Columns(3).Width = 1100
        DataGrid2.Columns(4).Width = 1100
        FB_table2 = Adodc2.RecordSource

        Adodc3.ConnectionString = My_PROVIDER
        Adodc3.CommandType = adCmdText
        Adodc3.RecordSource = "select 日期,操作员,支付方式,sum(实收金额) as 实收金额 from 餐厅营业表 where 日期 like '" & System_Date & "' and 操作员 like '" & CzyName1 & "' and 贷方<>0 and 发票号<>'999999' group by 日期,操作员,支付方式"
        Adodc3.Refresh
        Set DataGrid3.DataSource = Adodc3
        DataGrid3.ReBind
        DataGrid3.Refresh
        FB_SumTable = Adodc3.RecordSource
    
    End Select
End Sub

Private Sub Form_Load()
    Me.Caption = Format(System_Date, "yyyy年mm月dd日") & " [" & Report_Type & "]收入详细报表"
    Label1.Caption = Me.Caption
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select 操作员,级别 from 权限信息表"
    Adodc1.Refresh
    Set DataGrid1.DataSource = Adodc1
    DataGrid1.ReBind
    DataGrid1.Refresh
End Sub

⌨️ 快捷键说明

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