|
|
<!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="../../../Comm/Style/Table0.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" />
|
|
|
<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="../../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
|
|
|
<script src="DDLBar.js" type="text/javascript"></script>
|
|
|
<script src="../../../Scripts/EasyUIUtility.js"></script>
|
|
|
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
|
|
|
<link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
|
|
<link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
|
|
|
<link href="../../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
|
|
|
|
//初始化下拉框.
|
|
|
InitBar(StartGuideWay.BySQLMulti);
|
|
|
|
|
|
//获取节点属性.
|
|
|
var flowNo = GetQueryString("FK_Flow");
|
|
|
|
|
|
var flow = new Entity("BP.WF.Flow", flowNo);
|
|
|
//批量为复制.(为啥没加载?)
|
|
|
if (flow.StartGuideWay == StartGuideWay.BySQLMulti) {
|
|
|
GenerFullAllCtrlsVal(flow);
|
|
|
$("#TB_BySQLMulti1").val(flow.StartGuidePara1);
|
|
|
$("#TB_BySQLMulti2").val(flow.StartGuidePara2);
|
|
|
}
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
function Save() {
|
|
|
|
|
|
//更新节点表单类型.
|
|
|
var flowNo = GetQueryString("FK_Flow");
|
|
|
var flow = new Entity("BP.WF.Flow", flowNo);
|
|
|
flow.StartGuideWay = StartGuideWay.BySQLMulti;
|
|
|
flow.StartGuidePara1 = $("#TB_BySQLMulti1").val();
|
|
|
flow.StartGuidePara2 = $("#TB_BySQLMulti2").val();
|
|
|
flow.CopyURL(); //从url里面copy数据.
|
|
|
flow.CopyForm(); //从from里面copy数据.
|
|
|
if (flow.Update() == 0)
|
|
|
flow.Insert();
|
|
|
|
|
|
Reload();
|
|
|
}
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div id="bar">
|
|
|
</div>
|
|
|
|
|
|
<fieldset>
|
|
|
<form id="cc" class="pd10">
|
|
|
<table id="table" class="table">
|
|
|
<tr>
|
|
|
<th colspan="2">
|
|
|
<a href="javascript:ShowHidden('ByUrl')">查询参数:</a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="2">
|
|
|
|
|
|
<div id="ByUrl" style="display: none; color: gray">
|
|
|
<ul>
|
|
|
<li>
|
|
|
比如:SELECT No, Name, No as EmpNo,Name as EmpName,Email FROM WF_Emp WHERE No LIKE
|
|
|
'%@key%'
|
|
|
</li>
|
|
|
<li>初始化列表参数,该查询语句必须有No,Name两个列,注意显示数量限制。</li>
|
|
|
<li>很多场合下需要用到父子流程,在启动子流程的时候需要选择一个父流程。</li>
|
|
|
<li>
|
|
|
实例:SELECT a.WorkID as No, a.Title as Name, a.Starter, a.WorkID As PWorkID, '011'
|
|
|
as PFlowNo, a.FK_Node as PNodeID FROM WF_GenerWorkflow a, WF_GenerWorkerlist b WHERE
|
|
|
A.WorkID=b.WorkID AND B.FK_Emp='@WebUser.No' AND B.IsPass=0 AND A.FK_Flow='011'
|
|
|
AND a.Title Like '%@Key%'
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="2" style="width: 100%;">
|
|
|
<textarea id="TB_BySQLMulti1" name="TB_BySQLMulti1" rows="3" runat="server" style="width: 98%;
|
|
|
height: 51px" /></textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th colspan="2">
|
|
|
<a href="javascript:ShowHidden('ByParas2')">初始化参数列表:</a>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="2">
|
|
|
|
|
|
<div id="ByParas2" style="display: none; color: gray">
|
|
|
<ul>
|
|
|
<li>比如:SELECT top 15 No,Name ,No as EmpNo,Name as EmpName ,Email FROM WF_Emp </li>
|
|
|
<li>
|
|
|
或者:SELECT No,Name ,No as EmpNo,Name as EmpName ,Email FROM WF_Emp WHERE ROWID <
|
|
|
15
|
|
|
</li>
|
|
|
<li>该数据源必须有No,Name两个列, 其他的列要与开始节点表单字段对应。</li>
|
|
|
<li>注意查询的数量,避免太多影响效率。</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="2" style="width: 100%;">
|
|
|
<textarea id="TB_BySQLMulti2" name="TB_BySQLMulti2" rows="3" runat="server" style="width: 98%;
|
|
|
height: 51px"></textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</form>
|
|
|
</fieldset>
|
|
|
</body>
|
|
|
</html>
|