📄 当日营业员收入表.frm
字号:
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 390
Left = 180
Top = 6405
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
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 = "当日营业员收入表"
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字段改为自动编码,就可以使用.
'---------------------------------------------------------------------
'
'
Dim CzyName1 As String
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
CzyName1 = Adodc1.Recordset.Fields("USERNAME")
Me.Caption = CzyName1 & " " & System_Date & " " & 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.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()
Top = 0
Left = 0
Me.Caption = System_Date & " " & Report_Type & "收入详细报表"
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select username,usertype from 用户"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
DataGrid1.ReBind
DataGrid1.Refresh
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_type = "报表"
BB_title = Me.Caption
万能报表.Show
Case "全部"
Me.Caption = System_Date & " 全体营业员收银详细报表"
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -