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.
95 lines
2.8 KiB
Plaintext
95 lines
2.8 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>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>选择一个值</title>
|
|
<link href="../../Comm/Style/CommStyle.css" rel="stylesheet" type="text/css" />
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
<script src="../../Scripts/easyUI/jquery-1.8.0.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/Gener.js" type="text/javascript"></script>
|
|
<script src="../Admin.js" type="text/javascript"></script>
|
|
|
|
<base target="_self" />
|
|
<script type="text/javascript">
|
|
|
|
|
|
//初始化页面函数.....
|
|
$(function () {
|
|
|
|
var fk_mapAttr = GetQueryString("FK_MapAttr");
|
|
|
|
var mapAttr = new Entity("BP.Sys.MapAttr", fk_mapAttr); //获得mapattr.
|
|
|
|
var data = mapAttr.DoMethodReturnString("GenerHisFKData");
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
$("#Msg").html("<font color=red>加载失败:<br>" + data + "</font> .");
|
|
return;
|
|
}
|
|
|
|
//转json.
|
|
data = JSON.parse(data);
|
|
|
|
//增加处理.
|
|
var idx = 0;
|
|
var html = "<table id='Table1' style='width:100%;height:500;'>";
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
var en = data[i];
|
|
if (idx == 0)
|
|
html += "<tr>";
|
|
|
|
html += "<td onclick='checkOnData(\"" + en.No + "\",\"" + en.Name + "\")'>" + en.No + en.Name + "</td>";
|
|
|
|
idx++;
|
|
if (idx == 3)
|
|
html += "</tr>";
|
|
|
|
if (idx >= 3)
|
|
idx = 0;
|
|
}
|
|
|
|
html += "</table>";
|
|
|
|
$("#ens").html(html);
|
|
|
|
});
|
|
|
|
function checkOnData(No, Name) {
|
|
//window.opener.document.getElementById("TB_Val").value = No;
|
|
//window.opener.document.getElementById("TB_Text").value = Name;
|
|
//window.opener.focus();
|
|
// window.close();
|
|
var data = [];
|
|
data[0] = No;
|
|
data[1] = Name;
|
|
window.parent.window.getValue(data);
|
|
}
|
|
//返回.
|
|
function Back() {
|
|
var url = GetHrefUrl();
|
|
url = url.replace('CondByFrm.htm', 'List.htm');
|
|
SetHref(url);
|
|
/*window.parent.Condlist.closeCurrentTabs();*/
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<form id="cc" >
|
|
|
|
|
|
<div id="ens" style="padding:10px;margin-bottom:10px">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<center><div id="Msg" /></center>
|
|
|
|
</body>
|
|
</html>
|
|
|