📄 m_f_xsxj.mpr
字号:
* *********************************************************
* *
* * 08-09-2004 M_F_XSXJ.MPR 12:03:39
* *
* *********************************************************
* *
* * Author's Name
* *
* * Copyright (C) 2004 Company Name
* * Address
* * City, Zip
* *
* * Description:
* * This PROGRAM was automatically generated BY 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([This menu can only be called from a Top-Level form. Ensure that your form's ShowWindow property is set to 2. Read the header section of the menu's MPR file for more details.])
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
DIMENSION a_menupops[5]
IF TYPE("m.lUniquePopups")="L" AND m.lUniquePopups
FOR nTotPops = 1 TO ALEN(a_menupops)
a_menupops[m.nTotPops]= SYS(2015)
ENDFOR
ELSE
a_menupops[1]="系统s"
a_menupops[2]="管理m"
a_menupops[3]="查询q"
a_menupops[4]="报表r"
a_menupops[5]="帮助h"
ENDIF
* *********************************************************
* *
* * Setup Code
* *
* *********************************************************
*
SET TALK OFF
SET SAFETY OFF
SET CENTURY ON
SET MARK TO "-"
* *********************************************************
* *
* * Menu Definition
* *
* *********************************************************
*
DEFINE MENU (m.cMenuName) IN (m.oFormRef.Name) BAR
DEFINE PAD _1ay0puo52 OF (m.cMenuName) PROMPT "系统(\<S)" COLOR SCHEME 3 ;
KEY ALT+S, ""
DEFINE PAD _1ay0puo54 OF (m.cMenuName) PROMPT "管理(\<M)" COLOR SCHEME 3 ;
KEY ALT+M, ""
DEFINE PAD _1ay0puo56 OF (m.cMenuName) PROMPT "查询(\<Q)" COLOR SCHEME 3 ;
KEY ALT+Q, ""
DEFINE PAD _1ay0puo58 OF (m.cMenuName) PROMPT "报表(\<R)" COLOR SCHEME 3 ;
KEY ALT+R, ""
DEFINE PAD _1ay0puo5a OF (m.cMenuName) PROMPT "帮助(\<H)" COLOR SCHEME 3 ;
KEY ALT+H, ""
ON PAD _1ay0puo52 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[1])
ON PAD _1ay0puo54 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[2])
ON PAD _1ay0puo56 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[3])
ON PAD _1ay0puo58 OF (m.cMenuName) ACTIVATE POPUP (a_menupops[4])
ON PAD _1ay0puo5a OF (m.cMenuName) ACTIVATE POPUP (a_menupops[5])
DEFINE POPUP (a_menupops[1]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[1]) PROMPT "数据备份(\<B)"
DEFINE BAR 2 OF (a_menupops[1]) PROMPT "数据恢复(\<R)"
DEFINE BAR 3 OF (a_menupops[1]) PROMPT "\-"
DEFINE BAR 4 OF (a_menupops[1]) PROMPT "用户管理(\<U)"
DEFINE BAR 5 OF (a_menupops[1]) PROMPT "\-"
DEFINE BAR 6 OF (a_menupops[1]) PROMPT "系统选项(\<O)"
DEFINE BAR 7 OF (a_menupops[1]) PROMPT "\-"
DEFINE BAR 8 OF (a_menupops[1]) PROMPT "退出(\<Q)" ;
KEY ALT+F4, "Alt+F4"
ON SELECTION BAR 8 OF (a_menupops[1]) ;
DO _1ay0puo61 ;
IN LOCFILE("学生学籍管理系统\M_F_XSXJ" ,"MPX;MPR|FXP;PRG" ,"WHERE is M_F_XSXJ?")
DEFINE POPUP (a_menupops[2]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[2]) PROMPT "系部信息(\<D)"
DEFINE BAR 2 OF (a_menupops[2]) PROMPT "专业信息(\<M)"
DEFINE BAR 3 OF (a_menupops[2]) PROMPT "课程信息(\<C)"
DEFINE BAR 4 OF (a_menupops[2]) PROMPT "学生信息(\<S)"
DEFINE BAR 5 OF (a_menupops[2]) PROMPT "成绩信息(\<O)"
ON SELECTION BAR 1 OF (a_menupops[2]) do form f_gl_xb
ON SELECTION BAR 2 OF (a_menupops[2]) do form f_gl_zy
ON SELECTION BAR 3 OF (a_menupops[2]) do form f_gl_kc
ON SELECTION BAR 4 OF (a_menupops[2]) do form f_gl_xs
ON SELECTION BAR 5 OF (a_menupops[2]) do form f_gl_cj
DEFINE POPUP (a_menupops[3]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[3]) PROMPT "课程查询(\<C)"
DEFINE BAR 2 OF (a_menupops[3]) PROMPT "专业查询(\<M)"
DEFINE BAR 3 OF (a_menupops[3]) PROMPT "学生查询(\<S)"
DEFINE BAR 4 OF (a_menupops[3]) PROMPT "成绩查询(\<O)"
DEFINE POPUP (a_menupops[4]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[4]) PROMPT "学生名册(\<S)"
DEFINE BAR 2 OF (a_menupops[4]) PROMPT "成绩报表(\<O)"
ON SELECTION BAR 1 OF (a_menupops[4]) do form f_bb_xs
DEFINE POPUP (a_menupops[5]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[5]) PROMPT "帮助主题(\<C)" ;
KEY F1, "F1"
DEFINE BAR 2 OF (a_menupops[5]) PROMPT "搜索(\<S)"
DEFINE BAR 3 OF (a_menupops[5]) PROMPT "\-"
DEFINE BAR 4 OF (a_menupops[5]) PROMPT "关于系统(\<A)..."
ACTIVATE MENU (m.cMenuName) NOWAIT
IF m.cTypeParm2 = "C"
m.getMenuName = m.cMenuName
m.oFormRef.Name = m.cSaveFormName
ENDIF
* *********************************************************
* *
* * Cleanup Code & Procedures
* *
* *********************************************************
*
SET SAFETY ON
* *********************************************************
* *
* * _1AY0PUO61 ON SELECTION BAR 8 OF POPUP 系统s
* *
* * Procedure Origin:
* *
* * From Menu: M_F_XSXJ.MPR, Record: 15
* * Called By: ON SELECTION BAR 8 OF POPUP 系统s
* * Prompt: 退出(Q)
* * Snippet: 1
* *
* *********************************************************
*
PROCEDURE _1ay0puo61
SET SYSMENU to default
return
IF MESSAGEBOX("系统将关闭!请确定...",33,"提示") = 1
CLOSE ALL
QUIT
ENDIF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -