|
|
<!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>
|
|
|
<!--SQL编辑器-->
|
|
|
<link href="../../../Scripts/CodeMirror/lib/codemirror.css" rel="stylesheet" />
|
|
|
<link href="../../../Scripts/CodeMirror/addon/hint/show-hint.css" rel="stylesheet" />
|
|
|
<script src="../../../Scripts/CodeMirror/lib/codemirror.js"></script>
|
|
|
<script src="../../../Scripts/CodeMirror/addon/edit/matchbrackets.js"></script>
|
|
|
<script src="../../../Scripts/CodeMirror/mode/sql/sql.js"></script>
|
|
|
<script src="../../../Scripts/CodeMirror/addon/hint/show-hint.js"></script>
|
|
|
<script src="../../../Scripts/CodeMirror/addon/hint/sql-hint.js"></script>
|
|
|
<script src="../../../Scripts/LoadSql.js"></script>
|
|
|
|
|
|
<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" />
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
//获取节点属性.
|
|
|
var flowNo = GetQueryString("FK_Flow");
|
|
|
|
|
|
var flow = new Entity("BP.WF.Flow", flowNo);
|
|
|
$(function () {
|
|
|
|
|
|
//初始化下拉框.
|
|
|
InitBar(7);
|
|
|
//sql语句赋值
|
|
|
if (flow.StartLimitRole == 7 || flow.StartLimitRole == 8) {
|
|
|
$("#DDL_SQL option[value='" + flow.StartLimitRole + "']").attr("selected", true);
|
|
|
$("#TB_SQL").val(flow.StartLimitPara);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
function Save() {
|
|
|
flow.StartLimitRole = $("#DDL_SQL option:selected").val();
|
|
|
flow.StartLimitPara = editor.getValue();
|
|
|
flow.CopyURL(); //从url里面copy数据.
|
|
|
flow.CopyForm(); //从from里面copy数据.
|
|
|
if (flow.Update() == 0)
|
|
|
flow.Insert();
|
|
|
|
|
|
Reload();
|
|
|
}
|
|
|
</script>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<div id="bar">
|
|
|
</div>
|
|
|
|
|
|
<fieldset>
|
|
|
<legend>
|
|
|
<label style="font-size:13px;font-weight:bolder;">
|
|
|
按SQL规则
|
|
|
</label>
|
|
|
</legend>
|
|
|
<!-- -->
|
|
|
<span>规则模式:</span>
|
|
|
<br />
|
|
|
<select name="规则模式" id="DDL_SQL">
|
|
|
<option value="7">设置的SQL数据为空,或者返回结果为零时可以启动</option>
|
|
|
<option value="8">设置的SQL数据为空,或者返回结果为零时不可以启动</option>
|
|
|
</select>
|
|
|
<br />
|
|
|
<a href="javascript:ShowHidden('Div2')">SQL规则参数:</a>
|
|
|
<br />
|
|
|
<div id="Div2" style="display: none; color: Gray">
|
|
|
<ul>
|
|
|
<li>例如:SELECT COUNT(*) AS Num FROM TABLE1 WHERE NAME='@MyFieldName'</li>
|
|
|
<li>解释:编写一个sql语句返回一行一列,如果信息是0,就是可以启动,非0就不可以启动。</li>
|
|
|
<li>该参数支持ccbpm的表达式。比如:@WebUser.No,@WebUser.Name,@WebUser.FK_Dept,@WebUser.OrgNo</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<textarea class="input" id="TB_SQL" name="TB_SQL" rows="3" style="height: 45px;"></textarea>
|
|
|
</fieldset>
|
|
|
</body>
|
|
|
</html>
|