?? frmmain.frm
字號(hào):
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frmMain
Caption = "售樓管理系統(tǒng)"
ClientHeight = 7590
ClientLeft = 60
ClientTop = 750
ClientWidth = 9930
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
ScaleHeight = 7590
ScaleWidth = 9930
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin MSComDlg.CommonDialog CommonDialog1
Left = 10800
Top = 3720
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 900
Left = 0
TabIndex = 0
Top = 0
Width = 9930
_ExtentX = 17515
_ExtentY = 1588
ButtonWidth = 1720
ButtonHeight = 1429
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 6
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bt_loupan"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bt_kehu"
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bt_shoufei"
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bt_shoulou"
ImageIndex = 4
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bt_shoukuan"
ImageIndex = 5
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bt_tuichu"
ImageIndex = 8
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 2280
Top = 1800
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 58
ImageHeight = 48
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 8
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":014A
Key = "bt_loupan"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":229C
Key = "bt_kehu"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":426E
Key = "bt_shoufei"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":60DC
Key = "bt_shoulouhetong"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":7F5E
Key = "bt_shoukuan"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":A008
Key = "bt_ribaobiao"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":BFEE
Key = "bt_zhiguantu"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":DF00
Key = "bt_tuichu"
EndProperty
EndProperty
End
Begin VB.Menu housemanage
Caption = "房產(chǎn)管理(&R)"
Begin VB.Menu housestylelogin
Caption = "戶(hù)型登記"
End
Begin VB.Menu builinglogin
Caption = "樓盤(pán)登記"
End
Begin VB.Menu fenge
Caption = "-"
End
Begin VB.Menu housestylefind
Caption = "戶(hù)型查詢(xún)"
End
Begin VB.Menu buildingfind
Caption = "樓盤(pán)查詢(xún)"
Shortcut = ^L
End
End
Begin VB.Menu customermanage
Caption = "客戶(hù)管理(&S)"
Begin VB.Menu customerlogin
Caption = "客戶(hù)資料登記"
Shortcut = ^O
End
Begin VB.Menu fenge2
Caption = "-"
End
Begin VB.Menu customerdatafind
Caption = "客戶(hù)資料查詢(xún)"
End
End
Begin VB.Menu chargemanage
Caption = "收費(fèi)管理(&E)"
Begin VB.Menu chargelogin
Caption = "收費(fèi)登記"
Shortcut = {F4}
End
Begin VB.Menu fenge3
Caption = "-"
End
Begin VB.Menu chargefind
Caption = "收費(fèi)查詢(xún)"
End
End
Begin VB.Menu buildingsalemanage
Caption = "售樓管理(&Q)"
Begin VB.Menu salemanlogin
Caption = "銷(xiāo)售人員登記"
End
Begin VB.Menu fenge4
Caption = "-"
End
Begin VB.Menu buildingsalebargain
Caption = "售樓合同管理"
End
Begin VB.Menu gatheringmanage
Caption = "收款管理"
End
Begin VB.Menu fenge5
Caption = "-"
End
Begin VB.Menu salemanfind
Caption = "銷(xiāo)售人員查詢(xún)"
End
Begin VB.Menu buildingsale
Caption = "售樓合同查詢(xún)"
End
Begin VB.Menu gatheringfind
Caption = "收款情況查詢(xún)"
End
End
Begin VB.Menu systemmaintenance
Caption = "系統(tǒng)維護(hù)(&P)"
Begin VB.Menu databasebak
Caption = "數(shù)據(jù)庫(kù)備份"
End
Begin VB.Menu databaserecovery
Caption = "數(shù)據(jù)庫(kù)恢復(fù)"
End
End
Begin VB.Menu exitsys
Caption = "退出系統(tǒng)(&X)"
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub buildingfind_Click()
Frmbuildingfind.Show
End Sub
Private Sub buildingsale_Click()
frmhetongfind.Show 1
End Sub
Private Sub buildingsalebargain_Click()
frmhetonglogin.Show 1
End Sub
Private Sub builinglogin_Click()
frmbuildinglogin.Show 1
End Sub
Private Sub chargefind_Click()
frmshoufeifind.Show
End Sub
Private Sub chargelogin_Click()
frmshoufeilogin.Show 1
End Sub
Private Sub customerdatafind_Click()
Frmkehufind.Show 1
End Sub
Private Sub customerlogin_Click()
Frmkehulogin.Show 1
End Sub
Private Sub databasebak_Click()
Dim fsofile
If conn.State <> 0 Then conn.Close
Set conn = Nothing
Set fsofile = CreateObject("scripting.filesystemobject")
CommonDialog1.Filter = "mdb文件(*.mdb)|*.mdb"
CommonDialog1.CancelError = True
On Error GoTo myerr
CommonDialog1.ShowSave
fsofile.copyfile App.Path & "\House.mdb", CommonDialog1.FileTitle
Dim connectionstring As String
connectionstring = "provider=Microsoft.Jet.oledb.4.0;" & _
"data source=" & App.Path & "\House.mdb"
conn.Open connectionstring
Exit Sub
myerr:
End Sub
Private Sub databaserecovery_Click()
Dim fsofile
If conn.State <> 0 Then conn.Close
Set conn = Nothing
Set fsofile = CreateObject("scripting.filesystemobject")
CommonDialog1.Filter = "mdb文件(*.mdb)|*.mdb"
CommonDialog1.CancelError = True
On Error GoTo myerr
CommonDialog1.ShowOpen
fsofile.copyfile CommonDialog1.FileTitle, App.Path & "\House.mdb"
Dim connectionstring As String
connectionstring = "provider=Microsoft.Jet.oledb.4.0;" & _
"data source=" & App.Path & "\House.mdb"
conn.Open connectionstring
Exit Sub
myerr:
End Sub
Private Sub exitsys_Click()
Unload Me
End Sub
Private Sub Form_Load()
If username = "guest" Then
buildingsalebargain.Enabled = False '銷(xiāo)售合同管理不可用
databaserecovery.Enabled = False '數(shù)據(jù)庫(kù)恢復(fù)不可用
End If
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If MsgBox("確實(shí)要退出本系統(tǒng)嗎?", vbYesNo + vbQuestion, "提示") = vbNo Then
Cancel = True '如果用戶(hù)不退出,則取消卸載
Else '如果確定退出,在卸載之前關(guān)閉數(shù)據(jù)庫(kù)
If conn.State <> 0 Then conn.Close '關(guān)閉數(shù)據(jù)庫(kù)連接
Set conn = Nothing
End If
End Sub
Private Sub gatheringfind_Click()
frmshoukuanfind.Show
End Sub
Private Sub gatheringmanage_Click()
frmshoukuanlogin.Show 1
End Sub
Private Sub housestylefind_Click()
Frmbuildingstylefind.Show 1
End Sub
Private Sub housestylelogin_Click()
frmhuxinglogin.Show
End Sub
Private Sub salemanfind_Click()
frmsalemanfind.Show 1
End Sub
Private Sub salemanlogin_Click()
frmsalemanlogin.Show 1
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key '按關(guān)鍵字選擇
Case "bt_loupan" '如果單擊按鈕關(guān)鍵字為bt_loupan則顯示樓盤(pán)查詢(xún)窗體
Frmbuildingfind.Show 1
Case "bt_kehu"
Frmkehufind.Show 1
Case "bt_shoufei"
frmshoufeifind.Show 1
Case "bt_shoulou"
frmhetonglogin.Show 1
Case "bt_shoukuan"
frmshoukuanlogin.Show 1
Case "bt_tuichu"
Unload Me
End Select
End Sub
Private Sub xiaoshouyuantongji_Click()
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -