|
|
|
|
<!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="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/config.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Comm/JScript.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/CommonUnite.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
|
|
|
|
|
<!-- 自己的系统风格统一. -->
|
|
|
|
|
<link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
|
|
|
|
<link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
|
|
|
|
|
<!-- 自己的系统风格统一end -->
|
|
|
|
|
<script src="DDLBar.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var nodeID = 0;
|
|
|
|
|
$(function () {
|
|
|
|
|
InitBar(FormSlnType.SelfForm);
|
|
|
|
|
//获取节点属性
|
|
|
|
|
nodeID = GetQueryString("FK_Node");
|
|
|
|
|
var node = new Entity("BP.WF.Node", nodeID);
|
|
|
|
|
if (node.FormType == FormSlnType.SelfForm) {
|
|
|
|
|
document.getElementById("TB_CustomURL").value = node.FormUrl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//节点表单组件属性.
|
|
|
|
|
function ShowFWCAttr() {
|
|
|
|
|
var nodeID = GetQueryString("FK_Node");
|
|
|
|
|
var url = "../../../Comm/EnOnly.htm?EnName=BP.WF.Template.FrmNodeComponent&PKVal=" + nodeID;
|
|
|
|
|
OpenEasyUiDialogExt(url, '节点表单组件', 800, 450, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Save() {
|
|
|
|
|
$("#Btn_Save").html("正在保存...");
|
|
|
|
|
//更新节点表单类型.
|
|
|
|
|
var nodeID = GetQueryString("FK_Node");
|
|
|
|
|
var node = new Entity("BP.WF.Node", nodeID);
|
|
|
|
|
node.FormType = FormSlnType.SelfForm;
|
|
|
|
|
node.FormUrl = document.getElementById("TB_CustomURL").value;
|
|
|
|
|
node.Update();
|
|
|
|
|
|
|
|
|
|
$("#Btn_Save").html("保存成功.");
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
////更新表单类型.
|
|
|
|
|
//var frmID = "ND" + nodeID;
|
|
|
|
|
//var mapData = new Entity("BP.Sys.MapData", frmID);
|
|
|
|
|
//mapData.FrmType = FrmType.Url;
|
|
|
|
|
//mapData.Update();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div id="bar"> </div>
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>绑定url设置 - <a href="javascript:ShowHidden('DivHelp1')">填写示例</a> - <a href="javascript:ShowFWCAttr()">组件属性</a> </legend>
|
|
|
|
|
<br />
|
|
|
|
|
<table style="width:100%; border-color:antiquewhite">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>请输入嵌入式表单的URL: </td>
|
|
|
|
|
<td style="width:70%;">
|
|
|
|
|
<input type="text" placeholder="请输入嵌入式表单的URL" value="" id="TB_CustomURL" name="TB_CustomURL"
|
|
|
|
|
style="width:90%;" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
<div id="DivHelp1" class="help" style="color: blue; display: none">
|
|
|
|
|
比如您输入:/XXX/Abc.htm 系统就会自动把系统变量带入到您的 <br />
|
|
|
|
|
url: /XXX/Abc.htm?WorkID=1223&FK_Node=105&FK_Flow=001&UserNo=zhangsan&Token=xcwwxccsdsdsd <br />
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend id="help"></legend>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>您可以定义一个页面,绑定到该节点上,</li>
|
|
|
|
|
<li>该页面里面有一个Save() 的 function ,当用户点击框架外面的工具栏上的【保存】按钮或者【发送】按钮,就会触发这个函数。</li>
|
|
|
|
|
<li>您需要在Save()的function里完成数据完整性效验与数据保存。</li>
|
|
|
|
|
<li>如果保存成功就return true, 保存失败就return false. 比如:当用户执行发送的时候,首先执行保存,保存成功后在执行发送,保存失败后,就阻止发送。 </li>
|
|
|
|
|
<li>您输入的Url可以有参数,但是系统会把所有的参数附件到该url后面。</li>
|
|
|
|
|
<li>例如:/SDKFlowDemo/QingJia/SDKQianRuFangShiForm.htm 。</li>
|
|
|
|
|
<li>比如:您配置的url为 http://xxxx:222:/abc.htm 系统实际的Url为 http://xxxx:222:/abc.htm?FK_Flow=xxx&FK_Node=xxx&WorkID=xxx&UserNo=xxx&Token=xxx</li>
|
|
|
|
|
<li>系统会把当前流程环境中的变量与参数都传递到您的自定义页面上来,您可以根据这些参数来展示,保存数据,控制数据只读,可编辑。</li>
|
|
|
|
|
<li>如果使用绝对路径可以使用ccbpm的全局变量@SDKFromServHost ,比如: @SDKFromServHost/MyFile.htm </li>
|
|
|
|
|
<li>ccbpm团队为您提供了一个嵌入式表单的 demo ,位于:\\流程树\\表单解决方案\\嵌入式表单. </li>
|
|
|
|
|
<li>运行效果 </li>
|
|
|
|
|
<li><img src="SelfFrm.png" id="help" class="HelpImg" /> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|