var agt = navigator.userAgent.toLowerCase(); is_major = parseInt(navigator.appVersion); is_minor = parseFloat(navigator.appVersion); is_moz = ((agt.indexOf("mozilla") != -1) && (agt.indexOf("spoofer") == -1) && (agt.indexOf("compatible") == -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("webtv") == -1) && (agt.indexOf("hotjava") == -1)); is_moz2 = (is_moz && (is_major == 2)); is_moz3 = (is_moz && (is_major == 3)); is_moz4 = (is_moz && (is_major == 4)); is_gecko = (agt.indexOf("gecko") != -1); is_firefox = (agt.indexOf("firefox") != -1); is_nav2 = is_moz2; is_nav3 = is_moz3; is_nav4 = is_moz4; is_nav4up = (is_nav4 || ((is_major >= 4) && (agt.indexOf("netscape") != -1))); is_nav = (is_nav2 || is_nav3 || is_nav4); is_mozilla = (is_moz && is_gecko); is_mozilla1 = (is_moz && is_gecko && (agt.indexOf("rv:1") != -1)); is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); is_ieVersion = 0; is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.") != -1)); if (is_ie6) { is_ieVersion = 6; } is_ie7 = (is_ie && (is_major == 4) && (agt.indexOf("msie 7.") != -1)); if (is_ie7) { is_ie6 = false; is_ieVersion = 7; } is_ie8 = (is_ie && (is_major == 4) && (agt.indexOf("msie 8.") != -1)); if (is_ie8) { is_ie6 = false; is_ie7 = false; is_ieVersion = 8; } is_ie9 = (is_ie && (is_major == 5) && (agt.indexOf("msie 9.") != -1)); if (is_ie9) { is_ie6 = false; is_ie7 = false; is_ie8 = false; is_ieVersion = 9; } is_ie10 = (is_ie && (is_major == 5) && (agt.indexOf("msie 10.") != -1)); if (is_ie10) { is_ie6 = false; is_ie7 = false; is_ie8 = false; is_ie9 = false; is_ieVersion = 10; } is_ie11 = (is_gecko && !is_firefox && (is_major == 5) && (agt.indexOf("rv:11.") != -1)); if (is_ie11) { is_ie6 = false; is_ie7 = false; is_ie8 = false; is_ie9 = false; is_ie10 = false; is_ie = true; is_ieVersion = 11; } is_window = (agt.indexOf("windows") != -1); is_chrome = !is_ie && (agt.indexOf("chrome") != -1) ? true : false; is_edge = is_chrome && (agt.indexOf("edge") != -1); is_opera = is_chrome && (agt.indexOf("opr/") != -1); is_safari = (agt.indexOf("safari") != -1 && !is_chrome); is_window_safari = (is_safari && agt.indexOf("windows") != -1); 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 || 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); is_android_mobile = (is_android && agt.indexOf("mobile") != -1); is_android_tablet = (is_android && !is_android_mobile); is_samsung_browser = (is_android && (agt.indexOf("samsungbrowser") != -1)); is_mobile = (is_iphone || is_android_mobile); is_tablet = (is_ipad || is_android_tablet); is_smartphone = false; is_smartphone = (is_iphone || is_opera_mini || is_ipad || is_android); is_svg = true; if (typeof window.SVGAElement == "undefined") { is_svg = false; if (!is_ie6 && !is_ie7 && !is_ie8) { is_ie7 = true; } is_ie = true; is_ie9 = false; is_ie10 = false; is_ie11 = false; is_ieVersion = 7; } else { if (is_ie7 || is_ie8) { 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 { return new ActiveXObject(f); } catch (g) {} }; var b = function(f) { for (key in navigator.plugins) { var g = navigator.plugins[key]; if (g.name == f) { return g; } } }; var c = function() { return this.plugin = this.plugin || function() { if (is_ie || is_ie11) { return e("AcroPDF.PDF") || e("PDF.PdfCtrl"); } else { return b("Chromium PDF Viewer") || b("Chrome PDF Viewer") || b("Adobe Acrobat") || b("WebKit built-in PDF"); } }(); }; var d = function() { return !!c(); }; var a = function() { try { var h = c(); if (is_ie || is_ie11) { var f = h.GetVersions().split(","); var g = f[0].split("="); return parseFloat(g[1]); } if (h.version) { return parseInt(h.version); } return h.name; } catch (i) { return null; } }; return { acrobat: d() ? true : false, acrobatVersion: a() }; }; 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(); if (null != b) { this.m_objHttpRequest = b; } } catch (a) { try { var b = new ActiveXObject("Msxml2.XMLHTTP"); if (null != b) { this.m_objHttpRequest = b; } } catch (a) { try { var b = new ActiveXObject("Microsoft.XMLHTTP"); if (null != b) { this.m_objHttpRequest = b; } } catch (a) { throw new Error("HttpRequest not supported"); } } } } HttpClient.prototype.send = function(e, b, c, d) { if (c) { this.m_objHttpRequest.onreadystatechange = d; } else { this.m_objHttpRequest.onreadystatechange = null; } var a = ""; if (-1 != e.indexOf("?")) { a = e + "&" + b; this.m_objHttpRequest.open("GET", a, c); this.m_objHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); this.m_objHttpRequest.send(); } else { this.m_objHttpRequest.open("POST", e, c); this.m_objHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); this.m_objHttpRequest.send(b); } if (!c) { if (4 == this.m_objHttpRequest.readyState) { if (200 == this.m_objHttpRequest.status) { return this.m_objHttpRequest.responseText; } else { throw new Error(this.m_objHttpRequest.status); } } 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); return a; } function createJSPReport(c, d, b, e) { if (null == e) { mRe_ReportEventHandler(20); } 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); a.m_reportKey = d; return a; } function Report(d, f, b, e, g) { this.servletPath = d; this.beforePageIndex = 0; this.checkCountLoop = null; this.oof = e; this.userJsp = f; this.postData = b; this.m_reportKey = null; this.targetDiv = g; this.input = null; this.paintDiv = null; this.signPaintDiv = null; this.m_tempPaintDiv = null; this.menuDiv = null; this.doodleDiv = null; this.totalCountSpan = null; this.totalCountText = null; this.progressImg = null; this.zoomCombo = null; this.next_button = null; this.prev_button = null; this.first_button = null; this.last_button = null; this.save_button = null; this.print_button = null; this.pdf_button = null; this.hwp_button = null; this.doc_button = null; this.excel_button = null; this.reportInfo_button = null; this.close_button = null; this.hwp_object = null; this.m_uid = null; this.m_pageCount = 0; this.m_isEndReport = false; this.m_isEndReportEvent = true; this.pageWidth = null; this.pageHeight = null; this.m_language = 0; this.m_languageMap = null; this.fileDownLoding = false; this.formTag = null; this.formTag_clipid = null; this.formTag_uid = null; this.formTag_print = null; this.formTag_path = null; this.formTag_option = null; this.formTag_ChromeFitToPage = null; this.formTag_s_time = null; this.fileDownloadCheckTimer = null; this.saveFormTag = { form: null, clipid: null, uid: null, option: null }; this.deleteImgTag = null; this.m_isMenu = true; this.m_isBigData = false; this.m_isMemoryDump = false; this.m_isEncode = false; this.m_isCrossDomain = false; this.m_isFadeView = false; this.m_isSlidePage = false; this.m_isButtonLock = false; this.m_printDisplay = { pdf: true, html: true, hwp: true, exe: false }; this.m_isHWPPrint = false; 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; this.m_progress = { URL: "", x: 0, y: 0 }; this.m_printprogress = { URL: "", x: 0, y: 0, domDiv: null }; this.m_hwpprogress = { URL: "", x: 0, y: 0, domDiv: null }; this.m_excelprogress = { URL: "", x: 0, y: 0, domDiv: null }; this.m_saveprogress = { URL: "", x: 0, y: 0, domDiv: null }; this.m_endreportprogress = { is_visible: false, URL: "", x: 0, y: 0, domDiv: null }; this.m_endPrintProgressEvent = null; this.saveOptionVisible = { excel: true, excelx: true, pdf: true, hwp: true, rtf: true, ppt: true, html: false, hancell: true, html5: true, doc: true, jpg: false, txt: false }; this.adobe9Permission = false; this.adobeMessage = { is_message: false, message: "" }; this.defaultSaveOption = typeof window.getDefaultSaveOption != "undefined" ? getDefaultSaveOption() : "excel"; this.m_defaultSaveExcelOp = null; this.m_defaultSaveExcelxOp = null; this.m_defaultSavePDFOp = null; this.m_defaultSaveHWPOp = null; this.m_defaultSaveRTFOp = null; this.m_defaultSavePPTOp = null; this.m_defaultSaveHTMLOp = null; this.m_defaultSaveHanCellOp = null; this.m_defaultSaveHTML5Op = null; this.m_defaultSaveDOCOp = null; this.m_defaultSaveJPGOp = null; this.m_saveDirectPDFOp = null; this.m_saveDirectHWPOp = null; this.m_saveDirectDOCOp = null; this.m_saveDirectExcelOp = null; this.printOptionValue = { isNetPrint: false, localStorage: mRe_getLocalStorage("mRe_print_report"), pageCount: 1, startNum: 0, endNum: 0, netPrintList: [] }; this.splitPDFFileNames = null; var c = location.pathname.lastIndexOf("/"); var a = "/"; if (0 != c) { a = location.pathname.substring(0, c); } this.clientPath = a; this.m_versionInfo = null; this.m_webViewVersionInfo = null; this.m_reportInfo_view = null; this.m_saveInfo_view = null; this.m_printInfo_view = null; this.m_popupViewDiv = null; this.m_limitedPrint = null; this.m_isAccessibility = false; this.m_fileDownLoadServerCheck = true; this.m_buttonEvent = { startSaveButton: null, startPDFButton: null, startExcelButton: null, startHWPButton: null, startDOCButton: null, startPrintButton: null, startCloseButton: null, startFirstButton: null, startPrevButton: null, 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 }; this.m_disControl = { save: false, prev: false, next: false, first: false, last: false, print: false, close: false, pdf: false, hwp: false, excel: false, reportInfo: false, zoomIn: false, input: false, caption: false, doodle: false }; this.m_strFileName = "report"; this.m_isPaintImage = false; this.m_isUseOriginImage = false; this.m_pdfLink = null; this.m_exeLink = null; this.isPDFPrintImage = false; this.m_printPage = { pageWidth: 2100, pageHeight: 2970 }; this.isChromePrintFitToPage = false; this.isEnabledAdobeRead = true; this.m_isMarkAny = false; this.m_isChartToImage = false; this.pESaveButtonVisible = true; this.m_firefoxPrint = { isPopup: true, width: 750, height: 600 }; this.m_mobile = { scrollTop: true }; this.m_pcView = { scrollTop: true }; this.m_scrollEv = { isScrollPaging: false, isBottomEvent: null }; this.m_drilingTop = null; this.m_comboNames = { 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, offsetTop: 0, staticPos: false, staticLeft: null, staticTop: null }; this.m_necessaryCheck = false; this.m_debug = { isDebug: false, isConsole: false, isLock: false, message: null }; this.m_editOp = true; this.is_eForm = false; this.is_eFormData = false; this.eForm_isNecessary = { pageList: null, check: false, is_start: false }; this.eFormData = null; this.eFormCheckImage = null; this.eFormRadioImage = null; this.eFormControlList = null; this.eFormControlGroupList = null; this.eFormDoodleOption = { is_Ds: false, is_eraser: false, zoomIn: 1, tos: null, path: null, pathArray: null, gesture: { isStart: false, pos: null, zoom: 1, line: 0, zoomUp: 1 }, 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", hwp: "HWP", html: "HTML", exe: "EXE" }; this.m_exePrintStatus = { url: "http://127.0.0.1:", port: [22000, 33000, 11000], httpPort: [22000, 33000, 11000], httpsPort: [22443, 33443, 11443], intervalKey: null, disConnectCount: 0, isSet: false, portNumber: null }; this.m_exePrintOption = { isPrintPopup: true, printName: "", tray: "", startNumber: 1, endNumber: -1, copies: 1, option: "" }; this.m_isViewer = true; this.m_TPC = { 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"; if (!this.m_directPrint) { if (this.m_progress.URL == "") { a = "
"; } else { a = "
"; } } 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 == "") { a.setAttribute("class", c); 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:" + 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"); this.m_printprogress.domDiv = a; var c = this.is_eForm ? "eform_progress" : "report_progress"; if (this.m_printprogress.URL == "") { strDiv = "
"; a.setAttribute("class", c); a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; } else { var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; b += "background-position:" + this.m_printprogress.x + " " + this.m_printprogress.y + ";"; b += "background-repeat:no-repeat;background-image:url(" + this.m_printprogress.URL + ");"; a.style.cssText = b; } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); } ; Report.prototype.removePrintProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_printprogress.domDiv); this.m_printprogress.domDiv = null; window.clearInterval(this.fileDownloadCheckTimer); 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"); this.m_hwpprogress.domDiv = a; var c = this.is_eForm ? "eform_progress" : "report_progress"; if (this.m_hwpprogress.URL == "") { strDiv = "
"; a.setAttribute("class", c); a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; } else { var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; b += "background-position:" + this.m_hwpprogress.x + " " + this.m_hwpprogress.y + ";"; b += "background-repeat:no-repeat;background-image:url(" + this.m_hwpprogress.URL + ");"; a.style.cssText = b; } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); } ; Report.prototype.removeHWPProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_hwpprogress.domDiv); this.m_hwpprogress.domDiv = null; window.clearInterval(this.fileDownloadCheckTimer); clearListCookies(this.clientPath); if (this.m_buttonEvent.endHWPButton != null) { this.m_buttonEvent.endHWPButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); } ; Report.prototype.createEXCELProgress = function() { this.disabledMenu(true); var a = document.createElement("div"); this.m_excelprogress.domDiv = a; var c = this.is_eForm ? "eform_progress" : "report_progress"; if (this.m_excelprogress.URL == "") { strDiv = "
"; a.setAttribute("class", c); a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; } else { var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; b += "background-position:" + this.m_excelprogress.x + " " + this.m_excelprogress.y + ";"; b += "background-repeat:no-repeat;background-image:url(" + this.m_excelprogress.URL + ");"; a.style.cssText = b; } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); } ; Report.prototype.removeEXCELProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_excelprogress.domDiv); this.m_excelprogress.domDiv = null; window.clearTimeout(this.fileDownloadCheckTimer); clearListCookies(this.clientPath); if (this.m_buttonEvent.endExcelButton != null) { this.m_buttonEvent.endExcelButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); } ; Report.prototype.createSAVEProgress = function() { this.disabledMenu(true); var b = document.getElementById("re_iframe" + this.m_uid); b.src = "about:blank"; var a = document.createElement("div"); this.m_saveprogress.domDiv = a; var d = this.is_eForm ? "eform_progress" : "report_progress"; if (this.m_saveprogress.URL == "") { a.setAttribute("class", d); a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; } else { var c = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;"; c += "background-position:" + this.m_saveprogress.x + " " + this.m_saveprogress.y + ";"; c += "background-repeat:no-repeat;background-image:url(" + this.m_saveprogress.URL + ");"; a.style.cssText = c; } this.paintDiv.appendChild(a); this.debugMeg("report log :: 리포트 프로그래스 동작...."); } ; Report.prototype.removeSAVEProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_saveprogress.domDiv); this.m_saveprogress.domDiv = null; window.clearInterval(this.fileDownloadCheckTimer); clearListCookies(this.clientPath); if (this.m_buttonEvent.endSaveButton != null) { this.m_buttonEvent.endSaveButton(); } this.debugMeg("report log :: 리포트 프로그래스 종료"); } ; Report.prototype.removePDFProgress = function() { this.disabledMenu(false); this.paintDiv.removeChild(this.m_saveprogress.domDiv); this.m_saveprogress.domDiv = null; window.clearInterval(this.fileDownloadCheckTimer); clearListCookies(this.clientPath); if (this.m_buttonEvent.endPDFButton != null) { 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 == "") { a.setAttribute("class", c); 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:" + 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_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(); } else { if (this.userJsp == null) { this.newReportCreate(this.servletPath, this.oof); } else { this.newReportCreate(this.userJsp, null); } } } ; Report.prototype.debugMeg = function(b, a) { if (this.m_debug.isDebug) { if (this.m_debug.isConsole) { window.console.log(b); } else { this.m_debug.message.push(b); } if (null != a) { this.m_debug.isLock = a; } } } ; Report.prototype.endDebugMeg = function(a) { if (this.m_debug.isDebug) { if (!this.m_debug.isConsole) { if (!a || (this.m_debug.isLock == a)) { alert(this.m_debug.message.join("\n")); this.m_debug.message = new Array(); this.m_debug.isLock = false; } } } } ; Report.prototype.setSlidePage = function(a) { this.m_isSlidePage = a; } ; 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) { 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) { d = c.style.width; f = c.style.height; $(c).css({ width: "0px", height: "0px", opacity: "0" }); } h.push("
"); if (this.is_eForm) { if (this.eForm_isNecessary.is_start) { this.eForm_isNecessary.check = true; } this.eformCreateTag(h, i); } else { if (is_mobile) { this.debugMeg("report log :: 모바일 환경으로 체크됨"); this.mobileCreateTag(h, i); } else { if (is_tablet) { this.debugMeg("report log :: 테블릿 pc 환경으로 체크됨"); this.tabletCreateTag(h, i); } else { this.debugMeg("report log :: 데스트탑 pc 환경으로 체크됨"); this.pcCreateTag(h, i); } } } 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 = h.join(""); c.appendChild(b.firstChild); b = null; } else { c.innerHTML = h.join(""); } this.debugMeg("report log :: 리포트 뷰어 완성...."); this.paintDiv = document.getElementById("re_paintDiv" + i); this.menuDiv = document.getElementById("re_menu" + i); if (this.is_eForm) { this.doodleDiv = document.getElementById("re_doodleDiv" + i); } 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 j = document.getElementById("re_iframe2" + i); var a = j.contentWindow; a.document.write(getPDFPrintFrame()); } if (this.m_isFadeView) { $(c).attr("uid", this.m_uid).animate({ width: d, height: f, opacity: 1 }, 400, function() { $(this).removeAttr("uid"); }); } } ; Report.prototype.pcCreateTag = function(b, a) { var d = is_svg ? "_svg" : "_png"; var c = ""; b.push("
"); b.push("
"); b.push("
"); c = this.m_disControl.save ? "_dis" : ""; b.push(""); c = this.m_disControl.pdf ? "_dis" : ""; b.push(""); c = this.m_disControl.excel ? "_dis" : ""; b.push(""); c = this.m_disControl.hwp ? "_dis" : ""; b.push(""); c = this.m_disControl.doc ? "_dis" : ""; b.push(""); c = this.m_disControl.print ? "_dis" : ""; b.push(""); c = this.m_disControl.first ? "_dis" : ""; b.push(""); c = this.m_disControl.prev ? "_dis" : ""; b.push(""); b.push(""); b.push(""); b.push(""); c = this.m_disControl.next ? "_dis" : ""; b.push(""); c = this.m_disControl.last ? "_dis" : ""; b.push(""); b.push(""); c = this.m_disControl.reportInfo ? "_dis" : ""; b.push(""); c = this.m_disControl.close ? "_dis" : ""; b.push(""); b.push("
"); b.push("
"); b.push("
"); b.push("
"); } else { b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">"); } b.push("
"); } ; Report.prototype.mobileCreateTag = function(b, a) { b.push("
"); b.push("
"); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
"); b.push("
"); b.push("
"); b.push("
"); } else { b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">"); } b.push("
"); } ; Report.prototype.tabletCreateTag = function(b, a) { b.push("
"); b.push("
"); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
"); b.push("
"); b.push("
"); b.push("
"); } else { b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">"); } b.push("
"); } ; Report.prototype.comboOptionCreateTag = function(a) { 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 :: 리포트를 생성하기 위하여 통신 준비중...."); if (a != null) { this.debugMeg("report log :: 사용할 OOF 문서 >>> " + a); if (this.m_isEncode) { a = Base64.encode(a); } j = "isEncoding=" + this.m_isEncode + "&isBigData=" + this.m_isBigData + "&isMemoryDump=" + this.m_isMemoryDump + "&ClipID=R01&oof=" + encodeURIComponent(a); } else { if (this.postData != null) { j = this.postData; } } j = mRe_onBeforeSend(j); this.debugMeg("report log :: 서버 통신 주소 >>> " + f); try { if (this.m_isCrossDomain) { var g = this; if (window.XDomainRequest) { var d = new XDomainRequest(); var b = f + "?" + j; if (d) { d.onload = function() { 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(); } } else { $.ajax({ type: "POST", url: f, crossDomain: true, data: j, success: function(e) { g.resultNewReport(mRe_onAfterSend(e)); }, error: function(e) { g.debugMeg("report log :: 서버 통신 오류 발생 >>> " + e); mRe_ReportEventHandler(40); g.endDebugMeg(false); } }); } } else { var c = new HttpClient(); var i = c.send(f, j, false, null); 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 = objectCall(ClipStrTrim(a)); if (typeof b == "string") { b = objectCall(b); } this.m_versionInfo = b.version; this.debugMeg("report log :: 리포트 서버 버전 >>> " + b.version.build); if (typeof window.report_version != "undefined") { this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> " + report_version); } else { this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> 확인불가"); } if (b.status) { this.m_uid = b.uid; this.debugMeg("report log :: 리포트 실행 및 키 발행 정상"); this.debugMeg("report log :: 리포트 키 >>> " + b.uid); m_reportHashMap[b.uid] = this; this.m_languageMap = mRe_report_language(this.m_language); if (this.m_isViewer) { this.createView(this.targetDiv, b.uid); this.createProgress(); } this.checkPageCount(); if (b.printerList != null && b.printerList.length > 0) { this.printOptionValue.isNetPrint = true; this.printOptionValue.netPrintList = b.printerList; } } else { this.debugMeg("report log :: 리포트 실행 실패"); this.debugMeg("report log :: 리포트 키 >>> " + b.uid); this.m_uid = b.uid; m_reportHashMap[b.uid] = this; this.m_languageMap = mRe_report_language(this.m_language); if (this.m_isViewer) { this.createView(this.targetDiv, b.uid); this.progressImg.style.display = "none"; } if (b.event > 999) { this.debugMeg("report log :: 리포트 라이센스 불일치 >>> LE0" + b.event); if (this.m_isViewer) { this.paintDiv.innerHTML = this.m_languageMap.lic_error + ".!! (errorCode : LE0" + b.event + ")"; } mRe_ReportEventHandler(b.event); this.endDebugMeg(false); } else { 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 + ")"; } mRe_ReportEventHandler(b.event); this.endDebugMeg(false); } else { this.debugMeg("report log :: 리포트 서버에서 리포트 생성중 오류 발생. 서버 로그 확인 필요!!"); if (this.m_isViewer) { this.paintDiv.innerHTML = this.m_languageMap.report_error; } mRe_ReportEventHandler(30); this.endDebugMeg(false); } } } } ; Report.prototype.checkReportCreate = function() { try { var a = this.m_reportKey; var b = objectCall(ClipStrTrim(a)); if (typeof b == "string") { b = objectCall(b); } this.m_versionInfo = b.version; this.debugMeg("report log :: 리포트 서버 버전 >>> " + b.version.build); if (typeof window.report_version != "undefined") { this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> " + report_version); } else { this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> 확인불가"); } if (b.status) { this.debugMeg("report log :: 리포트 실행 및 키 발행 정상"); this.debugMeg("report log :: 리포트 키 >>> " + b.uid); this.m_uid = b.uid; m_reportHashMap[b.uid] = this; this.m_languageMap = mRe_report_language(this.m_language); if (this.m_isViewer) { this.createView(this.targetDiv, b.uid); this.createProgress(); } this.checkPageCount(); if (b.printerList != null && b.printerList.length > 0) { this.printOptionValue.isNetPrint = true; this.printOptionValue.netPrintList = b.printerList; } } else { this.debugMeg("report log :: 리포트 실행 실패"); this.debugMeg("report log :: 리포트 키 >>> " + b.uid); this.m_uid = b.uid; m_reportHashMap[b.uid] = this; this.m_languageMap = mRe_report_language(this.m_language); if (this.m_isViewer) { this.createView(this.targetDiv, b.uid); this.progressImg.style.display = "none"; } if (b.event > 999) { this.debugMeg("report log :: 리포트 라이센스 불일치 >>> LE0" + b.event); if (this.m_isViewer) { this.paintDiv.innerHTML = this.m_languageMap.lic_error + ".!! (errorCode : LE0" + b.event + ")"; } mRe_ReportEventHandler(b.event); this.endDebugMeg(false); } else { 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 + ")"; } mRe_ReportEventHandler(b.event); this.endDebugMeg(false); } else { this.debugMeg("report log :: 리포트 서버에서 리포트 생성중 오류 발생. 서버 로그 확인 필요!!"); if (this.m_isViewer) { this.paintDiv.innerHTML = this.m_languageMap.report_error; } mRe_ReportEventHandler(30); this.endDebugMeg(false); } } } } catch (c) { this.debugMeg("report log :: 웹뷰어 화면을 구성 중 오류 발생 >> " + c.message); 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; } } if (this.m_isSlidePage) { this.m_tempPaintDiv = this.paintDiv; $(this.m_tempPaintDiv).attr("uid", this.m_uid); this.paintDiv = this.m_tempPaintDiv.cloneNode(); if (this.beforePageIndex > a) { this.paintDiv.style.left = "-100%"; $(this.m_tempPaintDiv).attr("next", "right"); } else { this.paintDiv.style.left = "100%"; $(this.m_tempPaintDiv).attr("next", "left"); } 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() { 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("?")) { b = c + "&" + a; } else { b = c + "?" + a; } if (null != this.deleteImgTag) { this.deleteImgTag.src = b; } 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; if (window.XDomainRequest) { var a = new XDomainRequest(); var d = g + "?" + c; if (-1 != g.indexOf("?")) { d = g + "&" + c; } if (a) { a.onload = function() { 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(); } } else { $.ajax({ type: "POST", url: g, crossDomain: true, data: c, success: function(h) { resultPageCountText(mRe_onAfterSend(h)); }, error: function(h) { b.debugMeg("report log :: 서버 통신 오류 발생 >>> " + h); mRe_ReportEventHandler(40); b.endDebugMeg(false); } }); } } else { var f = new HttpClient(); var b = this; f.send(g, c, true, function() { if (4 == this.readyState) { if (200 == this.status) { resultPageCountText(mRe_onAfterSend(this.responseText)); } else { if (b.m_isViewer) { b.paintDiv.innerHTML = b.m_languageMap.link_error; } b.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status); mRe_ReportEventHandler(40); b.endDebugMeg(false); b.pageSlideShow(); throw new Error(this.status); } } }); } } ; Report.prototype.sendData = function(c) { this.debugMeg("report log :: 리포트 화면을 호출합니다. 페이지 번호 >>> " + (c + 1)); this.m_isButtonLock = true; if (this.m_directPrint) { return; } 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; } var j = "true"; if (is_ie6 || is_ie7 || is_ie8) { if (this.m_isPaintImage) { 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; 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); return; } else { this.m_isAccessibility = true; } } var l = "ClipID=R02&pageNumber=" + c + "&uid=" + this.m_uid + "&html5=" + j + "&DPI=" + this.m_DPI + "&Accessibility=" + this.m_isAccessibility + "&UseOriginImage=" + this.m_isUseOriginImage + "&isChartToImage=" + this.m_isChartToImage + "&necessaryCheck=" + this.m_necessaryCheck; 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) { 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); } ; 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); } }); } } 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(); throw new Error(this.status); } } }); } } ; 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"); var i = k.value; var b = k.getAttribute("controlindex"); if ("text" != h) { i = k.checked + ""; if (k.tagName == "SPAN") { var j = k.getAttribute("checkValue"); if (j == "true") { i = "false"; } else { i = "true"; } } } i = encodeURIComponent(Base64.encode(i)); var g = this.m_necessaryCheck; var m = { necessaryPage: g, data: new Array() }; m.data[Number(b)] = {}; m.data[Number(b)].type = h; m.data[Number(b)].controlIndex = b; m.data[Number(b)].value = i; var c = new Date().getTime(); var l = "ClipID=R11&pageNumber=" + this.beforePageIndex + "&uid=" + this.m_uid + "&Accessibility=" + this.m_isAccessibility + "&data=" + JSON.stringify(m) + "&s_time=" + c; 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) { var e = new XDomainRequest(); var a = servletPath + "?" + l; if (e) { e.onload = function() { paintReportText(mRe_onAfterSend(e.responseText)); } ; e.onerror = function() { ReportWebLog("IE8 crossDomain error"); mRe_ReportEventHandler(40); } ; e.open("GET", a); e.send(); } } else { $.ajax({ type: "POST", url: servletPath, crossDomain: true, data: l, success: function(n) { paintReportText(mRe_onAfterSend(n)); }, error: function(n) { ReportWebLog(n); mRe_ReportEventHandler(40); } }); } } else { var f = this; var d = new HttpClient(); d.send(this.servletPath, 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; mRe_ReportEventHandler(40); f.pageSlideShow(); throw new Error(this.status); } } }); } this.createEditableProgress(); k.style.zIndex = "0"; } } ; Report.prototype.webLinkControl = function() { if (arguments.length > 1) { var e = arguments[0]; var b = arguments[1]; var a = document.createElement("form"); document.body.appendChild(a); 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; } if ("self" == b) { a.target = "_self"; } else { if ("blank" == b) { a.target = "_blank"; } else { if ("window" == b) { window.open("", "report_SubWindow1", "height=" + arguments[3] + ",width=" + arguments[2]); a.target = "report_SubWindow1"; } else { a.target = arguments[2]; } } } a.submit(); document.body.removeChild(a); } } ; Report.prototype.drilingControl = function(i) { if (this.m_isButtonLock == false) { var f = this.m_necessaryCheck; var g = { necessaryPage: f, data: new Array() }; g.data[0] = {}; g.data[0].driling = true; g.data[0].value = 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) { var d = new XDomainRequest(); var a = servletPath + "?" + h; if (d) { d.onload = function() { e.resultNewReport(mRe_onAfterSend(d.responseText)); } ; d.onerror = function() { ReportWebLog("IE8 crossDomain error"); mRe_ReportEventHandler(40); } ; d.open("GET", a); d.send(); } } else { $.ajax({ type: "POST", url: servletPath, crossDomain: true, data: h, success: function(j) { paintReportText(mRe_onAfterSend(j)); }, error: function(j) { ReportWebLog(j); mRe_ReportEventHandler(40); } }); } } else { var e = this; var c = new HttpClient(); c.send(this.servletPath, h, true, function() { if (4 == this.readyState) { if (200 == this.status) { paintReportText(mRe_onAfterSend(this.responseText)); } else { e.paintDiv.innerHTML = e.m_languageMap.link_error; mRe_ReportEventHandler(40); e.pageSlideShow(); throw new Error(this.status); } } }); } this.createEditableProgress(); } } ; Report.prototype.editableKeyEvent = function(a, c) { if (c.keyCode == 13) { if (c.ctrlKey) { var d = a.value; if (typeof a.selectionStart == "number" && typeof a.selectionEnd == "number") { var e = a.selectionStart; a.value = d.slice(0, e) + "\n" + d.slice(a.selectionEnd); a.selectionStart = a.selectionEnd = e + 1; } else { if (document.selection && document.selection.createRange) { a.focus(); var b = document.selection.createRange(); b.text = "\r\n"; b.collapse(false); b.select(); } } return; } a.blur(); if (c.preventDefault) { c.preventDefault(); } c.returnValue = false; } } ; Report.prototype.onloadImage = function() { this.zoomIn(this.zoomCombo); } ; Report.prototype.paintReport = function() { if (4 == this.readyState) { if (200 == this.status) { paintReportText(this.responseText); } else { this.paintDiv.innerHTML = this.m_languageMap.link_error; mRe_ReportEventHandler(40); this.pageSlideShow(); throw new Error(this.status); } } } ; Report.prototype.resultDeleteReport = function() { if (4 == this.readyState) { if (200 == this.status) { var a = this.responseText; var b = objectCall(ClipStrTrim(a)); if (typeof b == "string") { b = objectCall(b); } try { if (!b.status) { mRe_ReportEventHandler(50); } } catch (c) { mRe_ReportEventHandler(50); throw new Error(this.status); } } } } ; 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(); if (a != true) { return; } } 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; } } var p = j.value; var o; if (is_ie) { this.paintDiv.firstChild.style.visibility = "hidden"; } if ("PageWidth" == p) { 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) { 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); var m = b / Number(this.pageHeight); o = g > m ? m : g; } else { this.paintDiv.style.overflowX = "auto"; this.paintDiv.style.overflowY = "auto"; o = p; } } this.eFormDoodleOption.zoomIn = Re_zoom.rate = Number(o); if (!is_svg && this.m_isPaintImage) { var n = this.paintDiv.firstChild; if (null != n && "IMG" == n.tagName) { if ("PageWidth" == p) { n.setAttribute("width", "100%"); n.removeAttribute("height"); } else { if ("WholePage" == p) { n.removeAttribute("width"); n.setAttribute("height", "100%"); } else { if (o == 1) { n.removeAttribute("width"); n.removeAttribute("height"); } else { n.setAttribute("width", Number(this.pageWidth) * Number(o)); n.setAttribute("height", Number(this.pageHeight) * Number(o)); } } } } } else { if (this.m_isAccessibility && !this.is_eForm) { var d = this.paintDiv.firstChild; if (null != d) { d.style.zoom = o; if (is_firefox) { var c = this.paintDiv.clientWidth; d.style.MozTransform = "scale(" + o + ")"; d.style.MozTransformOrigin = "0 0 0"; d.style.position = "absolute"; var q = d.clientWidth * Number(o); var f = 0; if (c - q > 0) { f = (c - q) / 2; } d.style.left = f + "px"; } } } else { var k = this.paintDiv.firstChild.firstChild; if (null != k) { k.setAttribute("width", Number(this.pageWidth) * Number(o)); k.setAttribute("height", Number(this.pageHeight) * Number(o)); 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) { window.setTimeout(function() { l.style.visibility = ""; window.setTimeout(function() { l.style.visibility = "visible"; }, 200); }, 200); } } } var h = this.paintDiv.firstChild.nextSibling; if (null != h) { h.style.zoom = o; if (is_firefox) { h.style.MozTransform = "scale(" + o + ")"; h.style.MozTransformOrigin = "0 0 0"; h.style.position = "absolute"; window.m_firefox_Rescale = o; var i = this; if (null == window.onresize) { window.onresize = function() { var r = i.paintDiv.clientWidth; var t = h.clientWidth * Number(m_firefox_Rescale); var s = 0; if (r - t > 0) { s = (r - t) / 2; } h.style.left = s + "px"; } ; } var c = this.paintDiv.clientWidth; var q = h.clientWidth * Number(o); var f = 0; if (c - q > 0) { f = (c - q) / 2; } h.style.left = f + "px"; } } } } if (is_ie) { this.paintDiv.firstChild.style.visibility = "visible"; } } ; Report.prototype.pageScrollEvent = function(a) {} ; Report.prototype.pageMousewheelEvent = function(e) { if (this.m_scrollEv.isScrollPaging) { var d = this.paintDiv; if (null != d) { var a = d.clientHeight; var c = d.scrollHeight; var g = d.scrollTop; var b = d.style.overflowY; if (d.scrollTop == 0) { var f = 0; if (is_firefox) { f = e.deltaY; if (f > 0) { f = -1; } else { if (f < 0) { f = 1; } } } else { f = e.wheelDelta; } if (f > 0) { this.previousPage(); if (e.preventDefault) { e.preventDefault(); } e.returnValue = false; } } if (null != a && null != c && (b == "hidden" || ((a + 10) > c))) { var f = 0; if (is_firefox) { f = e.deltaY; if (f > 0) { f = -1; } else { if (f < 0) { f = 1; } } } else { f = e.wheelDelta; } if (f > 0) { this.previousPage(); } else { if (f < 0) { this.nextPage(); } } if (e.preventDefault) { e.preventDefault(); } e.returnValue = false; } else { if (null != a && null != c && (b == "auto" && ((g + a + 5) > c))) { var f = 0; if (is_firefox) { f = e.deltaY; if (f > 0) { f = -1; } else { if (f < 0) { f = 1; } } } else { f = e.wheelDelta; } if (f < 0) { if (this.m_scrollEv.isBottomEvent == null) { this.m_scrollEv.isBottomEvent = true; } else { if (this.m_scrollEv.isBottomEvent) { this.m_scrollEv.isBottomEvent = null; this.nextPage(); } } if (e.preventDefault) { e.preventDefault(); } e.returnValue = false; } } } } } } ; Report.prototype.pageSlideShow = function() { if (this.m_isSlidePage && null != this.m_tempPaintDiv) { this.m_tempPaintDiv.style.overflow = "hidden"; var b = $(this.m_tempPaintDiv).attr("next"); var a = this; if ("right" == b) { $(this.m_tempPaintDiv).animate({ left: "100%", width: "100%" }, 700, function() { try { a.targetDiv.firstChild.removeChild(this); a.m_tempPaintDiv = null; } catch (c) {} }); } else { $(this.m_tempPaintDiv).animate({ left: "-100%", width: "100%" }, 700, function() { try { a.targetDiv.firstChild.removeChild(this); a.m_tempPaintDiv = null; } catch (c) {} }); } $(this.paintDiv).animate({ left: "0%", width: "100%", opacity: 1 }, 700, function() { 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; } if (!this.m_disControl.print && null != this.print_button) { this.print_button.disabled = a; } if (!this.m_disControl.input && null != this.input) { this.input.disabled = a; } if (!this.m_disControl.caption && null != this.totalCountText) { this.totalCountText.disabled = a; } if (!this.m_disControl.zoomIn && null != this.zoomCombo) { this.zoomCombo.disabled = a; } if (!this.m_disControl.first && null != this.first_button) { this.first_button.disabled = a; } if (!this.m_disControl.prev && null != this.prev_button) { this.prev_button.disabled = a; } if (!this.m_disControl.next && null != this.next_button) { this.next_button.disabled = a; } if (!this.m_disControl.last && null != this.last_button) { this.last_button.disabled = a; } if (!this.m_disControl.pdf && null != this.pdf_button) { this.pdf_button.disabled = a; } if (!this.m_disControl.excel && null != this.excel_button) { this.excel_button.disabled = a; } if (!this.m_disControl.hwp && null != this.hwp_button) { this.hwp_button.disabled = a; } if (!this.m_disControl.doc && null != this.doc_button) { this.doc_button.disabled = 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"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var a = document.createElement("div"); a.className = "report_view_box report_info_view_position"; var b = new Array(); b.push("
"); b.push(""); b.push("
"); b.push(this.m_languageMap.version + " : " + this.m_languageMap.clipReport + " 4.0(" + this.m_versionInfo.build + ")
"); if (typeof window.report_version != "undefined") { b.push(this.m_languageMap.webversion + " : " + report_version + "
"); } else { b.push(this.m_languageMap.webversion + " : unknown
"); } b.push(this.m_languageMap.build + " : " + this.m_versionInfo.day); b.push("
"); b.push("
"); b.push("Copyright (C) 2011 CLIPSOFT Co., Ltd. All Rights Reserved.
"); b.push("http://www.clipsoft.co.kr

"); b.push(this.m_languageMap.report_info_text); b.push("
"); b.push("" + this.m_languageMap.report_info + ""); b.push(""); a.innerHTML = b.join(""); b = null; this.m_reportInfo_view = a; 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; } if (this.m_pageCount > this.m_limitedPrint) { this.printLimitedExportView("html"); return; } this.mRe_printHTMLView(); } ; Report.prototype.mRe_printHTMLView = function() { this.createPrintProgress(); var c = 1; var a = this.m_pageCount; if (this.printOptionValue.domList != null) { c = this.printOptionValue.startNum; a = this.printOptionValue.endNum; } try { printOp = { type: (is_ie6 || is_ie7 || is_ie8) ? 0 : 1, option: { startNum: c, endNum: a }, url: this.servletPath, uid: this.m_uid, dpi: is_ie ? 159 : 96, firefox: is_firefox }; var b = document.getElementById("re_iframe3" + this.m_uid); var f = b.contentWindow; f.document.write(getPrintFrame(this.m_printPage)); f.bodyPaint(printOp, this); } catch (d) { 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 c = document.createElement("div"); c.innerHTML = mRe_HWPFrame_Object(); this.hwp_object = c.firstChild; this.targetDiv.appendChild(this.hwp_object); c = null; } var b = ""; if (-1 != this.servletPath.indexOf("?")) { b = servletPath + "&"; } else { b = this.servletPath + "?"; } 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 { this.formTag_clipid.value = "R07"; this.formTag_uid.value = this.m_uid; this.formTag_print.value = "print"; this.formTag_path.value = this.clientPath; this.formTag_option.value = this.checkPrintJsonOption(); this.formTag.action = this.servletPath; this.formTag.target = "_blank"; this.formTag.submit(); } } catch (d) { this.removePrintProgress(); mRe_ReportEventHandler(101); } } ; Report.prototype.mRe_printEXEView = function() { this.debugMeg("report log :: EXE Print 인쇄를 시작합니다. >>>>>>>>>>>>>>>"); if (this.m_isViewer) { this.createPrintProgress(); } try { var c = this.servletPath; if (!this.m_exePrintStatus.isSet) { 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 + "&"; } else { d = this.servletPath + "?"; } this.debugMeg("report log :: EXE Print 인쇄하기 위하여 통신 준비중...."); 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(mRe_onAfterSend(q)); this.debugMeg("report log :: 리포트 생성 통신 완료..!"); this.debugMeg("report log :: 쿠키정보 체크 >>> " + q); var h = this; if (typeof window.exe_print_version != "undefined") { this.debugMeg("report log :: exe Print version >>> " + exe_print_version); } else { this.debugMeg("report log :: exe Print version >>> 확인불가"); exe_print_version = "1.0.0.1"; } var o = this.beforePageIndex + 1; var i = { cookie: encodeURIComponent(q), serverPath: encodeURIComponent(c), ClipID: "P01", uid: h.m_uid, version: exe_print_version, currentPage: o, totalPageCount: h.m_pageCount, printSet: h.m_exePrintOption }; var a = "option=" + JSON.stringify(i); this.debugMeg("report log :: 프린트 설정 정보 >>> " + a); this.endDebugMeg(true); this.m_exePrintStatus.disConnectCount = 0; this.m_exePrintStatus.intervalKey = window.setInterval(function() { if (3 == h.m_exePrintStatus.disConnectCount) { window.clearInterval(h.m_exePrintStatus.intervalKey); if (h.m_isViewer) { h.removePrintProgress(); } h.notFoundEXEService(false); mRe_ReportEventHandler(103); } }, 1500); if (window.XDomainRequest) { var n = new XDomainRequest(); if (n) { 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) {} } var m = new XDomainRequest(); if (m) { 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) {} } var l = new XDomainRequest(); if (l) { 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) {} } } else { for (var j = 0; j < this.m_exePrintStatus.port.length; j++) { var p = this.m_exePrintStatus.port[j]; var g = this.m_exePrintStatus.url + p; $.ajax({ type: "POST", url: g, crossDomain: true, data: a, success: function(e) { h.startEXEPrintResponse(e); }, error: function(e) { h.m_exePrintStatus.disConnectCount++; } }); } } } catch (k) { if (this.m_isViewer) { this.removePrintProgress(); } mRe_ReportEventHandler(104); } } ; Report.prototype.mRe_printView = function() { this.createPrintProgress(); if (m_report_printOption.acrobat) { if (is_firefox || is_safari) { this.removePrintProgress(); this.printFirefoxExportView(); } else { if (is_chrome || is_opera) { if ("Chrome PDF Viewer" == m_report_printOption.acrobatVersion || "Chromium PDF Viewer" == m_report_printOption.acrobatVersion) { var a = "({'url':'" + this.servletPath + "','uid':'" + this.m_uid + "','isPDFPrintImage':'" + this.isPDFPrintImage + "','isChromePrintFitToPage':'" + this.isChromePrintFitToPage + "','clientPath':'" + this.clientPath + "','optionValue':"; a += this.checkPrintJsonOption() + "})"; var b = document.getElementById("re_iframe2" + this.m_uid); b.contentWindow.postMessage(a, "*"); } else { this.removePrintProgress(); this.printFirefoxExportView(); } } else { if (is_ie || is_ie11) { if (is_win78_reader9 && this.adobe9Permission) { this.printIEWindow(); } else { if (is_win78_reader9 || is_reader8) { this.removePrintProgress(); if (!this.m_directPrint) { this.printIEExportView(); } mRe_ReportEventHandler(150); } else { this.printIEWindow(); } } } } } } else { if (is_edge) { this.removePrintProgress(); this.printEdgeExportView(); } else { if (is_mozBrowser || is_safari) { this.removePrintProgress(); this.printFirefoxExportView(); } else { this.removePrintProgress(); if (!this.m_directPrint) { this.printNotExportView(); } mRe_ReportEventHandler(100); } } } } ; Report.prototype.printIEWindow = function() { var e = document.getElementById("re_object" + this.m_uid); if (null == e) { var d = document.createElement("div"); d.style.cssText = "postion:absolute;left:0px;top:0px;width:1px;height:1px;border:0px solid transparent"; var c = ""; d.innerHTML = c; if (this.m_directPrint) { document.body.appendChild(d); } else { this.targetDiv.appendChild(d); } e = d.firstChild; } var b = this.servletPath + "?"; if (-1 != this.servletPath.indexOf("?")) { 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=" + 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 :: 다른 파일 저장중입니다..파일 저장을 종료합니다."); this.endDebugMeg(true); return; } this.fileDownLoding = true; var a = this; var b = this.m_uid; this.debugMeg("report log :: PDF 파일 저장 시작.."); if (this.m_isEndReport && is_smartphone) { this.createSAVEProgress(); 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: g, pageType: 1, startNum: 1, endNum: this.m_pageCount, option: { isSplite: false, spliteValue: 1, fileNames: null, userpw: "" } }; var e = JSON.stringify(f); this.saveFormTag.option.value = e; this.saveFormTag.filename.value = f.name; this.saveFormTag.filetype.value = f.exportType; this.debugMeg("report log :: PDF 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag)); if (-1 != this.servletPath.indexOf("?")) { window.open(this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag)); } else { this.saveFormTag.form.action = this.servletPath; this.saveFormTag.form.target = "blank"; this.saveFormTag.form.submit(); } f = null; if (a.m_fileDownLoadServerCheck) { this.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("pdf"); }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { var h = mRe_getReportCookie("fileSaveDownloadToken"); if (h == b) { a.removePDFProgress(); } }, 1000); } } else { if (this.m_isEndReport) { this.createSAVEProgress(); 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: g, pageType: 1, startNum: 1, endNum: this.m_pageCount, 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" == g) { f.name = Base64.encode(d.fileName); } f.option.isSplite = d.isSplite; f.option.spliteValue = d.spliteValue; f.option.userpw = d.userpw; f.option.textToImage = d.textToImage; f.option.importOriginImage = d.importOriginImage; } this.saveFormTag.option.value = JSON.stringify(f); this.saveFormTag.filename.value = f.name; this.saveFormTag.filetype.value = f.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(); } f = null; d = null; if (a.m_fileDownLoadServerCheck) { this.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("pdf"); }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { var h = mRe_getReportCookie("fileSaveDownloadToken"); if (h == b) { a.removePDFProgress(); } }, 1000); } } else { mRe_ReportEventHandler(10); } } 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) { this.createHWPProgress(); 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: f, pageType: 1, startNum: 1, endNum: this.m_pageCount, option: { fixSize: true, allowOverlay: true, setPageBottomMarginToZero: true, outputLikeWord: false, tableSplitMethod: 2, defaultCharGap: -8, charRatio: 100, putCheckboxIntoCell: false, splitTextByLine: true, mergeTable: false, lineSpaceRate: 100, positionRelTo: 1 } }; var d = null; if (this.m_saveDirectHWPOp != null) { d = this.m_saveDirectHWPOp; } else { if ((typeof window.getDirectSaveHWPOption != "undefined")) { d = getDirectSaveHWPOption(); } } if (d != null) { if ("cmVwb3J0" == f) { e.name = Base64.encode(d.fileName); } e.option.fixSize = d.fixSize; e.option.allowOverlay = d.allowOverlay; e.option.setPageBottomMarginToZero = d.setPageBottomMarginToZero; e.option.outputLikeWord = d.outputLikeWord; e.option.tableSplitMethod = d.tableSplitMethod; e.option.defaultCharGap = d.defaultCharGap; e.option.charRatio = d.charRatio; e.option.putCheckboxIntoCell = d.putCheckboxIntoCell; e.option.splitTextByLine = d.splitTextByLine; e.option.mergeTable = d.mergeTable; e.option.lineSpaceRate = d.lineSpaceRate; e.option.positionRelTo = d.positionRelTo; } this.saveFormTag.option.value = JSON.stringify(e); this.saveFormTag.filename.value = e.name; this.saveFormTag.filetype.value = e.exportType; this.debugMeg("report log :: HWP 파일 저장 옵션 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; var a = this; var b = this.m_uid; if (a.m_fileDownLoadServerCheck) { this.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("hwp"); }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { var g = mRe_getReportCookie("fileSaveDownloadToken"); if (g == b) { a.removeHWPProgress(); } }, 1000); } } else { mRe_ReportEventHandler(10); } 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) { this.createHWPProgress(); 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: f, pageType: 1, startNum: 1, endNum: this.m_pageCount, option: { type: "doc", splitTextLine: true, processAsUnicode: true, processEqualAlign: 4, defaultCharSpace: -0.5, tableWrapperBottomGap: 0, insertTableWrapper: true, mergeTable: false } }; var d = null; if (this.m_saveDirectDOCOp != null) { d = this.m_saveDirectDOCOp; } else { if ((typeof window.getDirectSaveDOCOption != "undefined")) { d = getDirectSaveDOCOption(); } } if (d != null) { if ("cmVwb3J0" == f) { e.name = Base64.encode(d.fileName); } e.option.type = d.type; e.option.splitTextLine = d.splitTextLine; e.option.processAsUnicode = d.processAsUnicode; e.option.processEqualAlign = d.processEqualAlign; e.option.defaultCharSpace = d.defaultCharSpace; e.option.tableWrapperBottomGap = d.tableWrapperBottomGap; e.option.insertTableWrapper = d.insertTableWrapper; e.option.mergeTable = d.mergeTable; } this.saveFormTag.option.value = JSON.stringify(e); this.saveFormTag.filename.value = e.name; this.saveFormTag.filetype.value = e.exportType; this.debugMeg("report log :: DOC 파일 저장 옵션 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; var a = this; var b = this.m_uid; if (a.m_fileDownLoadServerCheck) { this.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("hwp"); }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { var g = mRe_getReportCookie("fileSaveDownloadToken"); if (g == b) { a.removeHWPProgress(); } }, 1000); } } else { mRe_ReportEventHandler(10); } 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; this.debugMeg("report log :: EXCEL 파일 저장 시작.."); this.createEXCELProgress(); 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: f, pageType: 1, startNum: 1, endNum: this.m_pageCount, option: { exportMethod: "1", mergeCell: true, mergeEmptyCell: false, splitCellAtPageSize: true, rightToLeft: false, widthRate: 100, heightRate: 100, coordinateErrorLimit: 10, processGerenalFormat: 1, printingMagnification: 100, fitToPageWhenPrinting: false, type: "xls" } }; var d = null; if (this.m_saveDirectExcelOp != null) { d = this.m_saveDirectExcelOp; } else { if ((typeof window.getDirectSaveEXCELOption != "undefined")) { d = getDirectSaveEXCELOption(); } } if (d != null) { if ("cmVwb3J0" == f) { e.name = Base64.encode(d.fileName); } e.option.exportMethod = d.exportMethod; e.option.mergeCell = d.mergeCell; e.option.mergeEmptyCell = d.mergeEmptyCell; e.option.splitCellAtPageSize = d.splitCellAtPageSize; e.option.rightToLeft = d.rightToLeft; e.option.widthRate = d.widthRate; e.option.heightRate = d.heightRate; e.option.coordinateErrorLimit = d.coordinateErrorLimit; e.option.processGerenalFormat = d.processGerenalFormat; e.option.printingMagnification = d.printingMagnification; e.option.fitToPageWhenPrinting = d.fitToPageWhenPrinting; } this.saveFormTag.option.value = JSON.stringify(e); this.saveFormTag.filename.value = e.name; this.saveFormTag.filetype.value = e.exportType; this.debugMeg("report log :: EXCEL 파일 저장 옵션 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; var a = this; var b = this.m_uid; if (a.m_fileDownLoadServerCheck) { this.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("xls"); }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { var g = mRe_getReportCookie("fileSaveDownloadToken"); if (g == b) { a.removeEXCELProgress(); } }, 1000); } } else { mRe_ReportEventHandler(10); } window.setTimeout(function() { a.fileDownLoding = false; }, 2000); } ; Report.prototype.fileCheckSendText = function(a, c) { var d = objectCall(ClipStrTrim(a)); if (typeof d == "string") { d = objectCall(d); } if (d.status) { if ("xls" == c) { this.removeEXCELProgress(); } else { if ("hwp" == c) { this.removeHWPProgress(); } else { if ("save" == c) { this.removeSAVEProgress(); } else { if ("pdf" == c) { this.removePDFProgress(); } else { if ("print" == c) { this.removePrintProgress(); } } } } } this.endDebugMeg(false); } else { var b = this; this.fileDownloadCheckTimer = window.setTimeout(function() { b.fileCheckSend(c); }, 1000); } } ; Report.prototype.fileCheckSendErrorText = function(a) { if ("xls" == a) { this.removeEXCELProgress(); } else { if ("hwp" == a) { this.removeHWPProgress(); } else { if ("save" == a) { this.removeSAVEProgress(); } else { if ("pdf" == a) { this.removePDFProgress(); } else { if ("print" == a) { this.removePrintProgress(); } } } } } } ; 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; if (window.XDomainRequest) { var d = new XDomainRequest(); var a = f + "?" + j; if (-1 != f.indexOf("?")) { a = f + "&" + j; } if (d) { d.onload = function() { g.fileCheckSendText(mRe_onAfterSend(d.responseText), h); } ; d.onerror = function() { ReportWebLog("IE8 crossDomain error"); mRe_ReportEventHandler(40); } ; d.open("GET", a); d.send(); } } else { $.ajax({ type: "POST", url: f, crossDomain: true, data: j, success: function(e) { g.fileCheckSendText(mRe_onAfterSend(e), h); }, error: function(e) { ReportWebLog(e); mRe_ReportEventHandler(40); } }); } } else { var g = this; var c = new HttpClient(); c.send(f, j, true, function() { if (4 == this.readyState) { if (200 == this.status) { g.fileCheckSendText(mRe_onAfterSend(this.responseText), h); } else { g.fileCheckSendErrorText(h); } } }); } } catch (i) {} } ; Report.prototype.reportCheckSendText = function(a, b) { var d = objectCall(ClipStrTrim(a)); if (typeof d == "string") { d = objectCall(d); } if (d.status) { this.debugMeg("report log :: 서버연결 상태 정상...!"); if (0 == b) { this.saveExportView(); } else { if (1 == b) { this.next_pdfDownLoad(); } else { if (2 == b) { this.next_excelDownLoad(); } else { if (3 == b) { this.next_hwpDownLoad(); } else { if (4 == b) { this.selectPrintView(); } else { if (5 == b) { this.next_docDownLoad(); } } } } } } } else { this.debugMeg("report log :: 서버에서 생성된 리포트 파일을 찾을 수 없습니다."); this.debugMeg("report log :: 이중화 서버로 인한 파일을 찾지 못하거나 세션이 종료되어 리포트파일이 삭제된 것 같습니다."); this.endDebugMeg(false); var c = this.m_languageMap.sesstion_error; 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; if (window.XDomainRequest) { var d = new XDomainRequest(); var a = f + "?" + j; if (-1 != f.indexOf("?")) { a = f + "&" + j; } if (d) { d.onload = function() { 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(); } } else { $.ajax({ type: "POST", url: f, crossDomain: true, data: j, success: function(e) { g.reportCheckSendText(mRe_onAfterSend(e), i); }, error: function(e) { ReportWebLog(e); g.debugMeg("report log :: 서버와의 연결상태를 확인합니다...."); g.debugMeg("report log :: 시도한 연결 정보 >>> " + a); g.endDebugMeg(true); mRe_ReportEventHandler(40); } }); } } else { var g = this; var c = new HttpClient(); c.send(f, j, true, function() { if (4 == this.readyState) { if (200 == this.status) { g.reportCheckSendText(mRe_onAfterSend(this.responseText), i); } } }); } } catch (h) { this.debugMeg("report log :: 스크립트 오류 발생...."); 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); if (c.preventDefault) { c.preventDefault(); } c.returnValue = false; } } function CReportPrintPDf(b) { var c = document.getElementById("re_object" + b); if (typeof c.print === "undefined") { setTimeout(function() { CReportPrintPDf(b); }, 1000); } else { var a = m_reportHashMap[b]; if (a.isEnabledAdobeRead) { a.isEnabledAdobeRead = false; if (!a.m_isMarkAny) { c.printWithDialog(); } a.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("print"); }, 1000); } } } 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(";"); for (var e = 0; e < a.length; e++) { var f = a[e]; while (f.charAt(0) == " ") { f = f.substring(1); } if (f.indexOf(b) != -1) { return f.substring(b.length, f.length); } } return ""; } function mRe_closeReportInfo(b) { var a = m_reportHashMap[b]; a.targetDiv.removeChild(a.m_popupViewDiv); a.m_reportInfo_view = null; a.m_popupViewDiv = null; a.disabledMenu(false); } function mRe_ReportEventHandler(a) { if (null != typeof window.ReportEventHandler != "undefined") { ReportEventHandler(a); } else { if (typeof window.console != "undefined") { window.console.log("Report Code : " + a); } } } function mRe_getLocalStorage(a) { if (is_svg) { if (typeof (Storage) !== "undefined") { var b = null; try { if (null != localStorage) { b = localStorage.getItem(a); } } catch (c) { ReportWebLog("Web Storage unavailable!!"); } if (b == null) { return "0"; } return b; } else { return "0"; } } return "0"; } function mRe_setLocalStorage(a, b) { if (is_svg) { if (typeof (Storage) !== "undefined") { try { if (null != localStorage) { localStorage.setItem(a, b); } } catch (c) { ReportWebLog("Web Storage unavailable!!"); } } } } function mRe_HWPFrame_Object() { var a = ""; return a; } function clearListCookies(a) {} function paintReportText(k) { if ("{clip_enc}" == k) { return; } if (0 == k.indexOf('"')) { k = k.substring(1, k.length - 1); } 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 (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 (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 { 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 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 = m; } else { var g = document.createTextNode(m); a.appendChild(g); } 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 (c.m_isEndReport && c.m_isEndReportEvent) { if (c.m_endreportprogress.is_visible) { c.m_endreportprogress.is_visible = false; c.removeEndReportProgress(); } mRe_ReportEventHandler(200); if (c.m_isReportEndFunction != null) { c.m_isReportEndFunction(); } c.m_isEndReportEvent = false; c.debugMeg("report log :: 리포트 뷰어 종료!"); c.endDebugMeg(false); } else { if (!c.m_isEndReport) { if (c.m_endreportprogress.is_visible) { c.createEndReportProgress(); } } } 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 { c.paintDiv.scrollTop = c.m_drilingTop; c.m_drilingTop = null; } 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 { 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 (i.event == 60) { l = c.m_languageMap.sesstion_error; mRe_ReportEventHandler(60); c.debugMeg("report log :: 리포트서버와의 세션 종료!"); } } c.paintDiv.innerHTML = l; c.pageSlideShow(); } } catch (f) { c.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + k); c.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + f.message); c.paintDiv.innerHTML = c.m_languageMap.report_error; mRe_ReportEventHandler(30); c.pageSlideShow(); } if (c.m_pageMoveEvent.end != null) { c.m_pageMoveEvent.end(); } } function resultPageCountText(a) { var d = objectCall(ClipStrTrim(a)); if (typeof d == "string") { d = objectCall(d); } var b = m_reportHashMap[d.uid]; b.debugMeg("report log :: 서버 수신 완료..."); try { if (d.status) { if (b.m_isViewer) { b.totalCountText.value = b.m_TPC.before + d.count + b.m_TPC.after; } if (d.endReport) { b.debugMeg("report log :: 서버에서 리포트 생성은 완료..! "); b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + a); if (d.count > 0) { b.m_isEndReport = true; if (!b.m_isViewer) { b.m_pageCount = d.count; b.m_disControl.print = false; b.printEXEView(); return; } else { if (b.m_directPrint) { b.m_pageCount = d.count; b.m_directPrintOp.endReport = true; return; } } 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 { if (null != d.is_s) { if (d.is_s) { b.debugMeg("report log :: 리포트 생성중 (양호)"); } else { b.debugMeg("report log :: 리포트 생성중 (경고) 서버에서 생성중인 리포트를 세션에서 찾지 못했습니다. 파일 탐색으로 변경되었습니다."); b.debugMeg("report log :: 계속해서 똑같은 결과가 내려온다면 이중화된 서버 가능성이 있습니다."); b.debugMeg("report log :: 리포트를 생성한 서버와 확인작업을 위해 통신으로 접속한 서버가 다를 수 있습니다."); b.debugMeg("report log :: 서버관리자에게 문의 하여 하나의 세션이 생성됐을 때 그 서버만 바라보도록 하거나 리포트 설정 폴더를 물리적으로 같은 폴더로 사용하도록 변경이 필요합니다."); } } else { b.debugMeg("report log :: 리포트 생성중 (양호)"); } b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + a); if (b.m_isViewer) { if (b.m_pageCount == 0 && d.count != 0 && !b.is_eForm) { b.sendData(0); } } b.m_pageCount = d.count; b.checkPageCount(); } } else { var c = b.m_languageMap.report_error; mRe_ReportEventHandler(30); b.debugMeg("report log :: 리포트 생성중 오류 발생(engine) >>> 서버로그 확인 필요!"); if (d.event == 60) { c = b.m_languageMap.sesstion_error; mRe_ReportEventHandler(60); b.debugMeg("report log :: 리포트서버와의 세션 종료!"); } b.endDebugMeg(false); if (b.m_isViewer) { b.progressImg.style.display = "none"; b.paintDiv.innerHTML = c; } } } catch (f) { b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + a); b.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + f.message); if (b.m_isViewer) { b.progressImg.style.display = "none"; b.paintDiv.innerHTML = b.m_languageMap.report_error; } mRe_ReportEventHandler(30); b.endDebugMeg(false); } } function m_getSaveFormTag(a) { var b = a.clipid.name + "=" + a.clipid.value + "&"; b += a.uid.name + "=" + a.uid.value + "&"; b += a.path.name + "=" + escape(a.path.value) + "&"; b += a.option.name + "=" + a.option.value + "&"; b += "is_ie=" + ((!is_firefox) && (!is_safari) && (!is_apple)) + "&"; b += "exportN=" + a.filename.value + "&"; b += "exportType=" + a.filetype.value + "&"; return b; } function ClipStrTrim(a) { return a.replace(/^\s+|\s+$/gm, ""); } 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) { this.createView(this.targetDiv, this.m_uid); this.createProgress(); this.checkPageCount(); } } ; Report.prototype.transFormEFORM = function() { this.is_eForm = true; this.is_eFormData = false; if (this.m_isViewer) { this.createView(this.targetDiv, this.m_uid); 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; this.m_exePrintOption.printName = e; this.m_exePrintOption.tray = c; this.m_exePrintOption.startNumber = f; this.m_exePrintOption.endNumber = a; this.m_exePrintOption.copies = g; this.m_exePrintOption.option = b; this.printEXEView(); } ; 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 = d; this.m_exePrintOption.printName = e; this.m_exePrintOption.tray = c; this.m_exePrintOption.startNumber = f; this.m_exePrintOption.endNumber = a; this.m_exePrintOption.copies = g; this.m_exePrintOption.option = b; this.printEXEDirect(); } ; Report.prototype.setPrintSelectNames = function(b, a) { b = b.toLowerCase(); if ("pdf" == b) { this.printNames.pdf = a; } else { if ("html" == b) { this.printNames.html = a; } else { if ("hwp" == b) { this.printNames.hwp = a; } else { if ("exe" == b) { this.printNames.exe = 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; } } 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 "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 "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 "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 "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 "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 "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; } } ; Report.prototype.setDebug = function(a) { if (a) { this.m_debug.isDebug = a; if (typeof window.console != "undefined") { this.m_debug.isConsole = true; } else { 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 = objectCall(ClipStrTrim(mRe_onAfterSend(c))); if (typeof f == "string") { f = objectCall(f); } if (f.status) { if (f.event == 102) { ReportWebLog("Please check your server logs!"); } return true; } else { this.m_NecessaryPopup(f.list); } } catch (g) { ReportWebLog("report edit Necessary Check server connection error!"); 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.name = a; } if (null != b) { this.m_comboNames.wholepage.name = b; } } ; Report.prototype.saveFileDownLoad = function() { if (this.m_isEndReport) { var f = arguments[0]; var a = arguments[1]; var e = arguments[2]; var d = {}; d.name = Base64.encode(f); if (e == 1) { d.pageType = 1; d.startNum = 1; d.endNum = this.m_pageCount; } else { if (e == 2) { d.pageType = 2; d.startNum = this.beforePageIndex + 1; d.endNum = this.beforePageIndex + 1; } else { d.pageType = 3; var c = 1; var b = this.m_pageCount; if (arguments.length == 5) { if (arguments[4] < arguments[3]) { if (arguments[4] > 0) { c = arguments[4]; } if (arguments[3] <= b) { b = arguments[3]; } } else { if (arguments[3] > 0) { c = arguments[3]; } if (arguments[4] <= b) { b = arguments[4]; } } } d.startNum = c; d.endNum = b; } } 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; } this.m_saveInfo_view = {}; this.m_saveInfo_view.json_data = d; d = null; this.submitSaveOption(); this.m_saveInfo_view = null; this.mRe_closeReportSaveInfo(); } 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; this.m_endreportprogress.URL = d; 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; } 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; } } ; 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; } } ; 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; } } ; 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"); } this.m_defaultSaveExcelOp.exportMethod = "" + f; if (f) { this.m_defaultSaveExcelOp.mergeCell = j; } this.m_defaultSaveExcelOp.mergeEmptyCell = a; this.m_defaultSaveExcelOp.splitCellAtPageSize = d; this.m_defaultSaveExcelOp.rightToLeft = h; this.m_defaultSaveExcelOp.widthRate = c; this.m_defaultSaveExcelOp.heightRate = b; this.m_defaultSaveExcelOp.coordinateErrorLimit = i; this.m_defaultSaveExcelOp.processGerenalFormat = 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"); } this.m_defaultSaveExcelxOp.exportMethod = "" + f; if (f) { this.m_defaultSaveExcelxOp.mergeCell = j; } this.m_defaultSaveExcelxOp.mergeEmptyCell = a; this.m_defaultSaveExcelxOp.splitCellAtPageSize = d; this.m_defaultSaveExcelxOp.rightToLeft = h; this.m_defaultSaveExcelxOp.widthRate = c; this.m_defaultSaveExcelxOp.heightRate = b; this.m_defaultSaveExcelxOp.coordinateErrorLimit = i; this.m_defaultSaveExcelxOp.processGerenalFormat = 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"); } this.m_defaultSaveHanCellOp.exportMethod = "" + f; if (f) { this.m_defaultSaveHanCellOp.mergeCell = j; } this.m_defaultSaveHanCellOp.mergeEmptyCell = a; this.m_defaultSaveHanCellOp.splitCellAtPageSize = d; this.m_defaultSaveHanCellOp.rightToLeft = h; this.m_defaultSaveHanCellOp.widthRate = c; this.m_defaultSaveHanCellOp.heightRate = b; this.m_defaultSaveHanCellOp.coordinateErrorLimit = i; this.m_defaultSaveHanCellOp.processGerenalFormat = e; 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(); } this.m_defaultSavePDFOp.isSplite = d; this.m_defaultSavePDFOp.spliteValue = c; 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(); } this.m_defaultSaveHWPOp.fixSize = e; this.m_defaultSaveHWPOp.allowOverlay = f; this.m_defaultSaveHWPOp.setPageBottomMarginToZero = k; this.m_defaultSaveHWPOp.outputLikeWord = c; if (null != c) { this.m_defaultSaveHWPOp.tableSplitMethod = i; } this.m_defaultSaveHWPOp.defaultCharGap = h; this.m_defaultSaveHWPOp.charRatio = b; if (null != l) { this.m_defaultSaveHWPOp.putCheckboxIntoCell = l; } if (null != j) { this.m_defaultSaveHWPOp.splitTextByLine = j; } if (null != g) { this.m_defaultSaveHWPOp.mergeTable = g; } else { this.m_defaultSaveHWPOp.mergeTable = false; } if (null != d) { this.m_defaultSaveHWPOp.lineSpaceRate = d; } if (null != a) { this.m_defaultSaveHWPOp.positionRelTo = a; } } ; 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 = 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 = 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(); } this.m_defaultSaveJPGOp.rotate90 = b; 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(); } this.m_defaultSaveHTMLOp.processCellLikeShape = j; this.m_defaultSaveHTMLOp.displayPageLine = h; this.m_defaultSaveHTMLOp.keepPageHeight = a; this.m_defaultSaveHTMLOp.applyWordBreak = f; this.m_defaultSaveHTMLOp.setTextProperiesToEmptyCell = d; this.m_defaultSaveHTMLOp.putTagIntoEmptyCell = c; this.m_defaultSaveHTMLOp.textOverflowHidden = e; 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 (null != g) { this.m_saveDirectExcelOp.mergeCell = k; } this.m_saveDirectExcelOp.mergeEmptyCell = a; this.m_saveDirectExcelOp.splitCellAtPageSize = d; this.m_saveDirectExcelOp.rightToLeft = i; this.m_saveDirectExcelOp.widthRate = c; this.m_saveDirectExcelOp.heightRate = b; this.m_saveDirectExcelOp.coordinateErrorLimit = j; this.m_saveDirectExcelOp.processGerenalFormat = f; 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; this.m_saveDirectPDFOp.isSplite = d; this.m_saveDirectPDFOp.spliteValue = c; 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, positionRelTo: 1 }; this.m_saveDirectHWPOp.fileName = e; this.m_saveDirectHWPOp.fixSize = f; this.m_saveDirectHWPOp.allowOverlay = g; this.m_saveDirectHWPOp.setPageBottomMarginToZero = l; this.m_saveDirectHWPOp.outputLikeWord = 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 (null != h) { this.m_saveDirectHWPOp.mergeTable = h; } else { this.m_saveDirectHWPOp.mergeTable = false; } if (null != d) { this.m_saveDirectHWPOp.lineSpaceRate = d; } if (null != a) { this.m_saveDirectHWPOp.positionRelTo = a; } } ; Report.prototype.setSaveDirectDOCOption = function(e, h, c, d, b, i, j, f, g, a) { this.m_saveDirectDOCOp = { type: "doc" }; 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) { this.saveOptionVisible.excel = a; } else { if ("pdf" == b) { this.saveOptionVisible.pdf = a; } else { if ("hwp" == b) { this.saveOptionVisible.hwp = a; } else { if ("rtf" == b) { this.saveOptionVisible.rtf = a; } else { if ("doc" == b) { this.saveOptionVisible.doc = a; } else { if ("ppt" == b) { this.saveOptionVisible.ppt = a; } else { if ("html" == b) { this.saveOptionVisible.html = a; } else { if ("html5" == b) { this.saveOptionVisible.html5 = a; } else { if ("hancell" == b) { this.saveOptionVisible.hancell = a; } else { if ("excelx" == b) { this.saveOptionVisible.excelx = a; } else { if ("jpg" == b) { this.saveOptionVisible.jpg = a; } else { if ("txt" == b) { this.saveOptionVisible.txt = a; } } } } } } } } } } } } if (!a) { this.changeDefaultSaveOption(); } } ; Report.prototype.changeDefaultSaveOption = function() { if (this.saveOptionVisible.excel) { this.defaultSaveOption = "excel"; } if (this.saveOptionVisible.excelx) { this.defaultSaveOption = "excelx"; } else { if (this.saveOptionVisible.pdf) { this.defaultSaveOption = "pdf"; } else { if (this.saveOptionVisible.hwp) { this.defaultSaveOption = "hwp"; } else { if (this.saveOptionVisible.rtf) { this.defaultSaveOption = "rtf"; } else { if (this.saveOptionVisible.doc) { this.defaultSaveOption = "doc"; } else { if (this.saveOptionVisible.ppt) { this.defaultSaveOption = "ppt"; } else { if (this.saveOptionVisible.html) { this.defaultSaveOption = "html"; } else { if (this.saveOptionVisible.html5) { this.defaultSaveOption = "html5"; } else { if (this.saveOptionVisible.hancell) { this.defaultSaveOption = "hancell"; } else { if (this.saveOptionVisible.txt) { this.defaultSaveOption = "txt"; } } } } } } } } } } } ; 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) { if (this.m_buttonEvent.startNextButton != null) { var a = this.m_buttonEvent.startNextButton(); if (a != true) { return; } } this.selectPage((this.beforePageIndex + 1)); } } ; Report.prototype.previousPage = function() { this.debugMeg("report log :: 이전 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { if (this.m_buttonEvent.startPrevButton != null) { var a = this.m_buttonEvent.startPrevButton(); if (a != true) { return; } } this.selectPage((this.beforePageIndex - 1)); } } ; Report.prototype.firstPage = function() { this.debugMeg("report log :: 첫 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { if (this.m_buttonEvent.startFirstButton != null) { var a = this.m_buttonEvent.startFirstButton(); if (a != true) { return; } } this.selectPage(0); } } ; Report.prototype.lastPage = function() { this.debugMeg("report log :: 마지막 페이지로 이동 합니다.", true); if (this.m_isButtonLock == false) { if (this.m_buttonEvent.startLastButton != null) { var a = this.m_buttonEvent.startLastButton(); if (a != true) { return; } } this.selectPage(this.m_pageCount - 1); } } ; Report.prototype.exportView = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startSaveButton != null) { var a = this.m_buttonEvent.startSaveButton(); if (a != true) { return; } } this.reportCheckSend(0); } else { mRe_ReportEventHandler(10); } } ; Report.prototype.printMobileView = function() { if (this.m_isEndReport) { if (null != this.m_limitedPrint && this.m_pageCount > this.m_limitedPrint) { this.printLimitedExportView("pdf"); return; } this.pdfDownLoad(); } 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) { this.printLimitedExportView("pdf"); return; } this.mRe_printView(); } 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) { this.printLimitedExportView("hwp"); return; } this.mRe_printHWPView(); } 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) { this.printLimitedExportView("exe"); return; } this.mRe_printEXEView(); } else { mRe_ReportEventHandler(10); } } ; Report.prototype.printHTMLView = function() { if (this.m_isEndReport && !this.m_disControl.print) { if (!is_chrome) { var a = mRe_getLocalStorage("mRe_htmlPopupCheck"); if (a == "0") { this.printHtmlPopupCheckExportView(); return; } } this.checkPrintHTMLView(); } else { mRe_ReportEventHandler(10); } } ; Report.prototype.pdfDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startPDFButton != null) { var a = this.m_buttonEvent.startPDFButton(); if (a != true) { return; } } this.printOpReset(); this.reportCheckSend(1); } 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"; this.formTag_uid.value = this.m_uid; this.formTag_print.value = "html"; this.formTag_path.value = this.clientPath; this.formTag.action = this.servletPath; this.formTag.target = "re_target" + this.m_uid; this.formTag.submit(); } else { mRe_ReportEventHandler(10); } window.setTimeout(function() { a.fileDownLoding = false; }, 2000); } ; Report.prototype.hwpDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startHWPButton != null) { var a = this.m_buttonEvent.startHWPButton(); if (a != true) { return; } } this.printOpReset(); this.reportCheckSend(3); } else { mRe_ReportEventHandler(10); } } ; Report.prototype.excelDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startExcelButton != null) { var a = this.m_buttonEvent.startExcelButton(); if (a != true) { return; } } this.printOpReset(); this.reportCheckSend(2); } else { mRe_ReportEventHandler(10); } } ; Report.prototype.docDownLoad = function() { if (this.m_isEndReport) { if (this.m_buttonEvent.startDOCButton != null) { var a = this.m_buttonEvent.startDOCButton(); if (a != true) { return; } } this.printOpReset(); this.reportCheckSend(5); } else { mRe_ReportEventHandler(10); } } ; Report.prototype.closeReport = function() { if (this.m_buttonEvent.startCloseButton != null) { var a = this.m_buttonEvent.startCloseButton(); if (a != true) { return; } } this.deleteToReport(); window.clearInterval(this.checkCountLoop); if (this.m_isFadeView) { $(this.targetDiv).fadeOut(400, function() { this.innerHTML = ""; $(this).show(); }); } else { this.targetDiv.innerHTML = ""; } if (this.m_isCloseFunction != null) { 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; } 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; } } ; 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%"; } } ; 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"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_save_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.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.total_page + "
" + this.m_languageMap.currentPage + "
" + this.m_languageMap.page_designation + "
"); a.push("" + this.m_languageMap.from + "    "); a.push("" + this.m_languageMap.to + ""); a.push("
"); a.push("
"); a.push("" + this.m_languageMap.fileType + ""); a.push("" + this.m_languageMap.fileName + ""); a.push("" + this.m_languageMap.save_range + ""); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; this.mRe_setViewDomInfo(b); this.m_popupViewDiv.appendChild(b); if (this.saveOptionVisible.excel && this.defaultSaveOption == "excel") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls"); this.makeExcelSaveOptionWindow(); } if (this.saveOptionVisible.excelx && this.defaultSaveOption == "excelx") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx"); this.makeExcelSaveOptionWindow(); } else { if (this.saveOptionVisible.pdf && this.defaultSaveOption == "pdf") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption(); mRe_setPDFFileList(this.m_saveInfo_view.child_option.json_data, this.splitPDFFileNames); this.makePDFSaveOptionWindow(); } else { if (this.saveOptionVisible.hwp && this.defaultSaveOption == "hwp") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption(); this.makeHWPSaveOptionWindow(); } else { if (this.saveOptionVisible.rtf && this.defaultSaveOption == "rtf") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf"); this.makeRTFSaveOptionWindow(); } else { if (this.saveOptionVisible.ppt && this.defaultSaveOption == "ppt") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSavePPTOp != null ? this.m_defaultSavePPTOp : mRe_getDefaultSavePPTOption(); this.makePPTSaveOptionWindow(); } else { if (this.saveOptionVisible.html && this.defaultSaveOption == "html") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHTMLOp != null ? this.m_defaultSaveHTMLOp : mRe_getDefaultSaveHTMLOption(); this.makeHTMLSaveOptionWindow(); } else { if (this.saveOptionVisible.hancell && this.defaultSaveOption == "hancell") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell"); this.makeExcelSaveOptionWindow(); } else { if (this.saveOptionVisible.html5 && this.defaultSaveOption == "html5") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option(); this.makeHTML5SaveOptionWindow(); } else { if (this.saveOptionVisible.doc && this.defaultSaveOption == "doc") { this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc"); this.makeRTFSaveOptionWindow(); } else { 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; } } } } } } } } } } } } ; Report.prototype.saveExportFileInfo = function() { if (null != this.m_saveInfo_view) { if (this.saveViewValidationCheck()) { this.makeExportSaveOption(); this.submitSaveOption(); this.mRe_closeReportSaveInfo(); } } } ; Report.prototype.makeExportSaveOption = function() { var b = this.m_saveInfo_view; var a = {}; a.exportType = Number(b.fileTypeDom.value); a.name = Base64.encode(b.fileNameDom.value); if (b.check1Dom.checked) { a.pageType = 1; a.startNum = 1; a.endNum = this.m_pageCount; } else { if (b.check2Dom.checked) { a.pageType = 2; a.startNum = this.beforePageIndex + 1; a.endNum = this.beforePageIndex + 1; } else { a.pageType = 3; a.startNum = Number(b.startInDom.value); a.endNum = Number(b.endInDom.value); } } a.option = b.child_option.json_data; this.m_saveInfo_view.json_data = a; b = null; a = null; } ; Report.prototype.submitSaveOption = function() { this.debugMeg("report log :: 파일 저장 시작.."); this.createSAVEProgress(); this.saveFormTag.acceptCharset = "UTF-8"; this.saveFormTag.clipid.value = "R09"; this.saveFormTag.uid.value = this.m_uid; this.saveFormTag.path.value = this.clientPath; 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)); 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(); } var a = this; var b = this.m_uid; if (a.m_fileDownLoadServerCheck) { this.fileDownloadCheckTimer = window.setTimeout(function() { a.fileCheckSend("save"); }, 1000); } else { this.fileDownloadCheckTimer = window.setInterval(function() { var d = mRe_getReportCookie("fileSaveDownloadToken"); if (d == b) { a.removeSAVEProgress(); } }, 1000); } } ; Report.prototype.saveViewValidationCheck = function() { var c = this.m_saveInfo_view; var d = c.fileNameDom.value; d = d.replace(/(^\s*)|(\s*$)/gi, ""); if ("" == d) { c.validationDom.innerHTML = this.m_languageMap.printName_validation; c = null; return false; } else { if (c.check3Dom.checked) { var b = Number(c.startInDom.value); var a = Number(c.endInDom.value); if (isNaN(b) || isNaN(a)) { c.validationDom.innerHTML = this.m_languageMap.printNum_validation; c = null; return false; } else { if (b <= 0.9 || a <= 0.9 || b > a || b > this.m_pageCount || a > this.m_pageCount) { c.validationDom.innerHTML = this.m_languageMap.printNum_validation; c = null; return false; } } } } c = null; return true; } ; Report.prototype.mRe_setViewDomInfo = function(b) { this.m_saveInfo_view = {}; this.m_saveInfo_view.child_option = {}; var c = this.m_saveInfo_view; c.viewDom = b; var a = b.firstChild; c.validationDom = b.lastChild; c.cancelButtonDom = c.validationDom.previousSibling; c.saveButtonDom = c.cancelButtonDom.previousSibling; c.fileTypeDom = a.firstChild; c.detailButtonDom = a.lastChild; a = a.nextSibling; c.fileNameDom = a.firstChild; a = a.nextSibling.firstChild.lastChild.firstChild; c.check1Dom = a.firstChild.firstChild; a = a.nextSibling; c.check2Dom = a.firstChild.firstChild; a = a.nextSibling; c.check3Dom = a.firstChild.firstChild; a = a.nextSibling.firstChild.firstChild; c.startInDom = a; a = a.nextSibling.nextSibling; c.endInDom = a; a = null; c = null; } ; Report.prototype.mRe_disabledViewDomInfo = function(b) { var a = this.m_saveInfo_view; a.cancelButtonDom.disabled = b; a.saveButtonDom.disabled = b; a.fileTypeDom.disabled = b; a.fileNameDom.disabled = b; a.check1Dom.disabled = b; a.check2Dom.disabled = 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; } } ; Report.prototype.mRe_selectSaveRange = function(a) { if (this.m_saveInfo_view.check1Dom.disabled) { return; } if (1 == a) { this.m_saveInfo_view.check1Dom.checked = true; this.m_saveInfo_view.startInDom.disabled = true; this.m_saveInfo_view.endInDom.disabled = true; } else { if (2 == a) { this.m_saveInfo_view.check2Dom.checked = true; this.m_saveInfo_view.startInDom.disabled = true; this.m_saveInfo_view.endInDom.disabled = true; } else { this.m_saveInfo_view.check3Dom.checked = true; this.m_saveInfo_view.startInDom.disabled = false; 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; var b = this.m_saveInfo_view.detailButtonDom; if (null != c.viewDom) { this.m_popupViewDiv.removeChild(c.viewDom); } this.m_saveInfo_view.child_option = {}; 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 12: c.json_data = null; break; } } ; Report.prototype.mRe_closeReportSaveInfo = function() { if (null != this.m_popupViewDiv) { this.targetDiv.removeChild(this.m_popupViewDiv); this.m_popupViewDiv = null; } this.m_saveInfo_view = null; this.disabledMenu(false); 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; var c = document.createElement("div"); c.className = "report_saveExcel_view_position report_view_box"; var b = new Array(); b.push("
"); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push(""); b.push("
" + this.m_languageMap.merge_cell + "
" + this.m_languageMap.merge_EmptyCell + "
" + this.m_languageMap.cell_Separated + "
" + this.m_languageMap.rightToLeft + "
" + this.m_languageMap.fitToPageWhenPrinting + "
"); b.push("" + this.m_languageMap.sheet_type + " :"); b.push("
"); b.push("
"); b.push(""); b.push(""); b.push(""); b.push("
" + this.m_languageMap.cellWidth + " : %
" + this.m_languageMap.cellHeight + " : %
"); b.push("
"); b.push("
"); b.push(""); b.push(""); b.push(""); var a = this.m_language == 0 ? 5 : 0; b.push("" + this.m_languageMap.rangeError + " : "); b.push("" + this.m_languageMap.displayFormat + " : "); b.push("" + this.m_languageMap.printRate + " : "); b.push("
"); b.push("" + this.m_languageMap.cellSizeRatio + ""); b.push(""); b.push(""); b.push(""); c.innerHTML = b.join(""); b = null; if (null != this.m_popupViewDiv) { 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; var c = a.firstChild; d.validationDom = a.lastChild; d.cancelButtonDom = d.validationDom.previousSibling; d.saveButtonDom = d.cancelButtonDom.previousSibling; d.exportMethodDom = c.firstChild; var b = d.exportMethodDom.nextSibling.firstChild.firstChild; d.mergeCellDom = b.firstChild.firstChild; b = b.nextSibling; d.mergeEmptyCellDom = b.firstChild.firstChild; b = b.nextSibling; d.splitCellAtPageSizeDom = b.firstChild.firstChild; b = b.nextSibling; d.rightToLeftDom = b.firstChild.firstChild; b = b.nextSibling; d.fitToPageWhenPrintingDom = b.firstChild.firstChild; d.widthRateDom = document.getElementById("re_excelwidthRate_" + this.m_uid); d.heightRateDom = document.getElementById("re_excelheightRate_" + this.m_uid); c = c.nextSibling.nextSibling; d.coordinateErrorLimitDom = c.firstChild; d.processGerenalFormatDom = d.coordinateErrorLimitDom.nextSibling; d.printingMagnification = d.processGerenalFormatDom.nextSibling; b = null; c = null; d = null; } ; Report.prototype.mRe_disabledExcelViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } a.exportMethodDom.disabled = b; a.mergeCellDom.disabled = b; if (a.mergeCellDom.checked) { a.mergeEmptyCellDom.disabled = b; } a.splitCellAtPageSizeDom.disabled = b; a.rightToLeftDom.disabled = b; a.fitToPageWhenPrintingDom.disabled = b; a.widthRateDom.disabled = b; a.heightRateDom.disabled = 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); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.widthError; b = null; return false; } else { if (a < 50 || a > 200) { b.validationDom.innerHTML = this.m_languageMap.widthErrorValue; b = null; return false; } } a = Number(b.heightRateDom.value); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.heightError; b = null; return false; } else { if (a < 50 || a > 200) { b.validationDom.innerHTML = this.m_languageMap.heightErrorValue; b = null; return false; } } a = Number(b.coordinateErrorLimitDom.value); if (isNaN(a) || a <= 0) { b.validationDom.innerHTML = this.m_languageMap.coordinateError; b = null; return false; } a = Number(b.printingMagnification.value); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.printError; b = null; return false; } else { if (a < 10 || a > 400) { b.validationDom.innerHTML = this.m_languageMap.printErrorValue; b = null; return false; } } b = null; return true; } ; Report.prototype.mRe_selectExcelOpCheck = function() { var a = this.m_saveInfo_view.child_option; if (a.mergeCellDom.checked && this.m_editOp) { a.mergeEmptyCellDom.disabled = false; } else { a.mergeEmptyCellDom.checked = false; a.mergeEmptyCellDom.disabled = true; } a = null; } ; Report.prototype.setExcelOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.exportMethod = b.exportMethodDom.value; a.mergeCell = b.mergeCellDom.checked; a.mergeEmptyCell = b.mergeEmptyCellDom.checked; a.splitCellAtPageSize = b.splitCellAtPageSizeDom.checked; a.rightToLeft = b.rightToLeftDom.checked; a.widthRate = Number(b.widthRateDom.value); a.heightRate = Number(b.heightRateDom.value); a.coordinateErrorLimit = Number(b.coordinateErrorLimitDom.value); a.processGerenalFormat = Number(b.processGerenalFormatDom.value); a.printingMagnification = Number(b.printingMagnification.value); a.fitToPageWhenPrinting = b.fitToPageWhenPrintingDom.checked; b = null; a = null; } ; function mRe_getDefaultSaveExcelOption(a) { var b = null; if (("xls" == a) && (typeof window.getDefaultSaveExcelOption != "undefined")) { b = getDefaultSaveExcelOption(); b.type = a; } else { if (("xlsx" == a) && (typeof window.getDefaultSaveExcelOption != "undefined")) { b = getDefaultSaveExcelxOption(); b.type = a; } else { if ((typeof window.getDefaultSaveHanCellOption != "undefined")) { b = getDefaultSaveHanCellOption(); b.type = a; } else { b = { type: a, exportMethod: "1", mergeCell: true, mergeEmptyCell: false, splitCellAtPageSize: true, rightToLeft: false, widthRate: 100, heightRate: 100, coordinateErrorLimit: 10, processGerenalFormat: 1, printingMagnification: 100, fitToPageWhenPrinting: false }; } } } return b; } Report.prototype.makeHWPSaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_saveHWP_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push("
" + this.m_languageMap.fixSize + "
"); a.push("" + this.m_languageMap.positionRelTo + " : "); a.push(""); a.push("
" + this.m_languageMap.allowOverlay + "
" + this.m_languageMap.mergeTable + "
" + this.m_languageMap.setPageBottomMarginToZero + "
" + this.m_languageMap.outputLikeWord + "
"); a.push("
"); a.push("" + this.m_languageMap.tableSplit + " : "); a.push("
"); a.push("
"); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push("
" + this.m_languageMap.defaultCharGap + " : %
" + this.m_languageMap.charRatio + " : %
" + this.m_languageMap.lineSpaceRate + " : %
" + this.m_languageMap.putCheckboxIntoCell + "
" + this.m_languageMap.splitTextByLine + "
"); a.push("본 제품은 한글과컴퓨터의 한/글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다."); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; b.fixSizeDom = document.getElementById("re_hwp1" + this.m_uid); b.allowOverlayDom = document.getElementById("re_hwp2" + this.m_uid); b.setPageBottomMarginToZeroDom = document.getElementById("re_hwp3" + this.m_uid); b.outputLikeWordDom = document.getElementById("re_hwp4" + this.m_uid); b.tableSplitMethodDom = document.getElementById("re_hwp5" + this.m_uid); b.defaultCharGapDom = document.getElementById("re_hwp6" + this.m_uid); b.charRatioDom = document.getElementById("re_hwp7" + this.m_uid); b.putCheckboxIntoCellDom = document.getElementById("re_hwp8" + this.m_uid); b.splitTextByLineDom = document.getElementById("re_hwp9" + this.m_uid); b.mergeTableDom = document.getElementById("re_hwp10" + this.m_uid); 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) { a.tableSplitMethodDom.disabled = false; } else { a.tableSplitMethodDom.disabled = true; } a = null; } ; Report.prototype.mRe_selectPositionRelTo = function(a) { var b = this.m_saveInfo_view.child_option; if (a.value == "2") { b.allowOverlayDom.disabled = false; } else { b.allowOverlayDom.disabled = true; } } ; Report.prototype.mRe_disabledHWPViewDomInfo = function(b) { var a = this.m_saveInfo_view.child_option; if (b) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } a.fixSizeDom.disabled = b; if (a.positionRelToDom.value == "2") { a.allowOverlayDom.disabled = b; } a.positionRelToDom.disabled = b; a.setPageBottomMarginToZeroDom.disabled = b; a.outputLikeWordDom.disabled = b; if (a.outputLikeWordDom.checked) { a.tableSplitMethodDom.disabled = b; } a.defaultCharGapDom.disabled = b; a.charRatioDom.disabled = b; a.putCheckboxIntoCellDom.disabled = 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); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.defaultCharGapError; b = null; return false; } else { if (a < -50 || a > 50) { b.validationDom.innerHTML = this.m_languageMap.defaultCharGapValueError; b = null; return false; } } a = Number(b.charRatioDom.value); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.charRatioError; b = null; return false; } else { if (a < 50 || a > 200) { b.validationDom.innerHTML = this.m_languageMap.charRatioValueError; b = null; return false; } } b = null; return true; } ; Report.prototype.setHWPOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.fixSize = b.fixSizeDom.checked; a.allowOverlay = b.allowOverlayDom.checked; a.setPageBottomMarginToZero = b.setPageBottomMarginToZeroDom.checked; a.outputLikeWord = b.outputLikeWordDom.checked; a.tableSplitMethod = Number(b.tableSplitMethodDom.value); a.defaultCharGap = Number(b.defaultCharGapDom.value); a.charRatio = Number(b.charRatioDom.value); a.putCheckboxIntoCell = b.putCheckboxIntoCellDom.checked; a.splitTextByLine = b.splitTextByLineDom.checked; a.mergeTable = b.mergeTableDom.checked; a.lineSpaceRate = Number(b.lineSpaceRateDom.value); a.positionRelTo = Number(b.positionRelToDom.value); b = null; a = null; } ; function mRe_getDefaultSaveHWPOption() { var a = null; if (typeof window.getDefaultSaveHWPOption != "undefined") { a = getDefaultSaveHWPOption(); } else { a = { fixSize: true, allowOverlay: true, setPageBottomMarginToZero: true, outputLikeWord: false, tableSplitMethod: 2, defaultCharGap: -8, charRatio: 100, putCheckboxIntoCell: true, splitTextByLine: true, mergeTable: false, lineSpaceRate: 100, positionRelTo: 1 }; } return a; } Report.prototype.makeRTFSaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_saveRTF_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push("
" + this.m_languageMap.splitTextLine + "
" + this.m_languageMap.processAsUnicode + "
"); a.push("
"); a.push("" + this.m_languageMap.processEqualAlign + " : "); 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.fitShapeToText + "
" + this.m_languageMap.insertTableWrapper + "
" + this.m_languageMap.tableWrapperBottomGap + " : "); a.push("
" + this.m_languageMap.TableRowHeightSort + " : "); a.push("
"); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; b.splitTextLineDom = document.getElementById("re_rtf1" + this.m_uid); b.processAsUnicodeDom = document.getElementById("re_rtf2" + this.m_uid); b.processEqualAlignDom = document.getElementById("re_rtf3" + this.m_uid); b.defaultCharSpaceDom = document.getElementById("re_rtf4" + this.m_uid); 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) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } a.splitTextLineDom.disabled = b; a.processAsUnicodeDom.disabled = b; a.processEqualAlignDom.disabled = b; a.defaultCharSpaceDom.disabled = b; a.insertTableWrapperDom.disabled = b; if (a.insertTableWrapperDom.checked) { 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); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.defaultCharGapError; b = null; return false; } else { if (a < -3 || a > 3) { b.validationDom.innerHTML = this.m_languageMap.defaultCharGapValue2Error; b = null; return false; } } a = Number(b.tableWrapperBottomGapDom.value); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.tableWrapperBottomGapError; b = null; return false; } else { if (a < 0 || a > 500) { b.validationDom.innerHTML = this.m_languageMap.tableWrapperBottomGapValueError; b = null; return false; } } b = null; return true; } ; Report.prototype.setRTFOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.splitTextLine = b.splitTextLineDom.checked; a.processAsUnicode = b.processAsUnicodeDom.checked; a.processEqualAlign = Number(b.processEqualAlignDom.value); a.defaultCharSpace = Number(b.defaultCharSpaceDom.value); 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) { a.tableWrapperBottomGapDom.disabled = false; } else { a.tableWrapperBottomGapDom.disabled = true; } a = null; } ; function mRe_getDefaultSaveRTFOption(a) { var b = null; if (("rtf" == a) && (typeof window.getDefaultSaveRTFOption != "undefined")) { b = getDefaultSaveRTFOption(); b.type = a; } else { if ((typeof window.getDefaultSaveDOCOption != "undefined")) { b = getDefaultSaveDOCOption(); b.type = a; } else { b = { type: a, splitTextLine: true, processAsUnicode: true, processEqualAlign: 4, defaultCharSpace: -0.5, tableWrapperBottomGap: 0, insertTableWrapper: true, mergeTable: false, fitShapeToText: false, TableRowHeightSort: 1 }; } } return b; } Report.prototype.makeHTMLSaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_saveHtml_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push("
테이블 셀을 라벨처럼 저장
페이지 분리선 표시
페이지 높이 유지
글자 감싸기 적용
빈 셀에 텍스트 속성 설정
빈 셀에 & nbsp; 삽입
Overflow=flase 스타일 적용
"); a.push("
"); a.push(""); a.push(""); a.push(""); a.push("
X축 비율 :
Y축 비율 :
"); a.push("
"); a.push(""); a.push("인코딩 :
"); a.push("좌표 비율"); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; b.processCellLikeShapeDom = document.getElementById("re_html1" + this.m_uid); b.displayPageLineDom = document.getElementById("re_html2" + this.m_uid); b.keepPageHeightDom = document.getElementById("re_html3" + this.m_uid); b.applyWordBreakDom = document.getElementById("re_html4" + this.m_uid); b.setTextProperiesToEmptyCellDom = document.getElementById("re_html5" + this.m_uid); b.putTagIntoEmptyCellDom = document.getElementById("re_html6" + this.m_uid); b.textOverflowHiddenDom = document.getElementById("re_html7" + this.m_uid); b.coordinateRateForXDom = document.getElementById("re_html8" + this.m_uid); 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) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } a.processCellLikeShapeDom.disabled = b; a.displayPageLineDom.disabled = b; a.keepPageHeightDom.disabled = b; a.applyWordBreakDom.disabled = b; a.setTextProperiesToEmptyCellDom.disabled = b; a.textOverflowHiddenDom.disabled = b; a.putTagIntoEmptyCellDom.disabled = 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); if (isNaN(a)) { b.validationDom.innerHTML = "X축 비율의 설정값이 올바르지 않습니다."; b = null; return false; } else { if (a < 1 || a > 5) { b.validationDom.innerHTML = "X축 비율의 설정값은 (1.0 ~ 5.0) 가능합니다."; b = null; return false; } } a = Number(b.coordinateRateForYDom.value); if (isNaN(a)) { b.validationDom.innerHTML = "Y축 비율의 설정값이 올바르지 않습니다."; b = null; return false; } else { if (a < 1 || a > 5) { b.validationDom.innerHTML = "Y축 비율의 설정값은 (1.0 ~ 5.0) 가능합니다."; b = null; return false; } } b = null; return true; } ; Report.prototype.setHTMLOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.processCellLikeShape = b.processCellLikeShapeDom.checked; a.displayPageLine = b.displayPageLineDom.checked; a.keepPageHeight = b.keepPageHeightDom.checked; a.applyWordBreak = b.applyWordBreakDom.checked; a.setTextProperiesToEmptyCell = b.setTextProperiesToEmptyCellDom.checked; a.putTagIntoEmptyCell = b.putTagIntoEmptyCellDom.checked; a.textOverflowHidden = b.textOverflowHiddenDom.checked; a.coordinateRateForX = Number(b.coordinateRateForXDom.value); a.coordinateRateForY = Number(b.coordinateRateForYDom.value); a.encodingType = Number(b.encodingTypeDom.value); b = null; a = null; } ; function mRe_getDefaultSaveHTMLOption() { var a = null; if (typeof window.getDefaultSaveHTMLOption != "undefined") { a = getDefaultSaveHTMLOption(); } else { a = { processCellLikeShape: false, displayPageLine: true, keepPageHeight: true, applyWordBreak: false, setTextProperiesToEmptyCell: false, putTagIntoEmptyCell: false, textOverflowHidden: false, coordinateRateForX: 2.6, coordinateRateForY: 2.6, encodingType: 1 }; } return a; } Report.prototype.makePDFSaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_savePDF_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push("
" + this.m_languageMap.pageSplite + "
" + this.m_languageMap.pageSpliteCount + " :
" + this.m_languageMap.password + " :
" + this.m_languageMap.textToImage + "
" + this.m_languageMap.importOriginImage + "
"); a.push("
"); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; b.isSpliteDom = document.getElementById("re_pdf1" + this.m_uid); b.spliteValueDom = document.getElementById("re_pdf2" + this.m_uid); b.userpwDom = document.getElementById("re_pdf3" + this.m_uid); 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) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } a.isSpliteDom.disabled = b; if (a.isSpliteDom.checked) { a.spliteValueDom.disabled = 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); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.pageSpliteCountError; b = null; return false; } b = null; return true; } ; Report.prototype.setPDFOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.isSplite = b.isSpliteDom.checked; a.spliteValue = Number(b.spliteValueDom.value); a.userpw = b.userpwDom.value; a.textToImage = b.textToImageDom.checked; 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) { a.spliteValueDom.disabled = false; } else { a.spliteValueDom.disabled = true; } a = null; } ; function mRe_getDefaultSavePDFOption() { var a = null; if (typeof window.getDefaultSavePDFOption != "undefined") { a = getDefaultSavePDFOption(); a.fileNames = null; } else { a = { isSplite: false, spliteValue: 1, fileNames: null, userpw: "", textToImage: false, importOriginImage: false }; } return a; } function mRe_setPDFFileList(d, b) { if (null != b) { d.fileNames = new Array(); var a = b.length; for (var c = 0; c < a; c++) { d.fileNames.push(Base64.encode(b[c])); } } } Report.prototype.makeHTML5SaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_savePDF_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push("
" + this.m_languageMap.html5page + "
DPI :
"); a.push("
"); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; 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) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } 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); if (isNaN(a)) { b.validationDom.innerHTML = this.m_languageMap.dpiError; b = null; return false; } b = null; return true; } ; Report.prototype.setHTML5OptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.isSplite = b.isSpliteDom.checked; a.dpiValue = Number(b.DPIDom.value); b = null; a = null; } ; function mRe_getDefaultSaveHTML5Option() { var a = null; if (typeof window.getDefaultSaveHTML5Option != "undefined") { a = getDefaultSaveHTML5Option(); } else { a = { isSplite: true, DPI: 96 }; } return a; } Report.prototype.makeJPGSaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_saveJPG_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push(""); a.push(""); a.push("
rotate 90
DPI X :
DPI Y :
quality :
"); a.push("
"); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; b.rotate90Dom = document.getElementById("re_jpg1" + this.m_uid); b.dpiXDom = document.getElementById("re_jpg2" + this.m_uid); 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) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } a.rotate90Dom.disabled = 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); if (isNaN(a)) { b.validationDom.innerHTML = "quality (1 ~ 100)"; b = null; return false; } b = null; return true; } ; Report.prototype.setJPGOptionValue = function() { var b = this.m_saveInfo_view.child_option; var a = b.json_data; a.rotate90 = b.rotate90Dom.checked; a.dpiX = Number(b.dpiXDom.value); a.dpiY = Number(b.dpiYDom.value); a.quality = Number(b.qualityDom.value); b = null; a = null; } ; function mRe_getDefaultSaveJPGOption() { var a = null; if (typeof window.getDefaultSaveJPGOption != "undefined") { a = getDefaultSaveJPGOption(); } else { a = { rotate90: false, dpiX: 96, dpiY: 96, quality: 100 }; } return a; } Report.prototype.makePPTSaveOptionWindow = function() { this.m_editOp = false; var c = this.m_saveInfo_view.child_option.json_data; var b = document.createElement("div"); b.className = "report_savePPT_view_position report_view_box"; var a = new Array(); a.push("
"); a.push(""); a.push(""); a.push(""); a.push("
" + this.m_languageMap.mergeTable + "
" + this.m_languageMap.ignoreLineSpace + "
"); a.push("
"); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { 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; b.validationDom = a.lastChild; b.cancelButtonDom = b.validationDom.previousSibling; b.saveButtonDom = b.cancelButtonDom.previousSibling; 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) { a.cancelButtonDom.style.visibility = "hidden"; a.saveButtonDom.style.visibility = "hidden"; } else { a.cancelButtonDom.style.visibility = "visible"; a.saveButtonDom.style.visibility = "visible"; } 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; a.mergeTable = b.mergeTableDom.checked; a.ignoreLineSpace = b.ignoreLineSpaceDom.checked; b = null; a = null; } ; function mRe_getDefaultSavePPTOption() { var a = null; if (typeof window.getDefaultSavePPTOption != "undefined") { a = getDefaultSavePPTOption(); } else { a = { mergeTable: false, ignoreLineSpace: true }; } 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; } return a; } Report.prototype.selectPrintView = function() { if (this.m_buttonEvent.startPrintButton != null) { var f = this.m_buttonEvent.startPrintButton(); if (f != true) { return; } } this.printOptionValue.isNetPrint = false; this.printOpReset(); this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var e = document.createElement("div"); e.className = "report_print_view_position report_view_box"; var a = new Array(); 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.total_page + "
" + this.m_languageMap.currentPage + "
" + this.m_languageMap.page_designation + "
"); a.push(" " + this.m_languageMap.from + "    "); a.push(" " + this.m_languageMap.to + ""); a.push("
"); a.push("
"); a.push("" + this.m_languageMap.printType + ""); a.push(""); a.push("" + this.m_languageMap.print_range + ""); a.push(""); a.push(""); a.push(""); e.innerHTML = a.join(""); a = null; if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(e); } this.mRe_setPrintViewDomInfo(e); if (this.printOptionValue.localStorage != "0") { this.mRe_selectPrintOption(this.printOptionValue.localStorage); } } ; Report.prototype.mRe_setPrintViewDomInfo = function(b) { this.printOptionValue.domList = {}; var c = {}; var a = this.m_uid; c.viewDom = b; c.printTypeDom = document.getElementById("re_printType1" + a); c.validationDom = document.getElementById("re_printType10" + a); c.netSpan1Dom = document.getElementById("re_printType2" + a); c.netSpan2Dom = document.getElementById("re_printType9" + a); c.netPageCountDom = document.getElementById("re_printType3" + a); c.check1Dom = document.getElementById("re_printType4" + a); c.check2Dom = document.getElementById("re_printType5" + a); c.check3Dom = document.getElementById("re_printType6" + a); c.startInDom = document.getElementById("re_printType7" + a); c.endInDom = document.getElementById("re_printType8" + a); 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") { this.printView(); } else { if (a == "html") { this.printHTMLView(); } else { if (a == "hwp") { this.printHWPView(); } else { if (a == "exe") { this.printEXEView(); } } } } } ; Report.prototype.mRe_selectPrintOption = function(a) { if (a == "pdf" || a == "html" || a == "hwp") { this.printOptionValue.domList.viewDom.style.height = ""; this.printOptionValue.domList.netSpan1Dom.style.display = "none"; this.printOptionValue.domList.netSpan2Dom.style.display = "none"; this.printOptionValue.domList.netSpan3Dom.style.display = "block"; this.printOptionValue.domList.printRangeDom.style.display = "block"; } else { if (a == "exe") { this.printOptionValue.domList.viewDom.style.height = "130px"; this.printOptionValue.domList.netSpan1Dom.style.display = "none"; this.printOptionValue.domList.netSpan2Dom.style.display = "none"; this.printOptionValue.domList.netSpan3Dom.style.display = "none"; this.printOptionValue.domList.printRangeDom.style.display = "none"; } else { this.printOptionValue.domList.viewDom.style.height = "300px"; this.printOptionValue.domList.netSpan1Dom.style.display = "block"; this.printOptionValue.domList.netSpan2Dom.style.display = "block"; this.printOptionValue.domList.netSpan3Dom.style.display = "block"; this.printOptionValue.domList.printRangeDom.style.display = "block"; } } } ; Report.prototype.mRe_selectPrintRange = function(b) { var a = this.printOptionValue.domList; if (a.check1Dom.disabled) { return; } if (1 == b) { a.check1Dom.checked = true; a.startInDom.disabled = true; a.endInDom.disabled = true; } else { if (2 == b) { a.check2Dom.checked = true; a.startInDom.disabled = true; a.endInDom.disabled = true; } else { a.check3Dom.checked = true; a.startInDom.disabled = false; a.endInDom.disabled = false; } } } ; Report.prototype.printViewValidationCheck = function() { var c = this.printOptionValue.domList; if (c.check3Dom.checked) { var b = Number(c.startInDom.value); var a = Number(c.endInDom.value); if (isNaN(b) || isNaN(a)) { c.validationDom.innerHTML = this.m_languageMap.printNum_validation; c = null; return false; } else { if (b <= 0.9 || a <= 0.9 || b > a || b > this.m_pageCount || a > this.m_pageCount) { c.validationDom.innerHTML = this.m_languageMap.printNum_validation; c = null; return false; } } } c = null; return true; } ; Report.prototype.makePrintOption = function() { var a = this.printOptionValue.domList; if (a.check1Dom.checked) { this.printOptionValue.startNum = 1; this.printOptionValue.endNum = this.m_pageCount; } else { if (a.check2Dom.checked) { this.printOptionValue.startNum = this.beforePageIndex + 1; this.printOptionValue.endNum = this.beforePageIndex + 1; } else { this.printOptionValue.startNum = Number(a.startInDom.value); this.printOptionValue.endNum = Number(a.endInDom.value); } } } ; Report.prototype.mRe_printExportInfo = function() { if (this.printViewValidationCheck()) { this.makePrintOption(); this.targetDiv.removeChild(this.m_popupViewDiv); 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) { return '{"pageCount":' + this.printOptionValue.pageCount + ',"startNum":' + this.printOptionValue.startNum + ',"endNum":' + this.printOptionValue.endNum + "}"; } 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"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_view_box report_Ex_reader9"; var a = new Array(); a.push("
"); a.push("
"); if (this.adobeMessage.is_message) { a.push(this.adobeMessage.message); } else { a.push(this.m_languageMap.adobe9Info); a.push("
" + this.m_languageMap.adobe9Info2); a.push(this.m_languageMap.adobe9Info3); } a.push("

"); var c = null != this.m_pdfLink ? this.m_pdfLink : ("https://get.adobe.com/reader/?loc=" + this.m_languageMap.languageInfo); a.push("" + c + "
"); if (this.pESaveButtonVisible) { a.push("
" + this.m_languageMap.adobe9Info4 + ""); } a.push("
"); a.push("" + this.m_languageMap.print_info2 + ""); if (this.pESaveButtonVisible) { a.push(""); a.push(""); } else { a.push(""); } b.innerHTML = a.join(""); if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(b); } this.m_printInfo_view = b; a = null; } ; Report.prototype.mRe_printFilePDF = function() { this.closePrintInfoWindow(); 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"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_view_box report_Ex_NOTReader"; var a = new Array(); a.push("
"); a.push("
"); if (this.adobeMessage.is_message) { a.push(this.adobeMessage.message); } else { a.push(this.m_languageMap.adobe9Info5); a.push("
" + this.m_languageMap.adobe9Info2); a.push(this.m_languageMap.adobe9Info3); } a.push("

"); var c = null != this.m_pdfLink ? this.m_pdfLink : ("https://get.adobe.com/reader/?loc=" + this.m_languageMap.languageInfo); a.push("" + c + "
"); if (this.pESaveButtonVisible) { a.push("
" + this.m_languageMap.adobe9Info4 + ""); } a.push("
"); a.push("" + this.m_languageMap.print_info2 + ""); if (this.pESaveButtonVisible) { a.push(""); a.push(""); } else { a.push(""); } b.innerHTML = a.join(""); if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(b); } this.m_printInfo_view = b; a = null; } ; Report.prototype.printFirefoxExportView = function() { if (this.m_directPrint) { this.mRe_printPopFilePDF(); return; } this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_view_box report_Ex_popPrint"; var a = new Array(); a.push("
"); a.push("
"); a.push("" + this.m_languageMap.pdfPrintLimit1 + ""); a.push("
" + this.m_languageMap.pdfPrintLimit2); a.push("
"); a.push("" + this.m_languageMap.print_info2 + ""); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(b); } 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 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(c, "", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width); } else { window.open(c, "_blank"); } } else { 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; if (this.m_firefoxPrint.isPopup) { window.open("", "report_SubWindow", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width); this.formTag.target = "report_SubWindow"; } else { this.formTag.target = "_blank"; } this.formTag.submit(); } } ; Report.prototype.printEdgeExportView = function() { if (this.m_directPrint) { this.mRe_printPopFilePDF(); return; } this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_view_box report_Ex_popPrint"; var a = new Array(); a.push("
"); a.push("
"); a.push("" + this.m_languageMap.pdfPrintLimit3 + ""); a.push("
" + this.m_languageMap.pdfPrintLimit4); a.push("
"); a.push("" + this.m_languageMap.print_info2 + ""); a.push(""); a.push(""); a.push(""); b.innerHTML = a.join(""); this.m_popupViewDiv.appendChild(b); this.m_printInfo_view = b; a = null; } ; Report.prototype.mRe_printEdgePopFilePDF = function() { this.closePrintInfoWindow(); this.disabledMenu(false); var f = new Array(); var g = this.servletPath; if (-1 != this.servletPath.indexOf("?")) { var c = this.servletPath.split("?"); if (g.length > 1) { var e = c[1]; g = c[0]; var a = e.split("&"); for (var b = 0; b < a.length; b++) { var h = a[b].split("="); if (h.length > 1) { var d = document.createElement("input"); d.type = "hidden"; d.name = h[0]; d.value = h[1]; this.formTag.appendChild(d); f.push(d); } } } } 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(); this.formTag.action = g; this.formTag.target = "re_target" + this.m_uid; this.formTag.submit(); if (f.length > 0) { for (var b = 0; b < f.length; b++) { var d = f[b]; this.formTag.removeChild(d); } } f = null; } ; Report.prototype.printLimitedExportView = function(c) { this.disabledMenu(true); this.m_popupViewDiv = document.createElement("div"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_view_box report_Ex_limitPrint"; var a = new Array(); a.push("
"); a.push("
"); a.push(this.m_languageMap.printLimit1); a.push("
" + this.m_languageMap.printLimit2 + "
"); a.push("
"); a.push("" + this.m_languageMap.print_info2 + ""); if (this.pESaveButtonVisible) { a.push(""); } if ("pdf" == c) { a.push(""); } else { if ("hwp" == c) { a.push(""); } else { if ("exe" == c) { a.push(""); } else { a.push(""); } } } a.push(""); b.innerHTML = a.join(""); if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(b); } 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"); this.m_popupViewDiv.className = "report_popup_view"; this.targetDiv.appendChild(this.m_popupViewDiv); var b = document.createElement("div"); b.className = "report_view_box report_Ex_popHTMLPrint"; var a = new Array(); a.push("
"); a.push("
"); a.push(this.m_languageMap.printSet1); if (this.m_language == 0) { a.push("
"); } a.push(this.m_languageMap.printSet2 + "
"); a.push("
"); a.push("" + this.m_languageMap.print_info2 + ""); a.push(""); a.push("" + this.m_languageMap.printSet3 + ""); a.push(""); b.innerHTML = a.join(""); if (null != this.m_popupViewDiv) { this.m_popupViewDiv.appendChild(b); } this.m_printInfo_view = b; a = null; } ; Report.prototype.mRe_htmlPopupCheck = function() { var a = document.getElementById("htmlPopupCheck" + this.m_uid); if (null != a) { if (a.checked) { mRe_setLocalStorage("mRe_htmlPopupCheck", "1"); } } this.mRe_closePrinting(); this.checkPrintHTMLView(); } ; function getPrintFrame(a) { var b = new Array(); b.push(''); b.push(""); b.push(""); b.push(''); b.push("report"); b.push(""); b.push("