Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
develop
Branches (3)
develop
forVS2010
ccbpm2021
develop
Branches (3)
develop
forVS2010
ccbpm2021
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
develop
Branches (3)
develop
forVS2010
ccbpm2021
ccflow
/
CCFlow
/
GPM
/
API.js
ccflow
/
CCFlow
/
GPM
/
API.js
API.js 3.50 KB
Copy Edit Raw Blame History
驰骋BPM authored 2020年05月07日 16:40 +08:00 . 升级抄送,为计算中心。
/**
* **************************** 总体说明 ************************
* 1. 该接口是菜单权限管理控制接口.
* 2. 需要引入到您的页面里,完成菜单的显示,以及功能点的控制.
* 3. 我们提供了如下3个方法,
* 3.1 获得菜单目录菜单的 GPM_GenerMenumsDB(appNo)。
* 3.2 判断是否可以执行特定功能的GPM_IsCanExecuteFunction(appNo,functionFlat)
* 3.3 自动设置页面元素显示隐藏的.
*/
/**
* 获得当前操作员的菜单与目录的API
* @param {系统编号} appNo
*
* 返回:两个结果集合的JSON,可以通过下列方式获取到他.
var dirs = data["Dirs"]; //获得目录.
var menus = data["Menus"]; //获得菜单.
说明:
1. 系统返回两个API接口. 目录与菜单,分别是两个数据集合。
2. 目录的数据结构:dirs No=编号,Name=标签, Icon=图标
3. 菜单的数据结构:menus No=编号,Name=标签, Icon=图标,URL=连接,
Target=打开方式0=新窗口,1=本窗口,2=覆盖新窗口. ParentNo=目录编码
4. 您可以自己组织这些数据根据自己的需要生成菜单框架.
5. ccbpm提供了两套风格,您可以参考 /Portal/GPMMenus.js , /Portal20/GPMMenus.js
*/
function GPM_GenerMenumsDB() {
var handler = new HttpHandler("BP.WF.HttpHandler.GPMPage");
// alert(appNo);
if (appNo == null) {
alert('没有配置appNo,或者没有引入config.js 。');
return;
}
handler.AddPara("AppNo", appNo);
var data = handler.DoMethodReturnJSON("GPM_DB_Menus"); //获得菜单.
return data;
}
/**
* 判断当前用户是否可以执行当前的功能点
*
* @param {项目编号} appNo
* @param {标记} funcFlag
*
* 返回true ,是可以执行这个功能点. false=不可以执行功能点.
*
* 说明:用于页面的功能点控制, 例如:
* 1. 获取是否可以删除的权限.
* 2. IsCanDeleteUser 是在新建菜单的时候做的标记.
* 3. 调用接口true,false 用于显示隐藏功能按钮.
*
* var isCanDeleteUser=GPM_IsCanExecuteFunction('CCOA','DeleteUser');
*
* if (isCanDeleteUser==false)
* $("#Btn_Delete").hid();
* else
* $("#Btn_Delete").show();
*
*/
function GPM_IsCanExecuteFunction(appNo, funcFlag) {
var handler = new HttpHandler("BP.WF.HttpHandler.GPMPage");
handler.AddPara("AppNo", appNo);
handler.AddPara("FuncFlag", funcFlag);
var data = handler.DoMethodReturnJSON("GPM_IsCanExecuteFunction"); //获得菜单.
if (data == "1")
return true;
return false;
}
/**
* 自动显示隐藏页面元素(批量控制页面元素的显示隐藏元素.)
*
* @param {系统编号} appNo
*
* 应用场景:
* 1. 首先在前台配置好功能控制点标记,并把功能控制点分给相关的人员, 功能控制点的标记要与要控制的页面元素id对应.
* 2. 其次需要把/GPM/API.js 引入到要控制的页面里面.
* 3. 开发的个性化需要控制的元素ID,默认都是隐藏的.
*
*/
function GPM_AutoHidShowPageElement(appNo) {
var handler = new HttpHandler("BP.WF.HttpHandler.GPMPage");
handler.AddPara("AppNo", appNo);
var data = handler.DoMethodReturnJSON("GPM_AutoHidShowPageElement"); //获得所有的标记数据.
for (var i = 0; i < data.length; i++) {
var ctrl = data[i].Flag;
var ctl = $("#" + ctrl);
if (ctl == null)
continue;
ctl.show(); //让其显示出来.
}
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

驰骋BPM系统包含表单引擎+流程引擎+权限控制,方便集成,配置灵活,功能强大,适合中国国情的工作流引擎.演示:http://demo.ccflow.org,右上角点star方可加群:787427590
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/codingstudio/ccflow.git
git@gitee.com:codingstudio/ccflow.git
codingstudio
ccflow
CCFlow
develop
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /