function $(id){ return document.getElementById(id); } function initSelectName(idName){ var optionJsonObj = null; if(optionJson != ""){ optionJsonObj = eval('(' + optionJson + ')'); } var selObj = $(idName); for(var i=0;i"+remark+"
" + "
" }else if(typeName == "str"){ var dvObj = $(dvName); dvObj.innerHTML = ""; }else if(typeName == "int"){ var dvObj = $(dvName); dvObj.innerHTML = ""; }else if(typeName == "sdate"){ var dvObj = $(dvName); dvObj.innerHTML = ""; } // // var txtValueObj = $(txtObjName); //txtValueObj.disabled = false; if(selOptionNum != 0){ var selectOptionObj = $("sel_option"+selOptionNum); selectOptionObj.value = selectOptionObj.options[1].value; selectOptionObj.disabled = false; var selectNameObj = $("sel_name"+selOptionNum); //selectNameObj.value = selectNameObj.options[1].value; selectNameObj.disabled = false; } } function searchAction(){ var searchJson = ""; //begin searchJson +="{"; searchJson += "["; var optionJsonObj = null; if(optionJson != ""){ optionJsonObj = eval('(' + optionJson + ')'); } var equalJsonObj = null; if(equalJson != ""){ equalJsonObj = eval('(' + equalJson + ')'); } var totalCount = 6; for(var i=0;i= 0 || oldUrl.indexOf("?searchcachename") >= 0){ if(oldUrl.indexOf("&searchcachename=") >= 0){ var requeststring = ""; var beginNum = oldUrl.indexOf("&searchcachename="); var beginString = oldUrl.substr(0,oldUrl.indexOf("&searchcachename=")); var endString = oldUrl.substr((oldUrl.indexOf("&searchcachename=")),(oldUrl.length - oldUrl.indexOf("&searchcachename="))); var midString = endString.substr(1,endString.length - 1); var midSecondStr = ""; if(midString.indexOf("&") >= 0){ midSecondStr = midString.substr(midString.indexOf("&"),midString.length-midString.indexOf("&")); } requeststring = beginString+cacheName+midSecondStr; }else if(oldUrl.indexOf("?searchcachename=") >= 0){ var requeststring = ""; var beginNum = oldUrl.indexOf("?searchcachename="); var beginString = oldUrl.substr(0,oldUrl.indexOf("?searchcachename=")); var endString = oldUrl.substr((oldUrl.indexOf("?searchcachename=")),(oldUrl.length - oldUrl.indexOf("?searchcachename="))); var midString = endString.substr(1,endString.length - 1); var midSecondStr = ""; if(midString.indexOf("?") >= 0){ midSecondStr = midString.substr(midString.indexOf("?"),midString.length-midString.indexOf("?")); } cacheName = "?searchcachename="+$("h_searchcache").value.trim(); requeststring = beginString+cacheName+midSecondStr; } newUrl = requeststring; //document.write(newUrl);return; }else{ if(oldUrl.indexOf("?") >= 0){ newUrl = oldUrl+"&searchcachename="+$("h_searchcache").value.trim()+"&guid="+newGuid(); }else{ newUrl = oldUrl+"?searchcachename="+$("h_searchcache").value.trim()+"&guid="+newGuid(); } } if(cacheState == 1){ if($("h_opentype").value.trim() == "frame"){ parentObj = parent.document.location; parent.document.location.href = parent.document.location.href; parentObj.href = newUrl; }else{ window.parent.opener.location.href = window.parent.opener.location.href; parentObj.href = newUrl; //finishLoading(); window.close(); } } //} } function cancelAction(){ if(window.confirm("您确定要关闭综合查询页面")){ window.closed(); } } function initSearchAction(){ if(window.confirm("您确定要初始化查询信息")){ window.location.href=window.location.href; } } //两端去空格函数 String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g,""); } //获取GUID function newGuid() { var guid = ""; for (var i = 1; i <= 32; i++){ var n = Math.floor(Math.random()*16.0).toString(16); guid += n; if((i==8)||(i==12)||(i==16)||(i==20)) guid += "-"; } return guid.toUpperCase(); } function switchCheckBox(pushObjName,otherObjName){ if($(pushObjName).checked){ $(otherObjName).checked = false; }else{ $(pushObjName).checked = true; $(otherObjName).checked = false; } } function initJson(){ if($("h_handle").value.trim() == "opseae"){ if(document.getElementById("opseae") == null){ var url = "../js/MultipleSearchOpSeaeSource.js?uid="+newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement( "script" ); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "opseae"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); } } else if ($("h_handle").value.trim() == "opseai") { if (document.getElementById("opseae") == null) { var url = "../js/MultipleSearchOpSeaiSource.js?uid=" + newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement("script"); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "opseae"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); } } else if ($("h_handle").value.trim() == "opseailcl") { if (document.getElementById("opseae") == null) { var url = "../js/MultipleSearchOpSeaiLCLSource.js?uid=" + newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement("script"); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "opseaelcl"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); } } else if($("h_handle").value.trim() == "multiplebusiness"){ if(document.getElementById("multiplebusiness") == null){ var url = "../js/MultipleSearchMultipleBusinessSource.js?uid="+newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement( "script" ); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "multiplebusiness"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); } } else if($("h_handle").value.trim() == "opseaetotalchart"){ if(document.getElementById("opseaetotalchart") == null){ var url = "../js/MultipleSearchOpSeaeTotalChartSource.js?uid="+newGuid(); var loader = dhtmlxAjax.getSync(url); var jsVal = loader.xmlDoc.responseText; var oHead = document.getElementsByTagName('head').item(0); var oScript = document.createElement( "script" ); oScript.language = "javascript"; oScript.type = "text/javascript"; oScript.id = "opseaetotalchart"; oScript.defer = true; oScript.text = jsVal; oHead.appendChild(oScript); } } }