From 4f1b1bcc0083a1b89cd6da8c87f840cc2f03ff20 Mon Sep 17 00:00:00 2001 From: tolag3 Date: Fri, 3 Jan 2025 11:25:52 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=B4=EB=A6=BD=EB=A6=AC=ED=8F=AC=ED=8A=B8?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsp/ClipReport4/ClipReportViewer.jsp | 1 + .../WEB-INF/views/_common/_js/clipreport.js | 10442 ++++++++++++---- 2 files changed, 8237 insertions(+), 2206 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/ClipReport4/ClipReportViewer.jsp b/src/main/webapp/WEB-INF/jsp/ClipReport4/ClipReportViewer.jsp index 38e1d004..c9ffb322 100644 --- a/src/main/webapp/WEB-INF/jsp/ClipReport4/ClipReportViewer.jsp +++ b/src/main/webapp/WEB-INF/jsp/ClipReport4/ClipReportViewer.jsp @@ -1,3 +1,4 @@ +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@page import="org.apache.poi.util.SystemOutLogger"%> <%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.clipsoft.clipreport.oof.OOFFile"%> diff --git a/src/main/webapp/WEB-INF/views/_common/_js/clipreport.js b/src/main/webapp/WEB-INF/views/_common/_js/clipreport.js index 4e78df9e..b5880f23 100644 --- a/src/main/webapp/WEB-INF/views/_common/_js/clipreport.js +++ b/src/main/webapp/WEB-INF/views/_common/_js/clipreport.js @@ -66,8 +66,8 @@ is_crOs = is_chrome && (agt.indexOf("csos") != -1); is_chromeFrame = !is_ie && is_chrome; is_webkit = is_safari || is_chrome; is_mozBrowser = is_firefox || is_opera; -is_ipad = (is_safari && (agt.indexOf("ipad") != -1)); -is_iphone = (is_safari && (agt.indexOf("iphone") != -1)); +is_ipad = ((is_safari || is_moz || (agt.indexOf("applewebkit") != -1)) && (agt.indexOf("ipad") != -1)); +is_iphone = ((is_safari || is_moz || (agt.indexOf("applewebkit") != -1)) && (agt.indexOf("iphone") != -1)); is_apple = (is_ipad || is_iphone); is_android = (agt.indexOf("android") != -1); is_opera_mini = (agt.indexOf("opera mini") != -1); @@ -94,6 +94,12 @@ if (typeof window.SVGAElement == "undefined") { is_svg = false; } } +var Re_zoom = { + isPop: false, + rate: 1 +}; +var mRe_pallet = null; +is_PosiFix = true; var getAcrobatInfo = function() { var e = function(f) { try { @@ -145,7 +151,6 @@ m_report_printOption = getAcrobatInfo(); is_win78_reader9 = (((agt.indexOf("windows nt 6.1") != -1) || (agt.indexOf("windows nt 6.2") != -1) || (agt.indexOf("windows nt 10.") != -1)) && (null != m_report_printOption.acrobatVersion) && (m_report_printOption.acrobatVersion < 10)); is_reader8 = (null != m_report_printOption.acrobatVersion) && (m_report_printOption.acrobatVersion < 9); is_winxp_reader10 = ((is_ie6 || is_ie7 || is_ie8) && (null != m_report_printOption.acrobatVersion) && (m_report_printOption.acrobatVersion < 11 && m_report_printOption.acrobatVersion > 9)); - function HttpClient() { try { var b = new XMLHttpRequest(); @@ -197,39 +202,36 @@ HttpClient.prototype.send = function(e, b, c, d) { } return this._handleSyncHttpResponse(); } -}; +} +; if (window.addEventListener) { addEventListener("message", receiveMessage, false); } else { attachEvent("onmessage", receiveMessage); } var m_reportHashMap = function() {}; - function createReport(b, c, d) { if (null == d) { mRe_ReportEventHandler(20); } - var a = new Report(b, null, null, c, d); + var a = new Report(b,null,null,c,d); return a; } - function createJSPReport(c, d, b, e) { if (null == e) { mRe_ReportEventHandler(20); } - var a = new Report(c, d, b, null, e); + var a = new Report(c,d,b,null,e); return a; } - function createImportJSPReport(b, d, c) { if (null == c) { mRe_ReportEventHandler(20); } - var a = new Report(b, null, null, null, c); + var a = new Report(b,null,null,null,c); a.m_reportKey = d; return a; } - function Report(d, f, b, e, g) { this.servletPath = d; this.beforePageIndex = 0; @@ -305,6 +307,10 @@ function Report(d, f, b, e, g) { this.m_DPI = 96; this.m_ratio = "100%"; this.m_directPrint = false; + this.m_directPrintOp = { + endReport: false, + key: null + }; this.m_pageCountTime = 700; this.m_isCloseFunction = null; this.m_isReportEndFunction = null; @@ -344,6 +350,7 @@ function Report(d, f, b, e, g) { y: 0, domDiv: null }; + this.m_endPrintProgressEvent = null; this.saveOptionVisible = { excel: true, excelx: true, @@ -355,7 +362,8 @@ function Report(d, f, b, e, g) { hancell: true, html5: true, doc: true, - jpg: false + jpg: false, + txt: false }; this.adobe9Permission = false; this.adobeMessage = { @@ -415,12 +423,17 @@ function Report(d, f, b, e, g) { startNextButton: null, startLastButton: null, startZoomInSelect: null, + startPageCountLabel: null, endSaveButton: null, endPDFButton: null, endExcelButton: null, endHWPButton: null, endDOCButton: null }; + this.m_pageMoveEvent = { + start: null, + end: null + }; this.m_exePrintEvent = { ok: null, cancel: null @@ -474,8 +487,46 @@ function Report(d, f, b, e, g) { }; this.m_drilingTop = null; this.m_comboNames = { - pagewidth: "PageWidth", - wholepage: "WholePage" + num50: { + name: "50%", + visible: true + }, + num75: { + name: "75%", + visible: true + }, + num100: { + name: "100%", + visible: true + }, + num125: { + name: "125%", + visible: true + }, + num150: { + name: "150%", + visible: true + }, + num200: { + name: "200%", + visible: true + }, + num300: { + name: "300%", + visible: true + }, + num400: { + name: "400%", + visible: true + }, + pagewidth: { + name: "PageWidth", + visible: true + }, + wholepage: { + name: "WholePage", + visible: true + } }; this.m_signOption = { offsetLeft: 0, @@ -502,11 +553,11 @@ function Report(d, f, b, e, g) { this.eFormData = null; this.eFormCheckImage = null; this.eFormRadioImage = null; - this.eFormRadioChecked = {}; this.eFormControlList = null; this.eFormControlGroupList = null; this.eFormDoodleOption = { is_Ds: false, + is_eraser: false, zoomIn: 1, tos: null, path: null, @@ -518,7 +569,21 @@ function Report(d, f, b, e, g) { line: 0, zoomUp: 1 }, - pagePathSave: [] + pens: { + width: 16, + color: "rgb(237, 68, 61)", + op: 0.5 + }, + tempPens: { + width: 16, + color: "rgb(237, 68, 61)", + op: 0.5, + penList: [], + opList: [], + colorList: [] + }, + pagePathSave: [], + pageImgSave: [] }; this.printNames = { pdf: "PDF", @@ -527,8 +592,10 @@ function Report(d, f, b, e, g) { exe: "EXE" }; this.m_exePrintStatus = { - url: "https://localhost:", - port: [33000, 22000, 11000], + url: "http://127.0.0.1:", + port: [22000, 33000, 11000], + httpPort: [22000, 33000, 11000], + httpsPort: [22443, 33443, 11443], intervalKey: null, disConnectCount: 0, isSet: false, @@ -548,7 +615,29 @@ function Report(d, f, b, e, g) { before: "/ ", after: "" }; + this.m_isTOCVisible = false; + this.m_isSwipe = false; + this.m_PageMove = { + ButtonDisabled: true, + leftDOM: null, + rightDOM: null, + eventKey: null, + doubleEventKey: null + }; } +Report.prototype.createUserProgress = function() { + var a = document.createElement("div"); + a.className = "user_progress"; + a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;background-repeat:no-repeat;z-index:500;"; + this.targetDiv.appendChild(a); + this.m_userProg = a; +} +; +Report.prototype.removeUserProgress = function() { + this.targetDiv.removeChild(this.m_userProg); + this.m_userProg = null; +} +; Report.prototype.createProgress = function() { var a = ""; var b = this.is_eForm ? "eform_progress" : "report_progress"; @@ -563,23 +652,24 @@ Report.prototype.createProgress = function() { } this.paintDiv.innerHTML = a; this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.createEditableProgress = function() { var a = document.createElement("div"); var c = this.is_eForm ? "eform_progress" : "report_progress"; if (this.m_progress.URL == "") { - strDiv = "
"; a.setAttribute("class", c); - a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; + a.style.cssText = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;width:" + this.paintDiv.offsetWidth + "px;top:" + this.paintDiv.scrollTop + "px;height:" + this.paintDiv.offsetHeight + "px;overflow:hidden;"; } else { - var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; + var b = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;width:" + this.paintDiv.offsetWidth + "px;top:" + this.paintDiv.scrollTop + "px;height:" + this.paintDiv.offsetHeight + "px;overflow:hidden;"; b += "background-position:" + this.m_progress.x + " " + this.m_progress.y + ";"; b += "background-repeat:no-repeat;background-image:url(" + this.m_progress.URL + ");"; a.style.cssText = b; } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.createPrintProgress = function() { this.disabledMenu(true); var a = document.createElement("div"); @@ -597,7 +687,8 @@ Report.prototype.createPrintProgress = function() { } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.removePrintProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_printprogress.domDiv); @@ -606,7 +697,11 @@ Report.prototype.removePrintProgress = function() { clearListCookies(this.clientPath); this.isEnabledAdobeRead = true; this.debugMeg("report log :: 리포트 프로그래스 종료"); -}; + if (null != this.m_endPrintProgressEvent) { + this.m_endPrintProgressEvent(); + } +} +; Report.prototype.createHWPProgress = function() { this.disabledMenu(true); var a = document.createElement("div"); @@ -624,7 +719,8 @@ Report.prototype.createHWPProgress = function() { } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.removeHWPProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_hwpprogress.domDiv); @@ -635,7 +731,8 @@ Report.prototype.removeHWPProgress = function() { this.m_buttonEvent.endHWPButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); -}; +} +; Report.prototype.createEXCELProgress = function() { this.disabledMenu(true); var a = document.createElement("div"); @@ -653,7 +750,8 @@ Report.prototype.createEXCELProgress = function() { } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.removeEXCELProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_excelprogress.domDiv); @@ -664,7 +762,8 @@ Report.prototype.removeEXCELProgress = function() { this.m_buttonEvent.endExcelButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); -}; +} +; Report.prototype.createSAVEProgress = function() { this.disabledMenu(true); var b = document.getElementById("re_iframe" + this.m_uid); @@ -683,7 +782,8 @@ Report.prototype.createSAVEProgress = function() { } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.removeSAVEProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_saveprogress.domDiv); @@ -694,7 +794,8 @@ Report.prototype.removeSAVEProgress = function() { this.m_buttonEvent.endSaveButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); -}; +} +; Report.prototype.removePDFProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_saveprogress.domDiv); @@ -705,38 +806,46 @@ Report.prototype.removePDFProgress = function() { this.m_buttonEvent.endPDFButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); -}; +} +; Report.prototype.createEndReportProgress = function() { this.disabledMenu(true); var a = document.createElement("div"); this.m_endreportprogress.domDiv = a; var c = this.is_eForm ? "eform_progress" : "report_progress"; if (this.m_endreportprogress.URL == "") { - strDiv = "
"; a.setAttribute("class", c); - a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; + a.style.cssText = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;right:0px;top:" + this.paintDiv.scrollTop + "px;bottom:0px;overflow:hidden;"; } else { - var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; + var b = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;right:0px;top:" + this.paintDiv.scrollTop + "px;bottom:0px;overflow:hidden;"; b += "background-position:" + this.m_endreportprogress.x + " " + this.m_endreportprogress.y + ";"; b += "background-repeat:no-repeat;background-image:url(" + this.m_endreportprogress.URL + ");"; a.style.cssText = b; } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); -}; +} +; Report.prototype.removeEndReportProgress = function() { this.disabledMenu(false); this.m_endreportprogress.domDiv = null; this.debugMeg("report log :: 리포트 프로그래스 종료"); -}; +} +; Report.prototype.view = function() { this.debugMeg("<<<<<<<<<<<< 리포트 디버깅 로그를 시작합니다 >>>>>>>>>>>>>>>"); this.debugMeg("userAgent Check :: " + agt); this.debugMeg("PDF check :: " + m_report_printOption.acrobatVersion); - if (is_ie8 && !this.m_isPaintImage) { - this.debugMeg("report log :: IE8 버전으로 체크되었습니다. 접근성 뷰어 일 경우 화면 비율를 100%로 고정합니다."); - this.m_ratio = "100%"; - this.m_disControl.zoomIn = true; + if (!is_svg) { + if (this.is_eForm) { + this.debugMeg("report log :: IE8 버전 이하로 체크되었습니다. 웹이폼에서는 지원하지 않는 버전입니다."); + return; + } + if (!this.m_isPaintImage) { + this.debugMeg("report log :: IE8 버전 이하로 체크되었습니다. 접근성 뷰어 일 경우 화면 비율를 100%로 고정합니다."); + this.m_ratio = "100%"; + this.m_disControl.zoomIn = true; + } } if (this.m_reportKey != null) { this.checkReportCreate(); @@ -747,7 +856,8 @@ Report.prototype.view = function() { this.newReportCreate(this.userJsp, null); } } -}; +} +; Report.prototype.debugMeg = function(b, a) { if (this.m_debug.isDebug) { if (this.m_debug.isConsole) { @@ -759,7 +869,8 @@ Report.prototype.debugMeg = function(b, a) { this.m_debug.isLock = a; } } -}; +} +; Report.prototype.endDebugMeg = function(a) { if (this.m_debug.isDebug) { if (!this.m_debug.isConsole) { @@ -770,19 +881,34 @@ Report.prototype.endDebugMeg = function(a) { } } } -}; +} +; Report.prototype.setSlidePage = function(a) { this.m_isSlidePage = a; -}; -Report.prototype.createView = function(c, h) { - var g = new Array(); +} +; +Report.prototype.mRe_DirectPrintCall = function() { + if (this.m_directPrintOp.endReport) { + this.m_directPrintOp.endReport = false; + window.clearInterval(this.m_directPrintOp.key); + this.m_directPrintOp.key = null; + this.printView(); + } +} +; +Report.prototype.createView = function(c, i) { + var h = new Array(); var e = ""; var d, f; this.debugMeg("report log :: 리포트 뷰어를 생성합니다..."); if (this.m_directPrint) { - c.style.opacity = "0"; - if (!is_svg) { - c.style.filter = "alpha(opacity=0)"; + var g = this; + this.m_directPrintOp.key = window.setInterval(function() { + g.mRe_DirectPrintCall(); + }, 300); + c.style.cssText += "position:absolute !important;width:1px !important;height:1px !important;visibility:hidden !important;opacity:0 !important;filter:alpha(opacity=0) !important;"; + if (is_safari && !is_smartphone) { + window.open("", "report_SubWindow", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width); } } if (this.m_isFadeView) { @@ -794,101 +920,101 @@ Report.prototype.createView = function(c, h) { opacity: "0" }); } - g.push("
"); + h.push("
"); if (this.is_eForm) { if (this.eForm_isNecessary.is_start) { this.eForm_isNecessary.check = true; } - this.eformCreateTag(g, h); + this.eformCreateTag(h, i); } else { if (is_mobile) { this.debugMeg("report log :: 모바일 환경으로 체크됨"); - this.mobileCreateTag(g, h); + this.mobileCreateTag(h, i); } else { if (is_tablet) { this.debugMeg("report log :: 테블릿 pc 환경으로 체크됨"); - this.tabletCreateTag(g, h); + this.tabletCreateTag(h, i); } else { this.debugMeg("report log :: 데스트탑 pc 환경으로 체크됨"); - this.pcCreateTag(g, h); + this.pcCreateTag(h, i); } } } - g.push(""); - g.push(""); - g.push(""); - g.push(""); - g.push(""); - g.push(""); - g.push("
"); + h.push(""); + h.push(""); + h.push(""); + h.push(""); + h.push(""); + h.push(""); + h.push("
"); if (is_ie7 || is_ie8) { var b = document.createElement("div"); - b.innerHTML = g.join(""); + b.innerHTML = h.join(""); c.appendChild(b.firstChild); b = null; } else { - c.innerHTML = g.join(""); + c.innerHTML = h.join(""); } this.debugMeg("report log :: 리포트 뷰어 완성...."); - this.paintDiv = document.getElementById("re_paintDiv" + h); - this.menuDiv = document.getElementById("re_menu" + h); + this.paintDiv = document.getElementById("re_paintDiv" + i); + this.menuDiv = document.getElementById("re_menu" + i); if (this.is_eForm) { - this.doodleDiv = document.getElementById("re_doodleDiv" + h); + this.doodleDiv = document.getElementById("re_doodleDiv" + i); } - this.input = document.getElementById("re_input" + h); - this.totalCountSpan = document.getElementById("re_totalCount" + h); - this.totalCountText = document.getElementById("re_totalCountNumber" + h); - this.progressImg = document.getElementById("re_progressImg" + h); - this.zoomCombo = document.getElementById("re_zoomSelect" + h); - this.next_button = document.getElementById("re_next" + h); - this.prev_button = document.getElementById("re_prev" + h); - this.first_button = document.getElementById("re_first" + h); - this.last_button = document.getElementById("re_last" + h); - this.save_button = document.getElementById("re_save" + h); - this.print_button = document.getElementById("re_print" + h); - this.pdf_button = document.getElementById("re_pdf" + h); - this.hwp_button = document.getElementById("re_hwp" + h); - this.doc_button = document.getElementById("re_doc" + h); - this.excel_button = document.getElementById("re_excel" + h); - this.reportInfo_button = document.getElementById("re_reportInfo" + h); - this.close_button = document.getElementById("re_close" + h); - this.formTag = document.getElementById("re_form" + h); - this.formTag_clipid = document.getElementById("re_form_clipid" + h); - this.formTag_uid = document.getElementById("re_form_uid" + h); - this.formTag_print = document.getElementById("re_form_print" + h); - this.formTag_printImage = document.getElementById("re_form_printImage" + h); - this.formTag_path = document.getElementById("re_form_path" + h); - this.formTag_option = document.getElementById("re_form_option" + h); - this.formTag_ChromeFitToPage = document.getElementById("re_form_ChromeFitToPage" + h); - this.formTag_s_time = document.getElementById("re_form_s_time" + h); - this.saveFormTag.form = document.getElementById("re_saveform" + h); - this.saveFormTag.clipid = document.getElementById("re_saveform_clipid" + h); - this.saveFormTag.uid = document.getElementById("re_saveform_uid" + h); - this.saveFormTag.path = document.getElementById("re_saveform_path" + h); - this.saveFormTag.option = document.getElementById("re_saveform_option" + h); - this.saveFormTag.filename = document.getElementById("re_saveform_fileName" + h); - this.saveFormTag.filetype = document.getElementById("re_saveform_fileType" + h); - this.deleteImgTag = document.getElementById("re_deleteImg" + h); + this.input = document.getElementById("re_input" + i); + this.totalCountSpan = document.getElementById("re_totalCount" + i); + this.totalCountText = document.getElementById("re_totalCountNumber" + i); + this.progressImg = document.getElementById("re_progressImg" + i); + this.zoomCombo = document.getElementById("re_zoomSelect" + i); + this.next_button = document.getElementById("re_next" + i); + this.prev_button = document.getElementById("re_prev" + i); + this.first_button = document.getElementById("re_first" + i); + this.last_button = document.getElementById("re_last" + i); + this.save_button = document.getElementById("re_save" + i); + this.print_button = document.getElementById("re_print" + i); + this.pdf_button = document.getElementById("re_pdf" + i); + this.hwp_button = document.getElementById("re_hwp" + i); + this.doc_button = document.getElementById("re_doc" + i); + this.excel_button = document.getElementById("re_excel" + i); + this.reportInfo_button = document.getElementById("re_reportInfo" + i); + this.close_button = document.getElementById("re_close" + i); + this.formTag = document.getElementById("re_form" + i); + this.formTag_clipid = document.getElementById("re_form_clipid" + i); + this.formTag_uid = document.getElementById("re_form_uid" + i); + this.formTag_print = document.getElementById("re_form_print" + i); + this.formTag_printImage = document.getElementById("re_form_printImage" + i); + this.formTag_path = document.getElementById("re_form_path" + i); + this.formTag_option = document.getElementById("re_form_option" + i); + this.formTag_ChromeFitToPage = document.getElementById("re_form_ChromeFitToPage" + i); + this.formTag_s_time = document.getElementById("re_form_s_time" + i); + this.saveFormTag.form = document.getElementById("re_saveform" + i); + this.saveFormTag.clipid = document.getElementById("re_saveform_clipid" + i); + this.saveFormTag.uid = document.getElementById("re_saveform_uid" + i); + this.saveFormTag.path = document.getElementById("re_saveform_path" + i); + this.saveFormTag.option = document.getElementById("re_saveform_option" + i); + this.saveFormTag.filename = document.getElementById("re_saveform_fileName" + i); + this.saveFormTag.filetype = document.getElementById("re_saveform_fileType" + i); + this.deleteImgTag = document.getElementById("re_deleteImg" + i); if (!is_ie) { - var i = document.getElementById("re_iframe2" + h); - var a = i.contentWindow; + var j = document.getElementById("re_iframe2" + i); + var a = j.contentWindow; a.document.write(getPDFPrintFrame()); } if (this.m_isFadeView) { @@ -900,7 +1026,8 @@ Report.prototype.createView = function(c, h) { $(this).removeAttr("uid"); }); } -}; +} +; Report.prototype.pcCreateTag = function(b, a) { var d = is_svg ? "_svg" : "_png"; var c = ""; @@ -924,7 +1051,7 @@ Report.prototype.pcCreateTag = function(b, a) { c = this.m_disControl.prev ? "_dis" : ""; b.push(""); b.push(""); - b.push(""); + b.push(""); b.push(""); c = this.m_disControl.next ? "_dis" : ""; b.push(""); @@ -947,7 +1074,8 @@ Report.prototype.pcCreateTag = function(b, a) { b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">"); } b.push("
"); -}; +} +; Report.prototype.mobileCreateTag = function(b, a) { b.push("
"); b.push(""); - b.push(""); @@ -981,7 +1110,8 @@ Report.prototype.mobileCreateTag = function(b, a) { b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">"); } b.push(""); -}; +} +; Report.prototype.tabletCreateTag = function(b, a) { b.push("
"); b.push("
"); @@ -960,7 +1088,8 @@ Report.prototype.mobileCreateTag = function(b, a) { b.push(""); b.push(""); b.push(""); + b.push(""); b.push(""); b.push(""); b.push("
"); - b.push(""); @@ -1015,39 +1146,69 @@ Report.prototype.tabletCreateTag = function(b, a) { b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">"); } b.push(""); -}; +} +; Report.prototype.comboOptionCreateTag = function(a) { - a.push(""); - a.push(""); - a.push(""); - a.push(""); - a.push(""); - a.push(""); - a.push(""); - a.push(""); - a.push(""); - a.push(""); -}; -Report.prototype.setPaintDivEvent = function(b, a) { - if (is_smartphone) { - b.style.zIndex = "100"; - $(b).bind("swipeleft", function() { - if (window.innerWidth >= document.body.scrollWidth) { - var c = m_reportHashMap[a]; - if ((c.paintDiv.clientWidth + c.paintDiv.scrollLeft) == c.paintDiv.scrollWidth) { - c.nextPage(); - } - } - }); - $(b).bind("swiperight", function() { - if (window.innerWidth >= document.body.scrollWidth) { - if (m_reportHashMap[a].paintDiv.scrollLeft == 0) { - m_reportHashMap[a].previousPage(); - } - } - }); + if (this.m_comboNames.num50.visible) { + a.push(""); } -}; + if (this.m_comboNames.num75.visible) { + a.push(""); + } + if (this.m_comboNames.num100.visible) { + a.push(""); + } + if (this.m_comboNames.num125.visible) { + a.push(""); + } + if (this.m_comboNames.num150.visible) { + a.push(""); + } + if (this.m_comboNames.num200.visible) { + a.push(""); + } + if (this.m_comboNames.num300.visible) { + a.push(""); + } + if (this.m_comboNames.num400.visible) { + a.push(""); + } + if (this.m_comboNames.pagewidth.visible) { + a.push(""); + } + if (this.m_comboNames.wholepage.visible) { + a.push(""); + } +} +; +Report.prototype.setPaintDivEvent = function(c, a) { + if (is_smartphone) { + var b = this; + c.style.zIndex = "100"; + if (null != this.m_PageMove && !this.m_PageMove.ButtonDisabled) { + this.paintDiv.ontouchstart = function(d) { + if (d.touches.length == 1) { + b.createPageMoveButton("report"); + } + } + ; + } else { + if (!this.is_eForm && !this.m_isSwipe) { + $(c).bind("swipeleft", function() { + if ((b.paintDiv.clientWidth + b.paintDiv.scrollLeft + 3) >= b.paintDiv.scrollWidth) { + b.nextPage(); + } + }); + $(c).bind("swiperight", function() { + if (b.paintDiv.scrollLeft == 0) { + b.previousPage(); + } + }); + } + } + } +} +; Report.prototype.newReportCreate = function(f, a) { var j = null; this.debugMeg("report log :: 리포트를 생성하기 위하여 통신 준비중...."); @@ -1062,6 +1223,7 @@ Report.prototype.newReportCreate = function(f, a) { j = this.postData; } } + j = mRe_onBeforeSend(j); this.debugMeg("report log :: 서버 통신 주소 >>> " + f); try { if (this.m_isCrossDomain) { @@ -1071,13 +1233,15 @@ Report.prototype.newReportCreate = function(f, a) { var b = f + "?" + j; if (d) { d.onload = function() { - g.resultNewReport(d.responseText); - }; + g.resultNewReport(mRe_onAfterSend(d.responseText)); + } + ; d.onerror = function() { g.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. "); mRe_ReportEventHandler(40); g.endDebugMeg(false); - }; + } + ; d.open("GET", b); d.send(); } @@ -1088,7 +1252,7 @@ Report.prototype.newReportCreate = function(f, a) { crossDomain: true, data: j, success: function(e) { - g.resultNewReport(e); + g.resultNewReport(mRe_onAfterSend(e)); }, error: function(e) { g.debugMeg("report log :: 서버 통신 오류 발생 >>> " + e); @@ -1100,19 +1264,20 @@ Report.prototype.newReportCreate = function(f, a) { } else { var c = new HttpClient(); var i = c.send(f, j, false, null); - this.resultNewReport(i); + this.resultNewReport(mRe_onAfterSend(i)); } } catch (h) { this.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + h.message); mRe_ReportEventHandler(40); this.endDebugMeg(false); } -}; +} +; Report.prototype.resultNewReport = function(a) { this.debugMeg("report log :: 리포트 생성 통신 완료..!"); - var b = (new Function("return " + ClipStrTrim(a)))(); + var b = objectCall(ClipStrTrim(a)); if (typeof b == "string") { - b = (new Function("return " + b))(); + b = objectCall(b); } this.m_versionInfo = b.version; this.debugMeg("report log :: 리포트 서버 버전 >>> " + b.version.build); @@ -1154,7 +1319,7 @@ Report.prototype.resultNewReport = function(a) { mRe_ReportEventHandler(b.event); this.endDebugMeg(false); } else { - if (b.event < 10) { + if (b.event < 13) { this.debugMeg("report log :: 리포트 서버 인스톨 실패 >>> IE00" + b.event); if (this.m_isViewer) { this.paintDiv.innerHTML = this.m_languageMap.install_error + "!! (errorCode : IE00" + b.event + ")"; @@ -1171,13 +1336,14 @@ Report.prototype.resultNewReport = function(a) { } } } -}; +} +; Report.prototype.checkReportCreate = function() { try { var a = this.m_reportKey; - var b = (new Function("return " + ClipStrTrim(a)))(); + var b = objectCall(ClipStrTrim(a)); if (typeof b == "string") { - b = (new Function("return " + b))(); + b = objectCall(b); } this.m_versionInfo = b.version; this.debugMeg("report log :: 리포트 서버 버전 >>> " + b.version.build); @@ -1219,7 +1385,7 @@ Report.prototype.checkReportCreate = function() { mRe_ReportEventHandler(b.event); this.endDebugMeg(false); } else { - if (b.event < 10) { + if (b.event < 13) { this.debugMeg("report log :: 리포트 서버 인스톨 실패 >>> IE00" + b.event); if (this.m_isViewer) { this.paintDiv.innerHTML = this.m_languageMap.install_error + "!! (errorCode : IE00" + b.event + ")"; @@ -1241,13 +1407,28 @@ Report.prototype.checkReportCreate = function() { mRe_ReportEventHandler(30); this.endDebugMeg(false); } -}; +} +; Report.prototype.selectPage = function(a) { if (isNaN(a)) { this.input.value = this.beforePageIndex + 1; + if (null != this.m_PageMove && is_smartphone) { + if (!this.m_PageMove.ButtonDisabled) { + this.m_PageMove.eventKey = window.setTimeout(function() { + report.removePageMoveButton(); + }, 2000); + } + } return; } else { if (a < 0 || this.m_pageCount <= a || this.beforePageIndex == a) { + if (null != this.m_PageMove && is_smartphone) { + if (!this.m_PageMove.ButtonDisabled) { + this.m_PageMove.eventKey = window.setTimeout(function() { + report.removePageMoveButton(); + }, 2000); + } + } return; } } @@ -1264,19 +1445,36 @@ Report.prototype.selectPage = function(a) { } this.paintDiv.style.width = "100%"; this.targetDiv.firstChild.appendChild(this.paintDiv); + if (this.is_eForm) { + this.paintDiv.appendChild(this.m_tempPaintDiv.lastChild.cloneNode()); + this.m_tempPaintDiv.lastChild.lastChild.style.display = "block"; + this.m_tempPaintDiv.firstChild.innerHTML = ""; + } } this.sendData(a); this.input.value = (a + 1); this.beforePageIndex = a; -}; +} +; Report.prototype.checkPageCount = function() { - this.checkCountLoop = window.setTimeout("m_reportHashMap['" + this.m_uid + "'].sendToCount()", this.m_pageCountTime); -}; + var a = this; + this.checkCountLoop = window.setTimeout(function() { + a.sendToCount(); + }, this.m_pageCountTime); +} +; +Report.prototype.mRe_pageCountLabelClick = function() { + if (this.m_buttonEvent.startPageCountLabel != null) { + this.m_buttonEvent.startPageCountLabel(); + } +} +; Report.prototype.deleteToReport = function() { this.debugMeg("report log :: deleteToReport 함수 사용"); this.debugMeg("report log :: 서버에 만들어진 리포트 파일을 삭제합니다."); window.clearTimeout(this.checkCountLoop); var a = "ClipID=R04&uid=" + this.m_uid; + a = mRe_onBeforeSend(a); var c = this.servletPath; var b; if (-1 != c.indexOf("?")) { @@ -1289,12 +1487,14 @@ Report.prototype.deleteToReport = function() { } this.debugMeg("report log :: 삭제 URL >>> " + b); this.endDebugMeg(false); -}; +} +; Report.prototype.sendToCount = function() { this.debugMeg("report log :: 서버에 리포트가 얼만큼 생성중인지 체크...."); this.debugMeg("report log :: 서버 통신 주소 >>>>> " + this.servletPath); var e = new Date().getTime(); var c = "ClipID=R03&uid=" + this.m_uid + "&s_time=" + e; + c = mRe_onBeforeSend(c); var g = this.servletPath; if (this.m_isCrossDomain) { var b = this; @@ -1306,13 +1506,15 @@ Report.prototype.sendToCount = function() { } if (a) { a.onload = function() { - resultPageCountText(a.responseText); - }; + resultPageCountText(mRe_onAfterSend(a.responseText)); + } + ; a.onerror = function() { b.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. "); mRe_ReportEventHandler(40); b.endDebugMeg(false); - }; + } + ; a.open("GET", d); a.send(); } @@ -1323,7 +1525,7 @@ Report.prototype.sendToCount = function() { crossDomain: true, data: c, success: function(h) { - resultPageCountText(h); + resultPageCountText(mRe_onAfterSend(h)); }, error: function(h) { b.debugMeg("report log :: 서버 통신 오류 발생 >>> " + h); @@ -1338,7 +1540,7 @@ Report.prototype.sendToCount = function() { f.send(g, c, true, function() { if (4 == this.readyState) { if (200 == this.status) { - resultPageCountText(this.responseText); + resultPageCountText(mRe_onAfterSend(this.responseText)); } else { if (b.m_isViewer) { b.paintDiv.innerHTML = b.m_languageMap.link_error; @@ -1352,16 +1554,20 @@ Report.prototype.sendToCount = function() { } }); } -}; +} +; Report.prototype.sendData = function(c) { this.debugMeg("report log :: 리포트 화면을 호출합니다. 페이지 번호 >>> " + (c + 1)); this.m_isButtonLock = true; if (this.m_directPrint) { return; } - if (is_smartphone) { + if (is_smartphone && ((!this.is_eForm) || (this.is_eForm && !this.m_isSlidePage))) { this.createEditableProgress(); } + if (this.m_pageMoveEvent.start != null) { + this.m_pageMoveEvent.start(); + } if (this.is_eForm) { this.sendEFormData(c); return; @@ -1372,6 +1578,10 @@ Report.prototype.sendData = function(c) { this.debugMeg("report log :: 리포트 화면을 이미지 모드로 사용합니다. (IE 7 ~ 8 전용)"); j = "false"; var l = "ClipID=R02&pageNumber=" + c + "&uid=" + this.m_uid + "&html5=" + j + "&DPI=" + this.m_DPI + "&necessaryCheck=" + this.m_necessaryCheck; + l = mRe_onBeforeSend(l); + if ("{clip_enc}" == l) { + return; + } var i = document.createElement("img"); if (null != this.paintDiv.lastChild) { var h = this.paintDiv.childNodes.length; @@ -1384,7 +1594,8 @@ Report.prototype.sendData = function(c) { var k = this.m_uid; i.onload = function() { m_reportHashMap[k].onloadImage(); - }; + } + ; var a = this.servletPath + "?" + l; if (-1 != this.servletPath.indexOf("?")) { a = this.servletPath + "&" + l; @@ -1418,6 +1629,10 @@ Report.prototype.sendData = function(c) { if (this.m_isAccessibility) { l += "&AHname=" + encodeURIComponent(Base64.encode(this.servletPath)); } + l = mRe_onBeforeSend(l); + if ("{clip_enc}" == l) { + return; + } var g = this.servletPath; this.debugMeg("report log :: 리포트 화면을 가져오는 통신을 시도합니다 >>>> " + g); if (this.m_isCrossDomain) { @@ -1430,13 +1645,15 @@ Report.prototype.sendData = function(c) { } if (e) { e.onload = function() { - paintReportText(e.responseText); - }; + paintReportText(mRe_onAfterSend(e.responseText)); + } + ; e.onerror = function() { f.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. "); mRe_ReportEventHandler(40); f.endDebugMeg(false); - }; + } + ; e.open("GET", a); e.send(); } @@ -1447,7 +1664,7 @@ Report.prototype.sendData = function(c) { crossDomain: true, data: l, success: function(m) { - paintReportText(m); + paintReportText(mRe_onAfterSend(m)); }, error: function(m) { f.debugMeg("report log :: 서버 통신 오류 발생 >>> " + m); @@ -1462,7 +1679,7 @@ Report.prototype.sendData = function(c) { d.send(g, l, true, function() { if (4 == this.readyState) { if (200 == this.status) { - paintReportText(this.responseText); + paintReportText(mRe_onAfterSend(this.responseText)); } else { f.paintDiv.innerHTML = f.m_languageMap.link_error; f.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status); @@ -1474,7 +1691,139 @@ Report.prototype.sendData = function(c) { } }); } -}; +} +; +Report.prototype.sendDataEnc = function(l) { + var c = this.beforePageIndex; + this.debugMeg("report log :: 리포트 화면을 호출합니다. 페이지 번호 >>> " + (c + 1)); + this.m_isButtonLock = true; + if (this.m_directPrint) { + return; + } + if (this.is_eForm) { + this.sendEFormData(c); + return; + } + var j = "true"; + if (is_ie6 || is_ie7 || is_ie8) { + if (this.m_isPaintImage) { + this.debugMeg("report log :: 리포트 화면을 이미지 모드로 사용합니다. (IE 7 ~ 8 전용)"); + j = "false"; + var i = document.createElement("img"); + if (null != this.paintDiv.lastChild) { + var h = this.paintDiv.childNodes.length; + for (var b = h - 1; b >= 0; b--) { + this.paintDiv.removeChild(this.paintDiv.childNodes[b]); + } + } + this.paintDiv.appendChild(i); + i.alt = this.m_languageMap.img_alt; + var k = this.m_uid; + i.onload = function() { + m_reportHashMap[k].onloadImage(); + } + ; + var a = this.servletPath + "?" + l; + if (-1 != this.servletPath.indexOf("?")) { + a = this.servletPath + "&" + l; + } + i.src = a; + this.pageSlideShow(); + if (this.m_isEndReport && this.m_isEndReportEvent) { + if (this.m_endreportprogress.is_visible) { + this.m_endreportprogress.is_visible = false; + this.removeEndReportProgress(); + } + mRe_ReportEventHandler(200); + if (this.m_isReportEndFunction != null) { + this.m_isReportEndFunction(); + } + this.m_isEndReportEvent = false; + } else { + if (!this.m_isEndReport) { + if (this.m_endreportprogress.is_visible) { + this.createEndReportProgress(); + } + } + } + this.endDebugMeg(false); + if (this.m_pageMoveEvent.end != null) { + this.m_pageMoveEvent.end(); + } + return; + } else { + this.m_isAccessibility = true; + } + } + var g = this.servletPath; + this.debugMeg("report log :: 리포트 화면을 가져오는 통신을 시도합니다 >>>> " + g); + if (this.m_isCrossDomain) { + var f = this; + if (window.XDomainRequest) { + var e = new XDomainRequest(); + var a = g + "?" + l; + if (-1 != g.indexOf("?")) { + a = g + "&" + l; + } + if (e) { + e.onload = function() { + paintReportText(mRe_onAfterSend(e.responseText)); + } + ; + e.onerror = function() { + f.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. "); + mRe_ReportEventHandler(40); + f.endDebugMeg(false); + if (f.m_pageMoveEvent.end != null) { + f.m_pageMoveEvent.end(); + } + } + ; + e.open("GET", a); + e.send(); + } + } else { + $.ajax({ + type: "POST", + url: g, + crossDomain: true, + data: l, + success: function(m) { + paintReportText(mRe_onAfterSend(m)); + }, + error: function(m) { + f.debugMeg("report log :: 서버 통신 오류 발생 >>> " + m); + mRe_ReportEventHandler(40); + f.endDebugMeg(false); + if (f.m_pageMoveEvent.end != null) { + f.m_pageMoveEvent.end(); + } + } + }); + } + } else { + var f = this; + var d = new HttpClient(); + d.send(g, l, true, function() { + if (4 == this.readyState) { + if (200 == this.status) { + paintReportText(mRe_onAfterSend(this.responseText)); + } else { + f.paintDiv.innerHTML = f.m_languageMap.link_error; + f.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status); + mRe_ReportEventHandler(40); + f.endDebugMeg(false); + f.pageSlideShow(); + if (f.m_pageMoveEvent.end != null) { + f.m_pageMoveEvent.end(); + } + throw new Error(this.status); + } + } + }); + } +} +; Report.prototype.editableControl = function(k) { if (this.m_isButtonLock == false) { var h = k.getAttribute("type"); @@ -1506,6 +1855,7 @@ Report.prototype.editableControl = function(k) { if (this.m_isAccessibility) { l += "&AHname=" + encodeURIComponent(Base64.encode(this.servletPath)); } + l = mRe_onBeforeSend(l); if (this.m_isCrossDomain) { var f = this; if (window.XDomainRequest) { @@ -1513,12 +1863,14 @@ Report.prototype.editableControl = function(k) { var a = servletPath + "?" + l; if (e) { e.onload = function() { - paintReportText(e.responseText); - }; + paintReportText(mRe_onAfterSend(e.responseText)); + } + ; e.onerror = function() { ReportWebLog("IE8 crossDomain error"); mRe_ReportEventHandler(40); - }; + } + ; e.open("GET", a); e.send(); } @@ -1529,7 +1881,7 @@ Report.prototype.editableControl = function(k) { crossDomain: true, data: l, success: function(n) { - paintReportText(n); + paintReportText(mRe_onAfterSend(n)); }, error: function(n) { ReportWebLog(n); @@ -1543,7 +1895,7 @@ Report.prototype.editableControl = function(k) { d.send(this.servletPath, l, true, function() { if (4 == this.readyState) { if (200 == this.status) { - paintReportText(this.responseText); + paintReportText(mRe_onAfterSend(this.responseText)); } else { f.paintDiv.innerHTML = f.m_languageMap.link_error; mRe_ReportEventHandler(40); @@ -1556,7 +1908,8 @@ Report.prototype.editableControl = function(k) { this.createEditableProgress(); k.style.zIndex = "0"; } -}; +} +; Report.prototype.webLinkControl = function() { if (arguments.length > 1) { var e = arguments[0]; @@ -1566,22 +1919,22 @@ Report.prototype.webLinkControl = function() { var d = null; var g = e.split("?"); switch (g.length) { - case 2: - d = g[1]; - var j = d.split("&"); - for (var f = 0; f < j.length; f++) { - var h = j[f].split("="); - var c = document.createElement("input"); - c.type = "hidden"; - c.name = h[0]; - c.value = h[1]; - a.appendChild(c); - } - case 1: - e = g[0]; - a.method = "post"; - a.action = e; - break; + case 2: + d = g[1]; + var j = d.split("&"); + for (var f = 0; f < j.length; f++) { + var h = j[f].split("="); + var c = document.createElement("input"); + c.type = "hidden"; + c.name = h[0]; + c.value = h[1]; + a.appendChild(c); + } + case 1: + e = g[0]; + a.method = "post"; + a.action = e; + break; } if ("self" == b) { a.target = "_self"; @@ -1600,7 +1953,8 @@ Report.prototype.webLinkControl = function() { a.submit(); document.body.removeChild(a); } -}; +} +; Report.prototype.drilingControl = function(i) { if (this.m_isButtonLock == false) { var f = this.m_necessaryCheck; @@ -1614,6 +1968,7 @@ Report.prototype.drilingControl = function(i) { this.m_drilingTop = this.paintDiv.scrollTop; var b = new Date().getTime(); var h = "ClipID=R11&pageNumber=" + this.beforePageIndex + "&uid=" + this.m_uid + "&Accessibility=" + this.m_isAccessibility + "&data=" + JSON.stringify(g) + "&s_time=" + b; + h = mRe_onBeforeSend(h); if (this.m_isCrossDomain) { var e = this; if (window.XDomainRequest) { @@ -1621,12 +1976,14 @@ Report.prototype.drilingControl = function(i) { var a = servletPath + "?" + h; if (d) { d.onload = function() { - e.resultNewReport(d.responseText); - }; + e.resultNewReport(mRe_onAfterSend(d.responseText)); + } + ; d.onerror = function() { ReportWebLog("IE8 crossDomain error"); mRe_ReportEventHandler(40); - }; + } + ; d.open("GET", a); d.send(); } @@ -1637,7 +1994,7 @@ Report.prototype.drilingControl = function(i) { crossDomain: true, data: h, success: function(j) { - paintReportText(j); + paintReportText(mRe_onAfterSend(j)); }, error: function(j) { ReportWebLog(j); @@ -1651,7 +2008,7 @@ Report.prototype.drilingControl = function(i) { c.send(this.servletPath, h, true, function() { if (4 == this.readyState) { if (200 == this.status) { - paintReportText(this.responseText); + paintReportText(mRe_onAfterSend(this.responseText)); } else { e.paintDiv.innerHTML = e.m_languageMap.link_error; mRe_ReportEventHandler(40); @@ -1663,7 +2020,8 @@ Report.prototype.drilingControl = function(i) { } this.createEditableProgress(); } -}; +} +; Report.prototype.editableKeyEvent = function(a, c) { if (c.keyCode == 13) { if (c.ctrlKey) { @@ -1689,10 +2047,12 @@ Report.prototype.editableKeyEvent = function(a, c) { } c.returnValue = false; } -}; +} +; Report.prototype.onloadImage = function() { this.zoomIn(this.zoomCombo); -}; +} +; Report.prototype.paintReport = function() { if (4 == this.readyState) { if (200 == this.status) { @@ -1704,14 +2064,15 @@ Report.prototype.paintReport = function() { throw new Error(this.status); } } -}; +} +; Report.prototype.resultDeleteReport = function() { if (4 == this.readyState) { if (200 == this.status) { var a = this.responseText; - var b = (new Function("return " + ClipStrTrim(a)))(); + var b = objectCall(ClipStrTrim(a)); if (typeof b == "string") { - b = (new Function("return " + b))(); + b = objectCall(b); } try { if (!b.status) { @@ -1723,12 +2084,14 @@ Report.prototype.resultDeleteReport = function() { } } } -}; +} +; Report.prototype.selectPrintOption = function(a) { mRe_setLocalStorage("mRe_print_report", a.value); this.printOptionValue.localStorage = a.value; this.mRe_selectPrintOption(a.value); -}; +} +; Report.prototype.zoomIn = function(j) { if (this.m_buttonEvent.startZoomInSelect != null) { var a = this.m_buttonEvent.startZoomInSelect(); @@ -1739,6 +2102,13 @@ Report.prototype.zoomIn = function(j) { if (!is_svg && this.m_isPaintImage && null == this.pageWidth) { var n = this.paintDiv.firstChild; if (null != n && "IMG" == n.tagName) { + if (40 > n.offsetWidth || 40 > n.offsetHeight) { + var i = this; + window.setTimeout(function() { + i.zoomIn(j); + }, 200); + return; + } this.pageWidth = n.offsetWidth; this.pageHeight = n.offsetHeight; } @@ -1749,15 +2119,19 @@ Report.prototype.zoomIn = function(j) { this.paintDiv.firstChild.style.visibility = "hidden"; } if ("PageWidth" == p) { - this.paintDiv.style.overflowX = "hidden"; - this.paintDiv.style.overflowY = "auto"; + if (!is_smartphone) { + this.paintDiv.style.overflowX = "hidden"; + this.paintDiv.style.overflowY = "auto"; + } var e = this.paintDiv.clientWidth; o = e / Number(this.pageWidth); } else { if ("WholePage" == p) { - this.paintDiv.scrollTop = 0; - this.paintDiv.style.overflowX = "auto"; - this.paintDiv.style.overflowY = "hidden"; + if (!is_smartphone) { + this.paintDiv.scrollTop = 0; + this.paintDiv.style.overflowX = "auto"; + this.paintDiv.style.overflowY = "hidden"; + } var e = this.paintDiv.clientWidth; var b = this.paintDiv.clientHeight; var g = e / Number(this.pageWidth); @@ -1817,6 +2191,13 @@ Report.prototype.zoomIn = function(j) { if (null != k.lastChild) { k.lastChild.setAttribute("transform", "scale(" + o + ") translate(0,0)"); } + if (is_apple) { + if (1 < Number(o)) { + k.setAttribute("text-rendering", "geometricPrecision"); + } else { + k.setAttribute("text-rendering", "auto"); + } + } if (is_edge) { var l = this.targetDiv; if ("hidden" != l.style.visibility) { @@ -1829,33 +2210,34 @@ Report.prototype.zoomIn = function(j) { } } } - var i = this.paintDiv.firstChild.nextSibling; - if (null != i) { - i.style.zoom = o; + var h = this.paintDiv.firstChild.nextSibling; + if (null != h) { + h.style.zoom = o; if (is_firefox) { - i.style.MozTransform = "scale(" + o + ")"; - i.style.MozTransformOrigin = "0 0 0"; - i.style.position = "absolute"; + h.style.MozTransform = "scale(" + o + ")"; + h.style.MozTransformOrigin = "0 0 0"; + h.style.position = "absolute"; window.m_firefox_Rescale = o; - var h = this; + var i = this; if (null == window.onresize) { window.onresize = function() { - var r = h.paintDiv.clientWidth; - var t = i.clientWidth * Number(m_firefox_Rescale); + var r = i.paintDiv.clientWidth; + var t = h.clientWidth * Number(m_firefox_Rescale); var s = 0; if (r - t > 0) { s = (r - t) / 2; } - i.style.left = s + "px"; - }; + h.style.left = s + "px"; + } + ; } var c = this.paintDiv.clientWidth; - var q = i.clientWidth * Number(o); + var q = h.clientWidth * Number(o); var f = 0; if (c - q > 0) { f = (c - q) / 2; } - i.style.left = f + "px"; + h.style.left = f + "px"; } } } @@ -1863,16 +2245,10 @@ Report.prototype.zoomIn = function(j) { if (is_ie) { this.paintDiv.firstChild.style.visibility = "visible"; } -}; -Report.prototype.pageScrollEvent = function(b) { - if (null != this.signPaintDiv) { - var a = b.target; - if (!this.m_signOption.staticPos) { - this.signPaintDiv.style.top = (a.scrollTop + 10 + this.m_signOption.offsetTop) + "px"; - this.signPaintDiv.style.left = (a.scrollLeft + 10 + this.m_signOption.offsetLeft) + "px"; - } - } -}; +} +; +Report.prototype.pageScrollEvent = function(a) {} +; Report.prototype.pageMousewheelEvent = function(e) { if (this.m_scrollEv.isScrollPaging) { var d = this.paintDiv; @@ -1961,20 +2337,21 @@ Report.prototype.pageMousewheelEvent = function(e) { } } } -}; +} +; Report.prototype.pageSlideShow = function() { if (this.m_isSlidePage && null != this.m_tempPaintDiv) { this.m_tempPaintDiv.style.overflow = "hidden"; - var a = $(this.m_tempPaintDiv).attr("next"); - if ("right" == a) { + var b = $(this.m_tempPaintDiv).attr("next"); + var a = this; + if ("right" == b) { $(this.m_tempPaintDiv).animate({ left: "100%", width: "100%" }, 700, function() { try { - var b = m_reportHashMap[$(this).attr("uid")]; - b.targetDiv.firstChild.removeChild(this); - b.m_tempPaintDiv = null; + a.targetDiv.firstChild.removeChild(this); + a.m_tempPaintDiv = null; } catch (c) {} }); } else { @@ -1983,9 +2360,8 @@ Report.prototype.pageSlideShow = function() { width: "100%" }, 700, function() { try { - var b = m_reportHashMap[$(this).attr("uid")]; - b.targetDiv.firstChild.removeChild(this); - b.m_tempPaintDiv = null; + a.targetDiv.firstChild.removeChild(this); + a.m_tempPaintDiv = null; } catch (c) {} }); } @@ -1994,13 +2370,13 @@ Report.prototype.pageSlideShow = function() { width: "100%", opacity: 1 }, 700, function() { - var b = m_reportHashMap[$(this).attr("uid")]; - b.m_isButtonLock = false; + a.m_isButtonLock = false; }); } else { this.m_isButtonLock = false; } -}; +} +; Report.prototype.disabledMenu = function(a) { if (!this.m_disControl.save && null != this.save_button) { this.save_button.disabled = a; @@ -2044,7 +2420,8 @@ Report.prototype.disabledMenu = function(a) { if (!this.m_disControl.reportInfo && null != this.reportInfo_button) { this.reportInfo_button.disabled = a; } -}; +} +; Report.prototype.reportInfo = function() { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); @@ -2077,14 +2454,16 @@ Report.prototype.reportInfo = function() { if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(a); } -}; +} +; Report.prototype.checkPrintCount = function() { var a = this.printOptionValue.domList; if (null != a) { return (this.printOptionValue.endNum - this.printOptionValue.startNum) + 1; } return this.m_pageCount; -}; +} +; Report.prototype.checkPrintHTMLView = function() { if (null == this.m_limitedPrint) { this.m_limitedPrint = 100; @@ -2094,7 +2473,8 @@ Report.prototype.checkPrintHTMLView = function() { return; } this.mRe_printHTMLView(); -}; +} +; Report.prototype.mRe_printHTMLView = function() { this.createPrintProgress(); var c = 1; @@ -2123,31 +2503,34 @@ Report.prototype.mRe_printHTMLView = function() { this.removePrintProgress(); mRe_ReportEventHandler(102); } -}; +} +; Report.prototype.mRe_printHTMLViewEnd = function(a) { this.removePrintProgress(); if (!a) { mRe_ReportEventHandler(102); } -}; +} +; Report.prototype.mRe_printHWPView = function() { this.createPrintProgress(); try { if (is_ie) { if (null == this.hwp_object) { - var b = document.createElement("div"); - b.innerHTML = mRe_HWPFrame_Object(); - this.hwp_object = b.firstChild; + var c = document.createElement("div"); + c.innerHTML = mRe_HWPFrame_Object(); + this.hwp_object = c.firstChild; this.targetDiv.appendChild(this.hwp_object); - b = null; + c = null; } - var a = ""; + var b = ""; if (-1 != this.servletPath.indexOf("?")) { - a = servletPath + "&"; + b = servletPath + "&"; } else { - a = this.servletPath + "?"; + b = this.servletPath + "?"; } - this.hwp_object.Open(a + "ClipID=R07&uid=" + this.m_uid + "&fileName=report.hwp&print=print&path=" + escape(this.clientPath) + "&optionValue=" + this.checkPrintJsonOption()); + var a = "ClipID=R07&uid=" + this.m_uid + "&fileName=report.hwp&print=print&path=" + escape(this.clientPath) + "&optionValue=" + this.checkPrintJsonOption(); + this.hwp_object.Open(b + a); this.hwp_object.printDocument(); this.removePrintProgress(); } else { @@ -2160,11 +2543,12 @@ Report.prototype.mRe_printHWPView = function() { this.formTag.target = "_blank"; this.formTag.submit(); } - } catch (c) { + } catch (d) { this.removePrintProgress(); mRe_ReportEventHandler(101); } -}; +} +; Report.prototype.mRe_printEXEView = function() { this.debugMeg("report log :: EXE Print 인쇄를 시작합니다. >>>>>>>>>>>>>>>"); if (this.m_isViewer) { @@ -2176,6 +2560,13 @@ Report.prototype.mRe_printEXEView = function() { this.m_exePrintOption.startNumber = this.printOptionValue.startNum; this.m_exePrintOption.endNumber = this.printOptionValue.endNum; } + if ("http:" == location.protocol.toLocaleLowerCase()) { + this.m_exePrintStatus.url = "http://127.0.0.1:"; + this.m_exePrintStatus.port = this.m_exePrintStatus.httpPort; + } else { + this.m_exePrintStatus.url = "https://127.0.0.1:"; + this.m_exePrintStatus.port = this.m_exePrintStatus.httpsPort; + } var d = ""; if (-1 != this.servletPath.indexOf("?")) { d = this.servletPath + "&"; @@ -2186,8 +2577,9 @@ Report.prototype.mRe_printEXEView = function() { d += "ClipID=S01"; this.debugMeg("report log :: 서버 통신 주소 >>> " + d); var f = new HttpClient(); + d = mRe_onBeforeSend(d); var q = f.send(d, "", false, null); - q = ClipStrTrim(q); + q = ClipStrTrim(mRe_onAfterSend(q)); this.debugMeg("report log :: 리포트 생성 통신 완료..!"); this.debugMeg("report log :: 쿠키정보 체크 >>> " + q); var h = this; @@ -2199,8 +2591,8 @@ Report.prototype.mRe_printEXEView = function() { } var o = this.beforePageIndex + 1; var i = { - cookie: escape(q), - serverPath: escape(c), + cookie: encodeURIComponent(q), + serverPath: encodeURIComponent(c), ClipID: "P01", uid: h.m_uid, version: exe_print_version, @@ -2228,10 +2620,12 @@ Report.prototype.mRe_printEXEView = function() { try { n.onload = function() { h.startEXEPrintResponse(n.responseText); - }; + } + ; n.onerror = function() { h.m_exePrintStatus.disConnectCount++; - }; + } + ; n.open("POST", this.m_exePrintStatus.url + this.m_exePrintStatus.port[0]); n.send(a); } catch (b) {} @@ -2241,10 +2635,12 @@ Report.prototype.mRe_printEXEView = function() { try { m.onload = function() { h.startEXEPrintResponse(m.responseText); - }; + } + ; m.onerror = function() { h.m_exePrintStatus.disConnectCount++; - }; + } + ; m.open("POST", this.m_exePrintStatus.url + this.m_exePrintStatus.port[1]); m.send(a); } catch (b) {} @@ -2254,10 +2650,12 @@ Report.prototype.mRe_printEXEView = function() { try { l.onload = function() { h.startEXEPrintResponse(l.responseText); - }; + } + ; l.onerror = function() { h.m_exePrintStatus.disConnectCount++; - }; + } + ; l.open("POST", this.m_exePrintStatus.url + this.m_exePrintStatus.port[2]); l.send(a); } catch (b) {} @@ -2286,7 +2684,8 @@ Report.prototype.mRe_printEXEView = function() { } mRe_ReportEventHandler(104); } -}; +} +; Report.prototype.mRe_printView = function() { this.createPrintProgress(); if (m_report_printOption.acrobat) { @@ -2339,7 +2738,8 @@ Report.prototype.mRe_printView = function() { } } } -}; +} +; Report.prototype.printIEWindow = function() { var e = document.getElementById("re_object" + this.m_uid); if (null == e) { @@ -2359,10 +2759,96 @@ Report.prototype.printIEWindow = function() { b = this.servletPath + "&"; } var a = new Date().getTime(); - e.src = b + "ClipID=R08&uid=" + this.m_uid + "&isPDFPrintImage=" + this.isPDFPrintImage + "&print=print&path=" + escape(this.clientPath) + "&isChromePrintFitToPage=" + this.isChromePrintFitToPage + "&optionValue=" + this.checkPrintJsonOption() + "&s_time=" + a; + e.src = b + "ClipID=R08&uid=" + this.m_uid + "&isPDFPrintImage=" + this.isPDFPrintImage + "&print=print&path=" + escape(this.clientPath) + "&isChromePrintFitToPage=" + this.isChromePrintFitToPage + "&optionValue=" + encodeURIComponent(this.checkPrintJsonOption()) + "&s_time=" + a; e.style.display = "block"; CReportPrintPDf(this.m_uid); -}; +} +; +Report.prototype.next_printPdfDownLoad = function() { + if (this.fileDownLoding) { + this.debugMeg("report log :: 다른 파일 저장중입니다..파일 저장을 종료합니다."); + this.endDebugMeg(true); + return; + } + this.fileDownLoding = true; + var a = this; + var b = this.m_uid; + this.debugMeg("report log :: PDF 파일 저장 시작.."); + if (this.m_isEndReport) { + this.createSAVEProgress(); + this.saveFormTag.clipid.value = "R09"; + this.saveFormTag.uid.value = b; + this.saveFormTag.path.value = this.clientPath; + var f = Base64.encode(this.m_strFileName); + var e = { + exportType: 2, + name: f, + pageType: 1, + startNum: this.printOptionValue.startNum, + endNum: this.printOptionValue.endNum, + option: { + isSplite: false, + spliteValue: 1, + fileNames: null, + userpw: "", + textToImage: false, + importOriginImage: false + } + }; + var d = null; + if (this.m_saveDirectPDFOp != null) { + d = this.m_saveDirectPDFOp; + } else { + if ((typeof window.getDirectSavePDFOption != "undefined")) { + d = getDirectSavePDFOption(); + } + } + if (d != null) { + if ("cmVwb3J0" == f) { + e.name = Base64.encode(d.fileName); + } + e.option.isSplite = d.isSplite; + e.option.spliteValue = d.spliteValue; + e.option.userpw = d.userpw; + e.option.textToImage = d.textToImage; + e.option.importOriginImage = d.importOriginImage; + } + this.saveFormTag.option.value = JSON.stringify(e); + this.saveFormTag.filename.value = e.name; + this.saveFormTag.filetype.value = e.exportType; + this.debugMeg("report log :: PDF 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag)); + if (-1 != this.servletPath.indexOf("?")) { + var c = document.getElementById("re_iframe" + this.m_uid); + if (null != c) { + c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag); + } + } else { + this.saveFormTag.form.action = this.servletPath; + this.saveFormTag.form.target = "re_target" + this.m_uid; + this.saveFormTag.form.submit(); + } + e = null; + d = null; + if (a.m_fileDownLoadServerCheck) { + this.fileDownloadCheckTimer = window.setTimeout(function() { + a.fileCheckSend("pdf"); + }, 1000); + } else { + this.fileDownloadCheckTimer = window.setInterval(function() { + var g = mRe_getReportCookie("fileSaveDownloadToken"); + if (g == b) { + a.removePDFProgress(); + } + }, 1000); + } + } else { + mRe_ReportEventHandler(10); + } + window.setTimeout(function() { + a.fileDownLoding = false; + }, 2000); +} +; Report.prototype.next_pdfDownLoad = function() { if (this.fileDownLoding) { this.debugMeg("report log :: 다른 파일 저장중입니다..파일 저장을 종료합니다."); @@ -2378,9 +2864,10 @@ Report.prototype.next_pdfDownLoad = function() { this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = b; this.saveFormTag.path.value = this.clientPath; + var g = Base64.encode(this.m_strFileName); var f = { exportType: 2, - name: "cmVwb3J0", + name: g, pageType: 1, startNum: 1, endNum: this.m_pageCount, @@ -2410,8 +2897,8 @@ Report.prototype.next_pdfDownLoad = function() { }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { - var g = mRe_getReportCookie("fileSaveDownloadToken"); - if (g == b) { + var h = mRe_getReportCookie("fileSaveDownloadToken"); + if (h == b) { a.removePDFProgress(); } }, 1000); @@ -2422,9 +2909,10 @@ Report.prototype.next_pdfDownLoad = function() { this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = b; this.saveFormTag.path.value = this.clientPath; + var g = Base64.encode(this.m_strFileName); var f = { exportType: 2, - name: "cmVwb3J0", + name: g, pageType: 1, startNum: 1, endNum: this.m_pageCount, @@ -2446,7 +2934,9 @@ Report.prototype.next_pdfDownLoad = function() { } } if (d != null) { - f.name = Base64.encode(d.fileName); + if ("cmVwb3J0" == g) { + f.name = Base64.encode(d.fileName); + } f.option.isSplite = d.isSplite; f.option.spliteValue = d.spliteValue; f.option.userpw = d.userpw; @@ -2475,8 +2965,8 @@ Report.prototype.next_pdfDownLoad = function() { }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { - var g = mRe_getReportCookie("fileSaveDownloadToken"); - if (g == b) { + var h = mRe_getReportCookie("fileSaveDownloadToken"); + if (h == b) { a.removePDFProgress(); } }, 1000); @@ -2485,12 +2975,16 @@ Report.prototype.next_pdfDownLoad = function() { mRe_ReportEventHandler(10); } } - window.setTimeout("m_Re_fileDownInteval('" + this.m_uid + "')", 2000); -}; + window.setTimeout(function() { + a.fileDownLoding = false; + }, 2000); +} +; Report.prototype.next_hwpDownLoad = function() { if (this.fileDownLoding) { return; } + var a = this; this.debugMeg("report log :: HWP 파일 저장 시작.."); this.fileDownLoding = true; if (this.m_isEndReport) { @@ -2498,9 +2992,10 @@ Report.prototype.next_hwpDownLoad = function() { this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = this.m_uid; this.saveFormTag.path.value = this.clientPath; + var f = Base64.encode(this.m_strFileName); var e = { exportType: 3, - name: "cmVwb3J0", + name: f, pageType: 1, startNum: 1, endNum: this.m_pageCount, @@ -2528,7 +3023,9 @@ Report.prototype.next_hwpDownLoad = function() { } } if (d != null) { - e.name = Base64.encode(d.fileName); + if ("cmVwb3J0" == f) { + e.name = Base64.encode(d.fileName); + } e.option.fixSize = d.fixSize; e.option.allowOverlay = d.allowOverlay; e.option.setPageBottomMarginToZero = d.setPageBottomMarginToZero; @@ -2566,8 +3063,8 @@ Report.prototype.next_hwpDownLoad = function() { }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { - var f = mRe_getReportCookie("fileSaveDownloadToken"); - if (f == b) { + var g = mRe_getReportCookie("fileSaveDownloadToken"); + if (g == b) { a.removeHWPProgress(); } }, 1000); @@ -2575,12 +3072,16 @@ Report.prototype.next_hwpDownLoad = function() { } else { mRe_ReportEventHandler(10); } - window.setTimeout("m_Re_fileDownInteval('" + this.m_uid + "')", 2000); -}; + window.setTimeout(function() { + a.fileDownLoding = false; + }, 2000); +} +; Report.prototype.next_docDownLoad = function() { if (this.fileDownLoding) { return; } + var a = this; this.debugMeg("report log :: DOC 파일 저장 시작.."); this.fileDownLoding = true; if (this.m_isEndReport) { @@ -2588,9 +3089,10 @@ Report.prototype.next_docDownLoad = function() { this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = this.m_uid; this.saveFormTag.path.value = this.clientPath; + var f = Base64.encode(this.m_strFileName); var e = { exportType: 9, - name: "cmVwb3J0", + name: f, pageType: 1, startNum: 1, endNum: this.m_pageCount, @@ -2614,7 +3116,9 @@ Report.prototype.next_docDownLoad = function() { } } if (d != null) { - e.name = Base64.encode(d.fileName); + if ("cmVwb3J0" == f) { + e.name = Base64.encode(d.fileName); + } e.option.type = d.type; e.option.splitTextLine = d.splitTextLine; e.option.processAsUnicode = d.processAsUnicode; @@ -2648,8 +3152,8 @@ Report.prototype.next_docDownLoad = function() { }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { - var f = mRe_getReportCookie("fileSaveDownloadToken"); - if (f == b) { + var g = mRe_getReportCookie("fileSaveDownloadToken"); + if (g == b) { a.removeHWPProgress(); } }, 1000); @@ -2657,12 +3161,16 @@ Report.prototype.next_docDownLoad = function() { } else { mRe_ReportEventHandler(10); } - window.setTimeout("m_Re_fileDownInteval('" + this.m_uid + "')", 2000); -}; + window.setTimeout(function() { + a.fileDownLoding = false; + }, 2000); +} +; Report.prototype.next_excelDownLoad = function() { if (this.fileDownLoding) { return; } + var a = this; this.fileDownLoding = true; if (this.m_isEndReport) { this.printOptionValue.domList = null; @@ -2671,9 +3179,10 @@ Report.prototype.next_excelDownLoad = function() { this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = this.m_uid; this.saveFormTag.path.value = this.clientPath; + var f = Base64.encode(this.m_strFileName); var e = { exportType: 1, - name: "cmVwb3J0", + name: f, pageType: 1, startNum: 1, endNum: this.m_pageCount, @@ -2701,7 +3210,9 @@ Report.prototype.next_excelDownLoad = function() { } } if (d != null) { - e.name = Base64.encode(d.fileName); + if ("cmVwb3J0" == f) { + e.name = Base64.encode(d.fileName); + } e.option.exportMethod = d.exportMethod; e.option.mergeCell = d.mergeCell; e.option.mergeEmptyCell = d.mergeEmptyCell; @@ -2738,8 +3249,8 @@ Report.prototype.next_excelDownLoad = function() { }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { - var f = mRe_getReportCookie("fileSaveDownloadToken"); - if (f == b) { + var g = mRe_getReportCookie("fileSaveDownloadToken"); + if (g == b) { a.removeEXCELProgress(); } }, 1000); @@ -2747,12 +3258,15 @@ Report.prototype.next_excelDownLoad = function() { } else { mRe_ReportEventHandler(10); } - window.setTimeout("m_Re_fileDownInteval('" + this.m_uid + "')", 2000); -}; + window.setTimeout(function() { + a.fileDownLoding = false; + }, 2000); +} +; Report.prototype.fileCheckSendText = function(a, c) { - var d = (new Function("return " + ClipStrTrim(a)))(); + var d = objectCall(ClipStrTrim(a)); if (typeof d == "string") { - d = (new Function("return " + d))(); + d = objectCall(d); } if (d.status) { if ("xls" == c) { @@ -2781,7 +3295,8 @@ Report.prototype.fileCheckSendText = function(a, c) { b.fileCheckSend(c); }, 1000); } -}; +} +; Report.prototype.fileCheckSendErrorText = function(a) { if ("xls" == a) { this.removeEXCELProgress(); @@ -2802,11 +3317,13 @@ Report.prototype.fileCheckSendErrorText = function(a) { } } } -}; +} +; Report.prototype.fileCheckSend = function(h) { try { var b = new Date().getTime(); var j = "ClipID=R16&uid=" + this.m_uid + "&s_time=" + b; + j = mRe_onBeforeSend(j); var f = this.servletPath; if (this.m_isCrossDomain) { var g = this; @@ -2818,12 +3335,14 @@ Report.prototype.fileCheckSend = function(h) { } if (d) { d.onload = function() { - g.fileCheckSendText(d.responseText, h); - }; + g.fileCheckSendText(mRe_onAfterSend(d.responseText), h); + } + ; d.onerror = function() { ReportWebLog("IE8 crossDomain error"); mRe_ReportEventHandler(40); - }; + } + ; d.open("GET", a); d.send(); } @@ -2834,7 +3353,7 @@ Report.prototype.fileCheckSend = function(h) { crossDomain: true, data: j, success: function(e) { - g.fileCheckSendText(e, h); + g.fileCheckSendText(mRe_onAfterSend(e), h); }, error: function(e) { ReportWebLog(e); @@ -2848,7 +3367,7 @@ Report.prototype.fileCheckSend = function(h) { c.send(f, j, true, function() { if (4 == this.readyState) { if (200 == this.status) { - g.fileCheckSendText(this.responseText, h); + g.fileCheckSendText(mRe_onAfterSend(this.responseText), h); } else { g.fileCheckSendErrorText(h); } @@ -2856,11 +3375,12 @@ Report.prototype.fileCheckSend = function(h) { }); } } catch (i) {} -}; +} +; Report.prototype.reportCheckSendText = function(a, b) { - var d = (new Function("return " + ClipStrTrim(a)))(); + var d = objectCall(ClipStrTrim(a)); if (typeof d == "string") { - d = (new Function("return " + d))(); + d = objectCall(d); } if (d.status) { this.debugMeg("report log :: 서버연결 상태 정상...!"); @@ -2895,12 +3415,14 @@ Report.prototype.reportCheckSendText = function(a, b) { this.paintDiv.innerHTML = c; mRe_ReportEventHandler(60); } -}; +} +; Report.prototype.reportCheckSend = function(i) { try { this.debugMeg("report log :: 서버와의 연결상태를 확인합니다...."); var b = new Date().getTime(); var j = "ClipID=R16&aliveReport=true&uid=" + this.m_uid + "&s_time=" + b; + j = mRe_onBeforeSend(j); var f = this.servletPath; if (this.m_isCrossDomain) { var g = this; @@ -2912,14 +3434,16 @@ Report.prototype.reportCheckSend = function(i) { } if (d) { d.onload = function() { - g.reportCheckSendText(d.responseText, i); - }; + g.reportCheckSendText(mRe_onAfterSend(d.responseText), i); + } + ; d.onerror = function() { g.debugMeg("report log :: 서버와의 연결상태를 확인합니다...."); g.debugMeg("report log :: 시도한 연결 정보 >>> " + a); g.endDebugMeg(true); mRe_ReportEventHandler(40); - }; + } + ; d.open("GET", a); d.send(); } @@ -2930,7 +3454,7 @@ Report.prototype.reportCheckSend = function(i) { crossDomain: true, data: j, success: function(e) { - g.reportCheckSendText(e, i); + g.reportCheckSendText(mRe_onAfterSend(e), i); }, error: function(e) { ReportWebLog(e); @@ -2947,7 +3471,7 @@ Report.prototype.reportCheckSend = function(i) { c.send(f, j, true, function() { if (4 == this.readyState) { if (200 == this.status) { - g.reportCheckSendText(this.responseText, i); + g.reportCheckSendText(mRe_onAfterSend(this.responseText), i); } } }); @@ -2957,8 +3481,77 @@ Report.prototype.reportCheckSend = function(i) { this.debugMeg(h.message); this.endDebugMeg(true); } -}; - +} +; +Report.prototype.createPageMoveButton = function(f) { + var b = this; + if (this.m_PageMove.eventKey == null) { + var a = this.paintDiv.offsetHeight; + var e = ((a / 2) - 25) + this.menuDiv.offsetHeight; + var c = document.createElement("div"); + var d = document.createElement("div"); + this.targetDiv.appendChild(c); + this.targetDiv.appendChild(d); + c.className = f + "_pageMoveLeft"; + d.className = f + "_pageMoveRight"; + if (c.offsetHeight != null && c.offsetHeight > 0) { + e = ((a / 2) - (c.offsetHeight / 2)) + this.menuDiv.offsetHeight; + } + c.style.top = e + "px"; + c.onclick = function() { + if (b.m_PageMove.doubleEventKey == null) { + b.previousPage(); + window.clearTimeout(b.m_PageMove.eventKey); + b.m_PageMove.doubleEventKey = window.setTimeout(function() { + b.m_PageMove.doubleEventKey = null; + }, 1000); + } else { + window.clearTimeout(b.m_PageMove.doubleEventKey); + b.m_PageMove.doubleEventKey = window.setTimeout(function() { + b.m_PageMove.doubleEventKey = null; + }, 1000); + } + } + ; + d.style.top = e + "px"; + d.onclick = function() { + if (b.m_PageMove.doubleEventKey == null) { + b.nextPage(); + window.clearTimeout(b.m_PageMove.eventKey); + b.m_PageMove.doubleEventKey = window.setTimeout(function() { + b.m_PageMove.doubleEventKey = null; + }, 1000); + } else { + window.clearTimeout(b.m_PageMove.doubleEventKey); + b.m_PageMove.doubleEventKey = window.setTimeout(function() { + b.m_PageMove.doubleEventKey = null; + }, 1000); + } + } + ; + this.m_PageMove.leftDOM = c; + this.m_PageMove.rightDOM = d; + this.m_PageMove.eventKey = window.setTimeout(function() { + b.removePageMoveButton(); + }, 2000); + } else { + window.clearTimeout(this.m_PageMove.eventKey); + this.m_PageMove.eventKey = window.setTimeout(function() { + b.removePageMoveButton(); + }, 2000); + } +} +; +Report.prototype.removePageMoveButton = function() { + try { + this.targetDiv.removeChild(this.m_PageMove.leftDOM); + this.targetDiv.removeChild(this.m_PageMove.rightDOM); + } catch (a) {} + this.m_PageMove.eventKey = null; + this.m_PageMove.leftDOM = null; + this.m_PageMove.rightDOM = null; +} +; function enterEvent(c, a, b) { if (c.keyCode == 13) { a.selectPage(parseInt(b.value) - 1); @@ -2968,7 +3561,6 @@ function enterEvent(c, a, b) { c.returnValue = false; } } - function CReportPrintPDf(b) { var c = document.getElementById("re_object" + b); if (typeof c.print === "undefined") { @@ -2988,18 +3580,15 @@ function CReportPrintPDf(b) { } } } - function progressImg() { return "data:image/gif;base64,R0lGODlhFAAUAPf/AOXm5t7e39fY2dDS08rKzMDBxMDAw7y9v6eprP7+/vn5+f39/fr6+vf39/z8/M/Q0fv7+8PExvT19Y2Pk9XV19XW1/Hx8peZnKKkp5aYm4KFiYCDh/j4+O/v8Onp6uzs7d/f4O/w8Ofn6Pb29vT09O/v7/Pz9Ovs7PLy8tzc3ff4+NbX2OLj5K+ws5udobO1t+rq67q7vcXGyKSmqfDw8b/AwqOlqOLi46GjptfX2a2usa6vst7f4Ly+wISHiomLj8nJy3x/g7Gzta2vsoeJjfP09PX19pSWmenq6+3u7pGTl8vNzri6vLi5vPDx8aKjpomMj+Pj5d/g4cfJy9XX2KiqrKanqtvc3ZGUl8zNz3t+gubn6LCytJWXmsnJzOXl5tDQ0oqMj8bGyOTk5dPT1LS2uefo6d3e34+RlKqsr66vsenq6pmcntXV1v39/sjJyqOlqaWnqtfZ2tjY2sHCxdbW2OTl5oiLj4SHi5manpudoJ+go5KVmOzt7YCChvX19ejo6eHh4t3d3vn5+vT09fHx8eDg4ePj5Pn6+ubm5+Li5PHy8u7u7/j4+fDw8L6/we3t7fv7/MnKzOvr7Le4u/f3+MfJyuHh48HCxN7e4O3t7sjJy/r6+4iLjsfIyvj5+fz8/ebn58bHyd7d3+Pk5fPz8/r7+9DR09PU1c7P0OHi4ouNkdPT1d3d35WYm9vb3dvb3IqMkJaYmv39/MbHyt/f4dbX2cPDxejn6cTGyOjp6crLzcTFxpOVmOzs7NTV19rb27y9wNzd3dna2+bm6P7//rO1uP38/fz9/YGDiLW3uZOWmZaXmpmbnu7v74CCh4CDhuPj4+Tk5urr67a3uba3utHS1JqcoPr5+r+/woSGioWHi9DR0rK0t7O0trO0t42Qk9zc3tzd3s7Q0erq6tnZ29LT1eHg4vb29+Lh4/b39+np6cDCw7W2ue7v8Ojp6rm6vZibnp+gpN3f38vMzo6QlIOFiXx+gqqsrra4uuDh4drb3J6go+rr7P///////yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OURCMjcyODkyMjkwMTFFNEI1ODFFNjRBODJEMDY0MzciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OURCMjcyODgyMjkwMTFFNEI1ODFFNjRBODJEMDY0MzciIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDpENTI4MTc0MDkwMjJFNDExQUNGQTg4Q0I2MjI3RDI4OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENTI4MTc0MDkwMjJFNDExQUNGQTg4Q0I2MjI3RDI4OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUAAP8ALAAAAAAUABQAAAjlAP8JHDjQAQSCCAk6KJFAoD9/A+VISChQwShNDiH+CxVkDUWBjF4t+PeQZL0yCSH8cRhI0T8FDP7tguJAIIkGAqPAm1fTASSCLH4mSOGDicAE+h4VIPRRhZ4fdEYOZLAi1McPTSx83JqQwhAhCDJxPZGGy44HQHDEaVaBqx0XcJ5E4EpX4II2Wz6iIKOAoD8pFyaY+ViEz4QVGudoeGHkHwMPBGmMeDllQw+BEkQM3GPlH5Io/95gafgPhpOEPPzEZDPhX4IwMrZy0CBGoBoMAm9oKfGxQQ3SNi44jNCh7r8Hcz8GBAAh+QQFAAD/ACwBAAAADwALAAAIZgD/CRwosNAHggQhjBk4JtBABQ4GNmjHQiCgLwIj+RtEUJUygYpA/EvgL6ICCwMNEPhXSNM/B/4W/KNAZAmEfwpIEeTgT6CbLGgylEA4cIQLgQ1iXCEq8ATTpwOriIQ6ME8dqv8CAgAh+QQFAAD/ACwEAAAADwALAAAIYgD/CRQIoNXAg/8YVBhoqcDAEAwGStiASuADSQI5CCJ0EIy2BP8wxfjnr1YihP+O4PvnQdG/DqMGQnAg0IStgyjQCUTkT8G/ECgFJpjlL4G/oAMZJACJtKnTaQhaOBU4ZmBAACH5BAUAAP8ALAYAAAAOAA4AAAhmAP8JrCBJoMGD/gRiyGAQgIqDVAS2mCHwz7cQB/EI7BJG4KMBBwXq+Hfm1z8WTRwIVABBYI6DJ1AILAQiUciDC9KBEKHypsARiUb4HEpUICJ/SBcQZYDUn9KiUP89qBT1yKpTSgMCACH5BAUAAP8ALAoAAAAKABIAAAhiAL38G0iwIEE5EgwOTBLEQ0EoA5UYM0jh34NOBNUpIHio30BAlFgZhBAhxgqFi6wVUcjS4B8PHkR0MGjh0Jgxk1oqhGBqAUt/QBElKGjinwMG/hgUVEIQUaSCsXLpvOesYEAAIfkEBQAA/wAsCgACAAoAEQAACF8A/wkUuGagwX9lDg68M5BEg4Es+ghM4YPJQQ4uftSAcPBDvhAKQx608MBaqksHT/Da5GmYSIUcHDkIqeCcoQ7+BnJK8A/CCRC4/gX6lyCnwD8cDPoDJbIoA5GDOA4MCAAh+QQFAAD/ACwGAAYADgAOAAAIagD/CRwoUIWef3QWEFz4r4kFhhAjLpyUhsuOBxJJXbPxJILEjwONjIEAskG2HsQGviPYwME/BuGoVfgnD8e/QY3+wTA0kMaff88a/PPn79+CFB8WshNIVKAjQUIHuhxa9F8CciogLlAYMSAAIfkEBQAA/wAsBAAJAA8ACwAACGYA/wkcSPDfiYIIB9pxASehQ4GJHC4io2DgF4elek1Y8W/EP38VB5Jg8E+BpQ09BBZz8I8Ein/7Hg2E4eTfAn8L/t0AIZBSCoIO/IESCOjiP13dTAx0oCCBwDGBBPorR8Kho0kOAwIAIfkEBQAA/wAsAQAJABAACwAACGIA/wnkIbCgQYMzZJk7yLChQ4P+EnxyiKLgAn/+jjkswuffJ38MIPxzQMhgiBECpywYVDDaoX8dPvwThaVhKVgCbx0Q2EnGQQYBZP5L5UlgJi0lDEJYV3ATpoIROjxUBYxhQAAh+QQFAAD/ACwAAAYADgAOAAAIZQD/QRAF7sK/gwgTHvzjTZjChxATRvJHEUJEgRT9YbvIEWICSCYuJmAUyFCDiyVAfFEgMERCGgcZEEIoY9c/D4f+vXmI5AWyf/Em/EsQJqGCaoIO6sBw8IbRHP4O2jDY8UEEhAEBACH5BAUAAP8ALAAAAgALABEAAAhpAP8J/Eco2cCDA8dtQ7iA08BlCAf5a7TgXweECRr524hw4AJTDTqKHEgDECARhTp+GPPly8WRMAUuuJFEpIgCwRZ1/EKJW6V/Cjwc5OBuID8r/5BEQcgDGoN/bBBy0CBGoBqEDWokOBgQACH5BAUAAP8ALAAAAQALABAAAAhhAP8J/LdAwcCDAhn4S4DwIAR//v4xE+hAhcAEEP+J+/WPkSFfDv75a4Dwg6pLHBoKhOChhMqX/6SlOkXPQ0NBtCTJ+AKzp0BUW1QKcjXBTEMB9l4Y+ccAoQQRA/f09HMwIAA7"; } - function receiveMessage(b) { var a = m_reportHashMap[b.data]; if (null != a) { a.removePrintProgress(); } } - function mRe_getReportCookie(d) { var b = d + "="; var a = document.cookie.split(";"); @@ -3014,7 +3603,6 @@ function mRe_getReportCookie(d) { } return ""; } - function mRe_closeReportInfo(b) { var a = m_reportHashMap[b]; a.targetDiv.removeChild(a.m_popupViewDiv); @@ -3022,20 +3610,18 @@ function mRe_closeReportInfo(b) { a.m_popupViewDiv = null; a.disabledMenu(false); } - function mRe_ReportEventHandler(a) { - if (null != window.ReportEventHandler) { + if (null != typeof window.ReportEventHandler != "undefined") { ReportEventHandler(a); } else { - if (window.console) { + if (typeof window.console != "undefined") { window.console.log("Report Code : " + a); } } } - function mRe_getLocalStorage(a) { if (is_svg) { - if (typeof(Storage) !== "undefined") { + if (typeof (Storage) !== "undefined") { var b = null; try { if (null != localStorage) { @@ -3054,10 +3640,9 @@ function mRe_getLocalStorage(a) { } return "0"; } - function mRe_setLocalStorage(a, b) { if (is_svg) { - if (typeof(Storage) !== "undefined") { + if (typeof (Storage) !== "undefined") { try { if (null != localStorage) { localStorage.setItem(a, b); @@ -3068,133 +3653,143 @@ function mRe_setLocalStorage(a, b) { } } } - -function m_Re_fileDownInteval(b) { - var a = m_reportHashMap[b]; - a.fileDownLoding = false; -} - function mRe_HWPFrame_Object() { var a = ""; return a; } - function clearListCookies(a) {} - -function paintReportText(j) { - if (0 == j.indexOf('"')) { - j = j.substring(1, j.length - 1); +function paintReportText(k) { + if ("{clip_enc}" == k) { + return; } - var c = j.split("{clipreport_separator}"); - var h = (new Function("return " + ClipStrTrim(c[0])))(); - if (typeof c == "string") { - c = (new Function("return " + c))(); + if (0 == k.indexOf('"')) { + k = k.substring(1, k.length - 1); } - var b = m_reportHashMap[h.uid]; - b.debugMeg("report log :: 리포트 페이지 서버 수신 완료..."); + var d = k.split("{clipreport_separator}"); + var i = objectCall(ClipStrTrim(d[0])); + if (typeof d == "string") { + d = objectCall(d); + } + var c = m_reportHashMap[i.uid]; + c.debugMeg("report log :: 리포트 페이지 서버 수신 완료..."); try { - if (h.status) { - b.debugMeg("report log :: 리포트 페이지 서버 수신 완료 메시지 >>> " + c[0]); - if (null != h.pageWidth) { - b.m_printPage.pageWidth = h.pageWidth; - b.m_printPage.pageHeight = h.pageHeight; + if (i.status) { + c.debugMeg("report log :: 리포트 페이지 서버 수신 완료 메시지 >>> " + d[0]); + if (null != i.pageWidth) { + c.m_printPage.pageWidth = i.pageWidth; + c.m_printPage.pageHeight = i.pageHeight; } - if (!b.m_isAccessibility) { - b.debugMeg("report log :: 리포트 화면를 SVG로 표현!"); - b.paintDiv.innerHTML = unescape(c[1]); - b.paintDiv.firstChild.firstChild.style.overflow = "hidden"; - b.pageWidth = b.paintDiv.firstChild.firstChild.getAttribute("width"); - b.pageHeight = b.paintDiv.firstChild.firstChild.getAttribute("height"); - b.zoomIn(b.zoomCombo); - b.setPaintDivEvent(b.paintDiv, h.uid); - b.pageSlideShow(); + if (null != i.reportName) { + var b = ClipStrTrim(i.reportName); + if ("" != b) { + c.m_strFileName = b; + } + } + if (!c.m_isAccessibility) { + c.debugMeg("report log :: 리포트 화면를 SVG로 표현!"); + c.paintDiv.innerHTML = unescape(d[1]); + c.paintDiv.firstChild.firstChild.style.overflow = "hidden"; + c.pageWidth = c.paintDiv.firstChild.firstChild.getAttribute("width"); + c.pageHeight = c.paintDiv.firstChild.firstChild.getAttribute("height"); + c.zoomIn(c.zoomCombo); + c.setPaintDivEvent(c.paintDiv, i.uid); + c.pageSlideShow(); } else { - b.debugMeg("report log :: 리포트 화면를 접근성 뷰어로 표현!"); - var l = c[1]; - var g = document.getElementsByTagName("head")[0]; - var a = g.lastChild; + c.debugMeg("report log :: 리포트 화면를 접근성 뷰어로 표현!"); + var m = d[1]; + var h = document.getElementsByTagName("head")[0]; + var a = h.lastChild; if (a.tagName != "STYLE" || a.getAttribute("id") != "report_css") { - var i = document.createElement("style"); - i.setAttribute("type", "text/css"); - i.setAttribute("id", "report_css"); - g.appendChild(i); - a = i; + var j = document.createElement("style"); + j.setAttribute("type", "text/css"); + j.setAttribute("id", "report_css"); + h.appendChild(j); + a = j; } if (a.styleSheet) { - a.styleSheet.cssText = l; + a.styleSheet.cssText = m; } else { - var f = document.createTextNode(l); - a.appendChild(f); + var g = document.createTextNode(m); + a.appendChild(g); } - b.paintDiv.innerHTML = unescape(c[2]); - b.pageWidth = b.paintDiv.firstChild.clientWidth; - b.pageHeight = b.paintDiv.firstChild.clientHeight; - b.zoomIn(b.zoomCombo); - b.setPaintDivEvent(b.paintDiv, h.uid); - b.pageSlideShow(); + c.paintDiv.innerHTML = unescape(d[2]); + c.pageWidth = c.paintDiv.firstChild.clientWidth; + c.pageHeight = c.paintDiv.firstChild.clientHeight; + c.zoomIn(c.zoomCombo); + c.setPaintDivEvent(c.paintDiv, i.uid); + c.pageSlideShow(); } - if (b.m_isEndReport && b.m_isEndReportEvent) { - if (b.m_endreportprogress.is_visible) { - b.m_endreportprogress.is_visible = false; - b.removeEndReportProgress(); + if (c.m_isEndReport && c.m_isEndReportEvent) { + if (c.m_endreportprogress.is_visible) { + c.m_endreportprogress.is_visible = false; + c.removeEndReportProgress(); } mRe_ReportEventHandler(200); - if (b.m_isReportEndFunction != null) { - b.m_isReportEndFunction(); + if (c.m_isReportEndFunction != null) { + c.m_isReportEndFunction(); } - b.m_isEndReportEvent = false; - b.debugMeg("report log :: 리포트 뷰어 종료!"); - b.endDebugMeg(false); + c.m_isEndReportEvent = false; + c.debugMeg("report log :: 리포트 뷰어 종료!"); + c.endDebugMeg(false); } else { - if (!b.m_isEndReport) { - if (b.m_endreportprogress.is_visible) { - b.createEndReportProgress(); + if (!c.m_isEndReport) { + if (c.m_endreportprogress.is_visible) { + c.createEndReportProgress(); } } } - if (null == b.m_drilingTop) { - if ((is_smartphone && b.m_mobile.scrollTop) || (!is_smartphone && b.m_pcView.scrollTop) || b.m_scrollEv.isScrollPaging) { - b.paintDiv.scrollTop = 1; + if (null == c.m_drilingTop) { + if ((is_smartphone && c.m_mobile.scrollTop) || (!is_smartphone && c.m_pcView.scrollTop) || c.m_scrollEv.isScrollPaging) { + c.paintDiv.scrollTop = 1; } } else { - b.paintDiv.scrollTop = b.m_drilingTop; - b.m_drilingTop = null; + c.paintDiv.scrollTop = c.m_drilingTop; + c.m_drilingTop = null; } - b.endDebugMeg(true); + if (null != c.m_PageMove && is_smartphone) { + if (!c.m_PageMove.ButtonDisabled && null != c.m_PageMove.leftDOM) { + c.m_PageMove.eventKey = window.setTimeout(function() { + c.removePageMoveButton(); + }, 2000); + } + } + c.endDebugMeg(true); } else { - b.debugMeg("report log :: 리포트 생성중 오류 발생(export) >>> 서버로그 확인 필요!"); - b.debugMeg("report log :: 리포트 페이지 서버 수신 메시지 >>> " + c[0]); - var k = b.m_languageMap.report_error; - if (h.event == 11) { - b.debugMeg("report log :: EFORM 사용 권한이 없습니다 (라이센스)"); - if (b.m_isViewer) { - k = b.m_languageMap.lic_error + ".!! (errorCode : LE0" + h.event + ")"; + c.debugMeg("report log :: 리포트 생성중 오류 발생(export) >>> 서버로그 확인 필요!"); + c.debugMeg("report log :: 리포트 페이지 서버 수신 메시지 >>> " + d[0]); + var l = c.m_languageMap.report_error; + if (i.event == 11) { + c.debugMeg("report log :: EFORM 사용 권한이 없습니다 (라이센스)"); + if (c.m_isViewer) { + l = c.m_languageMap.lic_error + ".!! (errorCode : LE0" + i.event + ")"; mRe_ReportEventHandler(11); } } else { mRe_ReportEventHandler(30); - if (h.event == 60) { - k = b.m_languageMap.sesstion_error; + if (i.event == 60) { + l = c.m_languageMap.sesstion_error; mRe_ReportEventHandler(60); - b.debugMeg("report log :: 리포트서버와의 세션 종료!"); + c.debugMeg("report log :: 리포트서버와의 세션 종료!"); } } - b.paintDiv.innerHTML = k; - b.pageSlideShow(); + c.paintDiv.innerHTML = l; + c.pageSlideShow(); } - } catch (d) { - b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + j); - b.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + d.message); - b.paintDiv.innerHTML = b.m_languageMap.report_error; + } catch (f) { + c.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + k); + c.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + f.message); + c.paintDiv.innerHTML = c.m_languageMap.report_error; mRe_ReportEventHandler(30); - b.pageSlideShow(); + c.pageSlideShow(); + } + if (c.m_pageMoveEvent.end != null) { + c.m_pageMoveEvent.end(); } } - function resultPageCountText(a) { - var d = (new Function("return " + ClipStrTrim(a)))(); + var d = objectCall(ClipStrTrim(a)); if (typeof d == "string") { - d = (new Function("return " + d))(); + d = objectCall(d); } var b = m_reportHashMap[d.uid]; b.debugMeg("report log :: 서버 수신 완료..."); @@ -3215,14 +3810,23 @@ function resultPageCountText(a) { return; } else { if (b.m_directPrint) { - b.printView(); + b.m_pageCount = d.count; + b.m_directPrintOp.endReport = true; return; } } - } - if (b.m_isViewer) { - b.sendData(b.beforePageIndex); - b.progressImg.style.display = "none"; + if (b.m_isViewer) { + b.sendData(b.beforePageIndex); + b.progressImg.style.display = "none"; + } + } else { + b.debugMeg("report log :: 보고서 양식이 잘못되었습니다.(페이지가 없습니다.)"); + if (b.m_isViewer) { + b.progressImg.style.display = "none"; + b.paintDiv.innerHTML = b.m_languageMap.report_error2; + } + mRe_ReportEventHandler(30); + b.endDebugMeg(false); } b.m_pageCount = d.count; } else { @@ -3273,7 +3877,6 @@ function resultPageCountText(a) { b.endDebugMeg(false); } } - function m_getSaveFormTag(a) { var b = a.clipid.name + "=" + a.clipid.value + "&"; b += a.uid.name + "=" + a.uid.value + "&"; @@ -3284,28 +3887,107 @@ function m_getSaveFormTag(a) { b += "exportType=" + a.filetype.value + "&"; return b; } - function ClipStrTrim(a) { return a.replace(/^\s+|\s+$/gm, ""); } -var report_version = "1.0.0.71"; +function mRe_onBeforeSend(a) { + if (typeof window.onBeforeSend != "undefined") { + return onBeforeSend(a); + } + return a; +} +function mRe_onAfterSend(a) { + if (typeof window.onAfterSend != "undefined") { + return onAfterSend(a); + } + return a; +} +function objectCall(b) { + if (b.charAt(0) == "(") { + b = b.substring(1, b.length - 1); + b = b.replace(/\'/g, '"'); + } + var a = jQuery.parseJSON(b); + return a; +} +var report_version = "1.0.0.85"; var exe_print_version = "1.0.0.1"; var mRe_blankImg = "iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAYAAAA9dtSCAAADLElEQVR4Xu3SAQ0AAAjDMO7fNDqWFAXP6M4pECiwwEYTFThQIUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28ycgH1oEAq7aSdTsAAAAASUVORK5CYII="; +var mRe_whiteImg = "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAABAAEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/KKKKAP/2Q=="; +Report.prototype.setEFormSignPositionFix = function(a) { + is_PosiFix = a; +} +; +Report.prototype.visiblePageMoveButton = function() { + this.removePageMoveButton(); + if (this.is_eForm) { + this.createPageMoveButton("eform"); + } else { + this.createPageMoveButton("report"); + } +} +; +Report.prototype.setPageCountLabelEvent = function(a) { + this.m_buttonEvent.startPageCountLabel = a; +} +; +Report.prototype.setReportMobilePageMoveButtonDisabled = function(a) { + this.m_PageMove.ButtonDisabled = a; +} +; +Report.prototype.setEndDrawPageEvent = function(a) { + this.m_pageMoveEvent.end = a; +} +; +Report.prototype.setStartDrawPageEvent = function(a) { + this.m_pageMoveEvent.start = a; +} +; Report.prototype.setStartZoomInSelectEvent = function(a) { this.m_buttonEvent.startZoomInSelect = a; -}; +} +; Report.prototype.setStartLastPageButtonEvent = function(a) { this.m_buttonEvent.startLastButton = a; -}; +} +; Report.prototype.setStartNextPageButtonEvent = function(a) { this.m_buttonEvent.startNextButton = a; -}; +} +; Report.prototype.setStartPreviousPageButtonEvent = function(a) { this.m_buttonEvent.startPrevButton = a; -}; +} +; Report.prototype.setStartFirstPageButtonEvent = function(a) { this.m_buttonEvent.startFirstButton = a; -}; +} +; +Report.prototype.setSwipeDisiabled = function(a) { + this.m_isSwipe = a; +} +; +Report.prototype.setEndPrintProgressEvent = function(a) { + this.m_endPrintProgressEvent = a; +} +; +Report.prototype.getTotalPageCount = function() { + return this.m_pageCount; +} +; +Report.prototype.getSelectPageNumber = function() { + return this.beforePageIndex + 1; +} +; +Report.prototype.setEFormDoodlePenColor = function(c, a, b) { + this.eFormDoodleOption.pens.width = c; + this.eFormDoodleOption.pens.color = a; + this.eFormDoodleOption.pens.op = b; + this.eFormDoodleOption.tempPens.width = c; + this.eFormDoodleOption.tempPens.color = a; + this.eFormDoodleOption.tempPens.op = b; +} +; Report.prototype.transFormREPORT = function() { this.is_eForm = false; if (this.m_isViewer) { @@ -3313,7 +3995,8 @@ Report.prototype.transFormREPORT = function() { this.createProgress(); this.checkPageCount(); } -}; +} +; Report.prototype.transFormEFORM = function() { this.is_eForm = true; this.is_eFormData = false; @@ -3322,19 +4005,24 @@ Report.prototype.transFormEFORM = function() { this.createProgress(); this.checkPageCount(); } -}; +} +; Report.prototype.exePrintVersionInfo = function(a) { exe_print_version = a; -}; +} +; Report.prototype.setExePrintFinishEvent = function(a) { this.m_exePrintEvent.ok = a; -}; +} +; Report.prototype.setExePrintCancelEvent = function(a) { this.m_exePrintEvent.cancel = a; -}; +} +; Report.prototype.setEXEPrintDownloadLink = function(a) { this.m_exeLink = a; -}; +} +; Report.prototype.exePrint = function(d, e, c, f, a, g, b) { this.m_exePrintStatus.isSet = true; this.m_exePrintOption.isPrintPopup = d; @@ -3345,18 +4033,38 @@ Report.prototype.exePrint = function(d, e, c, f, a, g, b) { this.m_exePrintOption.copies = g; this.m_exePrintOption.option = b; this.printEXEView(); -}; -Report.prototype.exeDirectPrint = function(d, c, e, a, f, b) { +} +; +Report.prototype.exeDirectPrint = function() { + var d, e, c, f, a, g, b; + if (arguments.length == 7) { + d = arguments[0]; + e = arguments[1]; + c = arguments[2]; + f = arguments[3]; + a = arguments[4]; + g = arguments[5]; + b = arguments[6]; + } else { + d = false; + e = arguments[0]; + c = arguments[1]; + f = arguments[2]; + a = arguments[3]; + g = arguments[4]; + b = arguments[5]; + } this.m_exePrintStatus.isSet = true; - this.m_exePrintOption.isPrintPopup = false; - this.m_exePrintOption.printName = d; + this.m_exePrintOption.isPrintPopup = d; + this.m_exePrintOption.printName = e; this.m_exePrintOption.tray = c; - this.m_exePrintOption.startNumber = e; + this.m_exePrintOption.startNumber = f; this.m_exePrintOption.endNumber = a; - this.m_exePrintOption.copies = f; + this.m_exePrintOption.copies = g; this.m_exePrintOption.option = b; this.printEXEDirect(); -}; +} +; Report.prototype.setPrintSelectNames = function(b, a) { b = b.toLowerCase(); if ("pdf" == b) { @@ -3374,305 +4082,309 @@ Report.prototype.setPrintSelectNames = function(b, a) { } } } -}; +} +; Report.prototype.setAdobeInfoMessage = function(a) { if (null != a && "" != a) { this.adobeMessage.is_message = true; this.adobeMessage.message = a; } -}; +} +; Report.prototype.setPermissionAdobe9 = function(a) { this.adobe9Permission = a; -}; +} +; Report.prototype.buttonDisabled = function(a, c) { switch (a) { - case "prev_button": - if (this.m_disControl.prev != c && null != this.prev_button) { - this.m_disControl.prev = c; - this.prev_button.disabled = c; - if (c) { - var b = this.prev_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.prev_button.className = b; - } else { - var b = this.prev_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.prev_button.className = b; - } + case "prev_button": + if (this.m_disControl.prev != c && null != this.prev_button) { + this.m_disControl.prev = c; + this.prev_button.disabled = c; + if (c) { + var b = this.prev_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.prev_button.className = b; + } else { + var b = this.prev_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.prev_button.className = b; } - break; - case "next_button": - if (this.m_disControl.next != c && null != this.next_button) { - this.m_disControl.next = c; - this.next_button.disabled = c; - if (c) { - var b = this.next_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.next_button.className = b; - } else { - var b = this.next_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.next_button.className = b; - } + } + break; + case "next_button": + if (this.m_disControl.next != c && null != this.next_button) { + this.m_disControl.next = c; + this.next_button.disabled = c; + if (c) { + var b = this.next_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.next_button.className = b; + } else { + var b = this.next_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.next_button.className = b; } - break; - case "firstPage_button": - if (this.m_disControl.first != c && null != this.first_button) { - this.m_disControl.first = c; - this.first_button.disabled = c; - if (c) { - var b = this.first_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.first_button.className = b; - } else { - var b = this.first_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.first_button.className = b; - } + } + break; + case "firstPage_button": + if (this.m_disControl.first != c && null != this.first_button) { + this.m_disControl.first = c; + this.first_button.disabled = c; + if (c) { + var b = this.first_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.first_button.className = b; + } else { + var b = this.first_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.first_button.className = b; } - break; - case "lastPage_button": - if (this.m_disControl.last != c && null != this.last_button) { - this.m_disControl.last = c; - this.last_button.disabled = c; - if (c) { - var b = this.last_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.last_button.className = b; - } else { - var b = this.last_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.last_button.className = b; - } + } + break; + case "lastPage_button": + if (this.m_disControl.last != c && null != this.last_button) { + this.m_disControl.last = c; + this.last_button.disabled = c; + if (c) { + var b = this.last_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.last_button.className = b; + } else { + var b = this.last_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.last_button.className = b; } - break; - case "save_button": - if (this.m_disControl.save != c && null != this.save_button) { - this.m_disControl.save = c; - this.save_button.disabled = c; - if (c) { - var b = this.save_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.save_button.className = b; - } else { - var b = this.save_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.save_button.className = b; - } + } + break; + case "save_button": + if (this.m_disControl.save != c && null != this.save_button) { + this.m_disControl.save = c; + this.save_button.disabled = c; + if (c) { + var b = this.save_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.save_button.className = b; + } else { + var b = this.save_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.save_button.className = b; } - break; - case "print_button": - if (this.m_disControl.print != c && null != this.print_button) { - this.m_disControl.print = c; - this.print_button.disabled = c; - if (c) { - var b = this.print_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.print_button.className = b; - } else { - var b = this.print_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.print_button.className = b; - } + } + break; + case "print_button": + if (this.m_disControl.print != c && null != this.print_button) { + this.m_disControl.print = c; + this.print_button.disabled = c; + if (c) { + var b = this.print_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.print_button.className = b; + } else { + var b = this.print_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.print_button.className = b; } - break; - case "close_button": - if (this.m_disControl.close != c && null != this.close_button) { - this.m_disControl.close = c; - this.close_button.disabled = c; - if (c) { - var b = this.close_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.close_button.className = b; - } else { - var b = this.close_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.close_button.className = b; - } + } + break; + case "close_button": + if (this.m_disControl.close != c && null != this.close_button) { + this.m_disControl.close = c; + this.close_button.disabled = c; + if (c) { + var b = this.close_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.close_button.className = b; + } else { + var b = this.close_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.close_button.className = b; } - break; - case "pdf_button": - if (this.m_disControl.pdf != c && null != this.pdf_button) { - this.m_disControl.pdf = c; - this.pdf_button.disabled = c; - if (c) { - var b = this.pdf_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.pdf_button.className = b; - } else { - var b = this.pdf_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.pdf_button.className = b; - } + } + break; + case "pdf_button": + if (this.m_disControl.pdf != c && null != this.pdf_button) { + this.m_disControl.pdf = c; + this.pdf_button.disabled = c; + if (c) { + var b = this.pdf_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.pdf_button.className = b; + } else { + var b = this.pdf_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.pdf_button.className = b; } - break; - case "hwp_button": - if (this.m_disControl.hwp != c && null != this.hwp_button) { - this.m_disControl.hwp = c; - this.hwp_button.disabled = c; - if (c) { - var b = this.hwp_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.hwp_button.className = b; - } else { - var b = this.hwp_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.hwp_button.className = b; - } + } + break; + case "hwp_button": + if (this.m_disControl.hwp != c && null != this.hwp_button) { + this.m_disControl.hwp = c; + this.hwp_button.disabled = c; + if (c) { + var b = this.hwp_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.hwp_button.className = b; + } else { + var b = this.hwp_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.hwp_button.className = b; } - break; - case "doc_button": - if (this.m_disControl.doc != c && null != this.doc_button) { - this.m_disControl.doc = c; - this.doc_button.disabled = c; - if (c) { - var b = this.doc_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.doc_button.className = b; - } else { - var b = this.doc_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.doc_button.className = b; - } + } + break; + case "doc_button": + if (this.m_disControl.doc != c && null != this.doc_button) { + this.m_disControl.doc = c; + this.doc_button.disabled = c; + if (c) { + var b = this.doc_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.doc_button.className = b; + } else { + var b = this.doc_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.doc_button.className = b; } - break; - case "excel_button": - if (this.m_disControl.excel != c && null != this.excel_button) { - this.m_disControl.excel = c; - this.excel_button.disabled = c; - if (c) { - var b = this.excel_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.excel_button.className = b; - } else { - var b = this.excel_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.excel_button.className = b; - } + } + break; + case "excel_button": + if (this.m_disControl.excel != c && null != this.excel_button) { + this.m_disControl.excel = c; + this.excel_button.disabled = c; + if (c) { + var b = this.excel_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.excel_button.className = b; + } else { + var b = this.excel_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.excel_button.className = b; } - break; - case "reportInfo_button": - if (this.m_disControl.reportInfo != c && null != this.reportInfo_button) { - this.m_disControl.reportInfo = c; - this.reportInfo_button.disabled = c; - if (c) { - var b = this.reportInfo_button.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.reportInfo_button.className = b; - } else { - var b = this.reportInfo_button.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.reportInfo_button.className = b; - } + } + break; + case "reportInfo_button": + if (this.m_disControl.reportInfo != c && null != this.reportInfo_button) { + this.m_disControl.reportInfo = c; + this.reportInfo_button.disabled = c; + if (c) { + var b = this.reportInfo_button.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.reportInfo_button.className = b; + } else { + var b = this.reportInfo_button.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.reportInfo_button.className = b; } - break; - case "zoomIn": - if (this.m_disControl.zoomIn != c && null != this.zoomCombo) { - this.m_disControl.zoomIn = c; - this.zoomCombo.disabled = c; - if (c) { - var b = this.zoomCombo.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.zoomCombo.className = b; - } else { - var b = this.zoomCombo.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.zoomCombo.className = b; - } + } + break; + case "zoomIn": + if (this.m_disControl.zoomIn != c && null != this.zoomCombo) { + this.m_disControl.zoomIn = c; + this.zoomCombo.disabled = c; + if (c) { + var b = this.zoomCombo.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.zoomCombo.className = b; + } else { + var b = this.zoomCombo.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.zoomCombo.className = b; } - break; - case "input_box": - if (this.m_disControl.input != c && null != this.totalCountText) { - this.m_disControl.input = c; - this.totalCountText.disabled = c; - if (c) { - var b = this.totalCountText.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.totalCountText.className = b; - } else { - var b = this.totalCountText.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.totalCountText.className = b; - } + } + break; + case "input_box": + if (this.m_disControl.input != c && null != this.totalCountText) { + this.m_disControl.input = c; + this.totalCountText.disabled = c; + if (c) { + var b = this.totalCountText.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.totalCountText.className = b; + } else { + var b = this.totalCountText.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.totalCountText.className = b; } - break; - case "totalCount_box": - if (this.m_disControl.caption != c && null != this.totalCountSpan) { - this.m_disControl.caption = c; - this.totalCountSpan.disabled = c; - if (c) { - var b = this.totalCountSpan.className; - var d = /\_svg/g; - b = b.replace(d, "_svg_dis"); - d = /\_png/g; - b = b.replace(d, "_png_dis"); - this.totalCountSpan.className = b; - } else { - var b = this.totalCountSpan.className; - var d = /\_dis/g; - b = b.replace(d, ""); - this.totalCountSpan.className = b; - } + } + break; + case "totalCount_box": + if (this.m_disControl.caption != c && null != this.totalCountSpan) { + this.m_disControl.caption = c; + this.totalCountSpan.disabled = c; + if (c) { + var b = this.totalCountSpan.className; + var d = /\_svg/g; + b = b.replace(d, "_svg_dis"); + d = /\_png/g; + b = b.replace(d, "_png_dis"); + this.totalCountSpan.className = b; + } else { + var b = this.totalCountSpan.className; + var d = /\_dis/g; + b = b.replace(d, ""); + this.totalCountSpan.className = b; } - break; + } + break; } -}; +} +; Report.prototype.setDebug = function(a) { if (a) { this.m_debug.isDebug = a; @@ -3682,17 +4394,19 @@ Report.prototype.setDebug = function(a) { this.m_debug.message = new Array(); } } -}; +} +; Report.prototype.reportNecessaryCheck = function() { var b = new Date().getTime(); var a = "ClipID=R11&uid=" + this.m_uid + "&isNecessaryCheck=true&s_time=" + b; + a = mRe_onBeforeSend(a); var d = new HttpClient(); var c = null; try { c = d.send(this.servletPath, a, false, null); - var f = (new Function("return " + ClipStrTrim(c)))(); + var f = objectCall(ClipStrTrim(mRe_onAfterSend(c))); if (typeof f == "string") { - f = (new Function("return " + f))(); + f = objectCall(f); } if (f.status) { if (f.event == 102) { @@ -3707,24 +4421,98 @@ Report.prototype.reportNecessaryCheck = function() { return false; } return false; -}; +} +; Report.prototype.setSignStaticPosition = function(b, a) { this.m_signOption.staticPos = true; this.m_signOption.staticLeft = b; this.m_signOption.staticTop = a; -}; +} +; Report.prototype.setSignOffset = function(b, a) { this.m_signOption.offsetLeft = b; this.m_signOption.offsetTop = a; -}; +} +; +Report.prototype.setRatioComboNameVisible = function(b, a) { + switch (b.toLowerCase()) { + case "50%": + this.m_comboNames.num50.visible = a; + break; + case "75%": + this.m_comboNames.num75.visible = a; + break; + case "100%": + this.m_comboNames.num100.visible = a; + break; + case "125%": + this.m_comboNames.num125.visible = a; + break; + case "150%": + this.m_comboNames.num150.visible = a; + break; + case "200%": + this.m_comboNames.num200.visible = a; + break; + case "300%": + this.m_comboNames.num300.visible = a; + break; + case "400%": + this.m_comboNames.num400.visible = a; + break; + case "pagewidth": + this.m_comboNames.pagewidth.visible = a; + break; + case "wholepage": + this.m_comboNames.wholepage.visible = a; + break; + } +} +; +Report.prototype.setRatioComboNameChange = function(b, a) { + switch (b.toLowerCase()) { + case "50%": + this.m_comboNames.num50.name = a; + break; + case "75%": + this.m_comboNames.num75.name = a; + break; + case "100%": + this.m_comboNames.num100.name = a; + break; + case "125%": + this.m_comboNames.num125.name = a; + break; + case "150%": + this.m_comboNames.num150.name = a; + break; + case "200%": + this.m_comboNames.num200.name = a; + break; + case "300%": + this.m_comboNames.num300.name = a; + break; + case "400%": + this.m_comboNames.num400.name = a; + break; + case "pagewidth": + this.m_comboNames.pagewidth.name = a; + break; + case "wholepage": + this.m_comboNames.wholepage.name = a; + break; + } +} +; Report.prototype.setRatioComboName = function(a, b) { if (null != a) { - this.m_comboNames.pagewidth = a; + this.m_comboNames.pagewidth.name = a; } if (null != b) { - this.m_comboNames.wholepage = b; + this.m_comboNames.wholepage.name = b; } -}; +} +; Report.prototype.saveFileDownLoad = function() { if (this.m_isEndReport) { var f = arguments[0]; @@ -3767,47 +4555,47 @@ Report.prototype.saveFileDownLoad = function() { } } switch (a) { - case 1: - d.exportType = 1; - d.option = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls"); - break; - case 2: - d.exportType = 10; - d.option = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx"); - break; - case 3: - d.exportType = 2; - d.option = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption(); - mRe_setPDFFileList(d, this.splitPDFFileNames); - break; - case 4: - d.exportType = 3; - d.option = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption(); - break; - case 5: - d.exportType = 4; - d.option = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf"); - break; - case 6: - d.exportType = 5; - d.option = null; - break; - case 7: - d.exportType = 7; - d.option = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell"); - break; - case 8: - d.exportType = 8; - d.option = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option(); - break; - case 9: - d.exportType = 9; - d.option = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc"); - break; - case 10: - d.exportType = 11; - d.option = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption(); - break; + case 1: + d.exportType = 1; + d.option = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls"); + break; + case 2: + d.exportType = 10; + d.option = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx"); + break; + case 3: + d.exportType = 2; + d.option = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption(); + mRe_setPDFFileList(d, this.splitPDFFileNames); + break; + case 4: + d.exportType = 3; + d.option = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption(); + break; + case 5: + d.exportType = 4; + d.option = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf"); + break; + case 6: + d.exportType = 5; + d.option = null; + break; + case 7: + d.exportType = 7; + d.option = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell"); + break; + case 8: + d.exportType = 8; + d.option = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option(); + break; + case 9: + d.exportType = 9; + d.option = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc"); + break; + case 10: + d.exportType = 11; + d.option = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption(); + break; } this.m_saveInfo_view = {}; this.m_saveInfo_view.json_data = d; @@ -3818,33 +4606,42 @@ Report.prototype.saveFileDownLoad = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.setScrollPaging = function(a) { this.m_scrollEv.isScrollPaging = a; -}; +} +; Report.prototype.setMobilePageScrollTop = function(a) { this.m_mobile.scrollTop = a; -}; +} +; Report.prototype.setPageScrollTop = function(a) { this.m_pcView.scrollTop = a; -}; +} +; Report.prototype.setFirefoxPopUpPrintWindow = function(b, c, a) { this.m_firefoxPrint.isPopup = b; this.m_firefoxPrint.width = c; this.m_firefoxPrint.height = a; -}; +} +; Report.prototype.setPrintExceptionSaveButtonVisible = function(a) { this.pESaveButtonVisible = a; -}; +} +; Report.prototype.setChartToImage = function(a) { this.m_isChartToImage = a; -}; +} +; Report.prototype.setIsMarkAny = function(a) { this.m_isMarkAny = a; -}; +} +; Report.prototype.setPDFFitToPage = function(a) { this.isChromePrintFitToPage = a; -}; +} +; Report.prototype.setEndReportProgress = function(b, d, a, c) { if (!is_mobile && !is_tablet) { this.m_endreportprogress.is_visible = b; @@ -3852,202 +4649,234 @@ Report.prototype.setEndReportProgress = function(b, d, a, c) { this.m_endreportprogress.x = a; this.m_endreportprogress.y = c; } -}; +} +; Report.prototype.changeRatioCombo = function(a) { switch (a.toLowerCase()) { - case "50%": - this.zoomCombo.value = "0.5"; - break; - case "75%": - this.zoomCombo.value = "0.75"; - break; - case "100%": - this.zoomCombo.value = "1"; - break; - case "125%": - this.zoomCombo.value = "1.25"; - break; - case "150%": - this.zoomCombo.value = "1.5"; - break; - case "200%": - this.zoomCombo.value = "2"; - break; - case "300%": - this.zoomCombo.value = "3"; - break; - case "400%": - this.zoomCombo.value = "4"; - break; - case "pagewidth": - this.zoomCombo.value = "PageWidth"; - break; - case "wholepage": - this.zoomCombo.value = "WholePage"; - break; + case "50%": + this.zoomCombo.value = "0.5"; + break; + case "75%": + this.zoomCombo.value = "0.75"; + break; + case "100%": + this.zoomCombo.value = "1"; + break; + case "125%": + this.zoomCombo.value = "1.25"; + break; + case "150%": + this.zoomCombo.value = "1.5"; + break; + case "200%": + this.zoomCombo.value = "2"; + break; + case "300%": + this.zoomCombo.value = "3"; + break; + case "400%": + this.zoomCombo.value = "4"; + break; + case "pagewidth": + this.zoomCombo.value = "PageWidth"; + break; + case "wholepage": + this.zoomCombo.value = "WholePage"; + break; } this.zoomIn(this.zoomCombo); -}; +} +; Report.prototype.getReportKey = function() { return this.m_uid; -}; +} +; Report.prototype.setPrintImage = function(a) { this.isPDFPrintImage = a; -}; +} +; Report.prototype.setPDFDownloadLink = function(a) { this.m_pdfLink = a; -}; +} +; Report.prototype.setDisplayPrintOption = function(b, a) { switch (b.toLocaleLowerCase()) { - case "pdf": - this.m_printDisplay.pdf = a; - break; - case "html": - this.m_printDisplay.html = a; - break; - case "hwp": - this.m_printDisplay.hwp = a; - break; - case "exe": - this.m_printDisplay.exe = a; - break; + case "pdf": + this.m_printDisplay.pdf = a; + break; + case "html": + this.m_printDisplay.html = a; + break; + case "hwp": + this.m_printDisplay.hwp = a; + break; + case "exe": + this.m_printDisplay.exe = a; + break; } -}; +} +; Report.prototype.setUseHTMLPrint = function(a) { this.setDisplayPrintOption("html", a); -}; +} +; Report.prototype.setUseOriginImage = function(a) { this.m_isUseOriginImage = a; -}; +} +; Report.prototype.setEnabledCrossDomain = function(a) { this.m_isCrossDomain = a; this.m_fileDownLoadServerCheck = a; -}; +} +; Report.prototype.setOOFEncoding = function(a) { this.m_isEncode = a; -}; +} +; Report.prototype.setImageViewer = function(a) { this.m_isPaintImage = a; -}; +} +; Report.prototype.setSaveFileName = function(a) { this.m_strFileName = a; -}; +} +; Report.prototype.setAccessibility = function(a) { this.m_isAccessibility = a; -}; +} +; Report.prototype.setDisabled = function(a, b) { switch (a) { - case "prev_button": - this.m_disControl.prev = b; - break; - case "next_button": - this.m_disControl.next = b; - break; - case "firstPage_button": - this.m_disControl.first = b; - break; - case "lastPage_button": - this.m_disControl.last = b; - break; - case "save_button": - this.m_disControl.save = b; - break; - case "print_button": - this.m_disControl.print = b; - break; - case "close_button": - this.m_disControl.close = b; - break; - case "pdf_button": - this.m_disControl.pdf = b; - break; - case "hwp_button": - this.m_disControl.hwp = b; - break; - case "doc_button": - this.m_disControl.doc = b; - break; - case "excel_button": - this.m_disControl.excel = b; - break; - case "reportInfo_button": - this.m_disControl.reportInfo = b; - break; - case "zoomIn": - this.m_disControl.zoomIn = b; - break; - case "input_box": - this.m_disControl.input = b; - break; - case "totalCount_box": - this.m_disControl.caption = b; - break; + case "prev_button": + this.m_disControl.prev = b; + break; + case "next_button": + this.m_disControl.next = b; + break; + case "firstPage_button": + this.m_disControl.first = b; + break; + case "lastPage_button": + this.m_disControl.last = b; + break; + case "save_button": + this.m_disControl.save = b; + break; + case "print_button": + this.m_disControl.print = b; + break; + case "close_button": + this.m_disControl.close = b; + break; + case "pdf_button": + this.m_disControl.pdf = b; + break; + case "hwp_button": + this.m_disControl.hwp = b; + break; + case "doc_button": + this.m_disControl.doc = b; + break; + case "excel_button": + this.m_disControl.excel = b; + break; + case "reportInfo_button": + this.m_disControl.reportInfo = b; + break; + case "zoomIn": + this.m_disControl.zoomIn = b; + break; + case "input_box": + this.m_disControl.input = b; + break; + case "totalCount_box": + this.m_disControl.caption = b; + break; } -}; +} +; Report.prototype.setStartSaveButtonEvent = function(a) { this.m_buttonEvent.startSaveButton = a; -}; +} +; Report.prototype.setStartPDFButtonEvent = function(a) { this.m_buttonEvent.startPDFButton = a; -}; +} +; Report.prototype.setStartExcelButtonEvent = function(a) { this.m_buttonEvent.startExcelButton = a; -}; +} +; Report.prototype.setStartHWPButtonEvent = function(a) { this.m_buttonEvent.startHWPButton = a; -}; +} +; Report.prototype.setStartDOCButtonEvent = function(a) { this.m_buttonEvent.startDOCButton = a; -}; +} +; Report.prototype.setStartPrintButtonEvent = function(a) { this.m_buttonEvent.startPrintButton = a; -}; +} +; Report.prototype.setStartCloseButtonEvent = function(a) { this.m_buttonEvent.startCloseButton = a; -}; +} +; Report.prototype.setEndSaveButtonEvent = function(a) { this.m_buttonEvent.endSaveButton = a; -}; +} +; Report.prototype.setEndPDFButtonEvent = function(a) { this.m_buttonEvent.endPDFButton = a; -}; +} +; Report.prototype.setEndExcelButtonEvent = function(a) { this.m_buttonEvent.endExcelButton = a; -}; +} +; Report.prototype.setEndHWPButtonEvent = function(a) { this.m_buttonEvent.endHWPButton = a; -}; +} +; Report.prototype.setEndDOCButtonEvent = function(a) { this.m_buttonEvent.endDOCButton = a; -}; +} +; Report.prototype.setEndReportEvent = function(a) { this.m_isReportEndFunction = a; -}; +} +; Report.prototype.setCloseReportEvent = function(a) { this.m_isCloseFunction = a; -}; +} +; Report.prototype.setFileDownLoadCheck = function(a) { this.m_fileDownLoadServerCheck = a; -}; +} +; Report.prototype.setLanguage = function(a) { switch (a) { - case "en": - this.m_language = 1; - break; - case "jp": - this.m_language = 2; - break; - case "cn": - this.m_language = 3; - break; + case "en": + this.m_language = 1; + break; + case "jp": + this.m_language = 2; + break; + case "cn": + this.m_language = 3; + break; } -}; +} +; Report.prototype.setSplitPDFFileNames = function(a) { this.splitPDFFileNames = a; -}; +} +; Report.prototype.setDefaultSelectSaveOption = function(a) { this.defaultSaveOption = a; -}; +} +; Report.prototype.setDefaultSaveExcelOption = function(f, j, a, d, h, c, b, i, e, k, g) { if (null == this.m_defaultSaveExcelOp) { this.m_defaultSaveExcelOp = mRe_getDefaultSaveExcelOption("xls"); @@ -4066,7 +4895,8 @@ Report.prototype.setDefaultSaveExcelOption = function(f, j, a, d, h, c, b, i, e, this.m_defaultSaveExcelOp.printingMagnification = k; g = null == g ? false : g; this.m_defaultSaveExcelOp.fitToPageWhenPrinting = g; -}; +} +; Report.prototype.setDefaultSaveExcelxOption = function(f, j, a, d, h, c, b, i, e, k, g) { if (null == this.m_defaultSaveExcelxOp) { this.m_defaultSaveExcelxOp = mRe_getDefaultSaveExcelOption("xlsx"); @@ -4085,7 +4915,8 @@ Report.prototype.setDefaultSaveExcelxOption = function(f, j, a, d, h, c, b, i, e this.m_defaultSaveExcelxOp.printingMagnification = k; g = null == g ? false : g; this.m_defaultSaveExcelxOp.fitToPageWhenPrinting = g; -}; +} +; Report.prototype.setDefaultSaveHanCellOption = function(f, j, a, d, h, c, b, i, e, k, g) { if (null == this.m_defaultSaveHanCellOp) { this.m_defaultSaveHanCellOp = mRe_getDefaultSaveExcelOption("cell"); @@ -4104,7 +4935,8 @@ Report.prototype.setDefaultSaveHanCellOption = function(f, j, a, d, h, c, b, i, this.m_defaultSaveHanCellOp.printingMagnification = k; g = null == g ? false : g; this.m_defaultSaveHanCellOp.fitToPageWhenPrinting = g; -}; +} +; Report.prototype.setDefaultSavePDFOption = function(d, c, e, a, b) { if (null == this.m_defaultSavePDFOp) { this.m_defaultSavePDFOp = mRe_getDefaultSavePDFOption(); @@ -4114,7 +4946,8 @@ Report.prototype.setDefaultSavePDFOption = function(d, c, e, a, b) { this.m_defaultSavePDFOp.userpw = e; this.m_defaultSavePDFOp.textToImage = a; this.m_defaultSavePDFOp.importOriginImage = b; -}; +} +; Report.prototype.setDefaultSaveHWPOption = function(e, f, k, c, i, h, b, l, j, g, d, a) { if (null == this.m_defaultSaveHWPOp) { this.m_defaultSaveHWPOp = mRe_getDefaultSaveHWPOption(); @@ -4123,57 +4956,68 @@ Report.prototype.setDefaultSaveHWPOption = function(e, f, k, c, i, h, b, l, j, g this.m_defaultSaveHWPOp.allowOverlay = f; this.m_defaultSaveHWPOp.setPageBottomMarginToZero = k; this.m_defaultSaveHWPOp.outputLikeWord = c; - if (c) { + if (null != c) { this.m_defaultSaveHWPOp.tableSplitMethod = i; } this.m_defaultSaveHWPOp.defaultCharGap = h; this.m_defaultSaveHWPOp.charRatio = b; - if (l) { + if (null != l) { this.m_defaultSaveHWPOp.putCheckboxIntoCell = l; } - if (j) { + if (null != j) { this.m_defaultSaveHWPOp.splitTextByLine = j; } - if (g) { + if (null != g) { this.m_defaultSaveHWPOp.mergeTable = g; } else { this.m_defaultSaveHWPOp.mergeTable = false; } - if (d) { + if (null != d) { this.m_defaultSaveHWPOp.lineSpaceRate = d; } - if (a) { + if (null != a) { this.m_defaultSaveHWPOp.positionRelTo = a; } -}; -Report.prototype.setDefaultSaveRTFOption = function(g, d, b, e, f, a, c) { +} +; +Report.prototype.setDefaultSaveRTFOption = function(g, c, d, b, h, i, e, f, a) { if (null == this.m_defaultSaveRTFOp) { this.m_defaultSaveRTFOp = mRe_getDefaultSaveRTFOption("rtf"); } this.m_defaultSaveRTFOp.splitTextLine = g; - this.m_defaultSaveRTFOp.processAsUnicode = d; - this.m_defaultSaveRTFOp.processEqualAlign = b; - this.m_defaultSaveRTFOp.defaultCharSpace = e; - this.m_defaultSaveRTFOp.tableWrapperBottomGap = f; - a = (null == a) ? true : a; - c = (null == c) ? false : c; - this.m_defaultSaveRTFOp.insertTableWrapper = a; - this.m_defaultSaveRTFOp.mergeTable = c; -}; -Report.prototype.setDefaultSaveDOCOption = function(g, d, b, e, f, a, c) { + this.m_defaultSaveRTFOp.processAsUnicode = c; + this.m_defaultSaveRTFOp.processEqualAlign = d; + this.m_defaultSaveRTFOp.defaultCharSpace = b; + this.m_defaultSaveRTFOp.tableWrapperBottomGap = h; + i = (null == i) ? true : i; + e = (null == e) ? false : e; + this.m_defaultSaveRTFOp.insertTableWrapper = i; + this.m_defaultSaveRTFOp.mergeTable = e; + f = (null == f) ? false : f; + a = (null == a) ? 1 : a; + this.m_defaultSaveRTFOp.fitShapeToText = f; + this.m_defaultSaveRTFOp.TableRowHeightSort = a; +} +; +Report.prototype.setDefaultSaveDOCOption = function(g, c, d, b, h, i, e, f, a) { if (null == this.m_defaultSaveDOCOp) { this.m_defaultSaveDOCOp = mRe_getDefaultSaveRTFOption("doc"); } this.m_defaultSaveDOCOp.splitTextLine = g; - this.m_defaultSaveDOCOp.processAsUnicode = d; - this.m_defaultSaveDOCOp.processEqualAlign = b; - this.m_defaultSaveDOCOp.defaultCharSpace = e; - this.m_defaultSaveDOCOp.tableWrapperBottomGap = f; - a = (null == a) ? true : a; - c = (null == c) ? false : c; - this.m_defaultSaveDOCOp.insertTableWrapper = a; - this.m_defaultSaveDOCOp.mergeTable = c; -}; + this.m_defaultSaveDOCOp.processAsUnicode = c; + this.m_defaultSaveDOCOp.processEqualAlign = d; + this.m_defaultSaveDOCOp.defaultCharSpace = b; + this.m_defaultSaveDOCOp.tableWrapperBottomGap = h; + i = (null == i) ? true : i; + e = (null == e) ? false : e; + this.m_defaultSaveDOCOp.insertTableWrapper = i; + this.m_defaultSaveDOCOp.mergeTable = e; + f = (null == f) ? false : f; + a = (null == a) ? 1 : a; + this.m_defaultSaveDOCOp.fitShapeToText = f; + this.m_defaultSaveDOCOp.TableRowHeightSort = a; +} +; Report.prototype.setDefaultSaveJPGOption = function(b, a, d, c) { if (null == this.m_defaultSaveJPGOp) { this.m_defaultSaveJPGOp = mRe_getDefaultSaveJPGOption(); @@ -4182,14 +5026,16 @@ Report.prototype.setDefaultSaveJPGOption = function(b, a, d, c) { this.m_defaultSaveJPGOp.dpiX = a; this.m_defaultSaveJPGOp.dpiY = d; this.m_defaultSaveJPGOp.quality = c; -}; +} +; Report.prototype.setDefaultSavePPTOption = function(b, a) { if (null == this.m_defaultSavePPTOp) { this.m_defaultSavePPTOp = mRe_getDefaultSavePPTOption(); } this.m_defaultSavePPTOp.mergeTable = b; this.m_defaultSavePPTOp.ignoreLineSpace = a; -}; +} +; Report.prototype.setDefaultSaveHTMLOption = function(j, h, a, f, d, c, e, i, g, b) { if (null == this.m_defaultSaveHTMLOp) { this.m_defaultSaveHTMLOp = mRe_getDefaultSaveHTMLOption(); @@ -4204,21 +5050,23 @@ Report.prototype.setDefaultSaveHTMLOption = function(j, h, a, f, d, c, e, i, g, this.m_defaultSaveHTMLOp.coordinateRateForX = i; this.m_defaultSaveHTMLOp.coordinateRateForY = g; this.m_defaultSaveHTMLOp.encodingType = b; -}; +} +; Report.prototype.setDefaultSaveHTML5Option = function(b, a) { if (null == this.m_defaultSaveHTML5Op) { this.m_defaultSaveHTML5Op = mRe_getDefaultSaveHTML5Option(); } this.m_defaultSaveHTML5Op.isSplite = b; this.m_defaultSaveHTML5Op.dpiValue = a; -}; +} +; Report.prototype.setSaveDirectExcelOption = function(e, g, k, a, d, i, c, b, j, f, l, h) { this.m_saveDirectExcelOp = { mergeCell: true }; this.m_saveDirectExcelOp.fileName = e; this.m_saveDirectExcelOp.exportMethod = "" + g; - if (g) { + if (null != g) { this.m_saveDirectExcelOp.mergeCell = k; } this.m_saveDirectExcelOp.mergeEmptyCell = a; @@ -4231,7 +5079,8 @@ Report.prototype.setSaveDirectExcelOption = function(e, g, k, a, d, i, c, b, j, this.m_saveDirectExcelOp.printingMagnification = l; h = null == h ? false : h; this.m_saveDirectExcelOp.fitToPageWhenPrinting = h; -}; +} +; Report.prototype.setSaveDirectPDFOption = function(f, d, c, e, a, b) { this.m_saveDirectPDFOp = {}; this.m_saveDirectPDFOp.fileName = f; @@ -4240,7 +5089,8 @@ Report.prototype.setSaveDirectPDFOption = function(f, d, c, e, a, b) { this.m_saveDirectPDFOp.userpw = e; this.m_saveDirectPDFOp.textToImage = a; this.m_saveDirectPDFOp.importOriginImage = b; -}; +} +; Report.prototype.setSaveDirectHWPOption = function(e, f, g, l, c, j, i, b, m, k, h, d, a) { this.m_saveDirectHWPOp = { tableSplitMethod: 2, @@ -4251,38 +5101,44 @@ Report.prototype.setSaveDirectHWPOption = function(e, f, g, l, c, j, i, b, m, k, this.m_saveDirectHWPOp.allowOverlay = g; this.m_saveDirectHWPOp.setPageBottomMarginToZero = l; this.m_saveDirectHWPOp.outputLikeWord = c; - if (c) { + if (null != c) { this.m_saveDirectHWPOp.tableSplitMethod = j; } this.m_saveDirectHWPOp.defaultCharGap = i; this.m_saveDirectHWPOp.charRatio = b; this.m_saveDirectHWPOp.putCheckboxIntoCell = m; this.m_saveDirectHWPOp.splitTextByLine = k; - if (h) { + if (null != h) { this.m_saveDirectHWPOp.mergeTable = h; } else { this.m_saveDirectHWPOp.mergeTable = false; } - if (d) { + if (null != d) { this.m_saveDirectHWPOp.lineSpaceRate = d; } - if (a) { + if (null != a) { this.m_saveDirectHWPOp.positionRelTo = a; } -}; -Report.prototype.setSaveDirectDOCOption = function(h, g, d, b, e, f, a, c) { +} +; +Report.prototype.setSaveDirectDOCOption = function(e, h, c, d, b, i, j, f, g, a) { this.m_saveDirectDOCOp = { type: "doc" }; - this.m_saveDirectDOCOp.fileName = h; - this.m_saveDirectDOCOp.splitTextLine = g; - this.m_saveDirectDOCOp.processAsUnicode = d; - this.m_saveDirectDOCOp.processEqualAlign = b; - this.m_saveDirectDOCOp.defaultCharSpace = e; - this.m_saveDirectDOCOp.tableWrapperBottomGap = f; - this.m_saveDirectDOCOp.insertTableWrapper = a; - this.m_saveDirectDOCOp.mergeTable = c; -}; + this.m_saveDirectDOCOp.fileName = e; + this.m_saveDirectDOCOp.splitTextLine = h; + this.m_saveDirectDOCOp.processAsUnicode = c; + this.m_saveDirectDOCOp.processEqualAlign = d; + this.m_saveDirectDOCOp.defaultCharSpace = b; + this.m_saveDirectDOCOp.tableWrapperBottomGap = i; + this.m_saveDirectDOCOp.insertTableWrapper = j; + this.m_saveDirectDOCOp.mergeTable = f; + g = (null == g) ? false : g; + a = (null == a) ? 1 : a; + this.m_saveDirectDOCOp.fitShapeToText = g; + this.m_saveDirectDOCOp.TableRowHeightSort = a; +} +; Report.prototype.setSaveOptionVisible = function(b, a) { b = b.toLowerCase(); if ("excel" == b) { @@ -4317,6 +5173,10 @@ Report.prototype.setSaveOptionVisible = function(b, a) { } else { if ("jpg" == b) { this.saveOptionVisible.jpg = a; + } else { + if ("txt" == b) { + this.saveOptionVisible.txt = a; + } } } } @@ -4331,7 +5191,8 @@ Report.prototype.setSaveOptionVisible = function(b, a) { if (!a) { this.changeDefaultSaveOption(); } -}; +} +; Report.prototype.changeDefaultSaveOption = function() { if (this.saveOptionVisible.excel) { this.defaultSaveOption = "excel"; @@ -4362,6 +5223,10 @@ Report.prototype.changeDefaultSaveOption = function() { } else { if (this.saveOptionVisible.hancell) { this.defaultSaveOption = "hancell"; + } else { + if (this.saveOptionVisible.txt) { + this.defaultSaveOption = "txt"; + } } } } @@ -4371,44 +5236,54 @@ Report.prototype.changeDefaultSaveOption = function() { } } } -}; +} +; Report.prototype.setLimitedPrint = function(a) { this.m_limitedPrint = a; -}; +} +; Report.prototype.setDirectPrint = function(a) { this.m_directPrint = a; -}; +} +; Report.prototype.setPageCountTime = function(a) { this.m_pageCountTime = a; -}; +} +; Report.prototype.setDPI = function(a) { this.m_DPI = a; -}; +} +; Report.prototype.setProgress = function(c, a, b) { this.m_progress.URL = c; this.m_progress.x = a; this.m_progress.y = b; -}; +} +; Report.prototype.setPrintProgress = function(c, a, b) { this.m_printprogress.URL = c; this.m_printprogress.x = a; this.m_printprogress.y = b; -}; +} +; Report.prototype.setHWPProgress = function(c, a, b) { this.m_hwpprogress.URL = c; this.m_hwpprogress.x = a; this.m_hwpprogress.y = b; -}; +} +; Report.prototype.setEXCELProgress = function(c, a, b) { this.m_excelprogress.URL = c; this.m_excelprogress.x = a; this.m_excelprogress.y = b; -}; +} +; Report.prototype.setSAVEProgress = function(c, a, b) { this.m_saveprogress.URL = c; this.m_saveprogress.x = a; this.m_saveprogress.y = b; -}; +} +; Report.prototype.nextPage = function() { this.debugMeg("report log :: 다음 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { @@ -4420,7 +5295,8 @@ Report.prototype.nextPage = function() { } this.selectPage((this.beforePageIndex + 1)); } -}; +} +; Report.prototype.previousPage = function() { this.debugMeg("report log :: 이전 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { @@ -4432,7 +5308,8 @@ Report.prototype.previousPage = function() { } this.selectPage((this.beforePageIndex - 1)); } -}; +} +; Report.prototype.firstPage = function() { this.debugMeg("report log :: 첫 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { @@ -4444,7 +5321,8 @@ Report.prototype.firstPage = function() { } this.selectPage(0); } -}; +} +; Report.prototype.lastPage = function() { this.debugMeg("report log :: 마지막 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { @@ -4456,7 +5334,8 @@ Report.prototype.lastPage = function() { } this.selectPage(this.m_pageCount - 1); } -}; +} +; Report.prototype.exportView = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startSaveButton != null) { @@ -4469,7 +5348,8 @@ Report.prototype.exportView = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.printMobileView = function() { if (this.m_isEndReport) { if (null != this.m_limitedPrint && this.m_pageCount > this.m_limitedPrint) { @@ -4480,14 +5360,16 @@ Report.prototype.printMobileView = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.printWindowView = function() { if (this.m_isEndReport && !this.m_disControl.print) { this.reportCheckSend(4); } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.printView = function() { if (this.m_isEndReport && !this.m_disControl.print) { if (null != this.m_limitedPrint && this.checkPrintCount() > this.m_limitedPrint) { @@ -4498,7 +5380,8 @@ Report.prototype.printView = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.printHWPView = function() { if (this.m_isEndReport && !this.m_disControl.print) { if (null != this.m_limitedPrint && this.checkPrintCount() > this.m_limitedPrint) { @@ -4509,7 +5392,8 @@ Report.prototype.printHWPView = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.printEXEView = function() { if (this.m_isEndReport && is_window && !this.m_disControl.print) { if (null != this.m_limitedPrint && this.checkPrintCount() > this.m_limitedPrint) { @@ -4520,7 +5404,8 @@ Report.prototype.printEXEView = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.printHTMLView = function() { if (this.m_isEndReport && !this.m_disControl.print) { if (!is_chrome) { @@ -4534,7 +5419,8 @@ Report.prototype.printHTMLView = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.pdfDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startPDFButton != null) { @@ -4548,11 +5434,13 @@ Report.prototype.pdfDownLoad = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.htmlDownLoad = function() { if (this.fileDownLoding) { return; } + var a = this; this.fileDownLoding = true; if (this.m_isEndReport) { this.formTag_clipid.value = "R06"; @@ -4565,8 +5453,11 @@ Report.prototype.htmlDownLoad = function() { } else { mRe_ReportEventHandler(10); } - window.setTimeout("m_Re_fileDownInteval('" + this.m_uid + "')", 2000); -}; + window.setTimeout(function() { + a.fileDownLoding = false; + }, 2000); +} +; Report.prototype.hwpDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startHWPButton != null) { @@ -4580,7 +5471,8 @@ Report.prototype.hwpDownLoad = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.excelDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startExcelButton != null) { @@ -4594,7 +5486,8 @@ Report.prototype.excelDownLoad = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.docDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startDOCButton != null) { @@ -4608,7 +5501,8 @@ Report.prototype.docDownLoad = function() { } else { mRe_ReportEventHandler(10); } -}; +} +; Report.prototype.closeReport = function() { if (this.m_buttonEvent.startCloseButton != null) { var a = this.m_buttonEvent.startCloseButton(); @@ -4630,175 +5524,185 @@ Report.prototype.closeReport = function() { this.m_isCloseFunction(); } m_reportHashMap[this.m_uid] = null; -}; +} +; Report.prototype.setStyle = function(b, a) { switch (b) { - case "menu": - if (null != this.menuDiv && (typeof this.menuDiv !== "string")) { - this.menuDiv.style.cssText = a; - } else { - this.menuDiv = a; + case "menu": + if (null != this.menuDiv && (typeof this.menuDiv !== "string")) { + this.menuDiv.style.cssText = a; + } else { + this.menuDiv = a; + } + break; + case "main": + if (null != this.paintDiv && (typeof this.paintDiv !== "string")) { + this.paintDiv.style.cssText = a; + } else { + this.paintDiv = a; + } + break; + case "prev_button": + if (null != this.prev_button && (typeof this.prev_button !== "string")) { + this.prev_button.style.cssText = a; + } else { + this.prev_button = a; + } + break; + case "next_button": + if (null != this.next_button && (typeof this.next_button !== "string")) { + this.next_button.style.cssText = a; + } else { + this.next_button = a; + } + break; + case "firstPage_button": + if (null != this.first_button && (typeof this.first_button !== "string")) { + this.first_button.style.cssText = a; + } else { + this.first_button = a; + } + break; + case "lastPage_button": + if (null != this.last_button && (typeof this.last_button !== "string")) { + this.last_button.style.cssText = a; + } else { + this.last_button = a; + } + break; + case "save_button": + if (null != this.save_button && (typeof this.save_button !== "string")) { + this.save_button.style.cssText = a; + } else { + this.save_button = a; + } + break; + case "print_button": + if (null != this.print_button && (typeof this.print_button !== "string")) { + this.print_button.style.cssText = a; + } else { + this.print_button = a; + } + break; + case "close_button": + if (null != this.close_button && (typeof this.close_button !== "string")) { + this.close_button.style.cssText = a; + } else { + this.close_button = a; + } + break; + case "pdf_button": + if (null != this.pdf_button && (typeof this.pdf_button !== "string")) { + this.pdf_button.style.cssText = a; + } else { + this.pdf_button = a; + } + break; + case "hwp_button": + if (null != this.hwp_button && (typeof this.hwp_button !== "string")) { + this.hwp_button.style.cssText = a; + } else { + this.hwp_button = a; + } + break; + case "doc_button": + if (null != this.doc_button && (typeof this.doc_button !== "string")) { + this.doc_button.style.cssText = a; + } else { + this.doc_button = a; + } + break; + case "excel_button": + if (null != this.excel_button && (typeof this.excel_button !== "string")) { + this.excel_button.style.cssText = a; + } else { + this.excel_button = a; + } + break; + case "reportInfo_button": + if (null != this.reportInfo_button && (typeof this.reportInfo_button !== "string")) { + this.reportInfo_button.style.cssText = a; + } else { + this.reportInfo_button = a; + } + break; + case "zoomIn": + if (null != this.zoomCombo && (typeof this.zoomCombo !== "string")) { + this.zoomCombo.style.cssText = a; + } else { + this.zoomCombo = a; + } + break; + case "input_box": + if (null != this.input && (typeof this.input !== "string")) { + this.input.style.cssText = a; + } else { + this.input = a; + } + break; + case "totalCount_box": + if (null != this.totalCountSpan && (typeof this.totalCountSpan !== "string")) { + this.totalCountSpan.style.cssText = a; + if (null != this.totalCountText) { + this.totalCountText.style.cssText = a; } - break; - case "main": - if (null != this.paintDiv && (typeof this.paintDiv !== "string")) { - this.paintDiv.style.cssText = a; - } else { - this.paintDiv = a; - } - break; - case "prev_button": - if (null != this.prev_button && (typeof this.prev_button !== "string")) { - this.prev_button.style.cssText = a; - } else { - this.prev_button = a; - } - break; - case "next_button": - if (null != this.next_button && (typeof this.next_button !== "string")) { - this.next_button.style.cssText = a; - } else { - this.next_button = a; - } - break; - case "firstPage_button": - if (null != this.first_button && (typeof this.first_button !== "string")) { - this.first_button.style.cssText = a; - } else { - this.first_button = a; - } - break; - case "lastPage_button": - if (null != this.last_button && (typeof this.last_button !== "string")) { - this.last_button.style.cssText = a; - } else { - this.last_button = a; - } - break; - case "save_button": - if (null != this.save_button && (typeof this.save_button !== "string")) { - this.save_button.style.cssText = a; - } else { - this.save_button = a; - } - break; - case "print_button": - if (null != this.print_button && (typeof this.print_button !== "string")) { - this.print_button.style.cssText = a; - } else { - this.print_button = a; - } - break; - case "close_button": - if (null != this.close_button && (typeof this.close_button !== "string")) { - this.close_button.style.cssText = a; - } else { - this.close_button = a; - } - break; - case "pdf_button": - if (null != this.pdf_button && (typeof this.pdf_button !== "string")) { - this.pdf_button.style.cssText = a; - } else { - this.pdf_button = a; - } - break; - case "hwp_button": - if (null != this.hwp_button && (typeof this.hwp_button !== "string")) { - this.hwp_button.style.cssText = a; - } else { - this.hwp_button = a; - } - break; - case "doc_button": - if (null != this.doc_button && (typeof this.doc_button !== "string")) { - this.doc_button.style.cssText = a; - } else { - this.doc_button = a; - } - break; - case "excel_button": - if (null != this.excel_button && (typeof this.excel_button !== "string")) { - this.excel_button.style.cssText = a; - } else { - this.excel_button = a; - } - break; - case "reportInfo_button": - if (null != this.reportInfo_button && (typeof this.reportInfo_button !== "string")) { - this.reportInfo_button.style.cssText = a; - } else { - this.reportInfo_button = a; - } - break; - case "zoomIn": - if (null != this.zoomCombo && (typeof this.zoomCombo !== "string")) { - this.zoomCombo.style.cssText = a; - } else { - this.zoomCombo = a; - } - break; - case "input_box": - if (null != this.input && (typeof this.input !== "string")) { - this.input.style.cssText = a; - } else { - this.input = a; - } - break; - case "totalCount_box": - if (null != this.totalCountSpan && (typeof this.totalCountSpan !== "string")) { - this.totalCountSpan.style.cssText = a; - if (null != this.totalCountText) { - this.totalCountText.style.cssText = a; - } - } else { - this.totalCountSpan = a; - } - break; + } else { + this.totalCountSpan = a; + } + break; } -}; +} +; Report.prototype.setVisibleMenu = function(a) { this.m_isMenu = a; -}; +} +; Report.prototype.setFadeView = function(a) { this.m_isFadeView = a; -}; +} +; Report.prototype.setIsBigData = function(a) { this.m_isBigData = a; -}; +} +; Report.prototype.setIsMemoryDump = function(a) { this.m_isMemoryDump = a; -}; +} +; Report.prototype.reSize = function() { if (this.zoomCombo != null) { this.zoomIn(this.zoomCombo); } -}; +} +; Report.prototype.setDefaultRatio = function(a) { switch (a.toLowerCase()) { - case "50%": - case "75%": - case "100%": - case "125%": - case "150%": - case "200%": - case "300%": - case "400%": - case "pagewidth": - case "wholepage": - this.m_ratio = a; - break; - default: - this.m_ratio = "100%"; + case "50%": + case "75%": + case "100%": + case "125%": + case "150%": + case "200%": + case "300%": + case "400%": + case "pagewidth": + case "wholepage": + this.m_ratio = a; + break; + default: + this.m_ratio = "100%"; } -}; +} +; Report.prototype.setHWPPrint = function(a) { this.m_isHWPPrint = a; -}; +} +; Report.prototype.setDisplayTotalPageCount = function(a, b) { this.m_TPC.before = a; this.m_TPC.after = b; -}; +} +; Report.prototype.saveExportView = function() { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); @@ -4864,6 +5768,11 @@ Report.prototype.saveExportView = function() { a.push((this.defaultSaveOption == "jpg" ? "selected" : "")); a.push(">" + this.m_languageMap.jpg_save + "(*.jpg)"); } + if (this.saveOptionVisible.txt) { + a.push(""); + } a.push(""); a.push(""); a.push(""); @@ -4935,6 +5844,10 @@ Report.prototype.saveExportView = function() { if (this.saveOptionVisible.jpg && this.defaultSaveOption == "jpg") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption(); this.makeJPGSaveOptionWindow(); + } else { + if (this.saveOptionVisible.txt && this.defaultSaveOption == "txt") { + this.m_saveInfo_view.child_option.json_data = null; + } } } } @@ -4945,7 +5858,8 @@ Report.prototype.saveExportView = function() { } } } -}; +} +; Report.prototype.saveExportFileInfo = function() { if (null != this.m_saveInfo_view) { if (this.saveViewValidationCheck()) { @@ -4954,7 +5868,8 @@ Report.prototype.saveExportFileInfo = function() { this.mRe_closeReportSaveInfo(); } } -}; +} +; Report.prototype.makeExportSaveOption = function() { var b = this.m_saveInfo_view; var a = {}; @@ -4979,7 +5894,8 @@ Report.prototype.makeExportSaveOption = function() { this.m_saveInfo_view.json_data = a; b = null; a = null; -}; +} +; Report.prototype.submitSaveOption = function() { this.debugMeg("report log :: 파일 저장 시작.."); this.createSAVEProgress(); @@ -4987,7 +5903,11 @@ Report.prototype.submitSaveOption = function() { this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = this.m_uid; this.saveFormTag.path.value = this.clientPath; - this.saveFormTag.option.value = JSON.stringify(this.m_saveInfo_view.json_data); + if (null != this.m_saveInfo_view.json_data) { + this.saveFormTag.option.value = JSON.stringify(this.m_saveInfo_view.json_data); + } else { + this.saveFormTag.option.value = ""; + } this.saveFormTag.filename.value = this.m_saveInfo_view.json_data.name; this.saveFormTag.filetype.value = this.m_saveInfo_view.json_data.exportType; this.debugMeg("report log :: 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag)); @@ -5015,7 +5935,8 @@ Report.prototype.submitSaveOption = function() { } }, 1000); } -}; +} +; Report.prototype.saveViewValidationCheck = function() { var c = this.m_saveInfo_view; var d = c.fileNameDom.value; @@ -5043,7 +5964,8 @@ Report.prototype.saveViewValidationCheck = function() { } c = null; return true; -}; +} +; Report.prototype.mRe_setViewDomInfo = function(b) { this.m_saveInfo_view = {}; this.m_saveInfo_view.child_option = {}; @@ -5069,7 +5991,8 @@ Report.prototype.mRe_setViewDomInfo = function(b) { c.endInDom = a; a = null; c = null; -}; +} +; Report.prototype.mRe_disabledViewDomInfo = function(b) { var a = this.m_saveInfo_view; a.cancelButtonDom.disabled = b; @@ -5081,50 +6004,53 @@ Report.prototype.mRe_disabledViewDomInfo = function(b) { a.check3Dom.disabled = b; a.startInDom.disabled = b; a.endInDom.disabled = b; -}; +} +; Report.prototype.mRe_editOptionInfo = function() { this.mRe_disabledViewDomInfo(true); this.editOptionInfo(this.m_saveInfo_view.fileTypeDom.value); -}; +} +; Report.prototype.editOptionInfo = function(a) { this.m_editOp = true; var b = Number(a); switch (b) { - case 1: - this.mRe_disabledExcelViewDomInfo(false); - break; - case 2: - this.mRe_disabledPDFViewDomInfo(false); - break; - case 3: - this.mRe_disabledHWPViewDomInfo(false); - break; - case 4: - this.mRe_disabledRTFViewDomInfo(false); - break; - case 5: - this.mRe_disabledPPTViewDomInfo(false); - break; - case 6: - this.mRe_disabledHTMLViewDomInfo(false); - break; - case 7: - this.mRe_disabledExcelViewDomInfo(false); - break; - case 8: - this.mRe_disabledHTML5ViewDomInfo(false); - break; - case 9: - this.mRe_disabledRTFViewDomInfo(false); - break; - case 10: - this.mRe_disabledExcelViewDomInfo(false); - break; - case 11: - this.mRe_disabledJPGViewDomInfo(false); - break; + case 1: + this.mRe_disabledExcelViewDomInfo(false); + break; + case 2: + this.mRe_disabledPDFViewDomInfo(false); + break; + case 3: + this.mRe_disabledHWPViewDomInfo(false); + break; + case 4: + this.mRe_disabledRTFViewDomInfo(false); + break; + case 5: + this.mRe_disabledPPTViewDomInfo(false); + break; + case 6: + this.mRe_disabledHTMLViewDomInfo(false); + break; + case 7: + this.mRe_disabledExcelViewDomInfo(false); + break; + case 8: + this.mRe_disabledHTML5ViewDomInfo(false); + break; + case 9: + this.mRe_disabledRTFViewDomInfo(false); + break; + case 10: + this.mRe_disabledExcelViewDomInfo(false); + break; + case 11: + this.mRe_disabledJPGViewDomInfo(false); + break; } -}; +} +; Report.prototype.mRe_selectSaveRange = function(a) { if (this.m_saveInfo_view.check1Dom.disabled) { return; @@ -5144,7 +6070,8 @@ Report.prototype.mRe_selectSaveRange = function(a) { this.m_saveInfo_view.endInDom.disabled = false; } } -}; +} +; Report.prototype.mRe_selectExportType = function(a) { var d = Number(a.value); var c = this.m_saveInfo_view.child_option; @@ -5156,53 +6083,57 @@ Report.prototype.mRe_selectExportType = function(a) { c = this.m_saveInfo_view.child_option; b.disabled = false; switch (d) { - case 1: - c.json_data = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls"); - this.makeExcelSaveOptionWindow(); - break; - case 2: - c.json_data = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption(); - mRe_setPDFFileList(c.json_data, this.splitPDFFileNames); - this.makePDFSaveOptionWindow(); - break; - case 3: - c.json_data = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption(); - this.makeHWPSaveOptionWindow(); - break; - case 4: - c.json_data = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf"); - this.makeRTFSaveOptionWindow(); - break; - case 5: - c.json_data = this.m_defaultSavePPTOp != null ? this.m_defaultSavePPTOp : mRe_getDefaultSavePPTOption(); - this.makePPTSaveOptionWindow(); - break; - case 6: - c.json_data = this.m_defaultSaveHTMLOp != null ? this.m_defaultSaveHTMLOp : mRe_getDefaultSaveHTMLOption(); - this.makeHTMLSaveOptionWindow(); - break; - case 7: - c.json_data = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell"); - this.makeExcelSaveOptionWindow(); - break; - case 8: - c.json_data = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option(); - this.makeHTML5SaveOptionWindow(); - break; - case 9: - c.json_data = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc"); - this.makeRTFSaveOptionWindow(); - break; - case 10: - c.json_data = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx"); - this.makeExcelSaveOptionWindow(); - break; - case 11: - c.json_data = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption(); - this.makeJPGSaveOptionWindow(); - break; + case 1: + c.json_data = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls"); + this.makeExcelSaveOptionWindow(); + break; + case 2: + c.json_data = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption(); + mRe_setPDFFileList(c.json_data, this.splitPDFFileNames); + this.makePDFSaveOptionWindow(); + break; + case 3: + c.json_data = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption(); + this.makeHWPSaveOptionWindow(); + break; + case 4: + c.json_data = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf"); + this.makeRTFSaveOptionWindow(); + break; + case 5: + c.json_data = this.m_defaultSavePPTOp != null ? this.m_defaultSavePPTOp : mRe_getDefaultSavePPTOption(); + this.makePPTSaveOptionWindow(); + break; + case 6: + c.json_data = this.m_defaultSaveHTMLOp != null ? this.m_defaultSaveHTMLOp : mRe_getDefaultSaveHTMLOption(); + this.makeHTMLSaveOptionWindow(); + break; + case 7: + c.json_data = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell"); + this.makeExcelSaveOptionWindow(); + break; + case 8: + c.json_data = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option(); + this.makeHTML5SaveOptionWindow(); + break; + case 9: + c.json_data = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc"); + this.makeRTFSaveOptionWindow(); + break; + case 10: + c.json_data = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx"); + this.makeExcelSaveOptionWindow(); + break; + case 11: + c.json_data = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption(); + this.makeJPGSaveOptionWindow(); + break; + case 12: + c.json_data = null; + break; } -}; +} +; Report.prototype.mRe_closeReportSaveInfo = function() { if (null != this.m_popupViewDiv) { this.targetDiv.removeChild(this.m_popupViewDiv); @@ -5213,7 +6144,8 @@ Report.prototype.mRe_closeReportSaveInfo = function() { if (this.m_buttonEvent.endSaveButton != null) { this.m_buttonEvent.endSaveButton(); } -}; +} +; Report.prototype.makeExcelSaveOptionWindow = function() { this.m_editOp = false; var d = this.m_saveInfo_view.child_option.json_data; @@ -5265,7 +6197,8 @@ Report.prototype.makeExcelSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(c); } this.mRe_setExcelViewDomInfo(c); -}; +} +; Report.prototype.mRe_setExcelViewDomInfo = function(a) { var d = this.m_saveInfo_view.child_option; d.viewDom = a; @@ -5293,7 +6226,8 @@ Report.prototype.mRe_setExcelViewDomInfo = function(a) { b = null; c = null; d = null; -}; +} +; Report.prototype.mRe_disabledExcelViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -5316,18 +6250,21 @@ Report.prototype.mRe_disabledExcelViewDomInfo = function(b) { a.coordinateErrorLimitDom.disabled = b; a.processGerenalFormatDom.disabled = b; a.printingMagnification.disabled = b; -}; +} +; Report.prototype.mRe_cancelExcelOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makeExcelSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_saveExcelOptionInfo = function() { if (this.saveExcelOptionViewValidationCheck()) { this.setExcelOptionValue(); this.mRe_cancelExcelOptionInfo(); } -}; +} +; Report.prototype.saveExcelOptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.widthRateDom.value); @@ -5374,7 +6311,8 @@ Report.prototype.saveExcelOptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.mRe_selectExcelOpCheck = function() { var a = this.m_saveInfo_view.child_option; if (a.mergeCellDom.checked && this.m_editOp) { @@ -5384,7 +6322,8 @@ Report.prototype.mRe_selectExcelOpCheck = function() { a.mergeEmptyCellDom.disabled = true; } a = null; -}; +} +; Report.prototype.setExcelOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -5401,8 +6340,8 @@ Report.prototype.setExcelOptionValue = function() { a.fitToPageWhenPrinting = b.fitToPageWhenPrintingDom.checked; b = null; a = null; -}; - +} +; function mRe_getDefaultSaveExcelOption(a) { var b = null; if (("xls" == a) && (typeof window.getDefaultSaveExcelOption != "undefined")) { @@ -5482,7 +6421,8 @@ Report.prototype.makeHWPSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setHWPViewDomInfo(b); -}; +} +; Report.prototype.mRe_setHWPViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -5502,7 +6442,8 @@ Report.prototype.mRe_setHWPViewDomInfo = function(a) { b.lineSpaceRateDom = document.getElementById("re_hwp11" + this.m_uid); b.positionRelToDom = document.getElementById("re_hwp12" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_selectHWPOpCheck = function() { var a = this.m_saveInfo_view.child_option; if (a.outputLikeWordDom.checked && this.m_editOp) { @@ -5511,7 +6452,8 @@ Report.prototype.mRe_selectHWPOpCheck = function() { a.tableSplitMethodDom.disabled = true; } a = null; -}; +} +; Report.prototype.mRe_selectPositionRelTo = function(a) { var b = this.m_saveInfo_view.child_option; if (a.value == "2") { @@ -5519,7 +6461,8 @@ Report.prototype.mRe_selectPositionRelTo = function(a) { } else { b.allowOverlayDom.disabled = true; } -}; +} +; Report.prototype.mRe_disabledHWPViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -5545,18 +6488,21 @@ Report.prototype.mRe_disabledHWPViewDomInfo = function(b) { a.splitTextByLineDom.disabled = b; a.mergeTableDom.disabled = b; a.lineSpaceRateDom.disabled = b; -}; +} +; Report.prototype.mRe_cancelHWPOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makeHWPSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_saveHWPOptionInfo = function() { if (this.saveHWPOptionViewValidationCheck()) { this.setHWPOptionValue(); this.mRe_cancelHWPOptionInfo(); } -}; +} +; Report.prototype.saveHWPOptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.defaultCharGapDom.value); @@ -5585,7 +6531,8 @@ Report.prototype.saveHWPOptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.setHWPOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -5603,8 +6550,8 @@ Report.prototype.setHWPOptionValue = function() { a.positionRelTo = Number(b.positionRelToDom.value); b = null; a = null; -}; - +} +; function mRe_getDefaultSaveHWPOption() { var a = null; if (typeof window.getDefaultSaveHWPOption != "undefined") { @@ -5646,13 +6593,19 @@ Report.prototype.makeRTFSaveOptionWindow = function() { a.push(""); a.push(""); a.push(""); - a.push("
"); + a.push("
"); a.push("
"); @@ -994,7 +1124,8 @@ Report.prototype.tabletCreateTag = function(b, a) { b.push(""); b.push(""); b.push(""); + b.push(""); b.push(""); b.push(""); b.push("
"); - a.push(""); - a.push(""); - a.push(""); - a.push(""); + a.push(""); + a.push(""); + a.push(""); + a.push(""); + a.push(""); + a.push(""); a.push("
" + this.m_languageMap.defaultCharGap + " : pt
" + this.m_languageMap.mergeTable + "
" + this.m_languageMap.insertTableWrapper + "
" + this.m_languageMap.tableWrapperBottomGap + " : "); - a.push("
" + this.m_languageMap.defaultCharGap + " : pt
" + this.m_languageMap.mergeTable + "
" + this.m_languageMap.fitShapeToText + "
" + this.m_languageMap.insertTableWrapper + "
" + this.m_languageMap.tableWrapperBottomGap + " : "); + a.push("
" + this.m_languageMap.TableRowHeightSort + " : "); + a.push("
"); a.push(""); a.push(""); @@ -5663,7 +6616,8 @@ Report.prototype.makeRTFSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setRTFViewDomInfo(b); -}; +} +; Report.prototype.mRe_setRTFViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -5677,8 +6631,11 @@ Report.prototype.mRe_setRTFViewDomInfo = function(a) { b.tableWrapperBottomGapDom = document.getElementById("re_rtf5" + this.m_uid); b.insertTableWrapperDom = document.getElementById("re_rtf6" + this.m_uid); b.mergeTableDom = document.getElementById("re_rtf7" + this.m_uid); + b.fitShapeToTextDom = document.getElementById("re_rtf8" + this.m_uid); + b.TableRowHeightSortDom = document.getElementById("re_rtf9" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_disabledRTFViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -5697,18 +6654,23 @@ Report.prototype.mRe_disabledRTFViewDomInfo = function(b) { a.tableWrapperBottomGapDom.disabled = b; } a.mergeTableDom.disabled = b; -}; + a.fitShapeToTextDom.disabled = b; + a.TableRowHeightSortDom.disabled = b; +} +; Report.prototype.mRe_cancelRTFOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makeRTFSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_saveRTFOptionInfo = function() { if (this.saveRTFOptionViewValidationCheck()) { this.setRTFOptionValue(); this.mRe_cancelRTFOptionInfo(); } -}; +} +; Report.prototype.saveRTFOptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.defaultCharSpaceDom.value); @@ -5737,7 +6699,8 @@ Report.prototype.saveRTFOptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.setRTFOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -5748,9 +6711,12 @@ Report.prototype.setRTFOptionValue = function() { a.tableWrapperBottomGap = Number(b.tableWrapperBottomGapDom.value); a.insertTableWrapper = b.insertTableWrapperDom.checked; a.mergeTable = b.mergeTableDom.checked; + a.fitShapeToText = b.fitShapeToTextDom.checked; + a.TableRowHeightSort = Number(b.TableRowHeightSortDom.value); b = null; a = null; -}; +} +; Report.prototype.mRe_selectRTFOpCheck = function() { var a = this.m_saveInfo_view.child_option; if (a.insertTableWrapperDom.checked && this.m_editOp) { @@ -5759,8 +6725,8 @@ Report.prototype.mRe_selectRTFOpCheck = function() { a.tableWrapperBottomGapDom.disabled = true; } a = null; -}; - +} +; function mRe_getDefaultSaveRTFOption(a) { var b = null; if (("rtf" == a) && (typeof window.getDefaultSaveRTFOption != "undefined")) { @@ -5779,7 +6745,9 @@ function mRe_getDefaultSaveRTFOption(a) { defaultCharSpace: -0.5, tableWrapperBottomGap: 0, insertTableWrapper: true, - mergeTable: false + mergeTable: false, + fitShapeToText: false, + TableRowHeightSort: 1 }; } } @@ -5823,7 +6791,8 @@ Report.prototype.makeHTMLSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setHTMLViewDomInfo(b); -}; +} +; Report.prototype.mRe_setHTMLViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -5841,7 +6810,8 @@ Report.prototype.mRe_setHTMLViewDomInfo = function(a) { b.coordinateRateForYDom = document.getElementById("re_html9" + this.m_uid); b.encodingTypeDom = document.getElementById("re_html10" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_disabledHTMLViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -5861,18 +6831,21 @@ Report.prototype.mRe_disabledHTMLViewDomInfo = function(b) { a.coordinateRateForXDom.disabled = b; a.coordinateRateForYDom.disabled = b; a.encodingTypeDom.disabled = b; -}; +} +; Report.prototype.mRe_cancelHTMLOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makeHTMLSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_saveHTMLOptionInfo = function() { if (this.saveHTMLOptionViewValidationCheck()) { this.setHTMLOptionValue(); this.mRe_cancelHTMLOptionInfo(); } -}; +} +; Report.prototype.saveHTMLOptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.coordinateRateForXDom.value); @@ -5901,7 +6874,8 @@ Report.prototype.saveHTMLOptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.setHTMLOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -5917,8 +6891,8 @@ Report.prototype.setHTMLOptionValue = function() { a.encodingType = Number(b.encodingTypeDom.value); b = null; a = null; -}; - +} +; function mRe_getDefaultSaveHTMLOption() { var a = null; if (typeof window.getDefaultSaveHTMLOption != "undefined") { @@ -5963,7 +6937,8 @@ Report.prototype.makePDFSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setPDFViewDomInfo(b); -}; +} +; Report.prototype.mRe_setPDFViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -5976,7 +6951,8 @@ Report.prototype.mRe_setPDFViewDomInfo = function(a) { b.textToImageDom = document.getElementById("re_pdf4" + this.m_uid); b.importOriginImageDom = document.getElementById("re_pdf5" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_disabledPDFViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -5993,18 +6969,21 @@ Report.prototype.mRe_disabledPDFViewDomInfo = function(b) { a.userpwDom.disabled = b; a.textToImageDom.disabled = b; a.importOriginImageDom.disabled = b; -}; +} +; Report.prototype.mRe_cancelPDFOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makePDFSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_savePDFOptionInfo = function() { if (this.savePDFOptionViewValidationCheck()) { this.setPDFOptionValue(); this.mRe_cancelPDFOptionInfo(); } -}; +} +; Report.prototype.savePDFOptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.spliteValueDom.value); @@ -6015,7 +6994,8 @@ Report.prototype.savePDFOptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.setPDFOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -6026,7 +7006,8 @@ Report.prototype.setPDFOptionValue = function() { a.importOriginImage = b.importOriginImageDom.checked; b = null; a = null; -}; +} +; Report.prototype.mRe_selectPDFOpCheck = function() { var a = this.m_saveInfo_view.child_option; if (a.isSpliteDom.checked && this.m_editOp) { @@ -6035,8 +7016,8 @@ Report.prototype.mRe_selectPDFOpCheck = function() { a.spliteValueDom.disabled = true; } a = null; -}; - +} +; function mRe_getDefaultSavePDFOption() { var a = null; if (typeof window.getDefaultSavePDFOption != "undefined") { @@ -6054,7 +7035,6 @@ function mRe_getDefaultSavePDFOption() { } return a; } - function mRe_setPDFFileList(d, b) { if (null != b) { d.fileNames = new Array(); @@ -6085,7 +7065,8 @@ Report.prototype.makeHTML5SaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setHTML5ViewDomInfo(b); -}; +} +; Report.prototype.mRe_setHTML5ViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -6095,7 +7076,8 @@ Report.prototype.mRe_setHTML5ViewDomInfo = function(a) { b.isSpliteDom = document.getElementById("re_html51" + this.m_uid); b.DPIDom = document.getElementById("re_html52" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_disabledHTML5ViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -6107,18 +7089,21 @@ Report.prototype.mRe_disabledHTML5ViewDomInfo = function(b) { } a.isSpliteDom.disabled = b; a.DPIDom.disabled = b; -}; +} +; Report.prototype.mRe_cancelHTML5OptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makeHTML5SaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_saveHTML5OptionInfo = function() { if (this.saveHTML5OptionViewValidationCheck()) { this.setHTML5OptionValue(); this.mRe_cancelHTML5OptionInfo(); } -}; +} +; Report.prototype.saveHTML5OptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.DPIDom.value); @@ -6129,7 +7114,8 @@ Report.prototype.saveHTML5OptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.setHTML5OptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -6137,8 +7123,8 @@ Report.prototype.setHTML5OptionValue = function() { a.dpiValue = Number(b.DPIDom.value); b = null; a = null; -}; - +} +; function mRe_getDefaultSaveHTML5Option() { var a = null; if (typeof window.getDefaultSaveHTML5Option != "undefined") { @@ -6174,7 +7160,8 @@ Report.prototype.makeJPGSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setJPGViewDomInfo(b); -}; +} +; Report.prototype.mRe_setJPGViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -6186,7 +7173,8 @@ Report.prototype.mRe_setJPGViewDomInfo = function(a) { b.dpiYDom = document.getElementById("re_jpg3" + this.m_uid); b.qualityDom = document.getElementById("re_jpg4" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_disabledJPGViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -6200,18 +7188,21 @@ Report.prototype.mRe_disabledJPGViewDomInfo = function(b) { a.dpiXDom.disabled = b; a.dpiYDom.disabled = b; a.qualityDom.disabled = b; -}; +} +; Report.prototype.mRe_cancelJPGOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makeJPGSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_saveJPGOptionInfo = function() { if (this.saveJPGOptionViewValidationCheck()) { this.setJPGOptionValue(); this.mRe_cancelJPGOptionInfo(); } -}; +} +; Report.prototype.saveJPGOptionViewValidationCheck = function() { var b = this.m_saveInfo_view.child_option; var a = Number(b.qualityDom.value); @@ -6222,7 +7213,8 @@ Report.prototype.saveJPGOptionViewValidationCheck = function() { } b = null; return true; -}; +} +; Report.prototype.setJPGOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -6232,8 +7224,8 @@ Report.prototype.setJPGOptionValue = function() { a.quality = Number(b.qualityDom.value); b = null; a = null; -}; - +} +; function mRe_getDefaultSaveJPGOption() { var a = null; if (typeof window.getDefaultSaveJPGOption != "undefined") { @@ -6269,7 +7261,8 @@ Report.prototype.makePPTSaveOptionWindow = function() { this.m_popupViewDiv.appendChild(b); } this.mRe_setPPTViewDomInfo(b); -}; +} +; Report.prototype.mRe_setPPTViewDomInfo = function(a) { var b = this.m_saveInfo_view.child_option; b.viewDom = a; @@ -6279,7 +7272,8 @@ Report.prototype.mRe_setPPTViewDomInfo = function(a) { b.mergeTableDom = document.getElementById("re_ppt1" + this.m_uid); b.ignoreLineSpaceDom = document.getElementById("re_ppt2" + this.m_uid); b = null; -}; +} +; Report.prototype.mRe_disabledPPTViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { @@ -6291,16 +7285,19 @@ Report.prototype.mRe_disabledPPTViewDomInfo = function(b) { } a.mergeTableDom.disabled = b; a.ignoreLineSpaceDom.disabled = b; -}; +} +; Report.prototype.mRe_cancelPPTOptionInfo = function() { this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom); this.makePPTSaveOptionWindow(); this.mRe_disabledViewDomInfo(false); -}; +} +; Report.prototype.mRe_savePPTOptionInfo = function() { this.setPPTOptionValue(); this.mRe_cancelPPTOptionInfo(); -}; +} +; Report.prototype.setPPTOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; @@ -6308,8 +7305,8 @@ Report.prototype.setPPTOptionValue = function() { a.ignoreLineSpace = b.ignoreLineSpaceDom.checked; b = null; a = null; -}; - +} +; function mRe_getDefaultSavePPTOption() { var a = null; if (typeof window.getDefaultSavePPTOption != "undefined") { @@ -6322,44 +7319,43 @@ function mRe_getDefaultSavePPTOption() { } return a; } - function mRe_exprotFileName(b) { var a = ""; a += b.name; switch (b.exportType) { - case 1: - a += ".xls"; - break; - case 7: - a += ".cell"; - break; - case 2: - a += ".pdf"; - break; - case 3: - a += ".hwp"; - break; - case 4: - a += ".rtf"; - break; - case 5: - a += ".ppt"; - break; - case 6: - a += ".html"; - break; - case 8: - a += ".html"; - break; - case 9: - a += ".doc"; - break; - case 10: - a += ".xlsx"; - break; - case 11: - a += ".jpg"; - break; + case 1: + a += ".xls"; + break; + case 7: + a += ".cell"; + break; + case 2: + a += ".pdf"; + break; + case 3: + a += ".hwp"; + break; + case 4: + a += ".rtf"; + break; + case 5: + a += ".ppt"; + break; + case 6: + a += ".html"; + break; + case 8: + a += ".html"; + break; + case 9: + a += ".doc"; + break; + case 10: + a += ".xlsx"; + break; + case 11: + a += ".jpg"; + break; } return a; } @@ -6455,7 +7451,8 @@ Report.prototype.selectPrintView = function() { if (this.printOptionValue.localStorage != "0") { this.mRe_selectPrintOption(this.printOptionValue.localStorage); } -}; +} +; Report.prototype.mRe_setPrintViewDomInfo = function(b) { this.printOptionValue.domList = {}; var c = {}; @@ -6474,7 +7471,8 @@ Report.prototype.mRe_setPrintViewDomInfo = function(b) { c.netSpan3Dom = document.getElementById("re_printType10" + a); c.printRangeDom = document.getElementById("re_printType11" + a); this.printOptionValue.domList = c; -}; +} +; Report.prototype.selectPrintLoader = function() { var a = this.printOptionValue.domList.printTypeDom.value; if (a == "pdf") { @@ -6492,7 +7490,8 @@ Report.prototype.selectPrintLoader = function() { } } } -}; +} +; Report.prototype.mRe_selectPrintOption = function(a) { if (a == "pdf" || a == "html" || a == "hwp") { this.printOptionValue.domList.viewDom.style.height = ""; @@ -6515,7 +7514,8 @@ Report.prototype.mRe_selectPrintOption = function(a) { this.printOptionValue.domList.printRangeDom.style.display = "block"; } } -}; +} +; Report.prototype.mRe_selectPrintRange = function(b) { var a = this.printOptionValue.domList; if (a.check1Dom.disabled) { @@ -6536,7 +7536,8 @@ Report.prototype.mRe_selectPrintRange = function(b) { a.endInDom.disabled = false; } } -}; +} +; Report.prototype.printViewValidationCheck = function() { var c = this.printOptionValue.domList; if (c.check3Dom.checked) { @@ -6556,7 +7557,8 @@ Report.prototype.printViewValidationCheck = function() { } c = null; return true; -}; +} +; Report.prototype.makePrintOption = function() { var a = this.printOptionValue.domList; if (a.check1Dom.checked) { @@ -6571,7 +7573,8 @@ Report.prototype.makePrintOption = function() { this.printOptionValue.endNum = Number(a.endInDom.value); } } -}; +} +; Report.prototype.mRe_printExportInfo = function() { if (this.printViewValidationCheck()) { this.makePrintOption(); @@ -6579,12 +7582,14 @@ Report.prototype.mRe_printExportInfo = function() { this.m_popupViewDiv = null; this.selectPrintLoader(); } -}; +} +; Report.prototype.mRe_closeReportPrintInfo = function() { this.targetDiv.removeChild(this.m_popupViewDiv); this.m_popupViewDiv = null; this.disabledMenu(false); -}; +} +; Report.prototype.checkPrintJsonOption = function() { var a = this.printOptionValue.domList; if (null != a) { @@ -6592,10 +7597,12 @@ Report.prototype.checkPrintJsonOption = function() { } else { return '{"startNum":1,"endNum":' + this.m_pageCount + "}"; } -}; +} +; Report.prototype.printOpReset = function() { this.printOptionValue.domList = null; -}; +} +; Report.prototype.printIEExportView = function() { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); @@ -6633,28 +7640,34 @@ Report.prototype.printIEExportView = function() { } this.m_printInfo_view = b; a = null; -}; +} +; Report.prototype.mRe_printFilePDF = function() { this.closePrintInfoWindow(); - this.next_pdfDownLoad(); this.disabledMenu(false); -}; + this.printOpReset(); + this.reportCheckSend(1); +} +; Report.prototype.mRe_closePrintFilePDF = function() { this.closePrintInfoWindow(); this.disabledMenu(false); -}; +} +; Report.prototype.mRe_printIEWindow = function() { this.closePrintInfoWindow(); this.disabledMenu(false); this.printIEWindow(); -}; +} +; Report.prototype.closePrintInfoWindow = function() { if (null != this.m_printInfo_view) { this.targetDiv.removeChild(this.m_popupViewDiv); this.m_popupViewDiv = null; this.m_printInfo_view = null; } -}; +} +; Report.prototype.printNotExportView = function() { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); @@ -6692,7 +7705,8 @@ Report.prototype.printNotExportView = function() { } this.m_printInfo_view = b; a = null; -}; +} +; Report.prototype.printFirefoxExportView = function() { if (this.m_directPrint) { this.mRe_printPopFilePDF(); @@ -6720,26 +7734,57 @@ Report.prototype.printFirefoxExportView = function() { } this.m_printInfo_view = b; a = null; -}; +} +; Report.prototype.mRe_printPopFilePDF = function() { this.closePrintInfoWindow(); this.disabledMenu(false); + if (this.m_directPrint && is_safari) { + this.formTag_clipid.value = "R08"; + this.formTag_uid.value = this.m_uid; + this.formTag_print.value = "print"; + this.formTag_printImage.value = this.isPDFPrintImage; + this.formTag_path.value = this.clientPath; + this.formTag_option.value = this.checkPrintJsonOption(); + this.formTag_ChromeFitToPage.value = this.isChromePrintFitToPage; + this.formTag_s_time.value = new Date().getTime(); + if (null == this.formTag) { + var b = document.createElement("form"); + this.targetDiv.appendChild(b); + b.appendChild(this.formTag_clipid); + b.appendChild(this.formTag_uid); + b.appendChild(this.formTag_print); + b.appendChild(this.formTag_printImage); + b.appendChild(this.formTag_path); + b.appendChild(this.formTag_option); + b.appendChild(this.formTag_ChromeFitToPage); + b.appendChild(this.formTag_s_time); + b.style.display = "none"; + b.encoding = "application/x-www-form-urlencoded"; + b.method = "post"; + this.formTag = b; + } + this.formTag.action = this.servletPath; + this.formTag.target = "report_SubWindow"; + this.formTag.submit(); + return; + } if (-1 != this.servletPath.indexOf("?")) { var a = new Date().getTime(); - var b = this.servletPath + "&"; - b += "ClipID=R08"; - b += "&fileName=report.pdf"; - b += "&isPDFPrintImage=" + this.isPDFPrintImage; - b += "&optionValue=" + this.checkPrintJsonOption(); - b += "&path=" + this.clientPath; - b += "&print=print"; - b += "&isChromePrintFitToPage=" + this.isChromePrintFitToPage; - b += "&uid=" + this.m_uid; - b += "&s_time=" + a; + var c = this.servletPath + "&"; + c += "ClipID=R08"; + c += "&fileName=report.pdf"; + c += "&isPDFPrintImage=" + this.isPDFPrintImage; + c += "&optionValue=" + this.checkPrintJsonOption(); + c += "&path=" + this.clientPath; + c += "&print=print"; + c += "&isChromePrintFitToPage=" + this.isChromePrintFitToPage; + c += "&uid=" + this.m_uid; + c += "&s_time=" + a; if (this.m_firefoxPrint.isPopup) { - window.open(b, "", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width); + window.open(c, "", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width); } else { - window.open(b, "_blank"); + window.open(c, "_blank"); } } else { this.formTag_clipid.value = "R08"; @@ -6750,6 +7795,22 @@ Report.prototype.mRe_printPopFilePDF = function() { this.formTag_option.value = this.checkPrintJsonOption(); this.formTag_ChromeFitToPage.value = this.isChromePrintFitToPage; this.formTag_s_time.value = new Date().getTime(); + if (null == this.formTag) { + var b = document.createElement("form"); + this.targetDiv.appendChild(b); + b.appendChild(this.formTag_clipid); + b.appendChild(this.formTag_uid); + b.appendChild(this.formTag_print); + b.appendChild(this.formTag_printImage); + b.appendChild(this.formTag_path); + b.appendChild(this.formTag_option); + b.appendChild(this.formTag_ChromeFitToPage); + b.appendChild(this.formTag_s_time); + b.style.display = "none"; + b.encoding = "application/x-www-form-urlencoded"; + b.method = "post"; + this.formTag = b; + } this.formTag.action = this.servletPath; if (this.m_firefoxPrint.isPopup) { window.open("", "report_SubWindow", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width); @@ -6759,7 +7820,8 @@ Report.prototype.mRe_printPopFilePDF = function() { } this.formTag.submit(); } -}; +} +; Report.prototype.printEdgeExportView = function() { if (this.m_directPrint) { this.mRe_printPopFilePDF(); @@ -6785,7 +7847,8 @@ Report.prototype.printEdgeExportView = function() { this.m_popupViewDiv.appendChild(b); this.m_printInfo_view = b; a = null; -}; +} +; Report.prototype.mRe_printEdgePopFilePDF = function() { this.closePrintInfoWindow(); this.disabledMenu(false); @@ -6828,7 +7891,8 @@ Report.prototype.mRe_printEdgePopFilePDF = function() { } } f = null; -}; +} +; Report.prototype.printLimitedExportView = function(c) { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); @@ -6866,31 +7930,37 @@ Report.prototype.printLimitedExportView = function(c) { } this.m_printInfo_view = b; a = null; -}; +} +; Report.prototype.mRe_closePrinting = function() { this.closePrintInfoWindow(); this.disabledMenu(false); -}; +} +; Report.prototype.mRe_IgnorePrinting = function() { this.closePrintInfoWindow(); this.mRe_printView(); this.disabledMenu(false); -}; +} +; Report.prototype.mRe_IgnoreHTMLPrinting = function() { this.closePrintInfoWindow(); this.mRe_printHTMLView(); this.disabledMenu(false); -}; +} +; Report.prototype.mRe_IgnoreHWPPrinting = function() { this.closePrintInfoWindow(); this.mRe_printHWPView(); this.disabledMenu(false); -}; +} +; Report.prototype.mRe_IgnoreEXEPrinting = function() { this.closePrintInfoWindow(); this.mRe_printEXEView(); this.disabledMenu(false); -}; +} +; Report.prototype.printHtmlPopupCheckExportView = function() { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); @@ -6917,7 +7987,8 @@ Report.prototype.printHtmlPopupCheckExportView = function() { } this.m_printInfo_view = b; a = null; -}; +} +; Report.prototype.mRe_htmlPopupCheck = function() { var a = document.getElementById("htmlPopupCheck" + this.m_uid); if (null != a) { @@ -6927,8 +7998,8 @@ Report.prototype.mRe_htmlPopupCheck = function() { } this.mRe_closePrinting(); this.checkPrintHTMLView(); -}; - +} +; function getPrintFrame(a) { var b = new Array(); b.push(''); @@ -7070,7 +8141,6 @@ function getPrintFrame(a) { b.push(""); return b.join(""); } - function getPDFPrintFrame() { var a = new Array(); a.push(''); @@ -7080,7 +8150,12 @@ function getPDFPrintFrame() { a.push("print"); a.push('