|
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<title></title>
|
|
|
|
|
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
|
|
|
|
<script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript" src="../../../Scripts/config.js"></script>
|
|
|
|
|
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
|
|
|
|
|
<script src="DDLBar.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//页面初始化
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
|
|
InitBar(SelectorModel.ByWebAPI);
|
|
|
|
|
var nodeID = GetQueryString("FK_Node");
|
|
|
|
|
var node = new Entity("BP.WF.Template.Selector", nodeID);
|
|
|
|
|
|
|
|
|
|
if (node.SelectorP1.indexOf('SELECT ') != -1)
|
|
|
|
|
node.SelectorP1 = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GenerFullAllCtrlsVal(node);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Save() {
|
|
|
|
|
var nodeID = GetQueryString("FK_Node");
|
|
|
|
|
var node = new Entity("BP.WF.Template.Selector", nodeID);
|
|
|
|
|
node.SelectorModel = SelectorModel.WebAPI;
|
|
|
|
|
node.CopyForm();
|
|
|
|
|
node.Update();
|
|
|
|
|
|
|
|
|
|
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
|
|
|
|
|
node.DeliveryWay = 4;
|
|
|
|
|
node.Update();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alert("保存成功.");
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div id="bar"> </div>
|
|
|
|
|
<form id="cc">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>输入WebAPI接口地址</legend>
|
|
|
|
|
<textarea id="TB_SelectorP1" name="TB_SelectorP1" style="width:95%;height:50px"></textarea>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend id="help">说明</legend>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>请求方式:POST.</li>
|
|
|
|
|
<li>参数格式:params格式.</li>
|
|
|
|
|
<li>调用接口时,BPM会自动增加Headers参数用于验证:accessToken(用户每次登录生成的token)</li>
|
|
|
|
|
<li>如果是集团模式或SAAS模式,BPM会分别增加Headers参数:orgNo(组织编号)、systemNo(系统编号)</li>
|
|
|
|
|
<li>返回值格式:[{"No":"zhangsan","Name":"张三"},{"No":"lisi","Name":"李四"}]</li>
|
|
|
|
|
<li>接口示例:@WebApiHost/BPM/getEmpsInJCByStation?userNo=@WebUser.No&FK_Station=lkdj_gh_zx_cj</li>
|
|
|
|
|
<li>变量说明:@WebApiHost:常用接口地址,可在配置文件中配置,地址格式如:http://ccflow.org</li>
|
|
|
|
|
<li>变量可以是表单中的某个字段,使用@+字段英文名组合;也可以是流程参数,比如:@WorkID,@FK_Flow,@FK_Node</li>
|
|
|
|
|
<li>也可以是用户信息,比如:@WebUser.No,@WebUser.Name,@WebUser.FK_Dept等</li>
|
|
|
|
|
<!--<li ><a href="javascript:LoadTemplate();" >我要从模版里选择一个设置.</a></li>-->
|
|
|
|
|
</ul>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|