📄 frmmain.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmmain
Caption = " 停车收费管理系统 "
ClientHeight = 7815
ClientLeft = 2550
ClientTop = 1770
ClientWidth = 10110
LinkTopic = "Form1"
ScaleHeight = 7815
ScaleWidth = 10110
Visible = 0 'False
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
DragIcon = "frmmain.frx":0000
Height = 375
Left = 0
TabIndex = 0
ToolTipText = "做个小系统都好累啊!"
Top = 7440
Width = 10110
_ExtentX = 17833
_ExtentY = 661
Style = 1
SimpleText = "欢迎使用枫林晚停车自动收费系统1.0初级版,本小组今后还将推出更高版本系统,衷心感谢广大fans朋友的支持!"
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 1
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
EndProperty
MouseIcon = "frmmain.frx":29C12
End
Begin 工程1.ucexit ucexit1
Height = 6735
Left = 360
TabIndex = 1
Top = 720
Width = 8895
_ExtentX = 15266
_ExtentY = 11880
End
Begin 工程1.ucquery ucsearch1
Height = 5415
Left = 1320
TabIndex = 2
Top = 1080
Width = 7695
_ExtentX = 13785
_ExtentY = 10186
End
Begin 工程1.ucenter ucenter1
Height = 6855
Left = -240
TabIndex = 3
Top = 360
Width = 9975
_ExtentX = 17595
_ExtentY = 12091
End
Begin VB.PictureBox Picture1
Height = 7455
Left = 0
Picture = "frmmain.frx":53834
ScaleHeight = 7395
ScaleWidth = 10035
TabIndex = 4
Top = 0
Width = 10095
Begin VB.Label lab1
BackStyle = 0 'Transparent
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 0
TabIndex = 5
Top = 360
Width = 9975
End
End
Begin VB.Menu file_exit
Caption = "退出"
End
Begin VB.Menu ope_enter
Caption = "车辆进入"
End
Begin VB.Menu ope_exit
Caption = "车辆离开"
End
Begin VB.Menu ope_query
Caption = "车辆查询"
End
Begin VB.Menu mgr_user
Caption = "用户管理"
End
Begin VB.Menu mgr_operate
Caption = "操作记录"
End
Begin VB.Menu help
Caption = "关于"
End
End
Attribute VB_Name = "frmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
On Error Resume Next
Select Case Button.Key
Case "按钮"
'应做:添加 '按钮' 按钮代码。
MsgBox "添加 '按钮' 按钮代码。"
End Select
End Sub
Private Sub file_Click()
End Sub
Private Sub file_exit_Click()
Dim myexit As Integer
myexit = MsgBox("是否退出程序", vbYesNo + vbQuestion, "退出")
If myexit = vbYes Then End
End Sub
Private Sub Image2_Click()
End Sub
Private Sub Form_Unload(Cancel As Integer)
dbcnn.Close
End
End Sub
Private Sub help_Click()
Call helpwindow.Show(vbModal, Me)
End Sub
Private Sub mgr_operate_Click()
If usernow.type <> 0 Then
MsgBox "对不起,您不是系统管理员,没有该权限!", , "提示!"
Exit Sub
End If
Call frmqueryrec.Show(vbModal, Me)
End Sub
Private Sub mgr_user_Click()
If usernow.type <> 0 Then
MsgBox "对不起,您不是系统管理员,没有该权限!", , "提示!"
Exit Sub
End If
Call frmuser.Show(vbModal, Me)
End Sub
Private Sub ope_enter_Click()
Call showgroup(Me.ucenter1)
End Sub
Private Sub ope_exit_Click()
Call showgroup(Me.ucexit1)
End Sub
Private Sub ope_query_Click()
Call showgroup(Me.ucsearch1)
End Sub
Private Sub showgroup(ByRef target_ctl As Object)
Me.ucenter1.Visible = False
Me.ucexit1.Visible = False
Me.ucsearch1.Visible = False
target_ctl.Visible = True
End Sub
Private Sub Form_Load()
Dim str As String
Select Case usernow.type
Case 0
str = "系统管理员"
Case 1
str = "一般用户"
Case 2
str = "高级用户“"
End Select
Me.lab1.Caption = "当前用户:" & usernow.id & " 用户类型:" & str
Call showgroup(Me.ucenter1)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -