📄 menu.frm
字号:
VERSION 5.00
Begin VB.MDIForm menu
BackColor = &H8000000C&
Caption = "学生成绩管理系统"
ClientHeight = 6285
ClientLeft = 165
ClientTop = 735
ClientWidth = 9975
LinkTopic = "MDIForm1"
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin VB.Menu menu1
Caption = "学生数据管理"
Begin VB.Menu menu11
Caption = "设置课程"
End
Begin VB.Menu spc11
Caption = "-"
End
Begin VB.Menu menu12
Caption = "设置班号"
End
Begin VB.Menu spc12
Caption = "-"
End
Begin VB.Menu menu13
Caption = "录入学生记录"
End
Begin VB.Menu spc13
Caption = "-"
End
Begin VB.Menu menu14
Caption = "退出"
Shortcut = ^X
End
End
Begin VB.Menu menu2
Caption = "学生成绩管理"
Begin VB.Menu menu21
Caption = "录入学生成绩"
End
Begin VB.Menu spc21
Caption = "-"
End
Begin VB.Menu menu22
Caption = "查询学生成绩"
End
Begin VB.Menu spc22
Caption = "-"
End
Begin VB.Menu menu24
Caption = "打印学生成绩表"
End
End
Begin VB.Menu menu3
Caption = "系统维护"
Begin VB.Menu menu31
Caption = "设置系统用户"
End
Begin VB.Menu spc31
Caption = "-"
End
Begin VB.Menu menu32
Caption = "系统初始化"
End
End
End
Attribute VB_Name = "menu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub MDIForm_Load()
If Not userlevel = "系统管理员" Then
menu11.Enabled = False
menu12.Enabled = False
menu31.Enabled = False
menu32.Enabled = False
End If
End Sub
Private Sub menu11_Click()
Setcourse.Show vbModal
End Sub
Private Sub menu12_Click()
Setclass.Show vbModal
End Sub
Private Sub menu13_Click()
edstud.Show vbModal
End Sub
Private Sub menu14_Click()
End
End Sub
Private Sub menu21_Click()
eddegree.Show vbModal
End Sub
Private Sub menu22_Click()
qudegree.Show vbModal
End Sub
Private Sub menu24_Click()
prdegree.Show vbModal
End Sub
Private Sub menu31_Click()
setuser.Show vbmoal
End Sub
Private Sub menu32_Click()
If MsgBox("本功能要清除系统中所有数据,真的初始化吗?", vbYesNo, "确认初始化操作") = vbYes Then
Call deldata("student")
Call deldata("prof")
Call deldata("classn")
Call deldata("course")
Call deldata("degree")
Call deldata("oper")
MsgBox "系统初始化完毕,下次只能以1234/1234(用户名/口令)进入本系统", vbOKOnly, "信息提示"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -