123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- 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);
- }
|