SPZUR00100.js.soonsu 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. var gvMainReportInfos = null;
  2. var gvSubReportInfos = null;
  3. var gvReportName = null;
  4. var gvReportDataType = null;
  5. var gvReportUserService = null;
  6. var gvReportDataXPath = null;
  7. var gvReportXPath = null;
  8. var gvReportData = null;
  9. var gvReportSubmitId = null;
  10. var gvSubreportData = "once";
  11. var gvReportParamShare = "share";
  12. var gvReportParamMatch = "name";
  13. var rex_gsCsvSeparatorDataset = "|@|";
  14. var rex_gsCsvSeparatorColumn = "|*|";
  15. var rex_gsCsvSeparatorRow = "";
  16. var gvRexpertServerRootURL = getDomain() + "/RexServer/";
  17. var gvRexpertServiceURL = gvRexpertServerRootURL + "RexService.jsp?rid=";
  18. var gvRexpertCreatorURL = gvRexpertServerRootURL + "RexCreator.jsp?sid=";
  19. function initRexpertDictionay() {
  20. return new setRexpertDictionay();
  21. }
  22. function setRexpertDictionay() {
  23. this.nodeObject = new Object();
  24. this.add = addRexpertDictionay;
  25. this.get = getRexpertDictionay;
  26. this.keys = getRexpertDictionays;
  27. this.del = delRexpertDictionay;
  28. this.Init = null;
  29. this.CallBack = null;
  30. this.length = 0;
  31. }
  32. function addRexpertDictionay(key, value)
  33. {
  34. obj = this.nodeObject;
  35. searchFlag = 0;
  36. for(var n in obj) {
  37. if(n == key) {
  38. obj[key] = value;
  39. searchFlag = 1;
  40. }
  41. }
  42. if(searchFlag == 0) {
  43. this.length++;
  44. obj[key] = value;
  45. }
  46. }
  47. function getRexpertDictionay(key) {
  48. obj = this.nodeObject;
  49. return obj[key];
  50. }
  51. function getRexpertDictionays(){
  52. return this.nodeObject;
  53. }
  54. function delRexpertDictionay(key) {
  55. this.add(key, null);
  56. }
  57. function isNull(str){
  58. return ((str == null || str == "" || str == "undefined") ? true:false);
  59. }
  60. function getReportURL(rid,syscd) {
  61. return getDomain(syscd)+getReportURI(rid);
  62. }
  63. function getReportURI(rid) {
  64. return "/himed/webapps/com/commonweb/rex/"+rid+".rex";
  65. }
  66. function addReportParameter() {
  67. var sColSep = "=";
  68. var sRowSep = "&";
  69. var paramStr = "";
  70. var i = 0;
  71. var node = opener.instance1.selectSingleNode(gvReportParamsPath);
  72. if (node != null)
  73. {
  74. var nodeList = node.childNodes;
  75. var nodeCnt = nodeList.length;
  76. if( nodeCnt > 0 ){
  77. paramStr = sRowSep;
  78. for( i = 0; i < nodeCnt - 1; i++) {
  79. paramStr += nodeList.item(i).nodeName + sColSep;
  80. paramStr += nodeList.item(i).text + sRowSep;
  81. }
  82. paramStr += nodeList.item(i).nodeName + sColSep;
  83. paramStr += nodeList.item(i).text;
  84. }
  85. }
  86. return paramStr;
  87. }
  88. function checkSaveAsFileType(fileType){
  89. return ((fileType == "xls" || fileType == "pdf" || fileType == "hml" || fileType == "rtf" || fileType == "html" || fileType == "bmp" || fileType == "txt" || fileType == "xml") ? true:false);
  90. }