dlgReport.jsp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.hsnc.common.util.*" %>
  3. <%@ page import="kr.co.hsnc.common.config.WAFConfig" %>
  4. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  5. <%
  6. ctx.init(request, response);
  7. ValueObject params = ctx.getParams();
  8. String PARAMS_STRING = "";
  9. int pSize = params.getInt("P_SIZE");
  10. for( int i = 0 ; i < pSize ; i++ ) {
  11. //// 2008.03.31 hsj 수정. 파라미터값 중에서 " 를 포함한 값이 들어있는 경우 \ 추가한다.
  12. String valParam = params.get("P_" + i );
  13. int nPos = -1;
  14. if( (nPos = valParam.indexOf("\"")) >= 0)
  15. {
  16. valParam = valParam.replaceAll("\"", "\\\\\"");
  17. }
  18. PARAMS_STRING += "[" + valParam + "]";
  19. }
  20. %>
  21. <html style="margin:0;height:100%">
  22. <head>
  23. <meta charset="utf-8">
  24. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  25. <TITLE><%= params.get("WINDOW_TITLE") %></TITLE>
  26. <HEAD>
  27. <script src="/js/jquery-1.11.0.min.js"></script>
  28. <script src="/js/crownix-viewer.min.js"></script>
  29. <link rel="stylesheet" type="text/css" href="/css/crownix-viewer.min.css">
  30. </HEAD>
  31. <body style="margin:0;height:100%">
  32. <div id="crownix-viewer" style="position:absolute;width:100%;height:100%"></div>
  33. <SCRIPT language="javascript">
  34. window.onload = function(){
  35. var viewer = new m2soft.crownix.Viewer("<%=WAFConfig.get("waf.rd_report.searver")%>", 'crownix-viewer');
  36. viewer.useAdjustCharacterScale(true);
  37. viewer.openFile("<%= ctx.getServerDomain() %><%= params.get("REPORT_NAME") %>", '/rf [<%= WAFConfig.get("waf.rd_report.path", "")%>rdagent.jsp] /rsn [<%= WAFConfig.get("waf.rd_report.DataSource", "")%>] /rp <%= PARAMS_STRING %>');
  38. };
  39. </SCRIPT>
  40. </BODY>
  41. </HTML>