⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsxt.mpr

📁 一个小的电脑销售管理系统
💻 MPR
字号:
*       *********************************************************
*       *                                                         
*       * 05/03/05              XSXT.MPR                10:49:07  
*       *                                                         
*       *********************************************************
*       *                                                         
*       * 作者名称                                                
*       *                                                         
*       * 版权所有 (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
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]="基本表操作"
	a_menupops[2]="销售处理"
	a_menupops[3]="进货处理"
	a_menupops[4]="查询"
	a_menupops[5]="报表打印"
	a_menupops[6]="新菜单项"
	a_menupops[7]="标签打印预"
ENDIF


*       *********************************************************
*       *                                                         
*       *                         菜单定义                        
*       *                                                         
*       *********************************************************
*

DEFINE MENU (m.cMenuName) IN (m.oFormRef.Name) BAR

DEFINE PAD _1ie0n6rqf OF (m.cMenuName) PROMPT "基本表操作" COLOR SCHEME 3
DEFINE PAD _1ie0n6rqg OF (m.cMenuName) PROMPT "销售处理" COLOR SCHEME 3
DEFINE PAD _1ie0n6rqh OF (m.cMenuName) PROMPT "进货处理" COLOR SCHEME 3
DEFINE PAD _1ie0n6rqi OF (m.cMenuName) PROMPT "查询" COLOR SCHEME 3
DEFINE PAD _1ie0n6rqj OF (m.cMenuName) PROMPT "报表打印" COLOR SCHEME 3
DEFINE PAD _1ie0n6rqk OF (m.cMenuName) PROMPT "报表预览" COLOR SCHEME 3
DEFINE PAD _1ie0n6rql OF (m.cMenuName) PROMPT "标签打印预览" COLOR SCHEME 3
DEFINE PAD _1ie0n6rqm OF (m.cMenuName) PROMPT "退出" COLOR SCHEME 3
ON PAD _1ie0n6rqf OF (m.cMenuName) ACTIVATE POPUP (a_menupops[1])
ON PAD _1ie0n6rqg OF (m.cMenuName) ACTIVATE POPUP (a_menupops[2])
ON PAD _1ie0n6rqh OF (m.cMenuName) ACTIVATE POPUP (a_menupops[3])
ON PAD _1ie0n6rqi OF (m.cMenuName) ACTIVATE POPUP (a_menupops[4])
ON PAD _1ie0n6rqj OF (m.cMenuName) ACTIVATE POPUP (a_menupops[5])
ON PAD _1ie0n6rqk OF (m.cMenuName) ACTIVATE POPUP (a_menupops[6])
ON PAD _1ie0n6rql OF (m.cMenuName) ACTIVATE POPUP (a_menupops[7])
ON SELECTION PAD _1ie0n6rqm OF (m.cMenuName) ;
	DO _1ie0n6rqn ;
	IN LOCFILE("C:\XSXT\XSXT" ,"MPX;MPR|FXP;PRG" ,"WHERE is XSXT?")

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 form c:\xsxt\产品信息及库存表单
ON SELECTION BAR 2 OF (a_menupops[1]) do form c:\xsxt\顾员信息表单
ON SELECTION BAR 3 OF (a_menupops[1]) do form c:\xsxt\供应商信息表单
ON SELECTION BAR 4 OF (a_menupops[1]) do form c:\xsxt\客户信息表单

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 "销售出库"
ON SELECTION BAR 1 OF (a_menupops[2]) do form c:\xsxt\产品销售明细表单
ON SELECTION BAR 2 OF (a_menupops[2]) do c:\xsxt\xsck

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 "进货人库"
ON SELECTION BAR 1 OF (a_menupops[3]) do form c:\xsxt\产品进货表单
ON SELECTION BAR 2 OF (a_menupops[3]) do c:\xsxt\jhrk

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 "顾员销售业绩和奖金"
ON SELECTION BAR 1 OF (a_menupops[4]) do form c:\xsxt\srrq1
ON SELECTION BAR 2 OF (a_menupops[4]) do form c:\xsxt\srrq2
ON SELECTION BAR 3 OF (a_menupops[4]) do form c:\xsxt\srrq3
ON SELECTION BAR 4 OF (a_menupops[4]) do form c:\xsxt\srrq4
ON SELECTION BAR 5 OF (a_menupops[4]) do form c:\xsxt\srrq5

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 "销售明细按日期排"
ON SELECTION BAR 1 OF (a_menupops[5]) report form c:\xsxt\产品进货明细清单(按产品号排) to printer
ON SELECTION BAR 2 OF (a_menupops[5]) report form c:\xsxt\产品进货明细清单(按进货商排) to printer
ON SELECTION BAR 3 OF (a_menupops[5]) report form c:\xsxt\产品进货明细清单(按日期排) to printer
ON SELECTION BAR 4 OF (a_menupops[5]) report form c:\xsxt\产品明细及库存清单 to printer
ON SELECTION BAR 5 OF (a_menupops[5]) report form c:\xsxt\供应商花名册 to printer
ON SELECTION BAR 6 OF (a_menupops[5]) report form c:\xsxt\顾员花名册 to printer
ON SELECTION BAR 7 OF (a_menupops[5]) report form c:\xsxt\销售按产品分类 to printer
ON SELECTION BAR 8 OF (a_menupops[5]) report form c:\xsxt\销售明细按日期排 to printer

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 BAR 8 OF (a_menupops[6]) PROMPT "销售按产品分类"
DEFINE BAR 9 OF (a_menupops[6]) PROMPT "销售明细按日期排"
ON SELECTION BAR 1 OF (a_menupops[6]) report form c:\xsxt\产品进货明细清单(按产品号排) preview
ON SELECTION BAR 2 OF (a_menupops[6]) report form c:\xsxt\产品进货明细清单(按进货商排) preview
ON SELECTION BAR 3 OF (a_menupops[6]) report form c:\xsxt\产品进货明细清单(按日期排) preview
ON SELECTION BAR 4 OF (a_menupops[6]) report form c:\xsxt\产品明细及库存清单 preview
ON SELECTION BAR 5 OF (a_menupops[6]) report form c:\xsxt\供应商花名册 preview
ON SELECTION BAR 6 OF (a_menupops[6]) report form c:\xsxt\顾员花名册 preview
ON SELECTION BAR 7 OF (a_menupops[6]) report form c:\xsxt\客户花名册 preview
ON SELECTION BAR 8 OF (a_menupops[6]) report form c:\xsxt\销售按产品分类 preview
ON SELECTION BAR 9 OF (a_menupops[6]) report form c:\xsxt\销售明细按日期排 preview

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 "客户邮编标签预览"
ON SELECTION BAR 1 OF (a_menupops[7]) report form c:\xsxt\供应商邮编标签.lbx preview
ON SELECTION BAR 2 OF (a_menupops[7]) report form c:\xsxt\顾员邮编标签.lbx preview
ON SELECTION BAR 3 OF (a_menupops[7]) report form c:\xsxt\客户邮编标签.lbx preview

ACTIVATE MENU (m.cMenuName) NOWAIT

IF m.cTypeParm2 = "C"
	m.getMenuName = m.cMenuName
	m.oFormRef.Name = m.cSaveFormName 
ENDIF


*       *********************************************************
*       *                                                         
*       * _1IE0N6RQN  ON SELECTION PAD                            
*       *                                                         
*       * Procedure Origin:                                       
*       *                                                         
*       * From Menu:  XSXT.MPR,            Record:   50           
*       * Called By:  ON SELECTION PAD                            
*       * Prompt:     退出                                        
*       * Snippet:    1                                           
*       *                                                         
*       *********************************************************
*
PROCEDURE _1ie0n6rqn
set sysm to defa
close all
clear events
quit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -