You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
4.1 KiB
Plaintext

11 months ago
<!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>
<meta charset="UTF-8" />
<title>业务类型</title>
<link href="../../Scripts/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../../Scripts/easyUI/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>
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<!-- 自己的系统风格统一. -->
<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" />
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../../Scripts/config.js"></script>
<script type="text/javascript" src="../../Comm/Gener.js"></script>
<script src="../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
<script src="../Admin.js"></script>
<script type="text/javascript" language="javascript">
var nodeID = "";
//页面启动函数.
$(function () {
$("#Msg").html("正在加载,请稍后......");
//初始化groupID.
var flowNo = GetQueryString("FK_Flow");
var flow = new Entity("BP.WF.Template.FlowExt", flowNo);
var nodeAppType = flow.NodeAppType;
if (nodeAppType == "" || nodeAppType == undefined) {
$("#errtext").html('警告您没有在流程属性里定义NodeAppType枚举值,无法设置节点属性.');
return;
}
//var sql = "SELECT \"NodeAppType\" FROM WF_Node WHERE NodeID=" + GetQueryString("FK_Node");
// var val = DBAccess.RunSQLReturnTable(sql);
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrNode");
handler.AddPara("FK_Node", GetQueryString("FK_Node"));
var val = handler.DoMethodReturnString("NodeAppType");
val = JSON.parse(val);
var type = val[0].NodeAppType;
GenerBindEnumKey("DDL_NodeAppType", nodeAppType, type);
// $("#DDL_NodeAppType").val(type);
//增加slect的节点值
//GenerBindDDL("DDL_NodeAppType", mapAttrs, "KeyOfEn", "Name", node.CCFormAttr);
});
function Save() {
var nodeID = GetQueryString("FK_Node");
var appType = $("#DDL_NodeAppType").val();
//var sql = "UPDATE WF_Node SET NodeAppType=" + appType + " WHERE NodeID=" + nodeID;
// DBAccess.RunSQL(sql);
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrNode");
handler.AddPara("appType", appType);
handler.AddPara("nodeID", nodeID);
handler.DoMethodReturnString("WF_Node_Up");
Reload();
}
</script>
</head>
<body>
<div class="container-full">
<div class="attrnode-bar-header">
<span class="pull-right">
<button id="Btn_Save" name="Btn_Save" onclick="Save();">保存</button>
</span>
<strong>设置节点类型</strong>
</div>
<form id="cc">
<div style="position:relative;">
<table class="table">
<tr>
<td>
请选择业务类型: <select id="DDL_NodeAppType" name="DDL_NodeAppType"> </select>
</td>
</tr>
</table>
</div>
<br />
<label style="color:red" id="errtext"></label>
</form>
</div>
</body>
</html>