var gvMainReportInfos = null; var gvSubReportInfos = null; var gvReportName = null; var gvReportDataType = null; var gvReportUserService = null; var gvReportDataXPath = null; var gvReportXPath = null; var gvReportData = null; var gvReportSubmitId = null; var gvSubreportData = "once"; var gvReportParamShare = "share"; var gvReportParamMatch = "name"; var rex_gsCsvSeparatorDataset = "|@|"; var rex_gsCsvSeparatorColumn = "|*|"; var rex_gsCsvSeparatorRow = ""; var gvRexpertServerRootURL = getDomain() + "/RexServer/"; var gvRexpertServiceURL = gvRexpertServerRootURL + "RexService.jsp?rid="; var gvRexpertCreatorURL = gvRexpertServerRootURL + "RexCreator.jsp?sid="; function initRexpertDictionay() { return new setRexpertDictionay(); } function setRexpertDictionay() { this.nodeObject = new Object(); this.add = addRexpertDictionay; this.get = getRexpertDictionay; this.keys = getRexpertDictionays; this.del = delRexpertDictionay; this.Init = null; this.CallBack = null; this.length = 0; } function addRexpertDictionay(key, value) { obj = this.nodeObject; searchFlag = 0; for(var n in obj) { if(n == key) { obj[key] = value; searchFlag = 1; } } if(searchFlag == 0) { this.length++; obj[key] = value; } } function getRexpertDictionay(key) { obj = this.nodeObject; return obj[key]; } function getRexpertDictionays(){ return this.nodeObject; } function delRexpertDictionay(key) { this.add(key, null); } function isNull(str){ return ((str == null || str == "" || str == "undefined") ? true:false); } function getReportURL(rid,syscd) { return getDomain(syscd)+getReportURI(rid); } function getReportURI(rid) { return "/himed/webapps/com/commonweb/rex/"+rid+".rex"; } function addReportParameter() { var sColSep = "="; var sRowSep = "&"; var paramStr = ""; var i = 0; var node = opener.instance1.selectSingleNode(gvReportParamsPath); if (node != null) { var nodeList = node.childNodes; var nodeCnt = nodeList.length; if( nodeCnt > 0 ){ paramStr = sRowSep; for( i = 0; i < nodeCnt - 1; i++) { paramStr += nodeList.item(i).nodeName + sColSep; paramStr += nodeList.item(i).text + sRowSep; } paramStr += nodeList.item(i).nodeName + sColSep; paramStr += nodeList.item(i).text; } } return paramStr; } function checkSaveAsFileType(fileType){ return ((fileType == "xls" || fileType == "pdf" || fileType == "hml" || fileType == "rtf" || fileType == "html" || fileType == "bmp" || fileType == "txt" || fileType == "xml") ? true:false); }