📄 主菜单.mpr
字号:
* *********************************************************
* *
* * 03/18/05 主菜单.MPR 14:00:14
* *
* *********************************************************
* *
* * 作者名称
* *
* * 版权所有 (C) 2005 公司名称
* * 地址
* * 城市, 邮编
* * 国家
* *
* * 说明:
* * 此程序由 GENMENU 自动生成。
* *
* *********************************************************
* To attach this menu to your Top-Level form,
* call it from the Init event of the form:
* Syntax: DO <mprname> WITH <oFormRef> [,<cMenuname>|<lRename>][<lUniquePopups>]
* oFormRef - form object reference (THIS)
* cMenuname - name for menu (this is required for Append menus - see below)
* lRename - renames Name property of your form
* lUniquePopups - determines whether to generate unique ids for popup names
* example:
* PROCEDURE Init
* DO mymenu.mpr WITH THIS,.T.
* ENDPROC
* Use the optional 2nd parameter if you plan on running multiple instances
* of your Top-Level form. The preferred method is to create an empty string
* variable and pass it by reference so you can receive the form name after
* the MPR file is run. You can later use this reference to destroy the menu.
* PROCEDURE Init
* LOCAL cGetMenuName
* cGetMenuName = ""
* DO mymenu.mpr WITH THIS, m.cGetMenuName
* ENDPROC
* The logical lRename parameter will change the name property of your
* form to the same name given the menu and may cause conflicts in your
* code if you directly reference the form by name.
* You will also need to remove the menu when the form is destroyed so that it does
* not remain in memory unless you wish to reactivate it later in a new form.
* If you passed the optional lRename parameter as .T. as in the above example,
* you can easily remove the menu in the form's Destroy event as shown below.
* This strategy is ideal when using multiple instances of Top-Level forms.
* example:
* PROCEDURE Destroy
* RELEASE MENU (THIS.Name) EXTENDED
* ENDPROC
* Using Append/Before/After location options:
* You might want to append a menu to an existing Top-Level form by setting
* the Location option in the General Options dialog. In order to do this, you
* must pass the name of the menu in which to attach the new one. The second
* parameter is required here. If you originally created the menu with the lRename
* parameter = .T., then you can update the menu with code similar to the following:
* example:
* DO mymenu2.mpr WITH THISFORM,THISFORM.name
*
* Using lUniquePopups:
* If you are running this menu multiple times in your application, such as in multiple
* instances of the same top-level form, you should pass .T. to the lUniquePopups
* parameter so that unique popup names are generated to avoid possible conflicts.
* example:
* PROCEDURE Init
* DO mymenu.mpr WITH THIS,.T.,.T.
* ENDPROC
*
* Note: Parm4-Parm9 are not reserved and freely available for use with your menu code.
*
LPARAMETERS oFormRef, getMenuName, lUniquePopups, parm4, parm5, parm6, parm7, parm8, parm9
LOCAL cMenuName, nTotPops, a_menupops, cTypeParm2, cSaveFormName
IF TYPE("m.oFormRef") # "O" OR ;
LOWER(m.oFormRef.BaseClass) # 'form' OR ;
m.oFormRef.ShowWindow # 2
MESSAGEBOX([只能从顶层表单调用该菜单。请确认您表单的 ShowWindow 属性已设为 2。阅读此菜单 MPR 文件的头部分,可以获得详细信息。])
RETURN
ENDIF
m.cTypeParm2 = TYPE("m.getMenuName")
m.cMenuName = SYS(2015)
m.cSaveFormName = m.oFormRef.Name
IF m.cTypeParm2 = "C" OR (m.cTypeParm2 = "L" AND m.getMenuName)
m.oFormRef.Name = m.cMenuName
ENDIF
IF m.cTypeParm2 = "C" AND !EMPTY(m.getMenuName)
m.cMenuName = m.getMenuName
ENDIF
* *********************************************************
* *
* * 菜单定义
* *
* *********************************************************
*
DEFINE MENU (m.cMenuName) IN (m.oFormRef.Name) BAR
DEFINE PAD _1h40u0ke2 OF (m.cMenuName) PROMPT "班级名录管理" COLOR SCHEME 3
DEFINE PAD _1h40u0ke3 OF (m.cMenuName) PROMPT "公共课程管理" COLOR SCHEME 3
DEFINE PAD _1h40u0ke4 OF (m.cMenuName) PROMPT "专业课程管理" COLOR SCHEME 3
DEFINE PAD _1h40u0ke5 OF (m.cMenuName) PROMPT "课程分配管理" COLOR SCHEME 3
DEFINE PAD _1h40u0ke6 OF (m.cMenuName) PROMPT "系统权限维护" COLOR SCHEME 3
DEFINE PAD _1h40u0ke7 OF (m.cMenuName) PROMPT "退出系统" COLOR SCHEME 3
ON SELECTION PAD _1h40u0ke2 OF (m.cMenuName) ;
DO _1h40u0ke8 ;
IN LOCFILE("\课时分配系统\MENUS\主菜单" ,"MPX;MPR|FXP;PRG" ,"WHERE is 主菜单?")
ON SELECTION PAD _1h40u0ke3 OF (m.cMenuName) ;
DO _1h40u0ke9 ;
IN LOCFILE("\课时分配系统\MENUS\主菜单" ,"MPX;MPR|FXP;PRG" ,"WHERE is 主菜单?")
ON SELECTION PAD _1h40u0ke4 OF (m.cMenuName) ;
DO _1h40u0kea ;
IN LOCFILE("\课时分配系统\MENUS\主菜单" ,"MPX;MPR|FXP;PRG" ,"WHERE is 主菜单?")
ON SELECTION PAD _1h40u0ke5 OF (m.cMenuName) ;
DO _1h40u0keb ;
IN LOCFILE("\课时分配系统\MENUS\主菜单" ,"MPX;MPR|FXP;PRG" ,"WHERE is 主菜单?")
ON SELECTION PAD _1h40u0ke6 OF (m.cMenuName) ;
DO _1h40u0kec ;
IN LOCFILE("\课时分配系统\MENUS\主菜单" ,"MPX;MPR|FXP;PRG" ,"WHERE is 主菜单?")
ON SELECTION PAD _1h40u0ke7 OF (m.cMenuName) ;
DO _1h40u0ked ;
IN LOCFILE("\课时分配系统\MENUS\主菜单" ,"MPX;MPR|FXP;PRG" ,"WHERE is 主菜单?")
ACTIVATE MENU (m.cMenuName) NOWAIT
IF m.cTypeParm2 = "C"
m.getMenuName = m.cMenuName
m.oFormRef.Name = m.cSaveFormName
ENDIF
* *********************************************************
* *
* * _1H40U0KE8 ON SELECTION PAD
* *
* * Procedure Origin:
* *
* * From Menu: 主菜单.MPR, Record: 3
* * Called By: ON SELECTION PAD
* * Prompt: 班级名录管理
* * Snippet: 1
* *
* *********************************************************
*
PROCEDURE _1h40u0ke8
_vfp.activeform.release
do form forms\班级名录编制
* *********************************************************
* *
* * _1H40U0KE9 ON SELECTION PAD
* *
* * Procedure Origin:
* *
* * From Menu: 主菜单.MPR, Record: 4
* * Called By: ON SELECTION PAD
* * Prompt: 公共课程管理
* * Snippet: 2
* *
* *********************************************************
*
PROCEDURE _1h40u0ke9
_vfp.activeform.release
do form forms\公共基础_选修课
* *********************************************************
* *
* * _1H40U0KEA ON SELECTION PAD
* *
* * Procedure Origin:
* *
* * From Menu: 主菜单.MPR, Record: 5
* * Called By: ON SELECTION PAD
* * Prompt: 专业课程管理
* * Snippet: 3
* *
* *********************************************************
*
PROCEDURE _1h40u0kea
_vfp.activeform.release
do form forms\理论课_实践课
* *********************************************************
* *
* * _1H40U0KEB ON SELECTION PAD
* *
* * Procedure Origin:
* *
* * From Menu: 主菜单.MPR, Record: 6
* * Called By: ON SELECTION PAD
* * Prompt: 课程分配管理
* * Snippet: 4
* *
* *********************************************************
*
PROCEDURE _1h40u0keb
_vfp.activeform.release
do form forms\课时分配表
* *********************************************************
* *
* * _1H40U0KEC ON SELECTION PAD
* *
* * Procedure Origin:
* *
* * From Menu: 主菜单.MPR, Record: 7
* * Called By: ON SELECTION PAD
* * Prompt: 系统权限维护
* * Snippet: 5
* *
* *********************************************************
*
PROCEDURE _1h40u0kec
_vfp.activeform.release
do form forms\权限维护
* *********************************************************
* *
* * _1H40U0KED ON SELECTION PAD
* *
* * Procedure Origin:
* *
* * From Menu: 主菜单.MPR, Record: 8
* * Called By: ON SELECTION PAD
* * Prompt: 退出系统
* * Snippet: 6
* *
* *********************************************************
*
PROCEDURE _1h40u0ked
clear events
close all
quit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -