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.

113 lines
3.9 KiB
Plaintext

<!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>
<!--引用样式. -->
<script type="text/javascript" src="../../../Scripts/bootstrap/js/jquery.min.js"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../../../Scripts/config.js"></script>
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
<script src="../../Admin.js"></script>
<script type="text/javascript" language="javascript">
//页面启动函数.
var mypk = "FieldNameLink_" + GetQueryString("FK_MapData") + "_" + GetQueryString("KeyOfEn");
var frmID = GetQueryString("FK_MapData");
var keyOfEn = GetQueryString("KeyOfEn");
$(function () {
//组织主键,
var en = new Entity("BP.Sys.MapExt");
en.MyPK = mypk;
var num = en.RetrieveFromDBSources(); //执行查询..
if (num == 1) {
$("#Btn_Delete").show();
} else {
$("#Btn_Delete").hide();
}
document.getElementById("TB_Doc").value = en.Doc;
$("#DDL_DoWay").val(en.DoWay);
});
function Save() {
var doc = $("#TB_Doc").val();
if (doc == null || doc == undefined || doc == "") {
alert("请输入内容.");
return;
}
//组织主键,
var en = new Entity("BP.Sys.MapExt");
en.MyPK = mypk;
en.Delete();
en.FK_MapData = frmID;
en.AttrOfOper = keyOfEn;
en.ExtType = "FieldNameLink";
en.DoWay = $("#DDL_DoWay").val();
en.Doc = doc;
en.Insert();
Reload();
}
function Delete() {
if (window.confirm('您确定要删除吗?') == false)
return false;
//组织主键,
var en = new Entity("BP.Sys.MapExt");
en.MyPK = mypk;
en.Delete(); //执行删除.
Reload();
}
</script>
</head>
<body>
<div class="container-full">
<div class="attrnode-bar-header">
<span class="pull-right">
</span>
<strong>字段名弹窗帮助信息</strong>
</div>
<table id="table" style="width: 98%;">
<tr>
<td colspan="1" style="text-align:right;padding-right:30px">
字段弹窗信息模式
<select id="DDL_DoWay" name="DDL_DoWay">
<option value="0">禁用</option>
<option value="1">弹出帮助信息</option>
<option value="2">侧滑弹出url</option>
<option value="3">弹窗弹出url</option>
<option value="4">新窗口弹出url</option>
</select>
</td>
</tr>
<tr>
<td colspan="1">
<textarea rows="9" name="TB_Doc" id="TB_Doc" style="width:95%"> </textarea>
</td>
</tr>
<tr>
<td colspan="1">
<button id="Btn_Save" name="Btn_Save" onclick="Save();" class="cc-btn-tab btn-save">保存</button>
<button id="Btn_Delete" name="Btn_Delete" onclick="Delete();" class="cc-btn-tab btn-save">删除</button>
</td>
</tr>
</table>
<div id="Msg">
</div>
</div>
</body>
</html>