📄 main.frm
字号:
VERSION 5.00
Begin VB.Form sys_main
BorderStyle = 3 'Fixed Dialog
ClientHeight = 8910
ClientLeft = 45
ClientTop = 45
ClientWidth = 11880
ControlBox = 0 'False
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 8910
ScaleWidth = 11880
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.Timer Timer1
Interval = 500
Left = 495
Top = 3105
End
Begin VB.CommandButton cmdexit
BackColor = &H00C0C000&
Cancel = -1 'True
Caption = "退出(Esc)"
BeginProperty Font
Name = "黑体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 930
Left = 9630
Picture = "main.frx":0000
Style = 1 'Graphical
TabIndex = 10
Top = 7695
Width = 2055
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "机房控制室&A"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 9
Left = 9630
Style = 1 'Graphical
TabIndex = 9
Top = 6300
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "总经委查询&9"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 8
Left = 9630
Style = 1 'Graphical
TabIndex = 8
Top = 5655
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "仓库管理 &8"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 7
Left = 9630
Style = 1 'Graphical
TabIndex = 7
Top = 5010
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "营 销 部&7"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 6
Left = 9630
Style = 1 'Graphical
TabIndex = 6
Top = 4365
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "商场收银处&6"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 5
Left = 9630
Style = 1 'Graphical
TabIndex = 5
Top = 3720
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "餐厅收银处&5"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 4
Left = 9630
Style = 1 'Graphical
TabIndex = 4
Top = 3075
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "前台帐务处&4"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 3
Left = 9630
Style = 1 'Graphical
TabIndex = 3
Top = 2430
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "前台接待处&3"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 2
Left = 9630
Style = 1 'Graphical
TabIndex = 2
Top = 1785
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "餐厅管事部&2"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 1
Left = 9630
Style = 1 'Graphical
TabIndex = 1
Top = 1140
Width = 2085
End
Begin VB.CommandButton Command1
BackColor = &H00C0C000&
Caption = "客房管事部&1"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 645
Index = 0
Left = 9630
Style = 1 'Graphical
TabIndex = 0
Top = 495
Width = 2085
End
Begin VB.Image Image1
BorderStyle = 1 'Fixed Single
Height = 8985
Left = 30
Picture = "main.frx":030A
Stretch = -1 'True
Top = 0
Width = 9375
End
End
Attribute VB_Name = "sys_main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdexit_Click()
End
End Sub
Private Sub ComboBox1_Change()
End Sub
Private Sub Command1_Click(Index As Integer)
'Call Shell("C:\WINDOWS\NOTEPAD.EXE C:\CONFIG.SYS", vbMaximizedFocus)
frmLogin.MAIN (Index)
frmLogin.Show (1)
If Not LoginSucceeded Then
Exit Sub
End If
Select Case Index
Case 2
Dim DT_USE As New HOTEL_DT.DT_Class
DT_USE.XT_RUN = "0"
DT_USE.START SYS_GWDM, SYS_GWMC, SYS_USER, SYS_NAME, SYS_RIGHT, WRK
Case 4
Dim CT_USE As New HOTEL_CT.CT_Class
CT_USE.XT_RUN = "0"
CT_USE.START SYS_GWDM, SYS_GWMC, SYS_USER, SYS_NAME, SYS_RIGHT, WRK
End Select
End Sub
Private Sub Form_Load()
pub_code = "0000"
Set WRK = CreateWorkspace("JETODBC", "admin", "")
Set PUB_data = WRK.OpenDatabase("PUBLIC", dbDriverNoPrompt, False, "odbc;UID=db2user;pwd=db2user")
'Dim t_rec As Recordset
'Dim FOX As Recordset
'Dim T_DATA As Database
'Set T_DATA = WRK.OpenDatabase("D:\", dbDriverNoPrompt, False, "FOXPRO 2.5;DATABASE=D:\FL.DBF")
'Set t_rec = PUB_data.OpenRecordset("SELECT * FROM TEL_FL", 2, 0, 2)
'Set FOX = T_DATA.OpenRecordset("SELECT * FROM FL", 4)
'FOX.MoveLast
'FOX.MoveFirst
'Do While Not FOX.EOF
' t_rec.AddNew
' t_rec!qh = FOX!qh '+ "0"
' t_rec!fl = FOX!fl
' t_rec!fjf = FOX!fjf
' t_rec!fwf = FOX!fwf
' t_rec!mc = FOX!mc
' t_rec!jbsj = FOX!jbsj
' t_rec!lx = FOX!lx
' t_rec!fjf_sf = FOX!fjf_sf
' t_rec.Update
' FOX.MoveNext
'Loop
'FOX.Close
'PUB_data.Execute "DELETE FROM TEL_FL"
'PUB_data.Execute "INSERT INTO TEL_FL SELECT * FROM FL1 IN ''[FOXPRO 2.5;DATABASE=D:\]"
LoginSucceeded = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -