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