rexpert30.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. var reportId = 0;
  2. function makeReportId() {
  3. reportId = reportId + 1;
  4. return reportId;
  5. }
  6. // Rexpert30 오픈
  7. function exeReportPreview30(reportID, param, options, prnopt)
  8. {
  9. var reportNames = new Array();
  10. var reportURL = "/himed/webapps/com/commonweb/rex/"+reportID+".reb";
  11. var uniqueId = makeReportId();
  12. reportNames.push(reportURL + ":" + reportID);
  13. var params = new Array();
  14. var defaultParam = param;
  15. params.push(param);
  16. if (params.length == 0) {
  17. params.push(new Object());
  18. }
  19. // 세션 정보를 파라메터에 추가 (필요시코딩)
  20. for (var j = 0; j < reportNames.length; ++j) {
  21. if (j >= params.length) {
  22. params.push(defaultParam);
  23. }
  24. //addSessionValues(params[j]);
  25. }
  26. if (options == null) {
  27. options = "open=0;save=1;directprint=0;printdailog=0;print=1;stop=1;excel=1;zoomin=1;zoomout=1;moveprev=1;movenext=1;combo=1;movefirst=1;movelast=1;help=1";
  28. }
  29. if (prnopt == null) {
  30. prnopt = "1";
  31. }
  32. //ExternalInterface.call("openReport", reportNames, params, moreData.option, moreData.prnopt, moreData.uniqueId);
  33. if (checkOpener())
  34. {
  35. opener.htmlwindow.openReport(reportNames, params, options, prnopt, uniqueId);
  36. }
  37. else
  38. {
  39. htmlwindow.openReport(reportNames, params, options, prnopt, uniqueId);
  40. }
  41. }