?? 當日營業員收入表.frm
字號:
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
'歡迎你下載使用本代碼,本份代碼由程序太平洋提供下載學習之用
'聲明:
'1.本站所有代碼的版權歸原作者所有,如果你使用了在本站下載的源代碼
' 引起的一切糾紛(后果)與本站無關,請您尊重原作者的勞動成果!
'2.若本站在代碼上有侵權之處請您與站長聯系,站長會及時更正。
'網站:http://www.dapha.net
'論壇:http://www.5ivb.net
'Email:dapha@etang.com
'CopyRight 2001-2005 By dapha.net
'整理時間:2003-12-8 12:22:14
'星級酒店管理系統最初功能演示版,提供所有星級酒店管理中的客房管理,
'房態管理,客史管理,客人資料管理,帳務管理,報表管理,餐飲收費管理
'菜譜管理,夜審處理,數據庫備份等功能.所有功能皆可以運行,(但有一些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 + -