📄 2xsoft.mpr
字号:
* *********************************************************
* *
* * 04/19/04 2XSOFT.MPR 00:37:49
* *
* *********************************************************
* *
* * 阿坤.冷邪
* *
* * Copyright (C) 2004 2X软件工作室
* * 重庆
* * 重庆, 重庆 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[7]
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]="采购g"
a_menupops[2]="销售x"
a_menupops[3]="仓库k"
a_menupops[4]="基本信息i"
a_menupops[5]="系统s"
a_menupops[6]="管理员"
a_menupops[7]="帮助h"
ENDIF
* *********************************************************
* *
* * Menu Definition
* *
* *********************************************************
*
DEFINE MENU (m.cMenuName) IN (m.oFormRef.Name) BAR
DEFINE PAD _17u01cndg OF (m.cMenuName) PROMPT "采购(\<G)" COLOR SCHEME 3 ;
KEY ALT+G, ""
DEFINE PAD _17u01cndh OF (m.cMenuName) PROMPT "销售(\<X)" COLOR SCHEME 3 ;
KEY ALT+X, ""
DEFINE PAD _17u01cndi OF (m.cMenuName) PROMPT "仓库(\<K)" COLOR SCHEME 3 ;
KEY ALT+K, ""
DEFINE PAD _17u01cndj OF (m.cMenuName) PROMPT "决策(\<C)" COLOR SCHEME 3 ;
KEY ALT+C, ""
DEFINE PAD _17u01cndk OF (m.cMenuName) PROMPT "基本信息(\<I)" COLOR SCHEME 3 ;
KEY ALT+I, ""
DEFINE PAD _17u01cndl OF (m.cMenuName) PROMPT "系统(\<S)" COLOR SCHEME 3 ;
KEY ALT+S, ""
DEFINE PAD _17u01cndm OF (m.cMenuName) PROMPT "帮助(\<H)" COLOR SCHEME 3 ;
KEY ALT+H, ""
ON PAD _17u01cndg OF (m.cMenuName) ACTIVATE POPUP (a_menupops[1])
ON PAD _17u01cndh OF (m.cMenuName) ACTIVATE POPUP (a_menupops[2])
ON PAD _17u01cndi OF (m.cMenuName) ACTIVATE POPUP (a_menupops[3])
ON PAD _17u01cndk OF (m.cMenuName) ACTIVATE POPUP (a_menupops[4])
ON PAD _17u01cndl OF (m.cMenuName) ACTIVATE POPUP (a_menupops[5])
ON PAD _17u01cndm OF (m.cMenuName) ACTIVATE POPUP (a_menupops[7])
DEFINE POPUP (a_menupops[1]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[1]) PROMPT "采购订单"
DEFINE BAR 2 OF (a_menupops[1]) PROMPT "采购入库"
DEFINE BAR 3 OF (a_menupops[1]) PROMPT "采购退货"
DEFINE BAR 4 OF (a_menupops[1]) PROMPT "采购付款"
ON SELECTION BAR 1 OF (a_menupops[1]) ;
DO _17u01cndq ;
IN LOCFILE("2XSOFT\MENU\2XSOFT" ,"MPX;MPR|FXP;PRG" ,"WHERE is 2XSOFT?")
DEFINE POPUP (a_menupops[2]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[2]) PROMPT "销售订单"
DEFINE BAR 2 OF (a_menupops[2]) PROMPT "销售出库"
DEFINE BAR 3 OF (a_menupops[2]) PROMPT "销售退货"
DEFINE BAR 4 OF (a_menupops[2]) PROMPT "销售收款"
DEFINE POPUP (a_menupops[3]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[3]) PROMPT "库存调拨"
DEFINE BAR 2 OF (a_menupops[3]) PROMPT "货品调价"
DEFINE BAR 3 OF (a_menupops[3]) PROMPT "生产组装"
DEFINE BAR 4 OF (a_menupops[3]) PROMPT "库存变动"
DEFINE BAR 5 OF (a_menupops[3]) PROMPT "库存盘点"
DEFINE BAR 6 OF (a_menupops[3]) PROMPT "\-"
DEFINE BAR 7 OF (a_menupops[3]) PROMPT "库存查询"
DEFINE POPUP (a_menupops[4]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[4]) PROMPT "地区资料"
DEFINE BAR 2 OF (a_menupops[4]) PROMPT "单位分类"
DEFINE BAR 3 OF (a_menupops[4]) PROMPT "往来单位"
DEFINE BAR 4 OF (a_menupops[4]) PROMPT "\-"
DEFINE BAR 5 OF (a_menupops[4]) PROMPT "仓库资料"
DEFINE BAR 6 OF (a_menupops[4]) PROMPT "货品分类"
DEFINE BAR 7 OF (a_menupops[4]) PROMPT "货品资料"
DEFINE BAR 8 OF (a_menupops[4]) PROMPT "计量单位"
DEFINE BAR 9 OF (a_menupops[4]) PROMPT "\-"
DEFINE BAR 10 OF (a_menupops[4]) PROMPT "部门资料"
DEFINE BAR 11 OF (a_menupops[4]) PROMPT "职员资料"
DEFINE POPUP (a_menupops[5]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[5]) PROMPT "期初建帐"
DEFINE BAR 2 OF (a_menupops[5]) PROMPT "系统结转"
DEFINE BAR 3 OF (a_menupops[5]) PROMPT "\-"
DEFINE BAR 4 OF (a_menupops[5]) PROMPT "单据格式"
DEFINE BAR 5 OF (a_menupops[5]) PROMPT "单据编号"
DEFINE BAR 6 OF (a_menupops[5]) PROMPT "\-"
DEFINE BAR 7 OF (a_menupops[5]) PROMPT "管理员"
DEFINE BAR 8 OF (a_menupops[5]) PROMPT "\-"
DEFINE BAR 9 OF (a_menupops[5]) PROMPT "系统日志"
ON BAR 7 OF (a_menupops[5]) ACTIVATE POPUP (a_menupops[6])
DEFINE POPUP (a_menupops[6]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[6]) PROMPT "操作授权"
DEFINE BAR 2 OF (a_menupops[6]) PROMPT "更改口令"
DEFINE BAR 3 OF (a_menupops[6]) PROMPT "系统配置"
DEFINE BAR 4 OF (a_menupops[6]) PROMPT "\-"
DEFINE BAR 5 OF (a_menupops[6]) PROMPT "数据维护"
DEFINE BAR 6 OF (a_menupops[6]) PROMPT "数据备份"
DEFINE BAR 7 OF (a_menupops[6]) PROMPT "数据恢复"
DEFINE POPUP (a_menupops[7]) MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF (a_menupops[7]) PROMPT "帮助"
DEFINE BAR 2 OF (a_menupops[7]) PROMPT "\-"
DEFINE BAR 3 OF (a_menupops[7]) PROMPT "关于"
ACTIVATE MENU (m.cMenuName) NOWAIT
IF m.cTypeParm2 = "C"
m.getMenuName = m.cMenuName
m.oFormRef.Name = m.cSaveFormName
ENDIF
* *********************************************************
* *
* * _17U01CNDQ ON SELECTION BAR 1 OF POPUP 采购g
* *
* * Procedure Origin:
* *
* * From Menu: 2XSOFT.MPR, Record: 5
* * Called By: ON SELECTION BAR 1 OF POPUP 采购g
* * Prompt: 采购订单
* * Snippet: 1
* *
* *********************************************************
*
PROCEDURE _17u01cndq
Release Cgrkd
Public Cgrkd
Do Form '&Mymllj.\Form\Cgrkd' Name Cgrkd
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -