?? 往來帳戶管理.frm
字號:
Begin VB.TextBox Text1
Height = 300
Index = 0
Left = 1500
TabIndex = 4
Top = 600
Width = 2670
End
Begin VB.CommandButton Command1
Caption = "保存"
Height = 285
Left = 765
TabIndex = 3
Top = 4935
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "關(guān)閉"
Height = 285
Left = 2850
TabIndex = 2
Top = 4920
Width = 1095
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "銀行帳戶:"
ForeColor = &H0000FFFF&
Height = 210
Index = 5
Left = 570
TabIndex = 20
Top = 2970
Width = 1080
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "備 注:"
ForeColor = &H0000FFFF&
Height = 210
Index = 4
Left = 555
TabIndex = 18
Top = 3495
Width = 1080
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "開戶銀行:"
ForeColor = &H0000FFFF&
Height = 210
Index = 3
Left = 550
TabIndex = 17
Top = 2595
Width = 1080
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "聯(lián)系電話:"
ForeColor = &H0000FFFF&
Height = 210
Index = 2
Left = 550
TabIndex = 16
Top = 2205
Width = 1080
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "負(fù) 責(zé) 人:"
ForeColor = &H0000FFFF&
Height = 210
Index = 1
Left = 550
TabIndex = 15
Top = 1815
Width = 1080
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "類 別:"
ForeColor = &H0000FFFF&
Height = 210
Left = 550
TabIndex = 14
Top = 1425
Width = 1080
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "帳戶名稱:"
ForeColor = &H0000FFFF&
Height = 210
Left = 550
TabIndex = 13
Top = 1020
Width = 1080
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "帳戶編號:"
ForeColor = &H0000FFFF&
Height = 210
Index = 0
Left = 550
TabIndex = 12
Top = 660
Width = 1080
End
Begin VB.Line Line1
BorderColor = &H00808080&
X1 = 90
X2 = 4545
Y1 = 4740
Y2 = 4740
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 75
X2 = 4530
Y1 = 4755
Y2 = 4755
End
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 6630
Left = 45
TabIndex = 19
Top = 465
Width = 11220
_ExtentX = 19791
_ExtentY = 11695
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = 0 'False
HeadLines = 2
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin ComctlLib.ImageList ImageList1
Left = 300
Top = 525
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 327682
BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
NumListImages = 17
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":0C68
Key = ""
EndProperty
BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":0F82
Key = ""
EndProperty
BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":129C
Key = ""
EndProperty
BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":15B6
Key = ""
EndProperty
BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":1A30
Key = ""
EndProperty
BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":206A
Key = ""
EndProperty
BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":256C
Key = ""
EndProperty
BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":288E
Key = ""
EndProperty
BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":2BB0
Key = ""
EndProperty
BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":2ED2
Key = ""
EndProperty
BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":3224
Key = ""
EndProperty
BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":35EA
Key = ""
EndProperty
BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "往來帳戶管理.frx":393C
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "往來帳戶管理"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'歡迎你下載使用本代碼,本份代碼由程序太平洋提供下載學(xué)習(xí)之用
'聲明:
'1.本站所有代碼的版權(quán)歸原作者所有,如果你使用了在本站下載的源代碼
' 引起的一切糾紛(后果)與本站無關(guān),請您尊重原作者的勞動成果!
'2.若本站在代碼上有侵權(quán)之處請您與站長聯(lián)系,站長會及時更正。
'網(wǎng)站:http://www.dapha.net
'論壇:http://www.5ivb.net
'Email:dapha@etang.com
'CopyRight 2001-2005 By dapha.net
'整理時間:2003-12-8 12:22:14
'星級酒店管理系統(tǒng)最初功能演示版,提供所有星級酒店管理中的客房管理,
'房態(tài)管理,客史管理,客人資料管理,帳務(wù)管理,報表管理,餐飲收費管理
'菜譜管理,夜審處理,數(shù)據(jù)庫備份等功能.所有功能皆可以運行,(但有一些BUG未處理)
'此代碼完全可以完成星級酒店上述管理功能.(提供者:帥)
'--------------------------------------------------------------
'代碼編寫于:2001.12 系統(tǒng)分析:帥 代碼編寫:帥 版權(quán)所有:帥
'--------------------------------------------------------------
'本份代碼僅提供給程序太平洋的所有朋友學(xué)習(xí),研究之用.
'其它網(wǎng)站一律不得轉(zhuǎn)載,否則為侵權(quán)行為,本人保留法律追訴權(quán)力.
'這也是本人最早的VB版程序,代碼質(zhì)量不好.望笑納.:)
'--------------------------------------------------------------
'提供日期:2003-05-31 提供者:帥
'--------------------------------------------------------------
'系統(tǒng)提從與ACCESS或SQL相接,在登錄時,選擇全局?jǐn)?shù)據(jù)庫,就與SQL數(shù)據(jù)庫
'連接,字符串存放在SERVER.DAT文本文件中;選擇本地數(shù)據(jù)庫,與本地ACCESS
'數(shù)據(jù)庫相連,連接字符串存放在LOCAT.DAT文件中.(當(dāng)前存放為e:\hotel2\room.mdb)
'---------------------------------------------------------------
'將ACCESS中所有表導(dǎo)入SQL中,并將有的表中的ID字段改為自動編碼,就可以使用.
'---------------------------------------------------------------------
'
'
Dim ZHAccount_id As String
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields("帳號") = Me.Text1(0).Text
Adodc1.Recordset.Fields("帳戶名稱") = Me.Text1(1).Text
Adodc1.Recordset.Fields("類別") = Me.Combo1.Text
Adodc1.Recordset.Fields("負(fù)責(zé)人") = Me.Text1(3).Text
Adodc1.Recordset.Fields("聯(lián)系電話") = Me.Text1(4).Text
Adodc1.Recordset.Fields("開戶銀行") = Me.Text1(5).Text
Adodc1.Recordset.Fields("銀行帳號") = Me.Text1(2).Text
Adodc1.Recordset.Fields("備注") = Me.Text1(6).Text
Me.Frame1.Visible = False
End Sub
Private Sub Command2_Click()
Me.Frame1.Visible = False
End Sub
Private Sub Command3_Click()
Me.Picture1.Visible = False
End Sub
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
ZHAccount_id = IIf(IsNull(Adodc1.Recordset.Fields("帳號")), "", Adodc1.Recordset.Fields("帳號"))
End Sub
Private Sub Form_Load()
Left = 0
Top = 0
'往來帳戶
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 項目編碼 where 編碼 like 'WL%' order by 名稱"
Adodc1.Refresh
While Not Adodc1.Recordset.EOF
Me.Combo1.AddItem Adodc1.Recordset.Fields("名稱")
Adodc1.Recordset.MoveNext
Wend
Adodc1.Recordset.Close
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 往來帳戶 where 類別 like '" & Query_Type2 & "'"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
DataGrid1.ReBind
DataGrid1.Refresh
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
Select Case Button.Key
Case "關(guān)閉"
Unload Me
Case "全部"
Case "增加"
Me.Frame1.Visible = True
Case "帳務(wù)"
Me.Picture1.Visible = True
Adodc2.ConnectionString = My_PROVIDER
Adodc2.CommandType = adCmdText
Adodc2.RecordSource = "select * from 往來帳戶掛帳記錄 where 帳號 like '" & ZHAccount_id & "'"
Adodc2.Refresh
Set DataGrid2.DataSource = Adodc2
DataGrid2.ReBind
DataGrid2.Refresh
End Select
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -