File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
var agt = navigator.userAgent.toLowerCase();
is_major = parseInt(navigator.appVersion);
is_minor = parseFloat(navigator.appVersion);
is_moz = ((agt.indexOf("mozilla") != -1) && (agt.indexOf("spoofer") == -1) && (agt.indexOf("compatible") == -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("webtv") == -1) && (agt.indexOf("hotjava") == -1));
is_moz2 = (is_moz && (is_major == 2));
is_moz3 = (is_moz && (is_major == 3));
is_moz4 = (is_moz && (is_major == 4));
is_gecko = (agt.indexOf("gecko") != -1);
is_firefox = (agt.indexOf("firefox") != -1);
is_nav2 = is_moz2;
is_nav3 = is_moz3;
is_nav4 = is_moz4;
is_nav4up = (is_nav4 || ((is_major >= 4) && (agt.indexOf("netscape") != -1)));
is_nav = (is_nav2 || is_nav3 || is_nav4);
is_mozilla = (is_moz && is_gecko);
is_mozilla1 = (is_moz && is_gecko && (agt.indexOf("rv:1") != -1));
is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
is_ieVersion = 0;
is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.") != -1));
if (is_ie6) {
is_ieVersion = 6;
}
is_ie7 = (is_ie && (is_major == 4) && (agt.indexOf("msie 7.") != -1));
if (is_ie7) {
is_ie6 = false;
is_ieVersion = 7;
}
is_ie8 = (is_ie && (is_major == 4) && (agt.indexOf("msie 8.") != -1));
if (is_ie8) {
is_ie6 = false;
is_ie7 = false;
is_ieVersion = 8;
}
is_ie9 = (is_ie && (is_major == 5) && (agt.indexOf("msie 9.") != -1));
if (is_ie9) {
is_ie6 = false;
is_ie7 = false;
is_ie8 = false;
is_ieVersion = 9;
}
is_ie10 = (is_ie && (is_major == 5) && (agt.indexOf("msie 10.") != -1));
if (is_ie10) {
is_ie6 = false;
is_ie7 = false;
is_ie8 = false;
is_ie9 = false;
is_ieVersion = 10;
}
is_ie11 = (is_gecko && !is_firefox && (is_major == 5) && (agt.indexOf("rv:11.") != -1));
if (is_ie11) {
is_ie6 = false;
is_ie7 = false;
is_ie8 = false;
is_ie9 = false;
is_ie10 = false;
is_ie = true;
is_ieVersion = 11;
}
is_window = (agt.indexOf("windows") != -1);
is_chrome = !is_ie && (agt.indexOf("chrome") != -1) ? true : false;
is_edge = is_chrome && (agt.indexOf("edge") != -1);
is_opera = is_chrome && (agt.indexOf("opr/") != -1);
is_safari = (agt.indexOf("safari") != -1 && !is_chrome);
is_window_safari = (is_safari && agt.indexOf("windows") != -1);
is_crOs = is_chrome && (agt.indexOf("csos") != -1);
is_chromeFrame = !is_ie && is_chrome;
is_webkit = is_safari || is_chrome;
is_mozBrowser = is_firefox || is_opera;
is_ipad = ((is_safari || is_moz || (agt.indexOf("applewebkit") != -1)) && (agt.indexOf("ipad") != -1));
is_iphone = ((is_safari || is_moz || (agt.indexOf("applewebkit") != -1)) && (agt.indexOf("iphone") != -1));
is_apple = (is_ipad || is_iphone);
is_android = (agt.indexOf("android") != -1);
is_opera_mini = (agt.indexOf("opera mini") != -1);
is_android_mobile = (is_android && agt.indexOf("mobile") != -1);
is_android_tablet = (is_android && !is_android_mobile);
is_samsung_browser = (is_android && (agt.indexOf("samsungbrowser") != -1));
is_mobile = (is_iphone || is_android_mobile);
is_tablet = (is_ipad || is_android_tablet);
is_smartphone = false;
is_smartphone = (is_iphone || is_opera_mini || is_ipad || is_android);
is_svg = true;
if (typeof window.SVGAElement == "undefined") {
is_svg = false;
if (!is_ie6 && !is_ie7 && !is_ie8) {
is_ie7 = true;
}
is_ie = true;
is_ie9 = false;
is_ie10 = false;
is_ie11 = false;
is_ieVersion = 7;
} else {
if (is_ie7 || is_ie8) {
is_svg = false;
}
}
var Re_zoom = {
isPop: false,
rate: 1
};
var mRe_pallet = null;
is_PosiFix = true;
var getAcrobatInfo = function() {
var e = function(f) {
try {
return new ActiveXObject(f);
} catch (g) {}
};
var b = function(f) {
for (key in navigator.plugins) {
var g = navigator.plugins[key];
if (g.name == f) {
return g;
}
}
};
var c = function() {
return this.plugin = this.plugin || function() {
if (is_ie || is_ie11) {
return e("AcroPDF.PDF") || e("PDF.PdfCtrl");
} else {
return b("Chromium PDF Viewer") || b("Chrome PDF Viewer") || b("Adobe Acrobat") || b("WebKit built-in PDF");
}
}();
};
var d = function() {
return !!c();
};
var a = function() {
try {
var h = c();
if (is_ie || is_ie11) {
var f = h.GetVersions().split(",");
var g = f[0].split("=");
return parseFloat(g[1]);
}
if (h.version) {
return parseInt(h.version);
}
return h.name;
} catch (i) {
return null;
}
};
return {
acrobat: d() ? true : false,
acrobatVersion: a()
};
};
m_report_printOption = getAcrobatInfo();
is_win78_reader9 = (((agt.indexOf("windows nt 6.1") != -1) || (agt.indexOf("windows nt 6.2") != -1) || (agt.indexOf("windows nt 10.") != -1)) && (null != m_report_printOption.acrobatVersion) && (m_report_printOption.acrobatVersion < 10));
is_reader8 = (null != m_report_printOption.acrobatVersion) && (m_report_printOption.acrobatVersion < 9);
is_winxp_reader10 = ((is_ie6 || is_ie7 || is_ie8) && (null != m_report_printOption.acrobatVersion) && (m_report_printOption.acrobatVersion < 11 && m_report_printOption.acrobatVersion > 9));
function HttpClient() {
try {
var b = new XMLHttpRequest();
if (null != b) {
this.m_objHttpRequest = b;
}
} catch (a) {
try {
var b = new ActiveXObject("Msxml2.XMLHTTP");
if (null != b) {
this.m_objHttpRequest = b;
}
} catch (a) {
try {
var b = new ActiveXObject("Microsoft.XMLHTTP");
if (null != b) {
this.m_objHttpRequest = b;
}
} catch (a) {
throw new Error("HttpRequest not supported");
}
}
}
}
HttpClient.prototype.send = function(e, b, c, d) {
if (c) {
this.m_objHttpRequest.onreadystatechange = d;
} else {
this.m_objHttpRequest.onreadystatechange = null;
}
var a = "";
if (-1 != e.indexOf("?")) {
a = e + "&" + b;
this.m_objHttpRequest.open("GET", a, c);
this.m_objHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
this.m_objHttpRequest.send();
} else {
this.m_objHttpRequest.open("POST", e, c);
this.m_objHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
this.m_objHttpRequest.send(b);
}
if (!c) {
if (4 == this.m_objHttpRequest.readyState) {
if (200 == this.m_objHttpRequest.status) {
return this.m_objHttpRequest.responseText;
} else {
throw new Error(this.m_objHttpRequest.status);
}
}
return this._handleSyncHttpResponse();
}
}
;
if (window.addEventListener) {
addEventListener("message", receiveMessage, false);
} else {
attachEvent("onmessage", receiveMessage);
}
var m_reportHashMap = function() {};
function createReport(b, c, d) {
if (null == d) {
mRe_ReportEventHandler(20);
}
var a = new Report(b,null,null,c,d);
return a;
}
function createJSPReport(c, d, b, e) {
if (null == e) {
mRe_ReportEventHandler(20);
}
var a = new Report(c,d,b,null,e);
return a;
}
function createImportJSPReport(b, d, c) {
if (null == c) {
mRe_ReportEventHandler(20);
}
var a = new Report(b,null,null,null,c);
a.m_reportKey = d;
return a;
}
function Report(d, f, b, e, g) {
this.servletPath = d;
this.beforePageIndex = 0;
this.checkCountLoop = null;
this.oof = e;
this.userJsp = f;
this.postData = b;
this.m_reportKey = null;
this.targetDiv = g;
this.input = null;
this.paintDiv = null;
this.signPaintDiv = null;
this.m_tempPaintDiv = null;
this.menuDiv = null;
this.doodleDiv = null;
this.totalCountSpan = null;
this.totalCountText = null;
this.progressImg = null;
this.zoomCombo = null;
this.next_button = null;
this.prev_button = null;
this.first_button = null;
this.last_button = null;
this.save_button = null;
this.print_button = null;
this.pdf_button = null;
this.hwp_button = null;
this.doc_button = null;
this.excel_button = null;
this.reportInfo_button = null;
this.close_button = null;
this.hwp_object = null;
this.m_uid = null;
this.m_pageCount = 0;
this.m_isEndReport = false;
this.m_isEndReportEvent = true;
this.pageWidth = null;
this.pageHeight = null;
this.m_language = 0;
this.m_languageMap = null;
this.fileDownLoding = false;
this.formTag = null;
this.formTag_clipid = null;
this.formTag_uid = null;
this.formTag_print = null;
this.formTag_path = null;
this.formTag_option = null;
this.formTag_ChromeFitToPage = null;
this.formTag_s_time = null;
this.fileDownloadCheckTimer = null;
this.saveFormTag = {
form: null,
clipid: null,
uid: null,
option: null
};
this.deleteImgTag = null;
this.m_isMenu = true;
this.m_isBigData = false;
this.m_isMemoryDump = false;
this.m_isEncode = false;
this.m_isCrossDomain = false;
this.m_isFadeView = false;
this.m_isSlidePage = false;
this.m_isButtonLock = false;
this.m_printDisplay = {
pdf: true,
html: true,
hwp: true,
exe: false
};
this.m_isHWPPrint = false;
this.m_DPI = 96;
this.m_ratio = "100%";
this.m_directPrint = false;
this.m_directPrintOp = {
endReport: false,
key: null
};
this.m_pageCountTime = 700;
this.m_isCloseFunction = null;
this.m_isReportEndFunction = null;
this.m_progress = {
URL: "",
x: 0,
y: 0
};
this.m_printprogress = {
URL: "",
x: 0,
y: 0,
domDiv: null
};
this.m_hwpprogress = {
URL: "",
x: 0,
y: 0,
domDiv: null
};
this.m_excelprogress = {
URL: "",
x: 0,
y: 0,
domDiv: null
};
this.m_saveprogress = {
URL: "",
x: 0,
y: 0,
domDiv: null
};
this.m_endreportprogress = {
is_visible: false,
URL: "",
x: 0,
y: 0,
domDiv: null
};
this.m_endPrintProgressEvent = null;
this.saveOptionVisible = {
excel: true,
excelx: true,
pdf: true,
hwp: true,
rtf: true,
ppt: true,
html: false,
hancell: true,
html5: true,
doc: true,
jpg: false,
txt: false
};
this.adobe9Permission = false;
this.adobeMessage = {
is_message: false,
message: ""
};
this.defaultSaveOption = typeof window.getDefaultSaveOption != "undefined" ? getDefaultSaveOption() : "excel";
this.m_defaultSaveExcelOp = null;
this.m_defaultSaveExcelxOp = null;
this.m_defaultSavePDFOp = null;
this.m_defaultSaveHWPOp = null;
this.m_defaultSaveRTFOp = null;
this.m_defaultSavePPTOp = null;
this.m_defaultSaveHTMLOp = null;
this.m_defaultSaveHanCellOp = null;
this.m_defaultSaveHTML5Op = null;
this.m_defaultSaveDOCOp = null;
this.m_defaultSaveJPGOp = null;
this.m_saveDirectPDFOp = null;
this.m_saveDirectHWPOp = null;
this.m_saveDirectDOCOp = null;
this.m_saveDirectExcelOp = null;
this.printOptionValue = {
isNetPrint: false,
localStorage: mRe_getLocalStorage("mRe_print_report"),
pageCount: 1,
startNum: 0,
endNum: 0,
netPrintList: []
};
this.splitPDFFileNames = null;
var c = location.pathname.lastIndexOf("/");
var a = "/";
if (0 != c) {
a = location.pathname.substring(0, c);
}
this.clientPath = a;
this.m_versionInfo = null;
this.m_webViewVersionInfo = null;
this.m_reportInfo_view = null;
this.m_saveInfo_view = null;
this.m_printInfo_view = null;
this.m_popupViewDiv = null;
this.m_limitedPrint = null;
this.m_isAccessibility = false;
this.m_fileDownLoadServerCheck = true;
this.m_buttonEvent = {
startSaveButton: null,
startPDFButton: null,
startExcelButton: null,
startHWPButton: null,
startDOCButton: null,
startPrintButton: null,
startCloseButton: null,
startFirstButton: null,
startPrevButton: null,
startNextButton: null,
startLastButton: null,
startZoomInSelect: null,
startPageCountLabel: null,
endSaveButton: null,
endPDFButton: null,
endExcelButton: null,
endHWPButton: null,
endDOCButton: null
};
this.m_pageMoveEvent = {
start: null,
end: null
};
this.m_exePrintEvent = {
ok: null,
cancel: null
};
this.m_disControl = {
save: false,
prev: false,
next: false,
first: false,
last: false,
print: false,
close: false,
pdf: false,
hwp: false,
excel: false,
reportInfo: false,
zoomIn: false,
input: false,
caption: false,
doodle: false
};
this.m_strFileName = "report";
this.m_isPaintImage = false;
this.m_isUseOriginImage = false;
this.m_pdfLink = null;
this.m_exeLink = null;
this.isPDFPrintImage = false;
this.m_printPage = {
pageWidth: 2100,
pageHeight: 2970
};
this.isChromePrintFitToPage = false;
this.isEnabledAdobeRead = true;
this.m_isMarkAny = false;
this.m_isChartToImage = false;
this.pESaveButtonVisible = true;
this.m_firefoxPrint = {
isPopup: true,
width: 750,
height: 600
};
this.m_mobile = {
scrollTop: true
};
this.m_pcView = {
scrollTop: true
};
this.m_scrollEv = {
isScrollPaging: false,
isBottomEvent: null
};
this.m_drilingTop = null;
this.m_comboNames = {
num50: {
name: "50%",
visible: true
},
num75: {
name: "75%",
visible: true
},
num100: {
name: "100%",
visible: true
},
num125: {
name: "125%",
visible: true
},
num150: {
name: "150%",
visible: true
},
num200: {
name: "200%",
visible: true
},
num300: {
name: "300%",
visible: true
},
num400: {
name: "400%",
visible: true
},
pagewidth: {
name: "PageWidth",
visible: true
},
wholepage: {
name: "WholePage",
visible: true
}
};
this.m_signOption = {
offsetLeft: 0,
offsetTop: 0,
staticPos: false,
staticLeft: null,
staticTop: null
};
this.m_necessaryCheck = false;
this.m_debug = {
isDebug: false,
isConsole: false,
isLock: false,
message: null
};
this.m_editOp = true;
this.is_eForm = false;
this.is_eFormData = false;
this.eForm_isNecessary = {
pageList: null,
check: false,
is_start: false
};
this.eFormData = null;
this.eFormCheckImage = null;
this.eFormRadioImage = null;
this.eFormControlList = null;
this.eFormControlGroupList = null;
this.eFormDoodleOption = {
is_Ds: false,
is_eraser: false,
zoomIn: 1,
tos: null,
path: null,
pathArray: null,
gesture: {
isStart: false,
pos: null,
zoom: 1,
line: 0,
zoomUp: 1
},
pens: {
width: 16,
color: "rgb(237, 68, 61)",
op: 0.5
},
tempPens: {
width: 16,
color: "rgb(237, 68, 61)",
op: 0.5,
penList: [],
opList: [],
colorList: []
},
pagePathSave: [],
pageImgSave: []
};
this.printNames = {
pdf: "PDF",
hwp: "HWP",
html: "HTML",
exe: "EXE"
};
this.m_exePrintStatus = {
url: "http://127.0.0.1:",
port: [22000, 33000, 11000],
httpPort: [22000, 33000, 11000],
httpsPort: [22443, 33443, 11443],
intervalKey: null,
disConnectCount: 0,
isSet: false,
portNumber: null
};
this.m_exePrintOption = {
isPrintPopup: true,
printName: "",
tray: "",
startNumber: 1,
endNumber: -1,
copies: 1,
option: ""
};
this.m_isViewer = true;
this.m_TPC = {
before: "/ ",
after: ""
};
this.m_isTOCVisible = false;
this.m_isSwipe = false;
this.m_PageMove = {
ButtonDisabled: true,
leftDOM: null,
rightDOM: null,
eventKey: null,
doubleEventKey: null
};
}
Report.prototype.createUserProgress = function() {
var a = document.createElement("div");
a.className = "user_progress";
a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;background-repeat:no-repeat;z-index:500;";
this.targetDiv.appendChild(a);
this.m_userProg = a;
}
;
Report.prototype.removeUserProgress = function() {
this.targetDiv.removeChild(this.m_userProg);
this.m_userProg = null;
}
;
Report.prototype.createProgress = function() {
var a = "";
var b = this.is_eForm ? "eform_progress" : "report_progress";
if (!this.m_directPrint) {
if (this.m_progress.URL == "") {
a = "<div class='" + b + "' style='position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;' />";
} else {
a = "<div style='position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
a += "background-position:" + this.m_progress.x + " " + this.m_progress.y + ";";
a += "background-repeat:no-repeat;background-image:url(" + this.m_progress.URL + ");'/>";
}
}
this.paintDiv.innerHTML = a;
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.createEditableProgress = function() {
var a = document.createElement("div");
var c = this.is_eForm ? "eform_progress" : "report_progress";
if (this.m_progress.URL == "") {
a.setAttribute("class", c);
a.style.cssText = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;width:" + this.paintDiv.offsetWidth + "px;top:" + this.paintDiv.scrollTop + "px;height:" + this.paintDiv.offsetHeight + "px;overflow:hidden;";
} else {
var b = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;width:" + this.paintDiv.offsetWidth + "px;top:" + this.paintDiv.scrollTop + "px;height:" + this.paintDiv.offsetHeight + "px;overflow:hidden;";
b += "background-position:" + this.m_progress.x + " " + this.m_progress.y + ";";
b += "background-repeat:no-repeat;background-image:url(" + this.m_progress.URL + ");";
a.style.cssText = b;
}
this.paintDiv.appendChild(a);
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.createPrintProgress = function() {
this.disabledMenu(true);
var a = document.createElement("div");
this.m_printprogress.domDiv = a;
var c = this.is_eForm ? "eform_progress" : "report_progress";
if (this.m_printprogress.URL == "") {
strDiv = "<div class='" + c + "' style='position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;' />";
a.setAttribute("class", c);
a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
} else {
var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
b += "background-position:" + this.m_printprogress.x + " " + this.m_printprogress.y + ";";
b += "background-repeat:no-repeat;background-image:url(" + this.m_printprogress.URL + ");";
a.style.cssText = b;
}
this.paintDiv.appendChild(a);
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.removePrintProgress = function() {
this.disabledMenu(false);
this.paintDiv.removeChild(this.m_printprogress.domDiv);
this.m_printprogress.domDiv = null;
window.clearInterval(this.fileDownloadCheckTimer);
clearListCookies(this.clientPath);
this.isEnabledAdobeRead = true;
this.debugMeg("report log :: 리포트 프로그래스 종료");
if (null != this.m_endPrintProgressEvent) {
this.m_endPrintProgressEvent();
}
}
;
Report.prototype.createHWPProgress = function() {
this.disabledMenu(true);
var a = document.createElement("div");
this.m_hwpprogress.domDiv = a;
var c = this.is_eForm ? "eform_progress" : "report_progress";
if (this.m_hwpprogress.URL == "") {
strDiv = "<div class='" + c + "' style='position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;' />";
a.setAttribute("class", c);
a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
} else {
var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
b += "background-position:" + this.m_hwpprogress.x + " " + this.m_hwpprogress.y + ";";
b += "background-repeat:no-repeat;background-image:url(" + this.m_hwpprogress.URL + ");";
a.style.cssText = b;
}
this.paintDiv.appendChild(a);
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.removeHWPProgress = function() {
this.disabledMenu(false);
this.paintDiv.removeChild(this.m_hwpprogress.domDiv);
this.m_hwpprogress.domDiv = null;
window.clearInterval(this.fileDownloadCheckTimer);
clearListCookies(this.clientPath);
if (this.m_buttonEvent.endHWPButton != null) {
this.m_buttonEvent.endHWPButton();
}
this.debugMeg("report log :: 리포트 프로그래스 종료");
}
;
Report.prototype.createEXCELProgress = function() {
this.disabledMenu(true);
var a = document.createElement("div");
this.m_excelprogress.domDiv = a;
var c = this.is_eForm ? "eform_progress" : "report_progress";
if (this.m_excelprogress.URL == "") {
strDiv = "<div class='" + c + "' style='position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;' />";
a.setAttribute("class", c);
a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
} else {
var b = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
b += "background-position:" + this.m_excelprogress.x + " " + this.m_excelprogress.y + ";";
b += "background-repeat:no-repeat;background-image:url(" + this.m_excelprogress.URL + ");";
a.style.cssText = b;
}
this.paintDiv.appendChild(a);
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.removeEXCELProgress = function() {
this.disabledMenu(false);
this.paintDiv.removeChild(this.m_excelprogress.domDiv);
this.m_excelprogress.domDiv = null;
window.clearTimeout(this.fileDownloadCheckTimer);
clearListCookies(this.clientPath);
if (this.m_buttonEvent.endExcelButton != null) {
this.m_buttonEvent.endExcelButton();
}
this.debugMeg("report log :: 리포트 프로그래스 종료");
}
;
Report.prototype.createSAVEProgress = function() {
this.disabledMenu(true);
var b = document.getElementById("re_iframe" + this.m_uid);
b.src = "about:blank";
var a = document.createElement("div");
this.m_saveprogress.domDiv = a;
var d = this.is_eForm ? "eform_progress" : "report_progress";
if (this.m_saveprogress.URL == "") {
a.setAttribute("class", d);
a.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
} else {
var c = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:hidden;";
c += "background-position:" + this.m_saveprogress.x + " " + this.m_saveprogress.y + ";";
c += "background-repeat:no-repeat;background-image:url(" + this.m_saveprogress.URL + ");";
a.style.cssText = c;
}
this.paintDiv.appendChild(a);
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.removeSAVEProgress = function() {
this.disabledMenu(false);
this.paintDiv.removeChild(this.m_saveprogress.domDiv);
this.m_saveprogress.domDiv = null;
window.clearInterval(this.fileDownloadCheckTimer);
clearListCookies(this.clientPath);
if (this.m_buttonEvent.endSaveButton != null) {
this.m_buttonEvent.endSaveButton();
}
this.debugMeg("report log :: 리포트 프로그래스 종료");
}
;
Report.prototype.removePDFProgress = function() {
this.disabledMenu(false);
this.paintDiv.removeChild(this.m_saveprogress.domDiv);
this.m_saveprogress.domDiv = null;
window.clearInterval(this.fileDownloadCheckTimer);
clearListCookies(this.clientPath);
if (this.m_buttonEvent.endPDFButton != null) {
this.m_buttonEvent.endPDFButton();
}
this.debugMeg("report log :: 리포트 프로그래스 종료");
}
;
Report.prototype.createEndReportProgress = function() {
this.disabledMenu(true);
var a = document.createElement("div");
this.m_endreportprogress.domDiv = a;
var c = this.is_eForm ? "eform_progress" : "report_progress";
if (this.m_endreportprogress.URL == "") {
a.setAttribute("class", c);
a.style.cssText = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;right:0px;top:" + this.paintDiv.scrollTop + "px;bottom:0px;overflow:hidden;";
} else {
var b = "position:absolute;left:" + this.paintDiv.scrollLeft + "px;right:0px;top:" + this.paintDiv.scrollTop + "px;bottom:0px;overflow:hidden;";
b += "background-position:" + this.m_endreportprogress.x + " " + this.m_endreportprogress.y + ";";
b += "background-repeat:no-repeat;background-image:url(" + this.m_endreportprogress.URL + ");";
a.style.cssText = b;
}
this.paintDiv.appendChild(a);
this.debugMeg("report log :: 리포트 프로그래스 동작....");
}
;
Report.prototype.removeEndReportProgress = function() {
this.disabledMenu(false);
this.m_endreportprogress.domDiv = null;
this.debugMeg("report log :: 리포트 프로그래스 종료");
}
;
Report.prototype.view = function() {
this.debugMeg("<<<<<<<<<<<< 리포트 디버깅 로그를 시작합니다 >>>>>>>>>>>>>>>");
this.debugMeg("userAgent Check :: " + agt);
this.debugMeg("PDF check :: " + m_report_printOption.acrobatVersion);
if (!is_svg) {
if (this.is_eForm) {
this.debugMeg("report log :: IE8 버전 이하로 체크되었습니다. 웹이폼에서는 지원하지 않는 버전입니다.");
return;
}
if (!this.m_isPaintImage) {
this.debugMeg("report log :: IE8 버전 이하로 체크되었습니다. 접근성 뷰어 일 경우 화면 비율를 100%로 고정합니다.");
this.m_ratio = "100%";
this.m_disControl.zoomIn = true;
}
}
if (this.m_reportKey != null) {
this.checkReportCreate();
} else {
if (this.userJsp == null) {
this.newReportCreate(this.servletPath, this.oof);
} else {
this.newReportCreate(this.userJsp, null);
}
}
}
;
Report.prototype.debugMeg = function(b, a) {
if (this.m_debug.isDebug) {
if (this.m_debug.isConsole) {
window.console.log(b);
} else {
this.m_debug.message.push(b);
}
if (null != a) {
this.m_debug.isLock = a;
}
}
}
;
Report.prototype.endDebugMeg = function(a) {
if (this.m_debug.isDebug) {
if (!this.m_debug.isConsole) {
if (!a || (this.m_debug.isLock == a)) {
alert(this.m_debug.message.join("\n"));
this.m_debug.message = new Array();
this.m_debug.isLock = false;
}
}
}
}
;
Report.prototype.setSlidePage = function(a) {
this.m_isSlidePage = a;
}
;
Report.prototype.mRe_DirectPrintCall = function() {
if (this.m_directPrintOp.endReport) {
this.m_directPrintOp.endReport = false;
window.clearInterval(this.m_directPrintOp.key);
this.m_directPrintOp.key = null;
this.printView();
}
}
;
Report.prototype.createView = function(c, i) {
var h = new Array();
var e = "";
var d, f;
this.debugMeg("report log :: 리포트 뷰어를 생성합니다...");
if (this.m_directPrint) {
var g = this;
this.m_directPrintOp.key = window.setInterval(function() {
g.mRe_DirectPrintCall();
}, 300);
c.style.cssText += "position:absolute !important;width:1px !important;height:1px !important;visibility:hidden !important;opacity:0 !important;filter:alpha(opacity=0) !important;";
if (is_safari && !is_smartphone) {
window.open("", "report_SubWindow", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width);
}
}
if (this.m_isFadeView) {
d = c.style.width;
f = c.style.height;
$(c).css({
width: "0px",
height: "0px",
opacity: "0"
});
}
h.push("<div style='position:absolute;left:0px;right:0px;top:0px;bottom:0px;border:0px solid;overflow:hidden;'>");
if (this.is_eForm) {
if (this.eForm_isNecessary.is_start) {
this.eForm_isNecessary.check = true;
}
this.eformCreateTag(h, i);
} else {
if (is_mobile) {
this.debugMeg("report log :: 모바일 환경으로 체크됨");
this.mobileCreateTag(h, i);
} else {
if (is_tablet) {
this.debugMeg("report log :: 테블릿 pc 환경으로 체크됨");
this.tabletCreateTag(h, i);
} else {
this.debugMeg("report log :: 데스트탑 pc 환경으로 체크됨");
this.pcCreateTag(h, i);
}
}
}
h.push("<form id='re_form" + i + "' style='display:none;' encoding='application/x-www-form-urlencoded' method='post'>");
h.push("<input type='text' id='re_form_clipid" + i + "' name='ClipID' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_uid" + i + "' name='uid' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_print" + i + "' name='print' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_printImage" + i + "' name='isPDFPrintImage' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_path" + i + "' name='path' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_option" + i + "' name='optionValue' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_ChromeFitToPage" + i + "' name='isChromePrintFitToPage' value='false' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_form_s_time" + i + "' name='s_time' value='' style='visibility:hidden;'/>");
h.push("</form>");
h.push("<form id='re_saveform" + i + "' style='display:none;' encoding='application/x-www-form-urlencoded' method='post'>");
h.push("<input type='text' id='re_saveform_clipid" + i + "' name='ClipID' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_saveform_uid" + i + "' name='uid' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_saveform_path" + i + "' name='path' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_saveform_option" + i + "' name='optionValue' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_saveform_is_ie" + i + "' name='is_ie' value='" + ((!is_firefox) && (!is_safari) && (!is_apple)) + "' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_saveform_fileName" + i + "' name='exportN' style='visibility:hidden;'/>");
h.push("<input type='text' id='re_saveform_fileType" + i + "' name='exportType' style='visibility:hidden;'/>");
h.push("</form>");
h.push("<iframe id='re_iframe" + i + "' name='re_target" + i + "' style='display:none'></iframe>");
h.push("<img id='re_deleteImg" + i + "' style='display:none'></ing>");
h.push("<iframe id='re_iframe2" + i + "' style='position:absolute;left:0px;top:0px;height:0px;width:0px;visibility:hidden'></iframe>");
h.push("<iframe id='re_iframe3" + i + "' style='position:absolute;left:0px;top:0px;height:0px;width:0px;visibility:hidden'></iframe>");
h.push("</div>");
if (is_ie7 || is_ie8) {
var b = document.createElement("div");
b.innerHTML = h.join("");
c.appendChild(b.firstChild);
b = null;
} else {
c.innerHTML = h.join("");
}
this.debugMeg("report log :: 리포트 뷰어 완성....");
this.paintDiv = document.getElementById("re_paintDiv" + i);
this.menuDiv = document.getElementById("re_menu" + i);
if (this.is_eForm) {
this.doodleDiv = document.getElementById("re_doodleDiv" + i);
}
this.input = document.getElementById("re_input" + i);
this.totalCountSpan = document.getElementById("re_totalCount" + i);
this.totalCountText = document.getElementById("re_totalCountNumber" + i);
this.progressImg = document.getElementById("re_progressImg" + i);
this.zoomCombo = document.getElementById("re_zoomSelect" + i);
this.next_button = document.getElementById("re_next" + i);
this.prev_button = document.getElementById("re_prev" + i);
this.first_button = document.getElementById("re_first" + i);
this.last_button = document.getElementById("re_last" + i);
this.save_button = document.getElementById("re_save" + i);
this.print_button = document.getElementById("re_print" + i);
this.pdf_button = document.getElementById("re_pdf" + i);
this.hwp_button = document.getElementById("re_hwp" + i);
this.doc_button = document.getElementById("re_doc" + i);
this.excel_button = document.getElementById("re_excel" + i);
this.reportInfo_button = document.getElementById("re_reportInfo" + i);
this.close_button = document.getElementById("re_close" + i);
this.formTag = document.getElementById("re_form" + i);
this.formTag_clipid = document.getElementById("re_form_clipid" + i);
this.formTag_uid = document.getElementById("re_form_uid" + i);
this.formTag_print = document.getElementById("re_form_print" + i);
this.formTag_printImage = document.getElementById("re_form_printImage" + i);
this.formTag_path = document.getElementById("re_form_path" + i);
this.formTag_option = document.getElementById("re_form_option" + i);
this.formTag_ChromeFitToPage = document.getElementById("re_form_ChromeFitToPage" + i);
this.formTag_s_time = document.getElementById("re_form_s_time" + i);
this.saveFormTag.form = document.getElementById("re_saveform" + i);
this.saveFormTag.clipid = document.getElementById("re_saveform_clipid" + i);
this.saveFormTag.uid = document.getElementById("re_saveform_uid" + i);
this.saveFormTag.path = document.getElementById("re_saveform_path" + i);
this.saveFormTag.option = document.getElementById("re_saveform_option" + i);
this.saveFormTag.filename = document.getElementById("re_saveform_fileName" + i);
this.saveFormTag.filetype = document.getElementById("re_saveform_fileType" + i);
this.deleteImgTag = document.getElementById("re_deleteImg" + i);
if (!is_ie) {
var j = document.getElementById("re_iframe2" + i);
var a = j.contentWindow;
a.document.write(getPDFPrintFrame());
}
if (this.m_isFadeView) {
$(c).attr("uid", this.m_uid).animate({
width: d,
height: f,
opacity: 1
}, 400, function() {
$(this).removeAttr("uid");
});
}
}
;
Report.prototype.pcCreateTag = function(b, a) {
var d = is_svg ? "_svg" : "_png";
var c = "";
b.push("<div id='re_menu" + a + "' class='report_menu_div' style='" + ((this.m_isMenu) ? "" : "height:0px;") + (null != this.menuDiv ? this.menuDiv : "") + "'>");
b.push("<table class='report_menu_table' vertical-align='middle'><tr><td class='report_menu_table_td'>");
b.push("<div class='report_menu_table_td_div'><nobr>");
c = this.m_disControl.save ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.save + "' id='re_save" + a + "' onclick=\"m_reportHashMap['" + a + "'].exportView();return false;\" class='report_menu_button report_menu_save_button " + ("report_menu_save_button" + d + c) + "' style='" + (null != this.save_button ? this.save_button : "") + "' " + (this.m_disControl.save ? "disabled" : "") + "></button>");
c = this.m_disControl.pdf ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.pdf_save + "' id='re_pdf" + a + "' onclick=\"m_reportHashMap['" + a + "'].pdfDownLoad();return false;\" class='report_menu_button report_menu_pdf_button " + ("report_menu_pdf_button" + d + c) + "' style='" + (null != this.pdf_button ? this.pdf_button : "") + "' " + (this.m_disControl.pdf ? "disabled" : "") + "></button>");
c = this.m_disControl.excel ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.excel_save + "' id='re_excel" + a + "' onclick=\"m_reportHashMap['" + a + "'].excelDownLoad();return false;\" class='report_menu_button report_menu_excel_button " + ("report_menu_excel_button" + d + c) + "' style='" + (null != this.excel_button ? this.excel_button : "") + "' " + (this.m_disControl.excel ? "disabled" : "") + "></button>");
c = this.m_disControl.hwp ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.hwp_save + "' id='re_hwp" + a + "' onclick=\"m_reportHashMap['" + a + "'].hwpDownLoad();return false;\" class='report_menu_button report_menu_hwp_button " + ("report_menu_hwp_button" + d + c) + "' style='" + (null != this.hwp_button ? this.hwp_button : "") + "' " + (this.m_disControl.hwp ? "disabled" : "") + "></button>");
c = this.m_disControl.doc ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.doc_save + "' id='re_doc" + a + "' onclick=\"m_reportHashMap['" + a + "'].docDownLoad();return false;\" class='report_menu_button report_menu_doc_button " + ("report_menu_doc_button" + d + c) + "' style='" + (null != this.doc_button ? this.doc_button : "") + "' " + (this.m_disControl.doc ? "disabled" : "") + "></button>");
c = this.m_disControl.print ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.print + "' id='re_print" + a + "' onclick=\"m_reportHashMap['" + a + "'].printWindowView();return false;\" class='report_menu_button report_menu_print_button " + ("report_menu_print_button" + d + c) + "' style='" + (null != this.print_button ? this.print_button : "") + "' " + (this.m_disControl.print ? "disabled" : "") + "></button>");
c = this.m_disControl.first ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.first_page + "' id='re_first" + a + "' onclick=\"m_reportHashMap['" + a + "'].firstPage();return false;\" class='report_menu_button report_menu_leftEnd_button " + ("report_menu_leftEnd_button" + d + c) + "' style='" + (null != this.first_button ? this.first_button : "") + "' " + (this.m_disControl.first ? "disabled" : "") + "></button>");
c = this.m_disControl.prev ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.prv_page + "' id='re_prev" + a + "' onclick=\"m_reportHashMap['" + a + "'].previousPage();return false;\" class='report_menu_button report_menu_left_button " + ("report_menu_left_button" + d + c) + "' style='" + (null != this.prev_button ? this.prev_button : "") + "' " + (this.m_disControl.prev ? "disabled" : "") + "></button>");
b.push("<input title='" + this.m_languageMap.page + "' id='re_input" + a + "' type='text' value='1' class='report_menu_pageCount_input' onkeypress=\"enterEvent(event, m_reportHashMap['" + a + "'], this);\" onblur=\"m_reportHashMap['" + a + "'].selectPage(Number(this.value) - 1);return false;\" style='" + (null != this.input ? this.input : "") + "' " + (this.m_disControl.input ? "disabled" : "") + "/>");
b.push("<input title='" + this.m_languageMap.total_page + "' id='re_totalCountNumber" + a + "' value='" + this.m_TPC.before + "0" + this.m_TPC.after + "' class='report_menu_pageCount_span' style='" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' readonly></input><span id='re_totalCount" + a + "' class='report_menu_pageCount_span' style='border:0px;" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' " + (this.m_disControl.caption ? "disabled" : "") + " onclick=\"m_reportHashMap['" + a + "'].mRe_pageCountLabelClick();return false;\">");
b.push("<img id='re_progressImg" + a + "' class='report_menu_progress' src='" + progressImg() + "'/></span>");
c = this.m_disControl.next ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.next_page + "' id='re_next" + a + "' onclick=\"m_reportHashMap['" + a + "'].nextPage();return false;\" class='report_menu_button report_menu_right_button " + ("report_menu_right_button" + d + c) + "' style='" + (null != this.next_button ? this.next_button : "") + "' " + (this.m_disControl.next ? "disabled" : "") + "></button>");
c = this.m_disControl.last ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.last_page + "' id='re_last" + a + "'onclick=\"m_reportHashMap['" + a + "'].lastPage();return false;\" class='report_menu_button report_menu_rightEnd_button " + ("report_menu_rightEnd_button" + d + c) + "' style='" + (null != this.last_button ? this.last_button : "") + "' " + (this.m_disControl.last ? "disabled" : "") + "></button>");
b.push("<select title='" + this.m_languageMap.zoomIn + "' onChange=\"m_reportHashMap['" + a + "'].zoomIn(this)\" name='zoomSelect' id='re_zoomSelect" + a + "' class='report_menu_zoom_combo' style='" + ((is_ie6 || is_ie7) ? "top:5px;" : "") + (null != this.zoomCombo ? this.zoomCombo : "") + ";' " + (this.m_disControl.zoomIn ? "disabled" : "") + ">");
this.comboOptionCreateTag(b);
b.push("</select>");
c = this.m_disControl.reportInfo ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.report_info + "' id='re_reportInfo" + a + "' onclick=\"m_reportHashMap['" + a + "'].reportInfo();return false;\" class='report_menu_button report_menu_reportInfo_button " + ("report_menu_reportInfo_button" + d + c) + "' style='" + (null != this.reportInfo_button ? this.reportInfo_button : "") + "' " + (this.m_disControl.reportInfo ? "disabled" : "") + "></button>");
c = this.m_disControl.close ? "_dis" : "";
b.push("<button title='" + this.m_languageMap.close + "' id='re_close" + a + "' onclick=\"m_reportHashMap['" + a + "'].closeReport();return false;\" class='report_menu_button report_menu_close_button " + ("report_menu_close_button" + d + c) + "' style='" + (null != this.close_button ? this.close_button : "") + "' " + (this.m_disControl.close ? "disabled" : "") + "></button>");
b.push("</nobr></div>");
b.push("</td></tr></table>");
b.push("</div>");
b.push("<div id='re_paintDiv" + a + "' class='report_paint_div' style='" + ((this.m_isMenu) ? "" : "top:0px;") + (null != this.paintDiv ? this.paintDiv : "") + "' onscroll=\"m_reportHashMap['" + a + "'].pageScrollEvent(event)\" ");
if (is_firefox) {
b.push("onwheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">");
} else {
b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">");
}
b.push("</div>");
}
;
Report.prototype.mobileCreateTag = function(b, a) {
b.push("<div id='re_menu" + a + "' class='mobile_menu_div' style='" + ((this.m_isMenu) ? "" : "height:0px;") + (null != this.menuDiv ? this.menuDiv : "") + "'>");
b.push("<table class='report_menu_table' vertical-align='middle'><tr><td class='report_menu_table_td'>");
b.push("<div class='mobile_menu_table_td_div'><nobr>");
b.push("<button id='re_print" + a + "' onclick=\"m_reportHashMap['" + a + "'].printMobileView();return false;\" class='mobile_menu_button " + (this.m_disControl.save ? "mobile_menu_dis_print_button" : "mobile_menu_print_button") + "' style='" + (null != this.print_button ? this.print_button : "") + "' " + (this.m_disControl.save ? "disabled" : "") + "></button>");
b.push("<button id='re_first" + a + "' onclick=\"m_reportHashMap['" + a + "'].firstPage();return false;\" class='mobile_menu_button " + (this.m_disControl.first ? "mobile_menu_dis_leftEnd_button" : "mobile_menu_leftEnd_button") + "' style='" + (null != this.first_button ? this.first_button : "") + "' " + (this.m_disControl.first ? "disabled" : "") + "></button>");
b.push("<button id='re_prev" + a + "' onclick=\"m_reportHashMap['" + a + "'].previousPage();return false;\" class='mobile_menu_button " + (this.m_disControl.prev ? "mobile_menu_dis_left_button" : "mobile_menu_left_button") + "' style='visibility:hidden;" + (null != this.prev_button ? this.prev_button : "") + "' " + (this.m_disControl.prev ? "disabled" : "") + "></button>");
b.push("<table class='mobile_input_table' style='left:145px' vertical-align='middle'>");
b.push("<tr>");
b.push("<td class='mobile_input_table_td_input'>");
b.push("<input id='re_input" + a + "' type='text' value='1' class='mobile_menu_pageCount_input' onkeypress=\"enterEvent(event, m_reportHashMap['" + a + "'], this)\" onblur=\"m_reportHashMap['" + a + "'].selectPage(Number(this.value) - 1)\" style='" + (null != this.input ? this.input : "") + "' " + (this.m_disControl.input ? "disabled" : "") + "/>");
b.push("</td>");
b.push("<td class='mobile_input_table_td' ");
b.push("onclick=\"m_reportHashMap['" + a + "'].mRe_pageCountLabelClick();return false;\">");
b.push("<input id='re_totalCountNumber" + a + "' value='" + this.m_TPC.before + "0" + this.m_TPC.after + "' class='mobile_menu_pageCount_span' style='" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' readonly></input><span id='re_totalCount" + a + "' class='mobile_menu_pageCount_span' style='border:0px;" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' " + (this.m_disControl.caption ? "disabled" : "") + "/>");
b.push("<img id='re_progressImg" + a + "' class='report_menu_progress' src='" + progressImg() + "'/></span>");
b.push("</td>");
b.push("</tr></table>");
b.push("<button id='re_next" + a + "' onclick=\"m_reportHashMap['" + a + "'].nextPage();return false;\" class='mobile_menu_button " + (this.m_disControl.next ? "mobile_menu_dis_right_button" : "mobile_menu_right_button") + "' style='visibility:hidden;" + (null != this.next_button ? this.next_button : "") + "' " + (this.m_disControl.next ? "disabled" : "") + "></button>");
b.push("<button id='re_last" + a + "' onclick=\"m_reportHashMap['" + a + "'].lastPage();return false;\" class='mobile_menu_button " + (this.m_disControl.last ? "mobile_menu_dis_rightEnd_button" : "mobile_menu_rightEnd_button") + "' style='left:295px;" + (null != this.last_button ? this.last_button : "") + "' " + (this.m_disControl.last ? "disabled" : "") + "></button>");
b.push("<select onChange=\"m_reportHashMap['" + a + "'].zoomIn(this)\" name='zoomSelect' id='re_zoomSelect" + a + "' class='mobile_menu_zoom_combo' style='visibility:hidden;" + (null != this.zoomCombo ? this.zoomCombo : "") + "' " + (this.m_disControl.zoomIn ? "disabled" : "") + ">");
this.comboOptionCreateTag(b);
b.push("</select>");
b.push("<button id='re_close" + a + "' onclick=\"m_reportHashMap['" + a + "'].closeReport();return false;\" class='mobile_menu_button " + (this.m_disControl.last ? "mobile_menu_dis_close_button" : "mobile_menu_close_button") + "' style='" + (null != this.close_button ? this.close_button : "") + "' " + (this.m_disControl.close ? "disabled" : "") + "></button>");
b.push("</nobr></div>");
b.push("</td></tr></table>");
b.push("</div>");
b.push("<div id='re_paintDiv" + a + "' class='mobile_paint_div' style='" + ((this.m_isMenu) ? "" : "top:0px;") + (null != this.paintDiv ? this.paintDiv : "") + "' onscroll=\"m_reportHashMap['" + a + "'].pageScrollEvent(event)\" ");
if (is_firefox) {
b.push("onwheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">");
} else {
b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">");
}
b.push("</div>");
}
;
Report.prototype.tabletCreateTag = function(b, a) {
b.push("<div id='re_menu" + a + "' class='mobile_menu_div' style='" + ((this.m_isMenu) ? "" : "height:0px;") + (null != this.menuDiv ? this.menuDiv : "") + "'>");
b.push("<table class='report_menu_table' vertical-align='middle'><tr><td class='report_menu_table_td'>");
b.push("<div class='mobile_menu_table_td_div'><nobr>");
b.push("<button id='re_print" + a + "' onclick=\"m_reportHashMap['" + a + "'].printMobileView();return false;\" class='mobile_menu_button " + (this.m_disControl.save ? "mobile_menu_dis_print_button" : "mobile_menu_print_button") + "' style='" + (null != this.print_button ? this.print_button : "") + "' " + (this.m_disControl.input ? "disabled" : "") + "></button>");
b.push("<button id='re_first" + a + "' onclick=\"m_reportHashMap['" + a + "'].firstPage();return false;\" class='mobile_menu_button " + (this.m_disControl.first ? "mobile_menu_dis_leftEnd_button" : "mobile_menu_leftEnd_button") + "' style='" + (null != this.first_button ? this.first_button : "") + "' " + (this.m_disControl.first ? "disabled" : "") + "></button>");
b.push("<button id='re_prev" + a + "' onclick=\"m_reportHashMap['" + a + "'].previousPage();return false;\" class='mobile_menu_button " + (this.m_disControl.prev ? "mobile_menu_dis_left_button" : "mobile_menu_left_button") + "' style='" + (null != this.prev_button ? this.prev_button : "") + "' " + (this.m_disControl.prev ? "disabled" : "") + "></button>");
b.push("<table class='mobile_input_table' vertical-align='middle'>");
b.push("<tr>");
b.push("<td class='mobile_input_table_td_input'>");
b.push("<input id='re_input" + a + "' type='text' value='1' class='mobile_menu_pageCount_input' onkeypress=\"enterEvent(event, m_reportHashMap['" + a + "'], this)\" onblur=\"m_reportHashMap['" + a + "'].selectPage(Number(this.value) - 1)\" style='" + (null != this.input ? this.input : "") + "' " + (this.m_disControl.input ? "disabled" : "") + "/>");
b.push("</td>");
b.push("<td class='mobile_input_table_td' ");
b.push("onclick=\"m_reportHashMap['" + a + "'].mRe_pageCountLabelClick();return false;\">");
b.push("<input id='re_totalCountNumber" + a + "' value='" + this.m_TPC.before + "0" + this.m_TPC.after + "' class='mobile_menu_pageCount_span' style='" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' readonly></input><span id='re_totalCount" + a + "' class='mobile_menu_pageCount_span' style='border:0px;" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' " + (this.m_disControl.caption ? "disabled" : "") + "/>");
b.push("<img id='re_progressImg" + a + "' class='report_menu_progress' src='" + progressImg() + "'/></span>");
b.push("</td>");
b.push("</tr></table>");
b.push("<button id='re_next" + a + "' onclick=\"m_reportHashMap['" + a + "'].nextPage();return false;\" class='mobile_menu_button " + (this.m_disControl.next ? "mobile_menu_dis_right_button" : "mobile_menu_right_button") + "' style='" + (null != this.next_button ? this.next_button : "") + "' " + (this.m_disControl.next ? "disabled" : "") + "></button>");
b.push("<button id='re_last" + a + "' onclick=\"m_reportHashMap['" + a + "'].lastPage();return false;\" class='mobile_menu_button " + (this.m_disControl.last ? "mobile_menu_dis_rightEnd_button" : "mobile_menu_rightEnd_button") + "' style='" + (null != this.last_button ? this.last_button : "") + "' " + (this.m_disControl.last ? "disabled" : "") + "></button>");
b.push("<select onChange=\"m_reportHashMap['" + a + "'].zoomIn(this)\" name='zoomSelect' id='re_zoomSelect" + a + "' class='mobile_menu_zoom_combo' style='" + (null != this.zoomCombo ? this.zoomCombo : "") + "' " + +(this.m_disControl.zoomIn ? "disabled>" : ">"));
this.comboOptionCreateTag(b);
b.push("</select>");
b.push("<button id='re_close" + a + "' onclick=\"m_reportHashMap['" + a + "'].closeReport();return false;\" class='mobile_menu_button " + (this.m_disControl.next ? "mobile_menu_dis_close_button" : "mobile_menu_close_button") + "' style='" + (null != this.close_button ? this.close_button : "") + "' " + (this.m_disControl.close ? "disabled" : "") + "></button>");
b.push("</nobr></div>");
b.push("</td></tr></table>");
b.push("</div>");
b.push("<div id='re_paintDiv" + a + "' class='mobile_paint_div' style='" + ((this.m_isMenu) ? "" : "top:0px;") + (null != this.paintDiv ? this.paintDiv : "") + "' onscroll=\"m_reportHashMap['" + a + "'].pageScrollEvent(event)\" ");
if (is_firefox) {
b.push("onwheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">");
} else {
b.push("onmousewheel=\"m_reportHashMap['" + a + "'].pageMousewheelEvent(event)\">");
}
b.push("</div>");
}
;
Report.prototype.comboOptionCreateTag = function(a) {
if (this.m_comboNames.num50.visible) {
a.push("<option name='p50' value='0.5' class='report_menu_zoom_combo_option' " + ("50%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num50.name + "</option>");
}
if (this.m_comboNames.num75.visible) {
a.push("<option name='p75' value='0.75' class='report_menu_zoom_combo_option' " + ("75%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num75.name + "</option>");
}
if (this.m_comboNames.num100.visible) {
a.push("<option name='p100' value='1' class='report_menu_zoom_combo_option' " + ("100%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num100.name + "</option>");
}
if (this.m_comboNames.num125.visible) {
a.push("<option name='p125' value='1.25' class='report_menu_zoom_combo_option' " + ("125%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num125.name + "</option>");
}
if (this.m_comboNames.num150.visible) {
a.push("<option name='p150' value='1.5' class='report_menu_zoom_combo_option' " + ("150%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num150.name + "</option>");
}
if (this.m_comboNames.num200.visible) {
a.push("<option name='p200' value='2' class='report_menu_zoom_combo_option' " + ("200%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num200.name + "</option>");
}
if (this.m_comboNames.num300.visible) {
a.push("<option name='p300' value='3' class='report_menu_zoom_combo_option' " + ("300%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num300.name + "</option>");
}
if (this.m_comboNames.num400.visible) {
a.push("<option name='p400' value='4' class='report_menu_zoom_combo_option' " + ("400%" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.num400.name + "</option>");
}
if (this.m_comboNames.pagewidth.visible) {
a.push("<option name='pWidth' value='PageWidth'class='report_menu_zoom_combo_option' " + ("PageWidth" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.pagewidth.name + "</option>");
}
if (this.m_comboNames.wholepage.visible) {
a.push("<option name='pWholePage' value='WholePage'class='report_menu_zoom_combo_option' " + ("WholePage" == this.m_ratio ? "selected" : "") + ">" + this.m_comboNames.wholepage.name + "</option>");
}
}
;
Report.prototype.setPaintDivEvent = function(c, a) {
if (is_smartphone) {
var b = this;
c.style.zIndex = "100";
if (null != this.m_PageMove && !this.m_PageMove.ButtonDisabled) {
this.paintDiv.ontouchstart = function(d) {
if (d.touches.length == 1) {
b.createPageMoveButton("report");
}
}
;
} else {
if (!this.is_eForm && !this.m_isSwipe) {
$(c).bind("swipeleft", function() {
if ((b.paintDiv.clientWidth + b.paintDiv.scrollLeft + 3) >= b.paintDiv.scrollWidth) {
b.nextPage();
}
});
$(c).bind("swiperight", function() {
if (b.paintDiv.scrollLeft == 0) {
b.previousPage();
}
});
}
}
}
}
;
Report.prototype.newReportCreate = function(f, a) {
var j = null;
this.debugMeg("report log :: 리포트를 생성하기 위하여 통신 준비중....");
if (a != null) {
this.debugMeg("report log :: 사용할 OOF 문서 >>> " + a);
if (this.m_isEncode) {
a = Base64.encode(a);
}
j = "isEncoding=" + this.m_isEncode + "&isBigData=" + this.m_isBigData + "&isMemoryDump=" + this.m_isMemoryDump + "&ClipID=R01&oof=" + encodeURIComponent(a);
} else {
if (this.postData != null) {
j = this.postData;
}
}
j = mRe_onBeforeSend(j);
this.debugMeg("report log :: 서버 통신 주소 >>> " + f);
try {
if (this.m_isCrossDomain) {
var g = this;
if (window.XDomainRequest) {
var d = new XDomainRequest();
var b = f + "?" + j;
if (d) {
d.onload = function() {
g.resultNewReport(mRe_onAfterSend(d.responseText));
}
;
d.onerror = function() {
g.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. ");
mRe_ReportEventHandler(40);
g.endDebugMeg(false);
}
;
d.open("GET", b);
d.send();
}
} else {
$.ajax({
type: "POST",
url: f,
crossDomain: true,
data: j,
success: function(e) {
g.resultNewReport(mRe_onAfterSend(e));
},
error: function(e) {
g.debugMeg("report log :: 서버 통신 오류 발생 >>> " + e);
mRe_ReportEventHandler(40);
g.endDebugMeg(false);
}
});
}
} else {
var c = new HttpClient();
var i = c.send(f, j, false, null);
this.resultNewReport(mRe_onAfterSend(i));
}
} catch (h) {
this.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + h.message);
mRe_ReportEventHandler(40);
this.endDebugMeg(false);
}
}
;
Report.prototype.resultNewReport = function(a) {
this.debugMeg("report log :: 리포트 생성 통신 완료..!");
var b = objectCall(ClipStrTrim(a));
if (typeof b == "string") {
b = objectCall(b);
}
this.m_versionInfo = b.version;
this.debugMeg("report log :: 리포트 서버 버전 >>> " + b.version.build);
if (typeof window.report_version != "undefined") {
this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> " + report_version);
} else {
this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> 확인불가");
}
if (b.status) {
this.m_uid = b.uid;
this.debugMeg("report log :: 리포트 실행 및 키 발행 정상");
this.debugMeg("report log :: 리포트 키 >>> " + b.uid);
m_reportHashMap[b.uid] = this;
this.m_languageMap = mRe_report_language(this.m_language);
if (this.m_isViewer) {
this.createView(this.targetDiv, b.uid);
this.createProgress();
}
this.checkPageCount();
if (b.printerList != null && b.printerList.length > 0) {
this.printOptionValue.isNetPrint = true;
this.printOptionValue.netPrintList = b.printerList;
}
} else {
this.debugMeg("report log :: 리포트 실행 실패");
this.debugMeg("report log :: 리포트 키 >>> " + b.uid);
this.m_uid = b.uid;
m_reportHashMap[b.uid] = this;
this.m_languageMap = mRe_report_language(this.m_language);
if (this.m_isViewer) {
this.createView(this.targetDiv, b.uid);
this.progressImg.style.display = "none";
}
if (b.event > 999) {
this.debugMeg("report log :: 리포트 라이센스 불일치 >>> LE0" + b.event);
if (this.m_isViewer) {
this.paintDiv.innerHTML = this.m_languageMap.lic_error + ".!! (errorCode : LE0" + b.event + ")";
}
mRe_ReportEventHandler(b.event);
this.endDebugMeg(false);
} else {
if (b.event < 13) {
this.debugMeg("report log :: 리포트 서버 인스톨 실패 >>> IE00" + b.event);
if (this.m_isViewer) {
this.paintDiv.innerHTML = this.m_languageMap.install_error + "!! (errorCode : IE00" + b.event + ")";
}
mRe_ReportEventHandler(b.event);
this.endDebugMeg(false);
} else {
this.debugMeg("report log :: 리포트 서버에서 리포트 생성중 오류 발생. 서버 로그 확인 필요!!");
if (this.m_isViewer) {
this.paintDiv.innerHTML = this.m_languageMap.report_error;
}
mRe_ReportEventHandler(30);
this.endDebugMeg(false);
}
}
}
}
;
Report.prototype.checkReportCreate = function() {
try {
var a = this.m_reportKey;
var b = objectCall(ClipStrTrim(a));
if (typeof b == "string") {
b = objectCall(b);
}
this.m_versionInfo = b.version;
this.debugMeg("report log :: 리포트 서버 버전 >>> " + b.version.build);
if (typeof window.report_version != "undefined") {
this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> " + report_version);
} else {
this.debugMeg("report log :: 리포트 웹뷰어 버전 >>> 확인불가");
}
if (b.status) {
this.debugMeg("report log :: 리포트 실행 및 키 발행 정상");
this.debugMeg("report log :: 리포트 키 >>> " + b.uid);
this.m_uid = b.uid;
m_reportHashMap[b.uid] = this;
this.m_languageMap = mRe_report_language(this.m_language);
if (this.m_isViewer) {
this.createView(this.targetDiv, b.uid);
this.createProgress();
}
this.checkPageCount();
if (b.printerList != null && b.printerList.length > 0) {
this.printOptionValue.isNetPrint = true;
this.printOptionValue.netPrintList = b.printerList;
}
} else {
this.debugMeg("report log :: 리포트 실행 실패");
this.debugMeg("report log :: 리포트 키 >>> " + b.uid);
this.m_uid = b.uid;
m_reportHashMap[b.uid] = this;
this.m_languageMap = mRe_report_language(this.m_language);
if (this.m_isViewer) {
this.createView(this.targetDiv, b.uid);
this.progressImg.style.display = "none";
}
if (b.event > 999) {
this.debugMeg("report log :: 리포트 라이센스 불일치 >>> LE0" + b.event);
if (this.m_isViewer) {
this.paintDiv.innerHTML = this.m_languageMap.lic_error + ".!! (errorCode : LE0" + b.event + ")";
}
mRe_ReportEventHandler(b.event);
this.endDebugMeg(false);
} else {
if (b.event < 13) {
this.debugMeg("report log :: 리포트 서버 인스톨 실패 >>> IE00" + b.event);
if (this.m_isViewer) {
this.paintDiv.innerHTML = this.m_languageMap.install_error + "!! (errorCode : IE00" + b.event + ")";
}
mRe_ReportEventHandler(b.event);
this.endDebugMeg(false);
} else {
this.debugMeg("report log :: 리포트 서버에서 리포트 생성중 오류 발생. 서버 로그 확인 필요!!");
if (this.m_isViewer) {
this.paintDiv.innerHTML = this.m_languageMap.report_error;
}
mRe_ReportEventHandler(30);
this.endDebugMeg(false);
}
}
}
} catch (c) {
this.debugMeg("report log :: 웹뷰어 화면을 구성 중 오류 발생 >> " + c.message);
mRe_ReportEventHandler(30);
this.endDebugMeg(false);
}
}
;
Report.prototype.selectPage = function(a) {
if (isNaN(a)) {
this.input.value = this.beforePageIndex + 1;
if (null != this.m_PageMove && is_smartphone) {
if (!this.m_PageMove.ButtonDisabled) {
this.m_PageMove.eventKey = window.setTimeout(function() {
report.removePageMoveButton();
}, 2000);
}
}
return;
} else {
if (a < 0 || this.m_pageCount <= a || this.beforePageIndex == a) {
if (null != this.m_PageMove && is_smartphone) {
if (!this.m_PageMove.ButtonDisabled) {
this.m_PageMove.eventKey = window.setTimeout(function() {
report.removePageMoveButton();
}, 2000);
}
}
return;
}
}
if (this.m_isSlidePage) {
this.m_tempPaintDiv = this.paintDiv;
$(this.m_tempPaintDiv).attr("uid", this.m_uid);
this.paintDiv = this.m_tempPaintDiv.cloneNode();
if (this.beforePageIndex > a) {
this.paintDiv.style.left = "-100%";
$(this.m_tempPaintDiv).attr("next", "right");
} else {
this.paintDiv.style.left = "100%";
$(this.m_tempPaintDiv).attr("next", "left");
}
this.paintDiv.style.width = "100%";
this.targetDiv.firstChild.appendChild(this.paintDiv);
if (this.is_eForm) {
this.paintDiv.appendChild(this.m_tempPaintDiv.lastChild.cloneNode());
this.m_tempPaintDiv.lastChild.lastChild.style.display = "block";
this.m_tempPaintDiv.firstChild.innerHTML = "";
}
}
this.sendData(a);
this.input.value = (a + 1);
this.beforePageIndex = a;
}
;
Report.prototype.checkPageCount = function() {
var a = this;
this.checkCountLoop = window.setTimeout(function() {
a.sendToCount();
}, this.m_pageCountTime);
}
;
Report.prototype.mRe_pageCountLabelClick = function() {
if (this.m_buttonEvent.startPageCountLabel != null) {
this.m_buttonEvent.startPageCountLabel();
}
}
;
Report.prototype.deleteToReport = function() {
this.debugMeg("report log :: deleteToReport 함수 사용");
this.debugMeg("report log :: 서버에 만들어진 리포트 파일을 삭제합니다.");
window.clearTimeout(this.checkCountLoop);
var a = "ClipID=R04&uid=" + this.m_uid;
a = mRe_onBeforeSend(a);
var c = this.servletPath;
var b;
if (-1 != c.indexOf("?")) {
b = c + "&" + a;
} else {
b = c + "?" + a;
}
if (null != this.deleteImgTag) {
this.deleteImgTag.src = b;
}
this.debugMeg("report log :: 삭제 URL >>> " + b);
this.endDebugMeg(false);
}
;
Report.prototype.sendToCount = function() {
this.debugMeg("report log :: 서버에 리포트가 얼만큼 생성중인지 체크....");
this.debugMeg("report log :: 서버 통신 주소 >>>>> " + this.servletPath);
var e = new Date().getTime();
var c = "ClipID=R03&uid=" + this.m_uid + "&s_time=" + e;
c = mRe_onBeforeSend(c);
var g = this.servletPath;
if (this.m_isCrossDomain) {
var b = this;
if (window.XDomainRequest) {
var a = new XDomainRequest();
var d = g + "?" + c;
if (-1 != g.indexOf("?")) {
d = g + "&" + c;
}
if (a) {
a.onload = function() {
resultPageCountText(mRe_onAfterSend(a.responseText));
}
;
a.onerror = function() {
b.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. ");
mRe_ReportEventHandler(40);
b.endDebugMeg(false);
}
;
a.open("GET", d);
a.send();
}
} else {
$.ajax({
type: "POST",
url: g,
crossDomain: true,
data: c,
success: function(h) {
resultPageCountText(mRe_onAfterSend(h));
},
error: function(h) {
b.debugMeg("report log :: 서버 통신 오류 발생 >>> " + h);
mRe_ReportEventHandler(40);
b.endDebugMeg(false);
}
});
}
} else {
var f = new HttpClient();
var b = this;
f.send(g, c, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
resultPageCountText(mRe_onAfterSend(this.responseText));
} else {
if (b.m_isViewer) {
b.paintDiv.innerHTML = b.m_languageMap.link_error;
}
b.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status);
mRe_ReportEventHandler(40);
b.endDebugMeg(false);
b.pageSlideShow();
throw new Error(this.status);
}
}
});
}
}
;
Report.prototype.sendData = function(c) {
this.debugMeg("report log :: 리포트 화면을 호출합니다. 페이지 번호 >>> " + (c + 1));
this.m_isButtonLock = true;
if (this.m_directPrint) {
return;
}
if (is_smartphone && ((!this.is_eForm) || (this.is_eForm && !this.m_isSlidePage))) {
this.createEditableProgress();
}
if (this.m_pageMoveEvent.start != null) {
this.m_pageMoveEvent.start();
}
if (this.is_eForm) {
this.sendEFormData(c);
return;
}
var j = "true";
if (is_ie6 || is_ie7 || is_ie8) {
if (this.m_isPaintImage) {
this.debugMeg("report log :: 리포트 화면을 이미지 모드로 사용합니다. (IE 7 ~ 8 전용)");
j = "false";
var l = "ClipID=R02&pageNumber=" + c + "&uid=" + this.m_uid + "&html5=" + j + "&DPI=" + this.m_DPI + "&necessaryCheck=" + this.m_necessaryCheck;
l = mRe_onBeforeSend(l);
if ("{clip_enc}" == l) {
return;
}
var i = document.createElement("img");
if (null != this.paintDiv.lastChild) {
var h = this.paintDiv.childNodes.length;
for (var b = h - 1; b >= 0; b--) {
this.paintDiv.removeChild(this.paintDiv.childNodes[b]);
}
}
this.paintDiv.appendChild(i);
i.alt = this.m_languageMap.img_alt;
var k = this.m_uid;
i.onload = function() {
m_reportHashMap[k].onloadImage();
}
;
var a = this.servletPath + "?" + l;
if (-1 != this.servletPath.indexOf("?")) {
a = this.servletPath + "&" + l;
}
i.src = a;
this.pageSlideShow();
if (this.m_isEndReport && this.m_isEndReportEvent) {
if (this.m_endreportprogress.is_visible) {
this.m_endreportprogress.is_visible = false;
this.removeEndReportProgress();
}
mRe_ReportEventHandler(200);
if (this.m_isReportEndFunction != null) {
this.m_isReportEndFunction();
}
this.m_isEndReportEvent = false;
} else {
if (!this.m_isEndReport) {
if (this.m_endreportprogress.is_visible) {
this.createEndReportProgress();
}
}
}
this.endDebugMeg(false);
return;
} else {
this.m_isAccessibility = true;
}
}
var l = "ClipID=R02&pageNumber=" + c + "&uid=" + this.m_uid + "&html5=" + j + "&DPI=" + this.m_DPI + "&Accessibility=" + this.m_isAccessibility + "&UseOriginImage=" + this.m_isUseOriginImage + "&isChartToImage=" + this.m_isChartToImage + "&necessaryCheck=" + this.m_necessaryCheck;
if (this.m_isAccessibility) {
l += "&AHname=" + encodeURIComponent(Base64.encode(this.servletPath));
}
l = mRe_onBeforeSend(l);
if ("{clip_enc}" == l) {
return;
}
var g = this.servletPath;
this.debugMeg("report log :: 리포트 화면을 가져오는 통신을 시도합니다 >>>> " + g);
if (this.m_isCrossDomain) {
var f = this;
if (window.XDomainRequest) {
var e = new XDomainRequest();
var a = g + "?" + l;
if (-1 != g.indexOf("?")) {
a = g + "&" + l;
}
if (e) {
e.onload = function() {
paintReportText(mRe_onAfterSend(e.responseText));
}
;
e.onerror = function() {
f.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. ");
mRe_ReportEventHandler(40);
f.endDebugMeg(false);
}
;
e.open("GET", a);
e.send();
}
} else {
$.ajax({
type: "POST",
url: g,
crossDomain: true,
data: l,
success: function(m) {
paintReportText(mRe_onAfterSend(m));
},
error: function(m) {
f.debugMeg("report log :: 서버 통신 오류 발생 >>> " + m);
mRe_ReportEventHandler(40);
f.endDebugMeg(false);
}
});
}
} else {
var f = this;
var d = new HttpClient();
d.send(g, l, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintReportText(mRe_onAfterSend(this.responseText));
} else {
f.paintDiv.innerHTML = f.m_languageMap.link_error;
f.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status);
mRe_ReportEventHandler(40);
f.endDebugMeg(false);
f.pageSlideShow();
throw new Error(this.status);
}
}
});
}
}
;
Report.prototype.sendDataEnc = function(l) {
var c = this.beforePageIndex;
this.debugMeg("report log :: 리포트 화면을 호출합니다. 페이지 번호 >>> " + (c + 1));
this.m_isButtonLock = true;
if (this.m_directPrint) {
return;
}
if (this.is_eForm) {
this.sendEFormData(c);
return;
}
var j = "true";
if (is_ie6 || is_ie7 || is_ie8) {
if (this.m_isPaintImage) {
this.debugMeg("report log :: 리포트 화면을 이미지 모드로 사용합니다. (IE 7 ~ 8 전용)");
j = "false";
var i = document.createElement("img");
if (null != this.paintDiv.lastChild) {
var h = this.paintDiv.childNodes.length;
for (var b = h - 1; b >= 0; b--) {
this.paintDiv.removeChild(this.paintDiv.childNodes[b]);
}
}
this.paintDiv.appendChild(i);
i.alt = this.m_languageMap.img_alt;
var k = this.m_uid;
i.onload = function() {
m_reportHashMap[k].onloadImage();
}
;
var a = this.servletPath + "?" + l;
if (-1 != this.servletPath.indexOf("?")) {
a = this.servletPath + "&" + l;
}
i.src = a;
this.pageSlideShow();
if (this.m_isEndReport && this.m_isEndReportEvent) {
if (this.m_endreportprogress.is_visible) {
this.m_endreportprogress.is_visible = false;
this.removeEndReportProgress();
}
mRe_ReportEventHandler(200);
if (this.m_isReportEndFunction != null) {
this.m_isReportEndFunction();
}
this.m_isEndReportEvent = false;
} else {
if (!this.m_isEndReport) {
if (this.m_endreportprogress.is_visible) {
this.createEndReportProgress();
}
}
}
this.endDebugMeg(false);
if (this.m_pageMoveEvent.end != null) {
this.m_pageMoveEvent.end();
}
return;
} else {
this.m_isAccessibility = true;
}
}
var g = this.servletPath;
this.debugMeg("report log :: 리포트 화면을 가져오는 통신을 시도합니다 >>>> " + g);
if (this.m_isCrossDomain) {
var f = this;
if (window.XDomainRequest) {
var e = new XDomainRequest();
var a = g + "?" + l;
if (-1 != g.indexOf("?")) {
a = g + "&" + l;
}
if (e) {
e.onload = function() {
paintReportText(mRe_onAfterSend(e.responseText));
}
;
e.onerror = function() {
f.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. ");
mRe_ReportEventHandler(40);
f.endDebugMeg(false);
if (f.m_pageMoveEvent.end != null) {
f.m_pageMoveEvent.end();
}
}
;
e.open("GET", a);
e.send();
}
} else {
$.ajax({
type: "POST",
url: g,
crossDomain: true,
data: l,
success: function(m) {
paintReportText(mRe_onAfterSend(m));
},
error: function(m) {
f.debugMeg("report log :: 서버 통신 오류 발생 >>> " + m);
mRe_ReportEventHandler(40);
f.endDebugMeg(false);
if (f.m_pageMoveEvent.end != null) {
f.m_pageMoveEvent.end();
}
}
});
}
} else {
var f = this;
var d = new HttpClient();
d.send(g, l, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintReportText(mRe_onAfterSend(this.responseText));
} else {
f.paintDiv.innerHTML = f.m_languageMap.link_error;
f.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status);
mRe_ReportEventHandler(40);
f.endDebugMeg(false);
f.pageSlideShow();
if (f.m_pageMoveEvent.end != null) {
f.m_pageMoveEvent.end();
}
throw new Error(this.status);
}
}
});
}
}
;
Report.prototype.editableControl = function(k) {
if (this.m_isButtonLock == false) {
var h = k.getAttribute("type");
var i = k.value;
var b = k.getAttribute("controlindex");
if ("text" != h) {
i = k.checked + "";
if (k.tagName == "SPAN") {
var j = k.getAttribute("checkValue");
if (j == "true") {
i = "false";
} else {
i = "true";
}
}
}
i = encodeURIComponent(Base64.encode(i));
var g = this.m_necessaryCheck;
var m = {
necessaryPage: g,
data: new Array()
};
m.data[Number(b)] = {};
m.data[Number(b)].type = h;
m.data[Number(b)].controlIndex = b;
m.data[Number(b)].value = i;
var c = new Date().getTime();
var l = "ClipID=R11&pageNumber=" + this.beforePageIndex + "&uid=" + this.m_uid + "&Accessibility=" + this.m_isAccessibility + "&data=" + JSON.stringify(m) + "&s_time=" + c;
if (this.m_isAccessibility) {
l += "&AHname=" + encodeURIComponent(Base64.encode(this.servletPath));
}
l = mRe_onBeforeSend(l);
if (this.m_isCrossDomain) {
var f = this;
if (window.XDomainRequest) {
var e = new XDomainRequest();
var a = servletPath + "?" + l;
if (e) {
e.onload = function() {
paintReportText(mRe_onAfterSend(e.responseText));
}
;
e.onerror = function() {
ReportWebLog("IE8 crossDomain error");
mRe_ReportEventHandler(40);
}
;
e.open("GET", a);
e.send();
}
} else {
$.ajax({
type: "POST",
url: servletPath,
crossDomain: true,
data: l,
success: function(n) {
paintReportText(mRe_onAfterSend(n));
},
error: function(n) {
ReportWebLog(n);
mRe_ReportEventHandler(40);
}
});
}
} else {
var f = this;
var d = new HttpClient();
d.send(this.servletPath, l, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintReportText(mRe_onAfterSend(this.responseText));
} else {
f.paintDiv.innerHTML = f.m_languageMap.link_error;
mRe_ReportEventHandler(40);
f.pageSlideShow();
throw new Error(this.status);
}
}
});
}
this.createEditableProgress();
k.style.zIndex = "0";
}
}
;
Report.prototype.webLinkControl = function() {
if (arguments.length > 1) {
var e = arguments[0];
var b = arguments[1];
var a = document.createElement("form");
document.body.appendChild(a);
var d = null;
var g = e.split("?");
switch (g.length) {
case 2:
d = g[1];
var j = d.split("&");
for (var f = 0; f < j.length; f++) {
var h = j[f].split("=");
var c = document.createElement("input");
c.type = "hidden";
c.name = h[0];
c.value = h[1];
a.appendChild(c);
}
case 1:
e = g[0];
a.method = "post";
a.action = e;
break;
}
if ("self" == b) {
a.target = "_self";
} else {
if ("blank" == b) {
a.target = "_blank";
} else {
if ("window" == b) {
window.open("", "report_SubWindow1", "height=" + arguments[3] + ",width=" + arguments[2]);
a.target = "report_SubWindow1";
} else {
a.target = arguments[2];
}
}
}
a.submit();
document.body.removeChild(a);
}
}
;
Report.prototype.drilingControl = function(i) {
if (this.m_isButtonLock == false) {
var f = this.m_necessaryCheck;
var g = {
necessaryPage: f,
data: new Array()
};
g.data[0] = {};
g.data[0].driling = true;
g.data[0].value = i;
this.m_drilingTop = this.paintDiv.scrollTop;
var b = new Date().getTime();
var h = "ClipID=R11&pageNumber=" + this.beforePageIndex + "&uid=" + this.m_uid + "&Accessibility=" + this.m_isAccessibility + "&data=" + JSON.stringify(g) + "&s_time=" + b;
h = mRe_onBeforeSend(h);
if (this.m_isCrossDomain) {
var e = this;
if (window.XDomainRequest) {
var d = new XDomainRequest();
var a = servletPath + "?" + h;
if (d) {
d.onload = function() {
e.resultNewReport(mRe_onAfterSend(d.responseText));
}
;
d.onerror = function() {
ReportWebLog("IE8 crossDomain error");
mRe_ReportEventHandler(40);
}
;
d.open("GET", a);
d.send();
}
} else {
$.ajax({
type: "POST",
url: servletPath,
crossDomain: true,
data: h,
success: function(j) {
paintReportText(mRe_onAfterSend(j));
},
error: function(j) {
ReportWebLog(j);
mRe_ReportEventHandler(40);
}
});
}
} else {
var e = this;
var c = new HttpClient();
c.send(this.servletPath, h, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintReportText(mRe_onAfterSend(this.responseText));
} else {
e.paintDiv.innerHTML = e.m_languageMap.link_error;
mRe_ReportEventHandler(40);
e.pageSlideShow();
throw new Error(this.status);
}
}
});
}
this.createEditableProgress();
}
}
;
Report.prototype.editableKeyEvent = function(a, c) {
if (c.keyCode == 13) {
if (c.ctrlKey) {
var d = a.value;
if (typeof a.selectionStart == "number" && typeof a.selectionEnd == "number") {
var e = a.selectionStart;
a.value = d.slice(0, e) + "\n" + d.slice(a.selectionEnd);
a.selectionStart = a.selectionEnd = e + 1;
} else {
if (document.selection && document.selection.createRange) {
a.focus();
var b = document.selection.createRange();
b.text = "\r\n";
b.collapse(false);
b.select();
}
}
return;
}
a.blur();
if (c.preventDefault) {
c.preventDefault();
}
c.returnValue = false;
}
}
;
Report.prototype.onloadImage = function() {
this.zoomIn(this.zoomCombo);
}
;
Report.prototype.paintReport = function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintReportText(this.responseText);
} else {
this.paintDiv.innerHTML = this.m_languageMap.link_error;
mRe_ReportEventHandler(40);
this.pageSlideShow();
throw new Error(this.status);
}
}
}
;
Report.prototype.resultDeleteReport = function() {
if (4 == this.readyState) {
if (200 == this.status) {
var a = this.responseText;
var b = objectCall(ClipStrTrim(a));
if (typeof b == "string") {
b = objectCall(b);
}
try {
if (!b.status) {
mRe_ReportEventHandler(50);
}
} catch (c) {
mRe_ReportEventHandler(50);
throw new Error(this.status);
}
}
}
}
;
Report.prototype.selectPrintOption = function(a) {
mRe_setLocalStorage("mRe_print_report", a.value);
this.printOptionValue.localStorage = a.value;
this.mRe_selectPrintOption(a.value);
}
;
Report.prototype.zoomIn = function(j) {
if (this.m_buttonEvent.startZoomInSelect != null) {
var a = this.m_buttonEvent.startZoomInSelect();
if (a != true) {
return;
}
}
if (!is_svg && this.m_isPaintImage && null == this.pageWidth) {
var n = this.paintDiv.firstChild;
if (null != n && "IMG" == n.tagName) {
if (40 > n.offsetWidth || 40 > n.offsetHeight) {
var i = this;
window.setTimeout(function() {
i.zoomIn(j);
}, 200);
return;
}
this.pageWidth = n.offsetWidth;
this.pageHeight = n.offsetHeight;
}
}
var p = j.value;
var o;
if (is_ie) {
this.paintDiv.firstChild.style.visibility = "hidden";
}
if ("PageWidth" == p) {
if (!is_smartphone) {
this.paintDiv.style.overflowX = "hidden";
this.paintDiv.style.overflowY = "auto";
}
var e = this.paintDiv.clientWidth;
o = e / Number(this.pageWidth);
} else {
if ("WholePage" == p) {
if (!is_smartphone) {
this.paintDiv.scrollTop = 0;
this.paintDiv.style.overflowX = "auto";
this.paintDiv.style.overflowY = "hidden";
}
var e = this.paintDiv.clientWidth;
var b = this.paintDiv.clientHeight;
var g = e / Number(this.pageWidth);
var m = b / Number(this.pageHeight);
o = g > m ? m : g;
} else {
this.paintDiv.style.overflowX = "auto";
this.paintDiv.style.overflowY = "auto";
o = p;
}
}
this.eFormDoodleOption.zoomIn = Re_zoom.rate = Number(o);
if (!is_svg && this.m_isPaintImage) {
var n = this.paintDiv.firstChild;
if (null != n && "IMG" == n.tagName) {
if ("PageWidth" == p) {
n.setAttribute("width", "100%");
n.removeAttribute("height");
} else {
if ("WholePage" == p) {
n.removeAttribute("width");
n.setAttribute("height", "100%");
} else {
if (o == 1) {
n.removeAttribute("width");
n.removeAttribute("height");
} else {
n.setAttribute("width", Number(this.pageWidth) * Number(o));
n.setAttribute("height", Number(this.pageHeight) * Number(o));
}
}
}
}
} else {
if (this.m_isAccessibility && !this.is_eForm) {
var d = this.paintDiv.firstChild;
if (null != d) {
d.style.zoom = o;
if (is_firefox) {
var c = this.paintDiv.clientWidth;
d.style.MozTransform = "scale(" + o + ")";
d.style.MozTransformOrigin = "0 0 0";
d.style.position = "absolute";
var q = d.clientWidth * Number(o);
var f = 0;
if (c - q > 0) {
f = (c - q) / 2;
}
d.style.left = f + "px";
}
}
} else {
var k = this.paintDiv.firstChild.firstChild;
if (null != k) {
k.setAttribute("width", Number(this.pageWidth) * Number(o));
k.setAttribute("height", Number(this.pageHeight) * Number(o));
if (null != k.lastChild) {
k.lastChild.setAttribute("transform", "scale(" + o + ") translate(0,0)");
}
if (is_apple) {
if (1 < Number(o)) {
k.setAttribute("text-rendering", "geometricPrecision");
} else {
k.setAttribute("text-rendering", "auto");
}
}
if (is_edge) {
var l = this.targetDiv;
if ("hidden" != l.style.visibility) {
window.setTimeout(function() {
l.style.visibility = "";
window.setTimeout(function() {
l.style.visibility = "visible";
}, 200);
}, 200);
}
}
}
var h = this.paintDiv.firstChild.nextSibling;
if (null != h) {
h.style.zoom = o;
if (is_firefox) {
h.style.MozTransform = "scale(" + o + ")";
h.style.MozTransformOrigin = "0 0 0";
h.style.position = "absolute";
window.m_firefox_Rescale = o;
var i = this;
if (null == window.onresize) {
window.onresize = function() {
var r = i.paintDiv.clientWidth;
var t = h.clientWidth * Number(m_firefox_Rescale);
var s = 0;
if (r - t > 0) {
s = (r - t) / 2;
}
h.style.left = s + "px";
}
;
}
var c = this.paintDiv.clientWidth;
var q = h.clientWidth * Number(o);
var f = 0;
if (c - q > 0) {
f = (c - q) / 2;
}
h.style.left = f + "px";
}
}
}
}
if (is_ie) {
this.paintDiv.firstChild.style.visibility = "visible";
}
}
;
Report.prototype.pageScrollEvent = function(a) {}
;
Report.prototype.pageMousewheelEvent = function(e) {
if (this.m_scrollEv.isScrollPaging) {
var d = this.paintDiv;
if (null != d) {
var a = d.clientHeight;
var c = d.scrollHeight;
var g = d.scrollTop;
var b = d.style.overflowY;
if (d.scrollTop == 0) {
var f = 0;
if (is_firefox) {
f = e.deltaY;
if (f > 0) {
f = -1;
} else {
if (f < 0) {
f = 1;
}
}
} else {
f = e.wheelDelta;
}
if (f > 0) {
this.previousPage();
if (e.preventDefault) {
e.preventDefault();
}
e.returnValue = false;
}
}
if (null != a && null != c && (b == "hidden" || ((a + 10) > c))) {
var f = 0;
if (is_firefox) {
f = e.deltaY;
if (f > 0) {
f = -1;
} else {
if (f < 0) {
f = 1;
}
}
} else {
f = e.wheelDelta;
}
if (f > 0) {
this.previousPage();
} else {
if (f < 0) {
this.nextPage();
}
}
if (e.preventDefault) {
e.preventDefault();
}
e.returnValue = false;
} else {
if (null != a && null != c && (b == "auto" && ((g + a + 5) > c))) {
var f = 0;
if (is_firefox) {
f = e.deltaY;
if (f > 0) {
f = -1;
} else {
if (f < 0) {
f = 1;
}
}
} else {
f = e.wheelDelta;
}
if (f < 0) {
if (this.m_scrollEv.isBottomEvent == null) {
this.m_scrollEv.isBottomEvent = true;
} else {
if (this.m_scrollEv.isBottomEvent) {
this.m_scrollEv.isBottomEvent = null;
this.nextPage();
}
}
if (e.preventDefault) {
e.preventDefault();
}
e.returnValue = false;
}
}
}
}
}
}
;
Report.prototype.pageSlideShow = function() {
if (this.m_isSlidePage && null != this.m_tempPaintDiv) {
this.m_tempPaintDiv.style.overflow = "hidden";
var b = $(this.m_tempPaintDiv).attr("next");
var a = this;
if ("right" == b) {
$(this.m_tempPaintDiv).animate({
left: "100%",
width: "100%"
}, 700, function() {
try {
a.targetDiv.firstChild.removeChild(this);
a.m_tempPaintDiv = null;
} catch (c) {}
});
} else {
$(this.m_tempPaintDiv).animate({
left: "-100%",
width: "100%"
}, 700, function() {
try {
a.targetDiv.firstChild.removeChild(this);
a.m_tempPaintDiv = null;
} catch (c) {}
});
}
$(this.paintDiv).animate({
left: "0%",
width: "100%",
opacity: 1
}, 700, function() {
a.m_isButtonLock = false;
});
} else {
this.m_isButtonLock = false;
}
}
;
Report.prototype.disabledMenu = function(a) {
if (!this.m_disControl.save && null != this.save_button) {
this.save_button.disabled = a;
}
if (!this.m_disControl.print && null != this.print_button) {
this.print_button.disabled = a;
}
if (!this.m_disControl.input && null != this.input) {
this.input.disabled = a;
}
if (!this.m_disControl.caption && null != this.totalCountText) {
this.totalCountText.disabled = a;
}
if (!this.m_disControl.zoomIn && null != this.zoomCombo) {
this.zoomCombo.disabled = a;
}
if (!this.m_disControl.first && null != this.first_button) {
this.first_button.disabled = a;
}
if (!this.m_disControl.prev && null != this.prev_button) {
this.prev_button.disabled = a;
}
if (!this.m_disControl.next && null != this.next_button) {
this.next_button.disabled = a;
}
if (!this.m_disControl.last && null != this.last_button) {
this.last_button.disabled = a;
}
if (!this.m_disControl.pdf && null != this.pdf_button) {
this.pdf_button.disabled = a;
}
if (!this.m_disControl.excel && null != this.excel_button) {
this.excel_button.disabled = a;
}
if (!this.m_disControl.hwp && null != this.hwp_button) {
this.hwp_button.disabled = a;
}
if (!this.m_disControl.doc && null != this.doc_button) {
this.doc_button.disabled = a;
}
if (!this.m_disControl.reportInfo && null != this.reportInfo_button) {
this.reportInfo_button.disabled = a;
}
}
;
Report.prototype.reportInfo = function() {
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var a = document.createElement("div");
a.className = "report_view_box report_info_view_position";
var b = new Array();
b.push("<div style='position:absolute;left:15px;right:15px;top:20px;bottom:40px;border:1px solid darkgray'>");
b.push("<div class='report_view_cliplogo' style='position:absolute;left:8px;top:12px;height:30%;width:45%;background-color: white;border-style:double;'></div>");
b.push("<div style='position:absolute;right:8px;top:18px;height:25%;width:45%;'>");
b.push(this.m_languageMap.version + " : " + this.m_languageMap.clipReport + " 4.0(" + this.m_versionInfo.build + ")<br>");
if (typeof window.report_version != "undefined") {
b.push(this.m_languageMap.webversion + " : " + report_version + " <br>");
} else {
b.push(this.m_languageMap.webversion + " : unknown <br>");
}
b.push(this.m_languageMap.build + " : " + this.m_versionInfo.day);
b.push("</div>");
b.push("<div style='position:absolute;left:8px; right:8px;top:43%;height:50%;'>");
b.push("Copyright (C) 2011 CLIPSOFT Co., Ltd. All Rights Reserved.<br>");
b.push("http://www.clipsoft.co.kr<br><br>");
b.push(this.m_languageMap.report_info_text);
b.push("</div></div>");
b.push("<span class='report_view_box' style='position:absolute;left:20px;top:13px;border:0;'>" + this.m_languageMap.report_info + "</span>");
b.push("<button title='" + this.m_languageMap.ok + "' onclick=\"mRe_closeReportInfo('" + this.m_uid + "');return false;\" class='report_view_button' style='bottom:5px;right:15px;height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
a.innerHTML = b.join("");
b = null;
this.m_reportInfo_view = a;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(a);
}
}
;
Report.prototype.checkPrintCount = function() {
var a = this.printOptionValue.domList;
if (null != a) {
return (this.printOptionValue.endNum - this.printOptionValue.startNum) + 1;
}
return this.m_pageCount;
}
;
Report.prototype.checkPrintHTMLView = function() {
if (null == this.m_limitedPrint) {
this.m_limitedPrint = 100;
}
if (this.m_pageCount > this.m_limitedPrint) {
this.printLimitedExportView("html");
return;
}
this.mRe_printHTMLView();
}
;
Report.prototype.mRe_printHTMLView = function() {
this.createPrintProgress();
var c = 1;
var a = this.m_pageCount;
if (this.printOptionValue.domList != null) {
c = this.printOptionValue.startNum;
a = this.printOptionValue.endNum;
}
try {
printOp = {
type: (is_ie6 || is_ie7 || is_ie8) ? 0 : 1,
option: {
startNum: c,
endNum: a
},
url: this.servletPath,
uid: this.m_uid,
dpi: is_ie ? 159 : 96,
firefox: is_firefox
};
var b = document.getElementById("re_iframe3" + this.m_uid);
var f = b.contentWindow;
f.document.write(getPrintFrame(this.m_printPage));
f.bodyPaint(printOp, this);
} catch (d) {
this.removePrintProgress();
mRe_ReportEventHandler(102);
}
}
;
Report.prototype.mRe_printHTMLViewEnd = function(a) {
this.removePrintProgress();
if (!a) {
mRe_ReportEventHandler(102);
}
}
;
Report.prototype.mRe_printHWPView = function() {
this.createPrintProgress();
try {
if (is_ie) {
if (null == this.hwp_object) {
var c = document.createElement("div");
c.innerHTML = mRe_HWPFrame_Object();
this.hwp_object = c.firstChild;
this.targetDiv.appendChild(this.hwp_object);
c = null;
}
var b = "";
if (-1 != this.servletPath.indexOf("?")) {
b = servletPath + "&";
} else {
b = this.servletPath + "?";
}
var a = "ClipID=R07&uid=" + this.m_uid + "&fileName=report.hwp&print=print&path=" + escape(this.clientPath) + "&optionValue=" + this.checkPrintJsonOption();
this.hwp_object.Open(b + a);
this.hwp_object.printDocument();
this.removePrintProgress();
} else {
this.formTag_clipid.value = "R07";
this.formTag_uid.value = this.m_uid;
this.formTag_print.value = "print";
this.formTag_path.value = this.clientPath;
this.formTag_option.value = this.checkPrintJsonOption();
this.formTag.action = this.servletPath;
this.formTag.target = "_blank";
this.formTag.submit();
}
} catch (d) {
this.removePrintProgress();
mRe_ReportEventHandler(101);
}
}
;
Report.prototype.mRe_printEXEView = function() {
this.debugMeg("report log :: EXE Print 인쇄를 시작합니다. >>>>>>>>>>>>>>>");
if (this.m_isViewer) {
this.createPrintProgress();
}
try {
var c = this.servletPath;
if (!this.m_exePrintStatus.isSet) {
this.m_exePrintOption.startNumber = this.printOptionValue.startNum;
this.m_exePrintOption.endNumber = this.printOptionValue.endNum;
}
if ("http:" == location.protocol.toLocaleLowerCase()) {
this.m_exePrintStatus.url = "http://127.0.0.1:";
this.m_exePrintStatus.port = this.m_exePrintStatus.httpPort;
} else {
this.m_exePrintStatus.url = "https://127.0.0.1:";
this.m_exePrintStatus.port = this.m_exePrintStatus.httpsPort;
}
var d = "";
if (-1 != this.servletPath.indexOf("?")) {
d = this.servletPath + "&";
} else {
d = this.servletPath + "?";
}
this.debugMeg("report log :: EXE Print 인쇄하기 위하여 통신 준비중....");
d += "ClipID=S01";
this.debugMeg("report log :: 서버 통신 주소 >>> " + d);
var f = new HttpClient();
d = mRe_onBeforeSend(d);
var q = f.send(d, "", false, null);
q = ClipStrTrim(mRe_onAfterSend(q));
this.debugMeg("report log :: 리포트 생성 통신 완료..!");
this.debugMeg("report log :: 쿠키정보 체크 >>> " + q);
var h = this;
if (typeof window.exe_print_version != "undefined") {
this.debugMeg("report log :: exe Print version >>> " + exe_print_version);
} else {
this.debugMeg("report log :: exe Print version >>> 확인불가");
exe_print_version = "1.0.0.1";
}
var o = this.beforePageIndex + 1;
var i = {
cookie: encodeURIComponent(q),
serverPath: encodeURIComponent(c),
ClipID: "P01",
uid: h.m_uid,
version: exe_print_version,
currentPage: o,
totalPageCount: h.m_pageCount,
printSet: h.m_exePrintOption
};
var a = "option=" + JSON.stringify(i);
this.debugMeg("report log :: 프린트 설정 정보 >>> " + a);
this.endDebugMeg(true);
this.m_exePrintStatus.disConnectCount = 0;
this.m_exePrintStatus.intervalKey = window.setInterval(function() {
if (3 == h.m_exePrintStatus.disConnectCount) {
window.clearInterval(h.m_exePrintStatus.intervalKey);
if (h.m_isViewer) {
h.removePrintProgress();
}
h.notFoundEXEService(false);
mRe_ReportEventHandler(103);
}
}, 1500);
if (window.XDomainRequest) {
var n = new XDomainRequest();
if (n) {
try {
n.onload = function() {
h.startEXEPrintResponse(n.responseText);
}
;
n.onerror = function() {
h.m_exePrintStatus.disConnectCount++;
}
;
n.open("POST", this.m_exePrintStatus.url + this.m_exePrintStatus.port[0]);
n.send(a);
} catch (b) {}
}
var m = new XDomainRequest();
if (m) {
try {
m.onload = function() {
h.startEXEPrintResponse(m.responseText);
}
;
m.onerror = function() {
h.m_exePrintStatus.disConnectCount++;
}
;
m.open("POST", this.m_exePrintStatus.url + this.m_exePrintStatus.port[1]);
m.send(a);
} catch (b) {}
}
var l = new XDomainRequest();
if (l) {
try {
l.onload = function() {
h.startEXEPrintResponse(l.responseText);
}
;
l.onerror = function() {
h.m_exePrintStatus.disConnectCount++;
}
;
l.open("POST", this.m_exePrintStatus.url + this.m_exePrintStatus.port[2]);
l.send(a);
} catch (b) {}
}
} else {
for (var j = 0; j < this.m_exePrintStatus.port.length; j++) {
var p = this.m_exePrintStatus.port[j];
var g = this.m_exePrintStatus.url + p;
$.ajax({
type: "POST",
url: g,
crossDomain: true,
data: a,
success: function(e) {
h.startEXEPrintResponse(e);
},
error: function(e) {
h.m_exePrintStatus.disConnectCount++;
}
});
}
}
} catch (k) {
if (this.m_isViewer) {
this.removePrintProgress();
}
mRe_ReportEventHandler(104);
}
}
;
Report.prototype.mRe_printView = function() {
this.createPrintProgress();
if (m_report_printOption.acrobat) {
if (is_firefox || is_safari) {
this.removePrintProgress();
this.printFirefoxExportView();
} else {
if (is_chrome || is_opera) {
if ("Chrome PDF Viewer" == m_report_printOption.acrobatVersion || "Chromium PDF Viewer" == m_report_printOption.acrobatVersion) {
var a = "({'url':'" + this.servletPath + "','uid':'" + this.m_uid + "','isPDFPrintImage':'" + this.isPDFPrintImage + "','isChromePrintFitToPage':'" + this.isChromePrintFitToPage + "','clientPath':'" + this.clientPath + "','optionValue':";
a += this.checkPrintJsonOption() + "})";
var b = document.getElementById("re_iframe2" + this.m_uid);
b.contentWindow.postMessage(a, "*");
} else {
this.removePrintProgress();
this.printFirefoxExportView();
}
} else {
if (is_ie || is_ie11) {
if (is_win78_reader9 && this.adobe9Permission) {
this.printIEWindow();
} else {
if (is_win78_reader9 || is_reader8) {
this.removePrintProgress();
if (!this.m_directPrint) {
this.printIEExportView();
}
mRe_ReportEventHandler(150);
} else {
this.printIEWindow();
}
}
}
}
}
} else {
if (is_edge) {
this.removePrintProgress();
this.printEdgeExportView();
} else {
if (is_mozBrowser || is_safari) {
this.removePrintProgress();
this.printFirefoxExportView();
} else {
this.removePrintProgress();
if (!this.m_directPrint) {
this.printNotExportView();
}
mRe_ReportEventHandler(100);
}
}
}
}
;
Report.prototype.printIEWindow = function() {
var e = document.getElementById("re_object" + this.m_uid);
if (null == e) {
var d = document.createElement("div");
d.style.cssText = "postion:absolute;left:0px;top:0px;width:1px;height:1px;border:0px solid transparent";
var c = "<object id='re_object" + this.m_uid + "' classid='CLSID:CA8A9780-280D-11CF-A24D-444553540000' type='application/pdf' style='position:absolute;left:0px;top:0px;width:1px;height:1px;display:none;'></object>";
d.innerHTML = c;
if (this.m_directPrint) {
document.body.appendChild(d);
} else {
this.targetDiv.appendChild(d);
}
e = d.firstChild;
}
var b = this.servletPath + "?";
if (-1 != this.servletPath.indexOf("?")) {
b = this.servletPath + "&";
}
var a = new Date().getTime();
e.src = b + "ClipID=R08&uid=" + this.m_uid + "&isPDFPrintImage=" + this.isPDFPrintImage + "&print=print&path=" + escape(this.clientPath) + "&isChromePrintFitToPage=" + this.isChromePrintFitToPage + "&optionValue=" + encodeURIComponent(this.checkPrintJsonOption()) + "&s_time=" + a;
e.style.display = "block";
CReportPrintPDf(this.m_uid);
}
;
Report.prototype.next_printPdfDownLoad = function() {
if (this.fileDownLoding) {
this.debugMeg("report log :: 다른 파일 저장중입니다..파일 저장을 종료합니다.");
this.endDebugMeg(true);
return;
}
this.fileDownLoding = true;
var a = this;
var b = this.m_uid;
this.debugMeg("report log :: PDF 파일 저장 시작..");
if (this.m_isEndReport) {
this.createSAVEProgress();
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = b;
this.saveFormTag.path.value = this.clientPath;
var f = Base64.encode(this.m_strFileName);
var e = {
exportType: 2,
name: f,
pageType: 1,
startNum: this.printOptionValue.startNum,
endNum: this.printOptionValue.endNum,
option: {
isSplite: false,
spliteValue: 1,
fileNames: null,
userpw: "",
textToImage: false,
importOriginImage: false
}
};
var d = null;
if (this.m_saveDirectPDFOp != null) {
d = this.m_saveDirectPDFOp;
} else {
if ((typeof window.getDirectSavePDFOption != "undefined")) {
d = getDirectSavePDFOption();
}
}
if (d != null) {
if ("cmVwb3J0" == f) {
e.name = Base64.encode(d.fileName);
}
e.option.isSplite = d.isSplite;
e.option.spliteValue = d.spliteValue;
e.option.userpw = d.userpw;
e.option.textToImage = d.textToImage;
e.option.importOriginImage = d.importOriginImage;
}
this.saveFormTag.option.value = JSON.stringify(e);
this.saveFormTag.filename.value = e.name;
this.saveFormTag.filetype.value = e.exportType;
this.debugMeg("report log :: PDF 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
var c = document.getElementById("re_iframe" + this.m_uid);
if (null != c) {
c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag);
}
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "re_target" + this.m_uid;
this.saveFormTag.form.submit();
}
e = null;
d = null;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("pdf");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var g = mRe_getReportCookie("fileSaveDownloadToken");
if (g == b) {
a.removePDFProgress();
}
}, 1000);
}
} else {
mRe_ReportEventHandler(10);
}
window.setTimeout(function() {
a.fileDownLoding = false;
}, 2000);
}
;
Report.prototype.next_pdfDownLoad = function() {
if (this.fileDownLoding) {
this.debugMeg("report log :: 다른 파일 저장중입니다..파일 저장을 종료합니다.");
this.endDebugMeg(true);
return;
}
this.fileDownLoding = true;
var a = this;
var b = this.m_uid;
this.debugMeg("report log :: PDF 파일 저장 시작..");
if (this.m_isEndReport && is_smartphone) {
this.createSAVEProgress();
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = b;
this.saveFormTag.path.value = this.clientPath;
var g = Base64.encode(this.m_strFileName);
var f = {
exportType: 2,
name: g,
pageType: 1,
startNum: 1,
endNum: this.m_pageCount,
option: {
isSplite: false,
spliteValue: 1,
fileNames: null,
userpw: ""
}
};
var e = JSON.stringify(f);
this.saveFormTag.option.value = e;
this.saveFormTag.filename.value = f.name;
this.saveFormTag.filetype.value = f.exportType;
this.debugMeg("report log :: PDF 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
window.open(this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag));
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "blank";
this.saveFormTag.form.submit();
}
f = null;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("pdf");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var h = mRe_getReportCookie("fileSaveDownloadToken");
if (h == b) {
a.removePDFProgress();
}
}, 1000);
}
} else {
if (this.m_isEndReport) {
this.createSAVEProgress();
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = b;
this.saveFormTag.path.value = this.clientPath;
var g = Base64.encode(this.m_strFileName);
var f = {
exportType: 2,
name: g,
pageType: 1,
startNum: 1,
endNum: this.m_pageCount,
option: {
isSplite: false,
spliteValue: 1,
fileNames: null,
userpw: "",
textToImage: false,
importOriginImage: false
}
};
var d = null;
if (this.m_saveDirectPDFOp != null) {
d = this.m_saveDirectPDFOp;
} else {
if ((typeof window.getDirectSavePDFOption != "undefined")) {
d = getDirectSavePDFOption();
}
}
if (d != null) {
if ("cmVwb3J0" == g) {
f.name = Base64.encode(d.fileName);
}
f.option.isSplite = d.isSplite;
f.option.spliteValue = d.spliteValue;
f.option.userpw = d.userpw;
f.option.textToImage = d.textToImage;
f.option.importOriginImage = d.importOriginImage;
}
this.saveFormTag.option.value = JSON.stringify(f);
this.saveFormTag.filename.value = f.name;
this.saveFormTag.filetype.value = f.exportType;
this.debugMeg("report log :: PDF 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
var c = document.getElementById("re_iframe" + this.m_uid);
if (null != c) {
c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag);
}
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "re_target" + this.m_uid;
this.saveFormTag.form.submit();
}
f = null;
d = null;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("pdf");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var h = mRe_getReportCookie("fileSaveDownloadToken");
if (h == b) {
a.removePDFProgress();
}
}, 1000);
}
} else {
mRe_ReportEventHandler(10);
}
}
window.setTimeout(function() {
a.fileDownLoding = false;
}, 2000);
}
;
Report.prototype.next_hwpDownLoad = function() {
if (this.fileDownLoding) {
return;
}
var a = this;
this.debugMeg("report log :: HWP 파일 저장 시작..");
this.fileDownLoding = true;
if (this.m_isEndReport) {
this.createHWPProgress();
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = this.m_uid;
this.saveFormTag.path.value = this.clientPath;
var f = Base64.encode(this.m_strFileName);
var e = {
exportType: 3,
name: f,
pageType: 1,
startNum: 1,
endNum: this.m_pageCount,
option: {
fixSize: true,
allowOverlay: true,
setPageBottomMarginToZero: true,
outputLikeWord: false,
tableSplitMethod: 2,
defaultCharGap: -8,
charRatio: 100,
putCheckboxIntoCell: false,
splitTextByLine: true,
mergeTable: false,
lineSpaceRate: 100,
positionRelTo: 1
}
};
var d = null;
if (this.m_saveDirectHWPOp != null) {
d = this.m_saveDirectHWPOp;
} else {
if ((typeof window.getDirectSaveHWPOption != "undefined")) {
d = getDirectSaveHWPOption();
}
}
if (d != null) {
if ("cmVwb3J0" == f) {
e.name = Base64.encode(d.fileName);
}
e.option.fixSize = d.fixSize;
e.option.allowOverlay = d.allowOverlay;
e.option.setPageBottomMarginToZero = d.setPageBottomMarginToZero;
e.option.outputLikeWord = d.outputLikeWord;
e.option.tableSplitMethod = d.tableSplitMethod;
e.option.defaultCharGap = d.defaultCharGap;
e.option.charRatio = d.charRatio;
e.option.putCheckboxIntoCell = d.putCheckboxIntoCell;
e.option.splitTextByLine = d.splitTextByLine;
e.option.mergeTable = d.mergeTable;
e.option.lineSpaceRate = d.lineSpaceRate;
e.option.positionRelTo = d.positionRelTo;
}
this.saveFormTag.option.value = JSON.stringify(e);
this.saveFormTag.filename.value = e.name;
this.saveFormTag.filetype.value = e.exportType;
this.debugMeg("report log :: HWP 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
var c = document.getElementById("re_iframe" + this.m_uid);
if (null != c) {
c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag);
}
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "re_target" + this.m_uid;
this.saveFormTag.form.submit();
}
e = null;
d = null;
var a = this;
var b = this.m_uid;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("hwp");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var g = mRe_getReportCookie("fileSaveDownloadToken");
if (g == b) {
a.removeHWPProgress();
}
}, 1000);
}
} else {
mRe_ReportEventHandler(10);
}
window.setTimeout(function() {
a.fileDownLoding = false;
}, 2000);
}
;
Report.prototype.next_docDownLoad = function() {
if (this.fileDownLoding) {
return;
}
var a = this;
this.debugMeg("report log :: DOC 파일 저장 시작..");
this.fileDownLoding = true;
if (this.m_isEndReport) {
this.createHWPProgress();
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = this.m_uid;
this.saveFormTag.path.value = this.clientPath;
var f = Base64.encode(this.m_strFileName);
var e = {
exportType: 9,
name: f,
pageType: 1,
startNum: 1,
endNum: this.m_pageCount,
option: {
type: "doc",
splitTextLine: true,
processAsUnicode: true,
processEqualAlign: 4,
defaultCharSpace: -0.5,
tableWrapperBottomGap: 0,
insertTableWrapper: true,
mergeTable: false
}
};
var d = null;
if (this.m_saveDirectDOCOp != null) {
d = this.m_saveDirectDOCOp;
} else {
if ((typeof window.getDirectSaveDOCOption != "undefined")) {
d = getDirectSaveDOCOption();
}
}
if (d != null) {
if ("cmVwb3J0" == f) {
e.name = Base64.encode(d.fileName);
}
e.option.type = d.type;
e.option.splitTextLine = d.splitTextLine;
e.option.processAsUnicode = d.processAsUnicode;
e.option.processEqualAlign = d.processEqualAlign;
e.option.defaultCharSpace = d.defaultCharSpace;
e.option.tableWrapperBottomGap = d.tableWrapperBottomGap;
e.option.insertTableWrapper = d.insertTableWrapper;
e.option.mergeTable = d.mergeTable;
}
this.saveFormTag.option.value = JSON.stringify(e);
this.saveFormTag.filename.value = e.name;
this.saveFormTag.filetype.value = e.exportType;
this.debugMeg("report log :: DOC 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
var c = document.getElementById("re_iframe" + this.m_uid);
if (null != c) {
c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag);
}
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "re_target" + this.m_uid;
this.saveFormTag.form.submit();
}
e = null;
d = null;
var a = this;
var b = this.m_uid;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("hwp");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var g = mRe_getReportCookie("fileSaveDownloadToken");
if (g == b) {
a.removeHWPProgress();
}
}, 1000);
}
} else {
mRe_ReportEventHandler(10);
}
window.setTimeout(function() {
a.fileDownLoding = false;
}, 2000);
}
;
Report.prototype.next_excelDownLoad = function() {
if (this.fileDownLoding) {
return;
}
var a = this;
this.fileDownLoding = true;
if (this.m_isEndReport) {
this.printOptionValue.domList = null;
this.debugMeg("report log :: EXCEL 파일 저장 시작..");
this.createEXCELProgress();
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = this.m_uid;
this.saveFormTag.path.value = this.clientPath;
var f = Base64.encode(this.m_strFileName);
var e = {
exportType: 1,
name: f,
pageType: 1,
startNum: 1,
endNum: this.m_pageCount,
option: {
exportMethod: "1",
mergeCell: true,
mergeEmptyCell: false,
splitCellAtPageSize: true,
rightToLeft: false,
widthRate: 100,
heightRate: 100,
coordinateErrorLimit: 10,
processGerenalFormat: 1,
printingMagnification: 100,
fitToPageWhenPrinting: false,
type: "xls"
}
};
var d = null;
if (this.m_saveDirectExcelOp != null) {
d = this.m_saveDirectExcelOp;
} else {
if ((typeof window.getDirectSaveEXCELOption != "undefined")) {
d = getDirectSaveEXCELOption();
}
}
if (d != null) {
if ("cmVwb3J0" == f) {
e.name = Base64.encode(d.fileName);
}
e.option.exportMethod = d.exportMethod;
e.option.mergeCell = d.mergeCell;
e.option.mergeEmptyCell = d.mergeEmptyCell;
e.option.splitCellAtPageSize = d.splitCellAtPageSize;
e.option.rightToLeft = d.rightToLeft;
e.option.widthRate = d.widthRate;
e.option.heightRate = d.heightRate;
e.option.coordinateErrorLimit = d.coordinateErrorLimit;
e.option.processGerenalFormat = d.processGerenalFormat;
e.option.printingMagnification = d.printingMagnification;
e.option.fitToPageWhenPrinting = d.fitToPageWhenPrinting;
}
this.saveFormTag.option.value = JSON.stringify(e);
this.saveFormTag.filename.value = e.name;
this.saveFormTag.filetype.value = e.exportType;
this.debugMeg("report log :: EXCEL 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
var c = document.getElementById("re_iframe" + this.m_uid);
if (null != c) {
c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag);
}
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "re_target" + this.m_uid;
this.saveFormTag.form.submit();
}
e = null;
d = null;
var a = this;
var b = this.m_uid;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("xls");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var g = mRe_getReportCookie("fileSaveDownloadToken");
if (g == b) {
a.removeEXCELProgress();
}
}, 1000);
}
} else {
mRe_ReportEventHandler(10);
}
window.setTimeout(function() {
a.fileDownLoding = false;
}, 2000);
}
;
Report.prototype.fileCheckSendText = function(a, c) {
var d = objectCall(ClipStrTrim(a));
if (typeof d == "string") {
d = objectCall(d);
}
if (d.status) {
if ("xls" == c) {
this.removeEXCELProgress();
} else {
if ("hwp" == c) {
this.removeHWPProgress();
} else {
if ("save" == c) {
this.removeSAVEProgress();
} else {
if ("pdf" == c) {
this.removePDFProgress();
} else {
if ("print" == c) {
this.removePrintProgress();
}
}
}
}
}
this.endDebugMeg(false);
} else {
var b = this;
this.fileDownloadCheckTimer = window.setTimeout(function() {
b.fileCheckSend(c);
}, 1000);
}
}
;
Report.prototype.fileCheckSendErrorText = function(a) {
if ("xls" == a) {
this.removeEXCELProgress();
} else {
if ("hwp" == a) {
this.removeHWPProgress();
} else {
if ("save" == a) {
this.removeSAVEProgress();
} else {
if ("pdf" == a) {
this.removePDFProgress();
} else {
if ("print" == a) {
this.removePrintProgress();
}
}
}
}
}
}
;
Report.prototype.fileCheckSend = function(h) {
try {
var b = new Date().getTime();
var j = "ClipID=R16&uid=" + this.m_uid + "&s_time=" + b;
j = mRe_onBeforeSend(j);
var f = this.servletPath;
if (this.m_isCrossDomain) {
var g = this;
if (window.XDomainRequest) {
var d = new XDomainRequest();
var a = f + "?" + j;
if (-1 != f.indexOf("?")) {
a = f + "&" + j;
}
if (d) {
d.onload = function() {
g.fileCheckSendText(mRe_onAfterSend(d.responseText), h);
}
;
d.onerror = function() {
ReportWebLog("IE8 crossDomain error");
mRe_ReportEventHandler(40);
}
;
d.open("GET", a);
d.send();
}
} else {
$.ajax({
type: "POST",
url: f,
crossDomain: true,
data: j,
success: function(e) {
g.fileCheckSendText(mRe_onAfterSend(e), h);
},
error: function(e) {
ReportWebLog(e);
mRe_ReportEventHandler(40);
}
});
}
} else {
var g = this;
var c = new HttpClient();
c.send(f, j, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
g.fileCheckSendText(mRe_onAfterSend(this.responseText), h);
} else {
g.fileCheckSendErrorText(h);
}
}
});
}
} catch (i) {}
}
;
Report.prototype.reportCheckSendText = function(a, b) {
var d = objectCall(ClipStrTrim(a));
if (typeof d == "string") {
d = objectCall(d);
}
if (d.status) {
this.debugMeg("report log :: 서버연결 상태 정상...!");
if (0 == b) {
this.saveExportView();
} else {
if (1 == b) {
this.next_pdfDownLoad();
} else {
if (2 == b) {
this.next_excelDownLoad();
} else {
if (3 == b) {
this.next_hwpDownLoad();
} else {
if (4 == b) {
this.selectPrintView();
} else {
if (5 == b) {
this.next_docDownLoad();
}
}
}
}
}
}
} else {
this.debugMeg("report log :: 서버에서 생성된 리포트 파일을 찾을 수 없습니다.");
this.debugMeg("report log :: 이중화 서버로 인한 파일을 찾지 못하거나 세션이 종료되어 리포트파일이 삭제된 것 같습니다.");
this.endDebugMeg(false);
var c = this.m_languageMap.sesstion_error;
this.paintDiv.innerHTML = c;
mRe_ReportEventHandler(60);
}
}
;
Report.prototype.reportCheckSend = function(i) {
try {
this.debugMeg("report log :: 서버와의 연결상태를 확인합니다....");
var b = new Date().getTime();
var j = "ClipID=R16&aliveReport=true&uid=" + this.m_uid + "&s_time=" + b;
j = mRe_onBeforeSend(j);
var f = this.servletPath;
if (this.m_isCrossDomain) {
var g = this;
if (window.XDomainRequest) {
var d = new XDomainRequest();
var a = f + "?" + j;
if (-1 != f.indexOf("?")) {
a = f + "&" + j;
}
if (d) {
d.onload = function() {
g.reportCheckSendText(mRe_onAfterSend(d.responseText), i);
}
;
d.onerror = function() {
g.debugMeg("report log :: 서버와의 연결상태를 확인합니다....");
g.debugMeg("report log :: 시도한 연결 정보 >>> " + a);
g.endDebugMeg(true);
mRe_ReportEventHandler(40);
}
;
d.open("GET", a);
d.send();
}
} else {
$.ajax({
type: "POST",
url: f,
crossDomain: true,
data: j,
success: function(e) {
g.reportCheckSendText(mRe_onAfterSend(e), i);
},
error: function(e) {
ReportWebLog(e);
g.debugMeg("report log :: 서버와의 연결상태를 확인합니다....");
g.debugMeg("report log :: 시도한 연결 정보 >>> " + a);
g.endDebugMeg(true);
mRe_ReportEventHandler(40);
}
});
}
} else {
var g = this;
var c = new HttpClient();
c.send(f, j, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
g.reportCheckSendText(mRe_onAfterSend(this.responseText), i);
}
}
});
}
} catch (h) {
this.debugMeg("report log :: 스크립트 오류 발생....");
this.debugMeg(h.message);
this.endDebugMeg(true);
}
}
;
Report.prototype.createPageMoveButton = function(f) {
var b = this;
if (this.m_PageMove.eventKey == null) {
var a = this.paintDiv.offsetHeight;
var e = ((a / 2) - 25) + this.menuDiv.offsetHeight;
var c = document.createElement("div");
var d = document.createElement("div");
this.targetDiv.appendChild(c);
this.targetDiv.appendChild(d);
c.className = f + "_pageMoveLeft";
d.className = f + "_pageMoveRight";
if (c.offsetHeight != null && c.offsetHeight > 0) {
e = ((a / 2) - (c.offsetHeight / 2)) + this.menuDiv.offsetHeight;
}
c.style.top = e + "px";
c.onclick = function() {
if (b.m_PageMove.doubleEventKey == null) {
b.previousPage();
window.clearTimeout(b.m_PageMove.eventKey);
b.m_PageMove.doubleEventKey = window.setTimeout(function() {
b.m_PageMove.doubleEventKey = null;
}, 1000);
} else {
window.clearTimeout(b.m_PageMove.doubleEventKey);
b.m_PageMove.doubleEventKey = window.setTimeout(function() {
b.m_PageMove.doubleEventKey = null;
}, 1000);
}
}
;
d.style.top = e + "px";
d.onclick = function() {
if (b.m_PageMove.doubleEventKey == null) {
b.nextPage();
window.clearTimeout(b.m_PageMove.eventKey);
b.m_PageMove.doubleEventKey = window.setTimeout(function() {
b.m_PageMove.doubleEventKey = null;
}, 1000);
} else {
window.clearTimeout(b.m_PageMove.doubleEventKey);
b.m_PageMove.doubleEventKey = window.setTimeout(function() {
b.m_PageMove.doubleEventKey = null;
}, 1000);
}
}
;
this.m_PageMove.leftDOM = c;
this.m_PageMove.rightDOM = d;
this.m_PageMove.eventKey = window.setTimeout(function() {
b.removePageMoveButton();
}, 2000);
} else {
window.clearTimeout(this.m_PageMove.eventKey);
this.m_PageMove.eventKey = window.setTimeout(function() {
b.removePageMoveButton();
}, 2000);
}
}
;
Report.prototype.removePageMoveButton = function() {
try {
this.targetDiv.removeChild(this.m_PageMove.leftDOM);
this.targetDiv.removeChild(this.m_PageMove.rightDOM);
} catch (a) {}
this.m_PageMove.eventKey = null;
this.m_PageMove.leftDOM = null;
this.m_PageMove.rightDOM = null;
}
;
function enterEvent(c, a, b) {
if (c.keyCode == 13) {
a.selectPage(parseInt(b.value) - 1);
if (c.preventDefault) {
c.preventDefault();
}
c.returnValue = false;
}
}
function CReportPrintPDf(b) {
var c = document.getElementById("re_object" + b);
if (typeof c.print === "undefined") {
setTimeout(function() {
CReportPrintPDf(b);
}, 1000);
} else {
var a = m_reportHashMap[b];
if (a.isEnabledAdobeRead) {
a.isEnabledAdobeRead = false;
if (!a.m_isMarkAny) {
c.printWithDialog();
}
a.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("print");
}, 1000);
}
}
}
function progressImg() {
return "data:image/gif;base64,R0lGODlhFAAUAPf/AOXm5t7e39fY2dDS08rKzMDBxMDAw7y9v6eprP7+/vn5+f39/fr6+vf39/z8/M/Q0fv7+8PExvT19Y2Pk9XV19XW1/Hx8peZnKKkp5aYm4KFiYCDh/j4+O/v8Onp6uzs7d/f4O/w8Ofn6Pb29vT09O/v7/Pz9Ovs7PLy8tzc3ff4+NbX2OLj5K+ws5udobO1t+rq67q7vcXGyKSmqfDw8b/AwqOlqOLi46GjptfX2a2usa6vst7f4Ly+wISHiomLj8nJy3x/g7Gzta2vsoeJjfP09PX19pSWmenq6+3u7pGTl8vNzri6vLi5vPDx8aKjpomMj+Pj5d/g4cfJy9XX2KiqrKanqtvc3ZGUl8zNz3t+gubn6LCytJWXmsnJzOXl5tDQ0oqMj8bGyOTk5dPT1LS2uefo6d3e34+RlKqsr66vsenq6pmcntXV1v39/sjJyqOlqaWnqtfZ2tjY2sHCxdbW2OTl5oiLj4SHi5manpudoJ+go5KVmOzt7YCChvX19ejo6eHh4t3d3vn5+vT09fHx8eDg4ePj5Pn6+ubm5+Li5PHy8u7u7/j4+fDw8L6/we3t7fv7/MnKzOvr7Le4u/f3+MfJyuHh48HCxN7e4O3t7sjJy/r6+4iLjsfIyvj5+fz8/ebn58bHyd7d3+Pk5fPz8/r7+9DR09PU1c7P0OHi4ouNkdPT1d3d35WYm9vb3dvb3IqMkJaYmv39/MbHyt/f4dbX2cPDxejn6cTGyOjp6crLzcTFxpOVmOzs7NTV19rb27y9wNzd3dna2+bm6P7//rO1uP38/fz9/YGDiLW3uZOWmZaXmpmbnu7v74CCh4CDhuPj4+Tk5urr67a3uba3utHS1JqcoPr5+r+/woSGioWHi9DR0rK0t7O0trO0t42Qk9zc3tzd3s7Q0erq6tnZ29LT1eHg4vb29+Lh4/b39+np6cDCw7W2ue7v8Ojp6rm6vZibnp+gpN3f38vMzo6QlIOFiXx+gqqsrra4uuDh4drb3J6go+rr7P///////yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OURCMjcyODkyMjkwMTFFNEI1ODFFNjRBODJEMDY0MzciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OURCMjcyODgyMjkwMTFFNEI1ODFFNjRBODJEMDY0MzciIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDpENTI4MTc0MDkwMjJFNDExQUNGQTg4Q0I2MjI3RDI4OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENTI4MTc0MDkwMjJFNDExQUNGQTg4Q0I2MjI3RDI4OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUAAP8ALAAAAAAUABQAAAjlAP8JHDjQAQSCCAk6KJFAoD9/A+VISChQwShNDiH+CxVkDUWBjF4t+PeQZL0yCSH8cRhI0T8FDP7tguJAIIkGAqPAm1fTASSCLH4mSOGDicAE+h4VIPRRhZ4fdEYOZLAi1McPTSx83JqQwhAhCDJxPZGGy44HQHDEaVaBqx0XcJ5E4EpX4II2Wz6iIKOAoD8pFyaY+ViEz4QVGudoeGHkHwMPBGmMeDllQw+BEkQM3GPlH5Io/95gafgPhpOEPPzEZDPhX4IwMrZy0CBGoBoMAm9oKfGxQQ3SNi44jNCh7r8Hcz8GBAAh+QQFAAD/ACwBAAAADwALAAAIZgD/CRwosNAHggQhjBk4JtBABQ4GNmjHQiCgLwIj+RtEUJUygYpA/EvgL6ICCwMNEPhXSNM/B/4W/KNAZAmEfwpIEeTgT6CbLGgylEA4cIQLgQ1iXCEq8ATTpwOriIQ6ME8dqv8CAgAh+QQFAAD/ACwEAAAADwALAAAIYgD/CRQIoNXAg/8YVBhoqcDAEAwGStiASuADSQI5CCJ0EIy2BP8wxfjnr1YihP+O4PvnQdG/DqMGQnAg0IStgyjQCUTkT8G/ECgFJpjlL4G/oAMZJACJtKnTaQhaOBU4ZmBAACH5BAUAAP8ALAYAAAAOAA4AAAhmAP8JrCBJoMGD/gRiyGAQgIqDVAS2mCHwz7cQB/EI7BJG4KMBBwXq+Hfm1z8WTRwIVABBYI6DJ1AILAQiUciDC9KBEKHypsARiUb4HEpUICJ/SBcQZYDUn9KiUP89qBT1yKpTSgMCACH5BAUAAP8ALAoAAAAKABIAAAhiAL38G0iwIEE5EgwOTBLEQ0EoA5UYM0jh34NOBNUpIHio30BAlFgZhBAhxgqFi6wVUcjS4B8PHkR0MGjh0Jgxk1oqhGBqAUt/QBElKGjinwMG/hgUVEIQUaSCsXLpvOesYEAAIfkEBQAA/wAsCgACAAoAEQAACF8A/wkUuGagwX9lDg68M5BEg4Es+ghM4YPJQQ4uftSAcPBDvhAKQx608MBaqksHT/Da5GmYSIUcHDkIqeCcoQ7+BnJK8A/CCRC4/gX6lyCnwD8cDPoDJbIoA5GDOA4MCAAh+QQFAAD/ACwGAAYADgAOAAAIagD/CRwoUIWef3QWEFz4r4kFhhAjLpyUhsuOBxJJXbPxJILEjwONjIEAskG2HsQGviPYwME/BuGoVfgnD8e/QY3+wTA0kMaff88a/PPn79+CFB8WshNIVKAjQUIHuhxa9F8CciogLlAYMSAAIfkEBQAA/wAsBAAJAA8ACwAACGYA/wkcSPDfiYIIB9pxASehQ4GJHC4io2DgF4elek1Y8W/EP38VB5Jg8E+BpQ09BBZz8I8Ein/7Hg2E4eTfAn8L/t0AIZBSCoIO/IESCOjiP13dTAx0oCCBwDGBBPorR8Kho0kOAwIAIfkEBQAA/wAsAQAJABAACwAACGIA/wnkIbCgQYMzZJk7yLChQ4P+EnxyiKLgAn/+jjkswuffJ38MIPxzQMhgiBECpywYVDDaoX8dPvwThaVhKVgCbx0Q2EnGQQYBZP5L5UlgJi0lDEJYV3ATpoIROjxUBYxhQAAh+QQFAAD/ACwAAAYADgAOAAAIZQD/QRAF7sK/gwgTHvzjTZjChxATRvJHEUJEgRT9YbvIEWICSCYuJmAUyFCDiyVAfFEgMERCGgcZEEIoY9c/D4f+vXmI5AWyf/Em/EsQJqGCaoIO6sBw8IbRHP4O2jDY8UEEhAEBACH5BAUAAP8ALAAAAgALABEAAAhpAP8J/Eco2cCDA8dtQ7iA08BlCAf5a7TgXweECRr524hw4AJTDTqKHEgDECARhTp+GPPly8WRMAUuuJFEpIgCwRZ1/EKJW6V/Cjwc5OBuID8r/5BEQcgDGoN/bBBy0CBGoBqEDWokOBgQACH5BAUAAP8ALAAAAQALABAAAAhhAP8J/LdAwcCDAhn4S4DwIAR//v4xE+hAhcAEEP+J+/WPkSFfDv75a4Dwg6pLHBoKhOChhMqX/6SlOkXPQ0NBtCTJ+AKzp0BUW1QKcjXBTEMB9l4Y+ccAoQQRA/f09HMwIAA7";
}
function receiveMessage(b) {
var a = m_reportHashMap[b.data];
if (null != a) {
a.removePrintProgress();
}
}
function mRe_getReportCookie(d) {
var b = d + "=";
var a = document.cookie.split(";");
for (var e = 0; e < a.length; e++) {
var f = a[e];
while (f.charAt(0) == " ") {
f = f.substring(1);
}
if (f.indexOf(b) != -1) {
return f.substring(b.length, f.length);
}
}
return "";
}
function mRe_closeReportInfo(b) {
var a = m_reportHashMap[b];
a.targetDiv.removeChild(a.m_popupViewDiv);
a.m_reportInfo_view = null;
a.m_popupViewDiv = null;
a.disabledMenu(false);
}
function mRe_ReportEventHandler(a) {
if (null != typeof window.ReportEventHandler != "undefined") {
ReportEventHandler(a);
} else {
if (typeof window.console != "undefined") {
window.console.log("Report Code : " + a);
}
}
}
function mRe_getLocalStorage(a) {
if (is_svg) {
if (typeof (Storage) !== "undefined") {
var b = null;
try {
if (null != localStorage) {
b = localStorage.getItem(a);
}
} catch (c) {
ReportWebLog("Web Storage unavailable!!");
}
if (b == null) {
return "0";
}
return b;
} else {
return "0";
}
}
return "0";
}
function mRe_setLocalStorage(a, b) {
if (is_svg) {
if (typeof (Storage) !== "undefined") {
try {
if (null != localStorage) {
localStorage.setItem(a, b);
}
} catch (c) {
ReportWebLog("Web Storage unavailable!!");
}
}
}
}
function mRe_HWPFrame_Object() {
var a = "<object id='re_hwp_object' classid='CLSID:BD9C32DE-3155-4691-8972-097D53B10052' style='position:absolute;left:0px;top:0px;width:0px;height:0px;display:none;'><PARAM NAME='_Version' VALUE='65536'><PARAM NAME='_ExtentX' VALUE='21167'><PARAM NAME='_ExtentY' VALUE='15875'><PARAM NAME='_StockProps' VALUE='0'><PARAM NAME='FILENAME' VALUE=''></object>";
return a;
}
function clearListCookies(a) {}
function paintReportText(k) {
if ("{clip_enc}" == k) {
return;
}
if (0 == k.indexOf('"')) {
k = k.substring(1, k.length - 1);
}
var d = k.split("{clipreport_separator}");
var i = objectCall(ClipStrTrim(d[0]));
if (typeof d == "string") {
d = objectCall(d);
}
var c = m_reportHashMap[i.uid];
c.debugMeg("report log :: 리포트 페이지 서버 수신 완료...");
try {
if (i.status) {
c.debugMeg("report log :: 리포트 페이지 서버 수신 완료 메시지 >>> " + d[0]);
if (null != i.pageWidth) {
c.m_printPage.pageWidth = i.pageWidth;
c.m_printPage.pageHeight = i.pageHeight;
}
if (null != i.reportName) {
var b = ClipStrTrim(i.reportName);
if ("" != b) {
c.m_strFileName = b;
}
}
if (!c.m_isAccessibility) {
c.debugMeg("report log :: 리포트 화면를 SVG로 표현!");
c.paintDiv.innerHTML = unescape(d[1]);
c.paintDiv.firstChild.firstChild.style.overflow = "hidden";
c.pageWidth = c.paintDiv.firstChild.firstChild.getAttribute("width");
c.pageHeight = c.paintDiv.firstChild.firstChild.getAttribute("height");
c.zoomIn(c.zoomCombo);
c.setPaintDivEvent(c.paintDiv, i.uid);
c.pageSlideShow();
} else {
c.debugMeg("report log :: 리포트 화면를 접근성 뷰어로 표현!");
var m = d[1];
var h = document.getElementsByTagName("head")[0];
var a = h.lastChild;
if (a.tagName != "STYLE" || a.getAttribute("id") != "report_css") {
var j = document.createElement("style");
j.setAttribute("type", "text/css");
j.setAttribute("id", "report_css");
h.appendChild(j);
a = j;
}
if (a.styleSheet) {
a.styleSheet.cssText = m;
} else {
var g = document.createTextNode(m);
a.appendChild(g);
}
c.paintDiv.innerHTML = unescape(d[2]);
c.pageWidth = c.paintDiv.firstChild.clientWidth;
c.pageHeight = c.paintDiv.firstChild.clientHeight;
c.zoomIn(c.zoomCombo);
c.setPaintDivEvent(c.paintDiv, i.uid);
c.pageSlideShow();
}
if (c.m_isEndReport && c.m_isEndReportEvent) {
if (c.m_endreportprogress.is_visible) {
c.m_endreportprogress.is_visible = false;
c.removeEndReportProgress();
}
mRe_ReportEventHandler(200);
if (c.m_isReportEndFunction != null) {
c.m_isReportEndFunction();
}
c.m_isEndReportEvent = false;
c.debugMeg("report log :: 리포트 뷰어 종료!");
c.endDebugMeg(false);
} else {
if (!c.m_isEndReport) {
if (c.m_endreportprogress.is_visible) {
c.createEndReportProgress();
}
}
}
if (null == c.m_drilingTop) {
if ((is_smartphone && c.m_mobile.scrollTop) || (!is_smartphone && c.m_pcView.scrollTop) || c.m_scrollEv.isScrollPaging) {
c.paintDiv.scrollTop = 1;
}
} else {
c.paintDiv.scrollTop = c.m_drilingTop;
c.m_drilingTop = null;
}
if (null != c.m_PageMove && is_smartphone) {
if (!c.m_PageMove.ButtonDisabled && null != c.m_PageMove.leftDOM) {
c.m_PageMove.eventKey = window.setTimeout(function() {
c.removePageMoveButton();
}, 2000);
}
}
c.endDebugMeg(true);
} else {
c.debugMeg("report log :: 리포트 생성중 오류 발생(export) >>> 서버로그 확인 필요!");
c.debugMeg("report log :: 리포트 페이지 서버 수신 메시지 >>> " + d[0]);
var l = c.m_languageMap.report_error;
if (i.event == 11) {
c.debugMeg("report log :: EFORM 사용 권한이 없습니다 (라이센스)");
if (c.m_isViewer) {
l = c.m_languageMap.lic_error + ".!! (errorCode : LE0" + i.event + ")";
mRe_ReportEventHandler(11);
}
} else {
mRe_ReportEventHandler(30);
if (i.event == 60) {
l = c.m_languageMap.sesstion_error;
mRe_ReportEventHandler(60);
c.debugMeg("report log :: 리포트서버와의 세션 종료!");
}
}
c.paintDiv.innerHTML = l;
c.pageSlideShow();
}
} catch (f) {
c.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + k);
c.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + f.message);
c.paintDiv.innerHTML = c.m_languageMap.report_error;
mRe_ReportEventHandler(30);
c.pageSlideShow();
}
if (c.m_pageMoveEvent.end != null) {
c.m_pageMoveEvent.end();
}
}
function resultPageCountText(a) {
var d = objectCall(ClipStrTrim(a));
if (typeof d == "string") {
d = objectCall(d);
}
var b = m_reportHashMap[d.uid];
b.debugMeg("report log :: 서버 수신 완료...");
try {
if (d.status) {
if (b.m_isViewer) {
b.totalCountText.value = b.m_TPC.before + d.count + b.m_TPC.after;
}
if (d.endReport) {
b.debugMeg("report log :: 서버에서 리포트 생성은 완료..! ");
b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + a);
if (d.count > 0) {
b.m_isEndReport = true;
if (!b.m_isViewer) {
b.m_pageCount = d.count;
b.m_disControl.print = false;
b.printEXEView();
return;
} else {
if (b.m_directPrint) {
b.m_pageCount = d.count;
b.m_directPrintOp.endReport = true;
return;
}
}
if (b.m_isViewer) {
b.sendData(b.beforePageIndex);
b.progressImg.style.display = "none";
}
} else {
b.debugMeg("report log :: 보고서 양식이 잘못되었습니다.(페이지가 없습니다.)");
if (b.m_isViewer) {
b.progressImg.style.display = "none";
b.paintDiv.innerHTML = b.m_languageMap.report_error2;
}
mRe_ReportEventHandler(30);
b.endDebugMeg(false);
}
b.m_pageCount = d.count;
} else {
if (null != d.is_s) {
if (d.is_s) {
b.debugMeg("report log :: 리포트 생성중 (양호)");
} else {
b.debugMeg("report log :: 리포트 생성중 (경고) 서버에서 생성중인 리포트를 세션에서 찾지 못했습니다. 파일 탐색으로 변경되었습니다.");
b.debugMeg("report log :: 계속해서 똑같은 결과가 내려온다면 이중화된 서버 가능성이 있습니다.");
b.debugMeg("report log :: 리포트를 생성한 서버와 확인작업을 위해 통신으로 접속한 서버가 다를 수 있습니다.");
b.debugMeg("report log :: 서버관리자에게 문의 하여 하나의 세션이 생성됐을 때 그 서버만 바라보도록 하거나 리포트 설정 폴더를 물리적으로 같은 폴더로 사용하도록 변경이 필요합니다.");
}
} else {
b.debugMeg("report log :: 리포트 생성중 (양호)");
}
b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + a);
if (b.m_isViewer) {
if (b.m_pageCount == 0 && d.count != 0 && !b.is_eForm) {
b.sendData(0);
}
}
b.m_pageCount = d.count;
b.checkPageCount();
}
} else {
var c = b.m_languageMap.report_error;
mRe_ReportEventHandler(30);
b.debugMeg("report log :: 리포트 생성중 오류 발생(engine) >>> 서버로그 확인 필요!");
if (d.event == 60) {
c = b.m_languageMap.sesstion_error;
mRe_ReportEventHandler(60);
b.debugMeg("report log :: 리포트서버와의 세션 종료!");
}
b.endDebugMeg(false);
if (b.m_isViewer) {
b.progressImg.style.display = "none";
b.paintDiv.innerHTML = c;
}
}
} catch (f) {
b.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + a);
b.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + f.message);
if (b.m_isViewer) {
b.progressImg.style.display = "none";
b.paintDiv.innerHTML = b.m_languageMap.report_error;
}
mRe_ReportEventHandler(30);
b.endDebugMeg(false);
}
}
function m_getSaveFormTag(a) {
var b = a.clipid.name + "=" + a.clipid.value + "&";
b += a.uid.name + "=" + a.uid.value + "&";
b += a.path.name + "=" + escape(a.path.value) + "&";
b += a.option.name + "=" + a.option.value + "&";
b += "is_ie=" + ((!is_firefox) && (!is_safari) && (!is_apple)) + "&";
b += "exportN=" + a.filename.value + "&";
b += "exportType=" + a.filetype.value + "&";
return b;
}
function ClipStrTrim(a) {
return a.replace(/^\s+|\s+$/gm, "");
}
function mRe_onBeforeSend(a) {
if (typeof window.onBeforeSend != "undefined") {
return onBeforeSend(a);
}
return a;
}
function mRe_onAfterSend(a) {
if (typeof window.onAfterSend != "undefined") {
return onAfterSend(a);
}
return a;
}
function objectCall(b) {
if (b.charAt(0) == "(") {
b = b.substring(1, b.length - 1);
b = b.replace(/\'/g, '"');
}
var a = jQuery.parseJSON(b);
return a;
}
var report_version = "1.0.0.85";
var exe_print_version = "1.0.0.1";
var mRe_blankImg = "iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAYAAAA9dtSCAAADLElEQVR4Xu3SAQ0AAAjDMO7fNDqWFAXP6M4pECiwwEYTFThQIUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28yUhQGUgUADXxJiNBZSBRANTEm4wElYFEAVATbzISVAYSBUBNvMlIUBlIFAA18SYjQWUgUQDUxJuMBJWBRAFQE28yElQGEgVATbzJSFAZSBQANfEmI0FlIFEA1MSbjASVgUQBUBNvMhJUBhIFQE28ycgH1oEAq7aSdTsAAAAASUVORK5CYII=";
var mRe_whiteImg = "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAABAAEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/KKKKAP/2Q==";
Report.prototype.setEFormSignPositionFix = function(a) {
is_PosiFix = a;
}
;
Report.prototype.visiblePageMoveButton = function() {
this.removePageMoveButton();
if (this.is_eForm) {
this.createPageMoveButton("eform");
} else {
this.createPageMoveButton("report");
}
}
;
Report.prototype.setPageCountLabelEvent = function(a) {
this.m_buttonEvent.startPageCountLabel = a;
}
;
Report.prototype.setReportMobilePageMoveButtonDisabled = function(a) {
this.m_PageMove.ButtonDisabled = a;
}
;
Report.prototype.setEndDrawPageEvent = function(a) {
this.m_pageMoveEvent.end = a;
}
;
Report.prototype.setStartDrawPageEvent = function(a) {
this.m_pageMoveEvent.start = a;
}
;
Report.prototype.setStartZoomInSelectEvent = function(a) {
this.m_buttonEvent.startZoomInSelect = a;
}
;
Report.prototype.setStartLastPageButtonEvent = function(a) {
this.m_buttonEvent.startLastButton = a;
}
;
Report.prototype.setStartNextPageButtonEvent = function(a) {
this.m_buttonEvent.startNextButton = a;
}
;
Report.prototype.setStartPreviousPageButtonEvent = function(a) {
this.m_buttonEvent.startPrevButton = a;
}
;
Report.prototype.setStartFirstPageButtonEvent = function(a) {
this.m_buttonEvent.startFirstButton = a;
}
;
Report.prototype.setSwipeDisiabled = function(a) {
this.m_isSwipe = a;
}
;
Report.prototype.setEndPrintProgressEvent = function(a) {
this.m_endPrintProgressEvent = a;
}
;
Report.prototype.getTotalPageCount = function() {
return this.m_pageCount;
}
;
Report.prototype.getSelectPageNumber = function() {
return this.beforePageIndex + 1;
}
;
Report.prototype.setEFormDoodlePenColor = function(c, a, b) {
this.eFormDoodleOption.pens.width = c;
this.eFormDoodleOption.pens.color = a;
this.eFormDoodleOption.pens.op = b;
this.eFormDoodleOption.tempPens.width = c;
this.eFormDoodleOption.tempPens.color = a;
this.eFormDoodleOption.tempPens.op = b;
}
;
Report.prototype.transFormREPORT = function() {
this.is_eForm = false;
if (this.m_isViewer) {
this.createView(this.targetDiv, this.m_uid);
this.createProgress();
this.checkPageCount();
}
}
;
Report.prototype.transFormEFORM = function() {
this.is_eForm = true;
this.is_eFormData = false;
if (this.m_isViewer) {
this.createView(this.targetDiv, this.m_uid);
this.createProgress();
this.checkPageCount();
}
}
;
Report.prototype.exePrintVersionInfo = function(a) {
exe_print_version = a;
}
;
Report.prototype.setExePrintFinishEvent = function(a) {
this.m_exePrintEvent.ok = a;
}
;
Report.prototype.setExePrintCancelEvent = function(a) {
this.m_exePrintEvent.cancel = a;
}
;
Report.prototype.setEXEPrintDownloadLink = function(a) {
this.m_exeLink = a;
}
;
Report.prototype.exePrint = function(d, e, c, f, a, g, b) {
this.m_exePrintStatus.isSet = true;
this.m_exePrintOption.isPrintPopup = d;
this.m_exePrintOption.printName = e;
this.m_exePrintOption.tray = c;
this.m_exePrintOption.startNumber = f;
this.m_exePrintOption.endNumber = a;
this.m_exePrintOption.copies = g;
this.m_exePrintOption.option = b;
this.printEXEView();
}
;
Report.prototype.exeDirectPrint = function() {
var d, e, c, f, a, g, b;
if (arguments.length == 7) {
d = arguments[0];
e = arguments[1];
c = arguments[2];
f = arguments[3];
a = arguments[4];
g = arguments[5];
b = arguments[6];
} else {
d = false;
e = arguments[0];
c = arguments[1];
f = arguments[2];
a = arguments[3];
g = arguments[4];
b = arguments[5];
}
this.m_exePrintStatus.isSet = true;
this.m_exePrintOption.isPrintPopup = d;
this.m_exePrintOption.printName = e;
this.m_exePrintOption.tray = c;
this.m_exePrintOption.startNumber = f;
this.m_exePrintOption.endNumber = a;
this.m_exePrintOption.copies = g;
this.m_exePrintOption.option = b;
this.printEXEDirect();
}
;
Report.prototype.setPrintSelectNames = function(b, a) {
b = b.toLowerCase();
if ("pdf" == b) {
this.printNames.pdf = a;
} else {
if ("html" == b) {
this.printNames.html = a;
} else {
if ("hwp" == b) {
this.printNames.hwp = a;
} else {
if ("exe" == b) {
this.printNames.exe = a;
}
}
}
}
}
;
Report.prototype.setAdobeInfoMessage = function(a) {
if (null != a && "" != a) {
this.adobeMessage.is_message = true;
this.adobeMessage.message = a;
}
}
;
Report.prototype.setPermissionAdobe9 = function(a) {
this.adobe9Permission = a;
}
;
Report.prototype.buttonDisabled = function(a, c) {
switch (a) {
case "prev_button":
if (this.m_disControl.prev != c && null != this.prev_button) {
this.m_disControl.prev = c;
this.prev_button.disabled = c;
if (c) {
var b = this.prev_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.prev_button.className = b;
} else {
var b = this.prev_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.prev_button.className = b;
}
}
break;
case "next_button":
if (this.m_disControl.next != c && null != this.next_button) {
this.m_disControl.next = c;
this.next_button.disabled = c;
if (c) {
var b = this.next_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.next_button.className = b;
} else {
var b = this.next_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.next_button.className = b;
}
}
break;
case "firstPage_button":
if (this.m_disControl.first != c && null != this.first_button) {
this.m_disControl.first = c;
this.first_button.disabled = c;
if (c) {
var b = this.first_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.first_button.className = b;
} else {
var b = this.first_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.first_button.className = b;
}
}
break;
case "lastPage_button":
if (this.m_disControl.last != c && null != this.last_button) {
this.m_disControl.last = c;
this.last_button.disabled = c;
if (c) {
var b = this.last_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.last_button.className = b;
} else {
var b = this.last_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.last_button.className = b;
}
}
break;
case "save_button":
if (this.m_disControl.save != c && null != this.save_button) {
this.m_disControl.save = c;
this.save_button.disabled = c;
if (c) {
var b = this.save_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.save_button.className = b;
} else {
var b = this.save_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.save_button.className = b;
}
}
break;
case "print_button":
if (this.m_disControl.print != c && null != this.print_button) {
this.m_disControl.print = c;
this.print_button.disabled = c;
if (c) {
var b = this.print_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.print_button.className = b;
} else {
var b = this.print_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.print_button.className = b;
}
}
break;
case "close_button":
if (this.m_disControl.close != c && null != this.close_button) {
this.m_disControl.close = c;
this.close_button.disabled = c;
if (c) {
var b = this.close_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.close_button.className = b;
} else {
var b = this.close_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.close_button.className = b;
}
}
break;
case "pdf_button":
if (this.m_disControl.pdf != c && null != this.pdf_button) {
this.m_disControl.pdf = c;
this.pdf_button.disabled = c;
if (c) {
var b = this.pdf_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.pdf_button.className = b;
} else {
var b = this.pdf_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.pdf_button.className = b;
}
}
break;
case "hwp_button":
if (this.m_disControl.hwp != c && null != this.hwp_button) {
this.m_disControl.hwp = c;
this.hwp_button.disabled = c;
if (c) {
var b = this.hwp_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.hwp_button.className = b;
} else {
var b = this.hwp_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.hwp_button.className = b;
}
}
break;
case "doc_button":
if (this.m_disControl.doc != c && null != this.doc_button) {
this.m_disControl.doc = c;
this.doc_button.disabled = c;
if (c) {
var b = this.doc_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.doc_button.className = b;
} else {
var b = this.doc_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.doc_button.className = b;
}
}
break;
case "excel_button":
if (this.m_disControl.excel != c && null != this.excel_button) {
this.m_disControl.excel = c;
this.excel_button.disabled = c;
if (c) {
var b = this.excel_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.excel_button.className = b;
} else {
var b = this.excel_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.excel_button.className = b;
}
}
break;
case "reportInfo_button":
if (this.m_disControl.reportInfo != c && null != this.reportInfo_button) {
this.m_disControl.reportInfo = c;
this.reportInfo_button.disabled = c;
if (c) {
var b = this.reportInfo_button.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.reportInfo_button.className = b;
} else {
var b = this.reportInfo_button.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.reportInfo_button.className = b;
}
}
break;
case "zoomIn":
if (this.m_disControl.zoomIn != c && null != this.zoomCombo) {
this.m_disControl.zoomIn = c;
this.zoomCombo.disabled = c;
if (c) {
var b = this.zoomCombo.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.zoomCombo.className = b;
} else {
var b = this.zoomCombo.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.zoomCombo.className = b;
}
}
break;
case "input_box":
if (this.m_disControl.input != c && null != this.totalCountText) {
this.m_disControl.input = c;
this.totalCountText.disabled = c;
if (c) {
var b = this.totalCountText.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.totalCountText.className = b;
} else {
var b = this.totalCountText.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.totalCountText.className = b;
}
}
break;
case "totalCount_box":
if (this.m_disControl.caption != c && null != this.totalCountSpan) {
this.m_disControl.caption = c;
this.totalCountSpan.disabled = c;
if (c) {
var b = this.totalCountSpan.className;
var d = /\_svg/g;
b = b.replace(d, "_svg_dis");
d = /\_png/g;
b = b.replace(d, "_png_dis");
this.totalCountSpan.className = b;
} else {
var b = this.totalCountSpan.className;
var d = /\_dis/g;
b = b.replace(d, "");
this.totalCountSpan.className = b;
}
}
break;
}
}
;
Report.prototype.setDebug = function(a) {
if (a) {
this.m_debug.isDebug = a;
if (typeof window.console != "undefined") {
this.m_debug.isConsole = true;
} else {
this.m_debug.message = new Array();
}
}
}
;
Report.prototype.reportNecessaryCheck = function() {
var b = new Date().getTime();
var a = "ClipID=R11&uid=" + this.m_uid + "&isNecessaryCheck=true&s_time=" + b;
a = mRe_onBeforeSend(a);
var d = new HttpClient();
var c = null;
try {
c = d.send(this.servletPath, a, false, null);
var f = objectCall(ClipStrTrim(mRe_onAfterSend(c)));
if (typeof f == "string") {
f = objectCall(f);
}
if (f.status) {
if (f.event == 102) {
ReportWebLog("Please check your server logs!");
}
return true;
} else {
this.m_NecessaryPopup(f.list);
}
} catch (g) {
ReportWebLog("report edit Necessary Check server connection error!");
return false;
}
return false;
}
;
Report.prototype.setSignStaticPosition = function(b, a) {
this.m_signOption.staticPos = true;
this.m_signOption.staticLeft = b;
this.m_signOption.staticTop = a;
}
;
Report.prototype.setSignOffset = function(b, a) {
this.m_signOption.offsetLeft = b;
this.m_signOption.offsetTop = a;
}
;
Report.prototype.setRatioComboNameVisible = function(b, a) {
switch (b.toLowerCase()) {
case "50%":
this.m_comboNames.num50.visible = a;
break;
case "75%":
this.m_comboNames.num75.visible = a;
break;
case "100%":
this.m_comboNames.num100.visible = a;
break;
case "125%":
this.m_comboNames.num125.visible = a;
break;
case "150%":
this.m_comboNames.num150.visible = a;
break;
case "200%":
this.m_comboNames.num200.visible = a;
break;
case "300%":
this.m_comboNames.num300.visible = a;
break;
case "400%":
this.m_comboNames.num400.visible = a;
break;
case "pagewidth":
this.m_comboNames.pagewidth.visible = a;
break;
case "wholepage":
this.m_comboNames.wholepage.visible = a;
break;
}
}
;
Report.prototype.setRatioComboNameChange = function(b, a) {
switch (b.toLowerCase()) {
case "50%":
this.m_comboNames.num50.name = a;
break;
case "75%":
this.m_comboNames.num75.name = a;
break;
case "100%":
this.m_comboNames.num100.name = a;
break;
case "125%":
this.m_comboNames.num125.name = a;
break;
case "150%":
this.m_comboNames.num150.name = a;
break;
case "200%":
this.m_comboNames.num200.name = a;
break;
case "300%":
this.m_comboNames.num300.name = a;
break;
case "400%":
this.m_comboNames.num400.name = a;
break;
case "pagewidth":
this.m_comboNames.pagewidth.name = a;
break;
case "wholepage":
this.m_comboNames.wholepage.name = a;
break;
}
}
;
Report.prototype.setRatioComboName = function(a, b) {
if (null != a) {
this.m_comboNames.pagewidth.name = a;
}
if (null != b) {
this.m_comboNames.wholepage.name = b;
}
}
;
Report.prototype.saveFileDownLoad = function() {
if (this.m_isEndReport) {
var f = arguments[0];
var a = arguments[1];
var e = arguments[2];
var d = {};
d.name = Base64.encode(f);
if (e == 1) {
d.pageType = 1;
d.startNum = 1;
d.endNum = this.m_pageCount;
} else {
if (e == 2) {
d.pageType = 2;
d.startNum = this.beforePageIndex + 1;
d.endNum = this.beforePageIndex + 1;
} else {
d.pageType = 3;
var c = 1;
var b = this.m_pageCount;
if (arguments.length == 5) {
if (arguments[4] < arguments[3]) {
if (arguments[4] > 0) {
c = arguments[4];
}
if (arguments[3] <= b) {
b = arguments[3];
}
} else {
if (arguments[3] > 0) {
c = arguments[3];
}
if (arguments[4] <= b) {
b = arguments[4];
}
}
}
d.startNum = c;
d.endNum = b;
}
}
switch (a) {
case 1:
d.exportType = 1;
d.option = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls");
break;
case 2:
d.exportType = 10;
d.option = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx");
break;
case 3:
d.exportType = 2;
d.option = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption();
mRe_setPDFFileList(d, this.splitPDFFileNames);
break;
case 4:
d.exportType = 3;
d.option = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption();
break;
case 5:
d.exportType = 4;
d.option = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf");
break;
case 6:
d.exportType = 5;
d.option = null;
break;
case 7:
d.exportType = 7;
d.option = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell");
break;
case 8:
d.exportType = 8;
d.option = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option();
break;
case 9:
d.exportType = 9;
d.option = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc");
break;
case 10:
d.exportType = 11;
d.option = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption();
break;
}
this.m_saveInfo_view = {};
this.m_saveInfo_view.json_data = d;
d = null;
this.submitSaveOption();
this.m_saveInfo_view = null;
this.mRe_closeReportSaveInfo();
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.setScrollPaging = function(a) {
this.m_scrollEv.isScrollPaging = a;
}
;
Report.prototype.setMobilePageScrollTop = function(a) {
this.m_mobile.scrollTop = a;
}
;
Report.prototype.setPageScrollTop = function(a) {
this.m_pcView.scrollTop = a;
}
;
Report.prototype.setFirefoxPopUpPrintWindow = function(b, c, a) {
this.m_firefoxPrint.isPopup = b;
this.m_firefoxPrint.width = c;
this.m_firefoxPrint.height = a;
}
;
Report.prototype.setPrintExceptionSaveButtonVisible = function(a) {
this.pESaveButtonVisible = a;
}
;
Report.prototype.setChartToImage = function(a) {
this.m_isChartToImage = a;
}
;
Report.prototype.setIsMarkAny = function(a) {
this.m_isMarkAny = a;
}
;
Report.prototype.setPDFFitToPage = function(a) {
this.isChromePrintFitToPage = a;
}
;
Report.prototype.setEndReportProgress = function(b, d, a, c) {
if (!is_mobile && !is_tablet) {
this.m_endreportprogress.is_visible = b;
this.m_endreportprogress.URL = d;
this.m_endreportprogress.x = a;
this.m_endreportprogress.y = c;
}
}
;
Report.prototype.changeRatioCombo = function(a) {
switch (a.toLowerCase()) {
case "50%":
this.zoomCombo.value = "0.5";
break;
case "75%":
this.zoomCombo.value = "0.75";
break;
case "100%":
this.zoomCombo.value = "1";
break;
case "125%":
this.zoomCombo.value = "1.25";
break;
case "150%":
this.zoomCombo.value = "1.5";
break;
case "200%":
this.zoomCombo.value = "2";
break;
case "300%":
this.zoomCombo.value = "3";
break;
case "400%":
this.zoomCombo.value = "4";
break;
case "pagewidth":
this.zoomCombo.value = "PageWidth";
break;
case "wholepage":
this.zoomCombo.value = "WholePage";
break;
}
this.zoomIn(this.zoomCombo);
}
;
Report.prototype.getReportKey = function() {
return this.m_uid;
}
;
Report.prototype.setPrintImage = function(a) {
this.isPDFPrintImage = a;
}
;
Report.prototype.setPDFDownloadLink = function(a) {
this.m_pdfLink = a;
}
;
Report.prototype.setDisplayPrintOption = function(b, a) {
switch (b.toLocaleLowerCase()) {
case "pdf":
this.m_printDisplay.pdf = a;
break;
case "html":
this.m_printDisplay.html = a;
break;
case "hwp":
this.m_printDisplay.hwp = a;
break;
case "exe":
this.m_printDisplay.exe = a;
break;
}
}
;
Report.prototype.setUseHTMLPrint = function(a) {
this.setDisplayPrintOption("html", a);
}
;
Report.prototype.setUseOriginImage = function(a) {
this.m_isUseOriginImage = a;
}
;
Report.prototype.setEnabledCrossDomain = function(a) {
this.m_isCrossDomain = a;
this.m_fileDownLoadServerCheck = a;
}
;
Report.prototype.setOOFEncoding = function(a) {
this.m_isEncode = a;
}
;
Report.prototype.setImageViewer = function(a) {
this.m_isPaintImage = a;
}
;
Report.prototype.setSaveFileName = function(a) {
this.m_strFileName = a;
}
;
Report.prototype.setAccessibility = function(a) {
this.m_isAccessibility = a;
}
;
Report.prototype.setDisabled = function(a, b) {
switch (a) {
case "prev_button":
this.m_disControl.prev = b;
break;
case "next_button":
this.m_disControl.next = b;
break;
case "firstPage_button":
this.m_disControl.first = b;
break;
case "lastPage_button":
this.m_disControl.last = b;
break;
case "save_button":
this.m_disControl.save = b;
break;
case "print_button":
this.m_disControl.print = b;
break;
case "close_button":
this.m_disControl.close = b;
break;
case "pdf_button":
this.m_disControl.pdf = b;
break;
case "hwp_button":
this.m_disControl.hwp = b;
break;
case "doc_button":
this.m_disControl.doc = b;
break;
case "excel_button":
this.m_disControl.excel = b;
break;
case "reportInfo_button":
this.m_disControl.reportInfo = b;
break;
case "zoomIn":
this.m_disControl.zoomIn = b;
break;
case "input_box":
this.m_disControl.input = b;
break;
case "totalCount_box":
this.m_disControl.caption = b;
break;
}
}
;
Report.prototype.setStartSaveButtonEvent = function(a) {
this.m_buttonEvent.startSaveButton = a;
}
;
Report.prototype.setStartPDFButtonEvent = function(a) {
this.m_buttonEvent.startPDFButton = a;
}
;
Report.prototype.setStartExcelButtonEvent = function(a) {
this.m_buttonEvent.startExcelButton = a;
}
;
Report.prototype.setStartHWPButtonEvent = function(a) {
this.m_buttonEvent.startHWPButton = a;
}
;
Report.prototype.setStartDOCButtonEvent = function(a) {
this.m_buttonEvent.startDOCButton = a;
}
;
Report.prototype.setStartPrintButtonEvent = function(a) {
this.m_buttonEvent.startPrintButton = a;
}
;
Report.prototype.setStartCloseButtonEvent = function(a) {
this.m_buttonEvent.startCloseButton = a;
}
;
Report.prototype.setEndSaveButtonEvent = function(a) {
this.m_buttonEvent.endSaveButton = a;
}
;
Report.prototype.setEndPDFButtonEvent = function(a) {
this.m_buttonEvent.endPDFButton = a;
}
;
Report.prototype.setEndExcelButtonEvent = function(a) {
this.m_buttonEvent.endExcelButton = a;
}
;
Report.prototype.setEndHWPButtonEvent = function(a) {
this.m_buttonEvent.endHWPButton = a;
}
;
Report.prototype.setEndDOCButtonEvent = function(a) {
this.m_buttonEvent.endDOCButton = a;
}
;
Report.prototype.setEndReportEvent = function(a) {
this.m_isReportEndFunction = a;
}
;
Report.prototype.setCloseReportEvent = function(a) {
this.m_isCloseFunction = a;
}
;
Report.prototype.setFileDownLoadCheck = function(a) {
this.m_fileDownLoadServerCheck = a;
}
;
Report.prototype.setLanguage = function(a) {
switch (a) {
case "en":
this.m_language = 1;
break;
case "jp":
this.m_language = 2;
break;
case "cn":
this.m_language = 3;
break;
}
}
;
Report.prototype.setSplitPDFFileNames = function(a) {
this.splitPDFFileNames = a;
}
;
Report.prototype.setDefaultSelectSaveOption = function(a) {
this.defaultSaveOption = a;
}
;
Report.prototype.setDefaultSaveExcelOption = function(f, j, a, d, h, c, b, i, e, k, g) {
if (null == this.m_defaultSaveExcelOp) {
this.m_defaultSaveExcelOp = mRe_getDefaultSaveExcelOption("xls");
}
this.m_defaultSaveExcelOp.exportMethod = "" + f;
if (f) {
this.m_defaultSaveExcelOp.mergeCell = j;
}
this.m_defaultSaveExcelOp.mergeEmptyCell = a;
this.m_defaultSaveExcelOp.splitCellAtPageSize = d;
this.m_defaultSaveExcelOp.rightToLeft = h;
this.m_defaultSaveExcelOp.widthRate = c;
this.m_defaultSaveExcelOp.heightRate = b;
this.m_defaultSaveExcelOp.coordinateErrorLimit = i;
this.m_defaultSaveExcelOp.processGerenalFormat = e;
this.m_defaultSaveExcelOp.printingMagnification = k;
g = null == g ? false : g;
this.m_defaultSaveExcelOp.fitToPageWhenPrinting = g;
}
;
Report.prototype.setDefaultSaveExcelxOption = function(f, j, a, d, h, c, b, i, e, k, g) {
if (null == this.m_defaultSaveExcelxOp) {
this.m_defaultSaveExcelxOp = mRe_getDefaultSaveExcelOption("xlsx");
}
this.m_defaultSaveExcelxOp.exportMethod = "" + f;
if (f) {
this.m_defaultSaveExcelxOp.mergeCell = j;
}
this.m_defaultSaveExcelxOp.mergeEmptyCell = a;
this.m_defaultSaveExcelxOp.splitCellAtPageSize = d;
this.m_defaultSaveExcelxOp.rightToLeft = h;
this.m_defaultSaveExcelxOp.widthRate = c;
this.m_defaultSaveExcelxOp.heightRate = b;
this.m_defaultSaveExcelxOp.coordinateErrorLimit = i;
this.m_defaultSaveExcelxOp.processGerenalFormat = e;
this.m_defaultSaveExcelxOp.printingMagnification = k;
g = null == g ? false : g;
this.m_defaultSaveExcelxOp.fitToPageWhenPrinting = g;
}
;
Report.prototype.setDefaultSaveHanCellOption = function(f, j, a, d, h, c, b, i, e, k, g) {
if (null == this.m_defaultSaveHanCellOp) {
this.m_defaultSaveHanCellOp = mRe_getDefaultSaveExcelOption("cell");
}
this.m_defaultSaveHanCellOp.exportMethod = "" + f;
if (f) {
this.m_defaultSaveHanCellOp.mergeCell = j;
}
this.m_defaultSaveHanCellOp.mergeEmptyCell = a;
this.m_defaultSaveHanCellOp.splitCellAtPageSize = d;
this.m_defaultSaveHanCellOp.rightToLeft = h;
this.m_defaultSaveHanCellOp.widthRate = c;
this.m_defaultSaveHanCellOp.heightRate = b;
this.m_defaultSaveHanCellOp.coordinateErrorLimit = i;
this.m_defaultSaveHanCellOp.processGerenalFormat = e;
this.m_defaultSaveHanCellOp.printingMagnification = k;
g = null == g ? false : g;
this.m_defaultSaveHanCellOp.fitToPageWhenPrinting = g;
}
;
Report.prototype.setDefaultSavePDFOption = function(d, c, e, a, b) {
if (null == this.m_defaultSavePDFOp) {
this.m_defaultSavePDFOp = mRe_getDefaultSavePDFOption();
}
this.m_defaultSavePDFOp.isSplite = d;
this.m_defaultSavePDFOp.spliteValue = c;
this.m_defaultSavePDFOp.userpw = e;
this.m_defaultSavePDFOp.textToImage = a;
this.m_defaultSavePDFOp.importOriginImage = b;
}
;
Report.prototype.setDefaultSaveHWPOption = function(e, f, k, c, i, h, b, l, j, g, d, a) {
if (null == this.m_defaultSaveHWPOp) {
this.m_defaultSaveHWPOp = mRe_getDefaultSaveHWPOption();
}
this.m_defaultSaveHWPOp.fixSize = e;
this.m_defaultSaveHWPOp.allowOverlay = f;
this.m_defaultSaveHWPOp.setPageBottomMarginToZero = k;
this.m_defaultSaveHWPOp.outputLikeWord = c;
if (null != c) {
this.m_defaultSaveHWPOp.tableSplitMethod = i;
}
this.m_defaultSaveHWPOp.defaultCharGap = h;
this.m_defaultSaveHWPOp.charRatio = b;
if (null != l) {
this.m_defaultSaveHWPOp.putCheckboxIntoCell = l;
}
if (null != j) {
this.m_defaultSaveHWPOp.splitTextByLine = j;
}
if (null != g) {
this.m_defaultSaveHWPOp.mergeTable = g;
} else {
this.m_defaultSaveHWPOp.mergeTable = false;
}
if (null != d) {
this.m_defaultSaveHWPOp.lineSpaceRate = d;
}
if (null != a) {
this.m_defaultSaveHWPOp.positionRelTo = a;
}
}
;
Report.prototype.setDefaultSaveRTFOption = function(g, c, d, b, h, i, e, f, a) {
if (null == this.m_defaultSaveRTFOp) {
this.m_defaultSaveRTFOp = mRe_getDefaultSaveRTFOption("rtf");
}
this.m_defaultSaveRTFOp.splitTextLine = g;
this.m_defaultSaveRTFOp.processAsUnicode = c;
this.m_defaultSaveRTFOp.processEqualAlign = d;
this.m_defaultSaveRTFOp.defaultCharSpace = b;
this.m_defaultSaveRTFOp.tableWrapperBottomGap = h;
i = (null == i) ? true : i;
e = (null == e) ? false : e;
this.m_defaultSaveRTFOp.insertTableWrapper = i;
this.m_defaultSaveRTFOp.mergeTable = e;
f = (null == f) ? false : f;
a = (null == a) ? 1 : a;
this.m_defaultSaveRTFOp.fitShapeToText = f;
this.m_defaultSaveRTFOp.TableRowHeightSort = a;
}
;
Report.prototype.setDefaultSaveDOCOption = function(g, c, d, b, h, i, e, f, a) {
if (null == this.m_defaultSaveDOCOp) {
this.m_defaultSaveDOCOp = mRe_getDefaultSaveRTFOption("doc");
}
this.m_defaultSaveDOCOp.splitTextLine = g;
this.m_defaultSaveDOCOp.processAsUnicode = c;
this.m_defaultSaveDOCOp.processEqualAlign = d;
this.m_defaultSaveDOCOp.defaultCharSpace = b;
this.m_defaultSaveDOCOp.tableWrapperBottomGap = h;
i = (null == i) ? true : i;
e = (null == e) ? false : e;
this.m_defaultSaveDOCOp.insertTableWrapper = i;
this.m_defaultSaveDOCOp.mergeTable = e;
f = (null == f) ? false : f;
a = (null == a) ? 1 : a;
this.m_defaultSaveDOCOp.fitShapeToText = f;
this.m_defaultSaveDOCOp.TableRowHeightSort = a;
}
;
Report.prototype.setDefaultSaveJPGOption = function(b, a, d, c) {
if (null == this.m_defaultSaveJPGOp) {
this.m_defaultSaveJPGOp = mRe_getDefaultSaveJPGOption();
}
this.m_defaultSaveJPGOp.rotate90 = b;
this.m_defaultSaveJPGOp.dpiX = a;
this.m_defaultSaveJPGOp.dpiY = d;
this.m_defaultSaveJPGOp.quality = c;
}
;
Report.prototype.setDefaultSavePPTOption = function(b, a) {
if (null == this.m_defaultSavePPTOp) {
this.m_defaultSavePPTOp = mRe_getDefaultSavePPTOption();
}
this.m_defaultSavePPTOp.mergeTable = b;
this.m_defaultSavePPTOp.ignoreLineSpace = a;
}
;
Report.prototype.setDefaultSaveHTMLOption = function(j, h, a, f, d, c, e, i, g, b) {
if (null == this.m_defaultSaveHTMLOp) {
this.m_defaultSaveHTMLOp = mRe_getDefaultSaveHTMLOption();
}
this.m_defaultSaveHTMLOp.processCellLikeShape = j;
this.m_defaultSaveHTMLOp.displayPageLine = h;
this.m_defaultSaveHTMLOp.keepPageHeight = a;
this.m_defaultSaveHTMLOp.applyWordBreak = f;
this.m_defaultSaveHTMLOp.setTextProperiesToEmptyCell = d;
this.m_defaultSaveHTMLOp.putTagIntoEmptyCell = c;
this.m_defaultSaveHTMLOp.textOverflowHidden = e;
this.m_defaultSaveHTMLOp.coordinateRateForX = i;
this.m_defaultSaveHTMLOp.coordinateRateForY = g;
this.m_defaultSaveHTMLOp.encodingType = b;
}
;
Report.prototype.setDefaultSaveHTML5Option = function(b, a) {
if (null == this.m_defaultSaveHTML5Op) {
this.m_defaultSaveHTML5Op = mRe_getDefaultSaveHTML5Option();
}
this.m_defaultSaveHTML5Op.isSplite = b;
this.m_defaultSaveHTML5Op.dpiValue = a;
}
;
Report.prototype.setSaveDirectExcelOption = function(e, g, k, a, d, i, c, b, j, f, l, h) {
this.m_saveDirectExcelOp = {
mergeCell: true
};
this.m_saveDirectExcelOp.fileName = e;
this.m_saveDirectExcelOp.exportMethod = "" + g;
if (null != g) {
this.m_saveDirectExcelOp.mergeCell = k;
}
this.m_saveDirectExcelOp.mergeEmptyCell = a;
this.m_saveDirectExcelOp.splitCellAtPageSize = d;
this.m_saveDirectExcelOp.rightToLeft = i;
this.m_saveDirectExcelOp.widthRate = c;
this.m_saveDirectExcelOp.heightRate = b;
this.m_saveDirectExcelOp.coordinateErrorLimit = j;
this.m_saveDirectExcelOp.processGerenalFormat = f;
this.m_saveDirectExcelOp.printingMagnification = l;
h = null == h ? false : h;
this.m_saveDirectExcelOp.fitToPageWhenPrinting = h;
}
;
Report.prototype.setSaveDirectPDFOption = function(f, d, c, e, a, b) {
this.m_saveDirectPDFOp = {};
this.m_saveDirectPDFOp.fileName = f;
this.m_saveDirectPDFOp.isSplite = d;
this.m_saveDirectPDFOp.spliteValue = c;
this.m_saveDirectPDFOp.userpw = e;
this.m_saveDirectPDFOp.textToImage = a;
this.m_saveDirectPDFOp.importOriginImage = b;
}
;
Report.prototype.setSaveDirectHWPOption = function(e, f, g, l, c, j, i, b, m, k, h, d, a) {
this.m_saveDirectHWPOp = {
tableSplitMethod: 2,
positionRelTo: 1
};
this.m_saveDirectHWPOp.fileName = e;
this.m_saveDirectHWPOp.fixSize = f;
this.m_saveDirectHWPOp.allowOverlay = g;
this.m_saveDirectHWPOp.setPageBottomMarginToZero = l;
this.m_saveDirectHWPOp.outputLikeWord = c;
if (null != c) {
this.m_saveDirectHWPOp.tableSplitMethod = j;
}
this.m_saveDirectHWPOp.defaultCharGap = i;
this.m_saveDirectHWPOp.charRatio = b;
this.m_saveDirectHWPOp.putCheckboxIntoCell = m;
this.m_saveDirectHWPOp.splitTextByLine = k;
if (null != h) {
this.m_saveDirectHWPOp.mergeTable = h;
} else {
this.m_saveDirectHWPOp.mergeTable = false;
}
if (null != d) {
this.m_saveDirectHWPOp.lineSpaceRate = d;
}
if (null != a) {
this.m_saveDirectHWPOp.positionRelTo = a;
}
}
;
Report.prototype.setSaveDirectDOCOption = function(e, h, c, d, b, i, j, f, g, a) {
this.m_saveDirectDOCOp = {
type: "doc"
};
this.m_saveDirectDOCOp.fileName = e;
this.m_saveDirectDOCOp.splitTextLine = h;
this.m_saveDirectDOCOp.processAsUnicode = c;
this.m_saveDirectDOCOp.processEqualAlign = d;
this.m_saveDirectDOCOp.defaultCharSpace = b;
this.m_saveDirectDOCOp.tableWrapperBottomGap = i;
this.m_saveDirectDOCOp.insertTableWrapper = j;
this.m_saveDirectDOCOp.mergeTable = f;
g = (null == g) ? false : g;
a = (null == a) ? 1 : a;
this.m_saveDirectDOCOp.fitShapeToText = g;
this.m_saveDirectDOCOp.TableRowHeightSort = a;
}
;
Report.prototype.setSaveOptionVisible = function(b, a) {
b = b.toLowerCase();
if ("excel" == b) {
this.saveOptionVisible.excel = a;
} else {
if ("pdf" == b) {
this.saveOptionVisible.pdf = a;
} else {
if ("hwp" == b) {
this.saveOptionVisible.hwp = a;
} else {
if ("rtf" == b) {
this.saveOptionVisible.rtf = a;
} else {
if ("doc" == b) {
this.saveOptionVisible.doc = a;
} else {
if ("ppt" == b) {
this.saveOptionVisible.ppt = a;
} else {
if ("html" == b) {
this.saveOptionVisible.html = a;
} else {
if ("html5" == b) {
this.saveOptionVisible.html5 = a;
} else {
if ("hancell" == b) {
this.saveOptionVisible.hancell = a;
} else {
if ("excelx" == b) {
this.saveOptionVisible.excelx = a;
} else {
if ("jpg" == b) {
this.saveOptionVisible.jpg = a;
} else {
if ("txt" == b) {
this.saveOptionVisible.txt = a;
}
}
}
}
}
}
}
}
}
}
}
}
if (!a) {
this.changeDefaultSaveOption();
}
}
;
Report.prototype.changeDefaultSaveOption = function() {
if (this.saveOptionVisible.excel) {
this.defaultSaveOption = "excel";
}
if (this.saveOptionVisible.excelx) {
this.defaultSaveOption = "excelx";
} else {
if (this.saveOptionVisible.pdf) {
this.defaultSaveOption = "pdf";
} else {
if (this.saveOptionVisible.hwp) {
this.defaultSaveOption = "hwp";
} else {
if (this.saveOptionVisible.rtf) {
this.defaultSaveOption = "rtf";
} else {
if (this.saveOptionVisible.doc) {
this.defaultSaveOption = "doc";
} else {
if (this.saveOptionVisible.ppt) {
this.defaultSaveOption = "ppt";
} else {
if (this.saveOptionVisible.html) {
this.defaultSaveOption = "html";
} else {
if (this.saveOptionVisible.html5) {
this.defaultSaveOption = "html5";
} else {
if (this.saveOptionVisible.hancell) {
this.defaultSaveOption = "hancell";
} else {
if (this.saveOptionVisible.txt) {
this.defaultSaveOption = "txt";
}
}
}
}
}
}
}
}
}
}
}
;
Report.prototype.setLimitedPrint = function(a) {
this.m_limitedPrint = a;
}
;
Report.prototype.setDirectPrint = function(a) {
this.m_directPrint = a;
}
;
Report.prototype.setPageCountTime = function(a) {
this.m_pageCountTime = a;
}
;
Report.prototype.setDPI = function(a) {
this.m_DPI = a;
}
;
Report.prototype.setProgress = function(c, a, b) {
this.m_progress.URL = c;
this.m_progress.x = a;
this.m_progress.y = b;
}
;
Report.prototype.setPrintProgress = function(c, a, b) {
this.m_printprogress.URL = c;
this.m_printprogress.x = a;
this.m_printprogress.y = b;
}
;
Report.prototype.setHWPProgress = function(c, a, b) {
this.m_hwpprogress.URL = c;
this.m_hwpprogress.x = a;
this.m_hwpprogress.y = b;
}
;
Report.prototype.setEXCELProgress = function(c, a, b) {
this.m_excelprogress.URL = c;
this.m_excelprogress.x = a;
this.m_excelprogress.y = b;
}
;
Report.prototype.setSAVEProgress = function(c, a, b) {
this.m_saveprogress.URL = c;
this.m_saveprogress.x = a;
this.m_saveprogress.y = b;
}
;
Report.prototype.nextPage = function() {
this.debugMeg("report log :: 다음 페이지로 이동 합니다.", true);
if (this.m_isButtonLock == false) {
if (this.m_buttonEvent.startNextButton != null) {
var a = this.m_buttonEvent.startNextButton();
if (a != true) {
return;
}
}
this.selectPage((this.beforePageIndex + 1));
}
}
;
Report.prototype.previousPage = function() {
this.debugMeg("report log :: 이전 페이지로 이동 합니다.", true);
if (this.m_isButtonLock == false) {
if (this.m_buttonEvent.startPrevButton != null) {
var a = this.m_buttonEvent.startPrevButton();
if (a != true) {
return;
}
}
this.selectPage((this.beforePageIndex - 1));
}
}
;
Report.prototype.firstPage = function() {
this.debugMeg("report log :: 첫 페이지로 이동 합니다.", true);
if (this.m_isButtonLock == false) {
if (this.m_buttonEvent.startFirstButton != null) {
var a = this.m_buttonEvent.startFirstButton();
if (a != true) {
return;
}
}
this.selectPage(0);
}
}
;
Report.prototype.lastPage = function() {
this.debugMeg("report log :: 마지막 페이지로 이동 합니다.", true);
if (this.m_isButtonLock == false) {
if (this.m_buttonEvent.startLastButton != null) {
var a = this.m_buttonEvent.startLastButton();
if (a != true) {
return;
}
}
this.selectPage(this.m_pageCount - 1);
}
}
;
Report.prototype.exportView = function() {
if (this.m_isEndReport) {
if (this.m_buttonEvent.startSaveButton != null) {
var a = this.m_buttonEvent.startSaveButton();
if (a != true) {
return;
}
}
this.reportCheckSend(0);
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.printMobileView = function() {
if (this.m_isEndReport) {
if (null != this.m_limitedPrint && this.m_pageCount > this.m_limitedPrint) {
this.printLimitedExportView("pdf");
return;
}
this.pdfDownLoad();
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.printWindowView = function() {
if (this.m_isEndReport && !this.m_disControl.print) {
this.reportCheckSend(4);
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.printView = function() {
if (this.m_isEndReport && !this.m_disControl.print) {
if (null != this.m_limitedPrint && this.checkPrintCount() > this.m_limitedPrint) {
this.printLimitedExportView("pdf");
return;
}
this.mRe_printView();
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.printHWPView = function() {
if (this.m_isEndReport && !this.m_disControl.print) {
if (null != this.m_limitedPrint && this.checkPrintCount() > this.m_limitedPrint) {
this.printLimitedExportView("hwp");
return;
}
this.mRe_printHWPView();
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.printEXEView = function() {
if (this.m_isEndReport && is_window && !this.m_disControl.print) {
if (null != this.m_limitedPrint && this.checkPrintCount() > this.m_limitedPrint) {
this.printLimitedExportView("exe");
return;
}
this.mRe_printEXEView();
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.printHTMLView = function() {
if (this.m_isEndReport && !this.m_disControl.print) {
if (!is_chrome) {
var a = mRe_getLocalStorage("mRe_htmlPopupCheck");
if (a == "0") {
this.printHtmlPopupCheckExportView();
return;
}
}
this.checkPrintHTMLView();
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.pdfDownLoad = function() {
if (this.m_isEndReport) {
if (this.m_buttonEvent.startPDFButton != null) {
var a = this.m_buttonEvent.startPDFButton();
if (a != true) {
return;
}
}
this.printOpReset();
this.reportCheckSend(1);
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.htmlDownLoad = function() {
if (this.fileDownLoding) {
return;
}
var a = this;
this.fileDownLoding = true;
if (this.m_isEndReport) {
this.formTag_clipid.value = "R06";
this.formTag_uid.value = this.m_uid;
this.formTag_print.value = "html";
this.formTag_path.value = this.clientPath;
this.formTag.action = this.servletPath;
this.formTag.target = "re_target" + this.m_uid;
this.formTag.submit();
} else {
mRe_ReportEventHandler(10);
}
window.setTimeout(function() {
a.fileDownLoding = false;
}, 2000);
}
;
Report.prototype.hwpDownLoad = function() {
if (this.m_isEndReport) {
if (this.m_buttonEvent.startHWPButton != null) {
var a = this.m_buttonEvent.startHWPButton();
if (a != true) {
return;
}
}
this.printOpReset();
this.reportCheckSend(3);
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.excelDownLoad = function() {
if (this.m_isEndReport) {
if (this.m_buttonEvent.startExcelButton != null) {
var a = this.m_buttonEvent.startExcelButton();
if (a != true) {
return;
}
}
this.printOpReset();
this.reportCheckSend(2);
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.docDownLoad = function() {
if (this.m_isEndReport) {
if (this.m_buttonEvent.startDOCButton != null) {
var a = this.m_buttonEvent.startDOCButton();
if (a != true) {
return;
}
}
this.printOpReset();
this.reportCheckSend(5);
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.closeReport = function() {
if (this.m_buttonEvent.startCloseButton != null) {
var a = this.m_buttonEvent.startCloseButton();
if (a != true) {
return;
}
}
this.deleteToReport();
window.clearInterval(this.checkCountLoop);
if (this.m_isFadeView) {
$(this.targetDiv).fadeOut(400, function() {
this.innerHTML = "";
$(this).show();
});
} else {
this.targetDiv.innerHTML = "";
}
if (this.m_isCloseFunction != null) {
this.m_isCloseFunction();
}
m_reportHashMap[this.m_uid] = null;
}
;
Report.prototype.setStyle = function(b, a) {
switch (b) {
case "menu":
if (null != this.menuDiv && (typeof this.menuDiv !== "string")) {
this.menuDiv.style.cssText = a;
} else {
this.menuDiv = a;
}
break;
case "main":
if (null != this.paintDiv && (typeof this.paintDiv !== "string")) {
this.paintDiv.style.cssText = a;
} else {
this.paintDiv = a;
}
break;
case "prev_button":
if (null != this.prev_button && (typeof this.prev_button !== "string")) {
this.prev_button.style.cssText = a;
} else {
this.prev_button = a;
}
break;
case "next_button":
if (null != this.next_button && (typeof this.next_button !== "string")) {
this.next_button.style.cssText = a;
} else {
this.next_button = a;
}
break;
case "firstPage_button":
if (null != this.first_button && (typeof this.first_button !== "string")) {
this.first_button.style.cssText = a;
} else {
this.first_button = a;
}
break;
case "lastPage_button":
if (null != this.last_button && (typeof this.last_button !== "string")) {
this.last_button.style.cssText = a;
} else {
this.last_button = a;
}
break;
case "save_button":
if (null != this.save_button && (typeof this.save_button !== "string")) {
this.save_button.style.cssText = a;
} else {
this.save_button = a;
}
break;
case "print_button":
if (null != this.print_button && (typeof this.print_button !== "string")) {
this.print_button.style.cssText = a;
} else {
this.print_button = a;
}
break;
case "close_button":
if (null != this.close_button && (typeof this.close_button !== "string")) {
this.close_button.style.cssText = a;
} else {
this.close_button = a;
}
break;
case "pdf_button":
if (null != this.pdf_button && (typeof this.pdf_button !== "string")) {
this.pdf_button.style.cssText = a;
} else {
this.pdf_button = a;
}
break;
case "hwp_button":
if (null != this.hwp_button && (typeof this.hwp_button !== "string")) {
this.hwp_button.style.cssText = a;
} else {
this.hwp_button = a;
}
break;
case "doc_button":
if (null != this.doc_button && (typeof this.doc_button !== "string")) {
this.doc_button.style.cssText = a;
} else {
this.doc_button = a;
}
break;
case "excel_button":
if (null != this.excel_button && (typeof this.excel_button !== "string")) {
this.excel_button.style.cssText = a;
} else {
this.excel_button = a;
}
break;
case "reportInfo_button":
if (null != this.reportInfo_button && (typeof this.reportInfo_button !== "string")) {
this.reportInfo_button.style.cssText = a;
} else {
this.reportInfo_button = a;
}
break;
case "zoomIn":
if (null != this.zoomCombo && (typeof this.zoomCombo !== "string")) {
this.zoomCombo.style.cssText = a;
} else {
this.zoomCombo = a;
}
break;
case "input_box":
if (null != this.input && (typeof this.input !== "string")) {
this.input.style.cssText = a;
} else {
this.input = a;
}
break;
case "totalCount_box":
if (null != this.totalCountSpan && (typeof this.totalCountSpan !== "string")) {
this.totalCountSpan.style.cssText = a;
if (null != this.totalCountText) {
this.totalCountText.style.cssText = a;
}
} else {
this.totalCountSpan = a;
}
break;
}
}
;
Report.prototype.setVisibleMenu = function(a) {
this.m_isMenu = a;
}
;
Report.prototype.setFadeView = function(a) {
this.m_isFadeView = a;
}
;
Report.prototype.setIsBigData = function(a) {
this.m_isBigData = a;
}
;
Report.prototype.setIsMemoryDump = function(a) {
this.m_isMemoryDump = a;
}
;
Report.prototype.reSize = function() {
if (this.zoomCombo != null) {
this.zoomIn(this.zoomCombo);
}
}
;
Report.prototype.setDefaultRatio = function(a) {
switch (a.toLowerCase()) {
case "50%":
case "75%":
case "100%":
case "125%":
case "150%":
case "200%":
case "300%":
case "400%":
case "pagewidth":
case "wholepage":
this.m_ratio = a;
break;
default:
this.m_ratio = "100%";
}
}
;
Report.prototype.setHWPPrint = function(a) {
this.m_isHWPPrint = a;
}
;
Report.prototype.setDisplayTotalPageCount = function(a, b) {
this.m_TPC.before = a;
this.m_TPC.after = b;
}
;
Report.prototype.saveExportView = function() {
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_save_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:15px;right:15px;top:5%;height:15%;border:1px solid darkgray'>");
a.push("<select title='" + this.m_languageMap.fileType + "' onChange=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectExportType(this)\" style='position:absolute;left:10px;top:15px;width:70%;height:50%;'>");
if (this.saveOptionVisible.excel) {
a.push("<option value='1' ");
a.push((this.defaultSaveOption == "excel" ? "selected" : ""));
a.push(">" + this.m_languageMap.excel_save + "(*.xls)</option>");
}
if (this.saveOptionVisible.excelx) {
a.push("<option value='10' ");
a.push((this.defaultSaveOption == "excelx" ? "selected" : ""));
a.push(">" + this.m_languageMap.excel_save + "(*.xlsx)</option>");
}
if (this.saveOptionVisible.pdf) {
a.push("<option value='2' ");
a.push((this.defaultSaveOption == "pdf" ? "selected" : ""));
a.push(">" + this.m_languageMap.pdf_save + "(*.pdf)</option>");
}
if (this.saveOptionVisible.hwp) {
a.push("<option value='3' ");
a.push((this.defaultSaveOption == "hwp" ? "selected" : ""));
a.push(">" + this.m_languageMap.hwp_save + "(*.hwp)</option>");
}
if (this.saveOptionVisible.rtf) {
a.push("<option value='4' ");
a.push((this.defaultSaveOption == "rtf" ? "selected" : ""));
a.push(">" + this.m_languageMap.rtf_save + "(*.rtf)</option>");
}
if (this.saveOptionVisible.ppt) {
a.push("<option value='5' ");
a.push((this.defaultSaveOption == "ppt" ? "selected" : ""));
a.push(">" + this.m_languageMap.ppt_save + "(*.ppt)</option>");
}
if (this.saveOptionVisible.html) {
a.push("<option value='6' ");
a.push((this.defaultSaveOption == "html" ? "selected" : ""));
a.push(">" + this.m_languageMap.html_save + "(*.html)</option>");
}
if (this.saveOptionVisible.hancell) {
a.push("<option value='7' ");
a.push((this.defaultSaveOption == "hancell" ? "selected" : ""));
a.push(">" + this.m_languageMap.hancell_save + "(*.cell)</option>");
}
if (this.saveOptionVisible.html5) {
a.push("<option value='8' ");
a.push((this.defaultSaveOption == "html5" ? "selected" : ""));
a.push(">" + this.m_languageMap.html5_save + "(*.html)</option>");
}
if (this.saveOptionVisible.doc) {
a.push("<option value='9' ");
a.push((this.defaultSaveOption == "doc" ? "selected" : ""));
a.push(">" + this.m_languageMap.doc_save + "(*.doc)</option>");
}
if (this.saveOptionVisible.jpg) {
a.push("<option value='11' ");
a.push((this.defaultSaveOption == "jpg" ? "selected" : ""));
a.push(">" + this.m_languageMap.jpg_save + "(*.jpg)</option>");
}
if (this.saveOptionVisible.txt) {
a.push("<option value='12' ");
a.push((this.defaultSaveOption == "txt" ? "selected" : ""));
a.push(">" + this.m_languageMap.txt_save + "(*.txt)</option>");
}
a.push("</select>");
a.push("<button title='" + this.m_languageMap.propertys + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_editOptionInfo();return false;\" class='report_view_button' style='position:absolute;right:10px;top:15px;width:20%;height:50%;font-size:8pt'><nobr>" + this.m_languageMap.propertys + "</nobr></button>");
a.push("</div>");
a.push("<div style='position:absolute;left:15px;right:15px;top:27%;height:15%;border:1px solid darkgray'>");
a.push("<input title='" + this.m_languageMap.fileName + "' type='text' style='position:absolute;left:10px;top:12px;width:90%;height:45%;padding-left:5px' value='" + this.m_strFileName + "'/>");
a.push("</div>");
a.push("<div style='position:absolute;left:15px;right:15px;top:50%;height:34%;border:1px solid darkgray'>");
a.push("<table style='position:absolute;top:15px'>");
a.push("<tr><td style='cursor:default' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectSaveRange(1);\"><input title='" + this.m_languageMap.total_page + "' name='m_ReSelectRange' type='radio' value='1' checked/>" + this.m_languageMap.total_page + "</td></tr>");
a.push("<tr><td style='cursor:default' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectSaveRange(2);\"><input title='" + this.m_languageMap.currentPage + "' name='m_ReSelectRange' type='radio' value='2'/>" + this.m_languageMap.currentPage + "</td></tr>");
a.push("<tr><td style='cursor:default' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectSaveRange(3);\"><input title='" + this.m_languageMap.page_designation + "' name='m_ReSelectRange' type='radio' value='3'/>" + this.m_languageMap.page_designation + "</td></tr>");
a.push("<tr><td style='padding-left:25px;padding-top:5px'>");
a.push("<input type='text' style='width:40px' value='1' disabled/>" + this.m_languageMap.from + " ");
a.push("<input type='text' style='width:40px' value='" + this.m_pageCount + "' disabled/>" + this.m_languageMap.to + "");
a.push("</td></tr>");
a.push("</table>");
a.push("</div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:3%;border:0;'>" + this.m_languageMap.fileType + "</span>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:25%;border:0;'>" + this.m_languageMap.fileName + "</span>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:48%;border:0;'>" + this.m_languageMap.save_range + "</span>");
a.push("<button onclick=\"m_reportHashMap['" + this.m_uid + "'].saveExportFileInfo();return false;\" title='" + this.m_languageMap.save + "' class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.save + "</button>");
a.push("<button onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closeReportSaveInfo();return false;\" title='" + this.m_languageMap.cancel + "' class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;top:82%;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
this.mRe_setViewDomInfo(b);
this.m_popupViewDiv.appendChild(b);
if (this.saveOptionVisible.excel && this.defaultSaveOption == "excel") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls");
this.makeExcelSaveOptionWindow();
}
if (this.saveOptionVisible.excelx && this.defaultSaveOption == "excelx") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx");
this.makeExcelSaveOptionWindow();
} else {
if (this.saveOptionVisible.pdf && this.defaultSaveOption == "pdf") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption();
mRe_setPDFFileList(this.m_saveInfo_view.child_option.json_data, this.splitPDFFileNames);
this.makePDFSaveOptionWindow();
} else {
if (this.saveOptionVisible.hwp && this.defaultSaveOption == "hwp") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption();
this.makeHWPSaveOptionWindow();
} else {
if (this.saveOptionVisible.rtf && this.defaultSaveOption == "rtf") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf");
this.makeRTFSaveOptionWindow();
} else {
if (this.saveOptionVisible.ppt && this.defaultSaveOption == "ppt") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSavePPTOp != null ? this.m_defaultSavePPTOp : mRe_getDefaultSavePPTOption();
this.makePPTSaveOptionWindow();
} else {
if (this.saveOptionVisible.html && this.defaultSaveOption == "html") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHTMLOp != null ? this.m_defaultSaveHTMLOp : mRe_getDefaultSaveHTMLOption();
this.makeHTMLSaveOptionWindow();
} else {
if (this.saveOptionVisible.hancell && this.defaultSaveOption == "hancell") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell");
this.makeExcelSaveOptionWindow();
} else {
if (this.saveOptionVisible.html5 && this.defaultSaveOption == "html5") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option();
this.makeHTML5SaveOptionWindow();
} else {
if (this.saveOptionVisible.doc && this.defaultSaveOption == "doc") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc");
this.makeRTFSaveOptionWindow();
} else {
if (this.saveOptionVisible.jpg && this.defaultSaveOption == "jpg") {
this.m_saveInfo_view.child_option.json_data = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption();
this.makeJPGSaveOptionWindow();
} else {
if (this.saveOptionVisible.txt && this.defaultSaveOption == "txt") {
this.m_saveInfo_view.child_option.json_data = null;
}
}
}
}
}
}
}
}
}
}
}
}
;
Report.prototype.saveExportFileInfo = function() {
if (null != this.m_saveInfo_view) {
if (this.saveViewValidationCheck()) {
this.makeExportSaveOption();
this.submitSaveOption();
this.mRe_closeReportSaveInfo();
}
}
}
;
Report.prototype.makeExportSaveOption = function() {
var b = this.m_saveInfo_view;
var a = {};
a.exportType = Number(b.fileTypeDom.value);
a.name = Base64.encode(b.fileNameDom.value);
if (b.check1Dom.checked) {
a.pageType = 1;
a.startNum = 1;
a.endNum = this.m_pageCount;
} else {
if (b.check2Dom.checked) {
a.pageType = 2;
a.startNum = this.beforePageIndex + 1;
a.endNum = this.beforePageIndex + 1;
} else {
a.pageType = 3;
a.startNum = Number(b.startInDom.value);
a.endNum = Number(b.endInDom.value);
}
}
a.option = b.child_option.json_data;
this.m_saveInfo_view.json_data = a;
b = null;
a = null;
}
;
Report.prototype.submitSaveOption = function() {
this.debugMeg("report log :: 파일 저장 시작..");
this.createSAVEProgress();
this.saveFormTag.acceptCharset = "UTF-8";
this.saveFormTag.clipid.value = "R09";
this.saveFormTag.uid.value = this.m_uid;
this.saveFormTag.path.value = this.clientPath;
if (null != this.m_saveInfo_view.json_data) {
this.saveFormTag.option.value = JSON.stringify(this.m_saveInfo_view.json_data);
} else {
this.saveFormTag.option.value = "";
}
this.saveFormTag.filename.value = this.m_saveInfo_view.json_data.name;
this.saveFormTag.filetype.value = this.m_saveInfo_view.json_data.exportType;
this.debugMeg("report log :: 파일 저장 옵션 check >> " + m_getSaveFormTag(this.saveFormTag));
if (-1 != this.servletPath.indexOf("?")) {
var c = document.getElementById("re_iframe" + this.m_uid);
if (null != c) {
c.src = this.servletPath + "&" + m_getSaveFormTag(this.saveFormTag);
}
} else {
this.saveFormTag.form.action = this.servletPath;
this.saveFormTag.form.target = "re_target" + this.m_uid;
this.saveFormTag.form.submit();
}
var a = this;
var b = this.m_uid;
if (a.m_fileDownLoadServerCheck) {
this.fileDownloadCheckTimer = window.setTimeout(function() {
a.fileCheckSend("save");
}, 1000);
} else {
this.fileDownloadCheckTimer = window.setInterval(function() {
var d = mRe_getReportCookie("fileSaveDownloadToken");
if (d == b) {
a.removeSAVEProgress();
}
}, 1000);
}
}
;
Report.prototype.saveViewValidationCheck = function() {
var c = this.m_saveInfo_view;
var d = c.fileNameDom.value;
d = d.replace(/(^\s*)|(\s*$)/gi, "");
if ("" == d) {
c.validationDom.innerHTML = this.m_languageMap.printName_validation;
c = null;
return false;
} else {
if (c.check3Dom.checked) {
var b = Number(c.startInDom.value);
var a = Number(c.endInDom.value);
if (isNaN(b) || isNaN(a)) {
c.validationDom.innerHTML = this.m_languageMap.printNum_validation;
c = null;
return false;
} else {
if (b <= 0.9 || a <= 0.9 || b > a || b > this.m_pageCount || a > this.m_pageCount) {
c.validationDom.innerHTML = this.m_languageMap.printNum_validation;
c = null;
return false;
}
}
}
}
c = null;
return true;
}
;
Report.prototype.mRe_setViewDomInfo = function(b) {
this.m_saveInfo_view = {};
this.m_saveInfo_view.child_option = {};
var c = this.m_saveInfo_view;
c.viewDom = b;
var a = b.firstChild;
c.validationDom = b.lastChild;
c.cancelButtonDom = c.validationDom.previousSibling;
c.saveButtonDom = c.cancelButtonDom.previousSibling;
c.fileTypeDom = a.firstChild;
c.detailButtonDom = a.lastChild;
a = a.nextSibling;
c.fileNameDom = a.firstChild;
a = a.nextSibling.firstChild.lastChild.firstChild;
c.check1Dom = a.firstChild.firstChild;
a = a.nextSibling;
c.check2Dom = a.firstChild.firstChild;
a = a.nextSibling;
c.check3Dom = a.firstChild.firstChild;
a = a.nextSibling.firstChild.firstChild;
c.startInDom = a;
a = a.nextSibling.nextSibling;
c.endInDom = a;
a = null;
c = null;
}
;
Report.prototype.mRe_disabledViewDomInfo = function(b) {
var a = this.m_saveInfo_view;
a.cancelButtonDom.disabled = b;
a.saveButtonDom.disabled = b;
a.fileTypeDom.disabled = b;
a.fileNameDom.disabled = b;
a.check1Dom.disabled = b;
a.check2Dom.disabled = b;
a.check3Dom.disabled = b;
a.startInDom.disabled = b;
a.endInDom.disabled = b;
}
;
Report.prototype.mRe_editOptionInfo = function() {
this.mRe_disabledViewDomInfo(true);
this.editOptionInfo(this.m_saveInfo_view.fileTypeDom.value);
}
;
Report.prototype.editOptionInfo = function(a) {
this.m_editOp = true;
var b = Number(a);
switch (b) {
case 1:
this.mRe_disabledExcelViewDomInfo(false);
break;
case 2:
this.mRe_disabledPDFViewDomInfo(false);
break;
case 3:
this.mRe_disabledHWPViewDomInfo(false);
break;
case 4:
this.mRe_disabledRTFViewDomInfo(false);
break;
case 5:
this.mRe_disabledPPTViewDomInfo(false);
break;
case 6:
this.mRe_disabledHTMLViewDomInfo(false);
break;
case 7:
this.mRe_disabledExcelViewDomInfo(false);
break;
case 8:
this.mRe_disabledHTML5ViewDomInfo(false);
break;
case 9:
this.mRe_disabledRTFViewDomInfo(false);
break;
case 10:
this.mRe_disabledExcelViewDomInfo(false);
break;
case 11:
this.mRe_disabledJPGViewDomInfo(false);
break;
}
}
;
Report.prototype.mRe_selectSaveRange = function(a) {
if (this.m_saveInfo_view.check1Dom.disabled) {
return;
}
if (1 == a) {
this.m_saveInfo_view.check1Dom.checked = true;
this.m_saveInfo_view.startInDom.disabled = true;
this.m_saveInfo_view.endInDom.disabled = true;
} else {
if (2 == a) {
this.m_saveInfo_view.check2Dom.checked = true;
this.m_saveInfo_view.startInDom.disabled = true;
this.m_saveInfo_view.endInDom.disabled = true;
} else {
this.m_saveInfo_view.check3Dom.checked = true;
this.m_saveInfo_view.startInDom.disabled = false;
this.m_saveInfo_view.endInDom.disabled = false;
}
}
}
;
Report.prototype.mRe_selectExportType = function(a) {
var d = Number(a.value);
var c = this.m_saveInfo_view.child_option;
var b = this.m_saveInfo_view.detailButtonDom;
if (null != c.viewDom) {
this.m_popupViewDiv.removeChild(c.viewDom);
}
this.m_saveInfo_view.child_option = {};
c = this.m_saveInfo_view.child_option;
b.disabled = false;
switch (d) {
case 1:
c.json_data = this.m_defaultSaveExcelOp != null ? this.m_defaultSaveExcelOp : mRe_getDefaultSaveExcelOption("xls");
this.makeExcelSaveOptionWindow();
break;
case 2:
c.json_data = this.m_defaultSavePDFOp != null ? this.m_defaultSavePDFOp : mRe_getDefaultSavePDFOption();
mRe_setPDFFileList(c.json_data, this.splitPDFFileNames);
this.makePDFSaveOptionWindow();
break;
case 3:
c.json_data = this.m_defaultSaveHWPOp != null ? this.m_defaultSaveHWPOp : mRe_getDefaultSaveHWPOption();
this.makeHWPSaveOptionWindow();
break;
case 4:
c.json_data = this.m_defaultSaveRTFOp != null ? this.m_defaultSaveRTFOp : mRe_getDefaultSaveRTFOption("rtf");
this.makeRTFSaveOptionWindow();
break;
case 5:
c.json_data = this.m_defaultSavePPTOp != null ? this.m_defaultSavePPTOp : mRe_getDefaultSavePPTOption();
this.makePPTSaveOptionWindow();
break;
case 6:
c.json_data = this.m_defaultSaveHTMLOp != null ? this.m_defaultSaveHTMLOp : mRe_getDefaultSaveHTMLOption();
this.makeHTMLSaveOptionWindow();
break;
case 7:
c.json_data = this.m_defaultSaveHanCellOp != null ? this.m_defaultSaveHanCellOp : mRe_getDefaultSaveExcelOption("cell");
this.makeExcelSaveOptionWindow();
break;
case 8:
c.json_data = this.m_defaultSaveHTML5Op != null ? this.m_defaultSaveHTML5Op : mRe_getDefaultSaveHTML5Option();
this.makeHTML5SaveOptionWindow();
break;
case 9:
c.json_data = this.m_defaultSaveDOCOp != null ? this.m_defaultSaveDOCOp : mRe_getDefaultSaveRTFOption("doc");
this.makeRTFSaveOptionWindow();
break;
case 10:
c.json_data = this.m_defaultSaveExcelxOp != null ? this.m_defaultSaveExcelxOp : mRe_getDefaultSaveExcelOption("xlsx");
this.makeExcelSaveOptionWindow();
break;
case 11:
c.json_data = this.m_defaultSaveJPGOp != null ? this.m_defaultSaveJPGOp : mRe_getDefaultSaveJPGOption();
this.makeJPGSaveOptionWindow();
break;
case 12:
c.json_data = null;
break;
}
}
;
Report.prototype.mRe_closeReportSaveInfo = function() {
if (null != this.m_popupViewDiv) {
this.targetDiv.removeChild(this.m_popupViewDiv);
this.m_popupViewDiv = null;
}
this.m_saveInfo_view = null;
this.disabledMenu(false);
if (this.m_buttonEvent.endSaveButton != null) {
this.m_buttonEvent.endSaveButton();
}
}
;
Report.prototype.makeExcelSaveOptionWindow = function() {
this.m_editOp = false;
var d = this.m_saveInfo_view.child_option.json_data;
var c = document.createElement("div");
c.className = "report_saveExcel_view_position report_view_box";
var b = new Array();
b.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:30%;'>");
b.push("<select title='" + this.m_languageMap.sheet_type + "' style='position:absolute;right:0px;width:75%;height:25px;' disabled>");
b.push("<option value='1' " + (d.exportMethod == 1 ? "selected" : "") + ">" + this.m_languageMap.sheet_type1 + "</option>");
b.push("<option value='2' " + (d.exportMethod == 2 ? "selected" : "") + ">" + this.m_languageMap.sheet_type2 + "</option>");
b.push("<option value='3' " + (d.exportMethod == 3 ? "selected" : "") + ">" + this.m_languageMap.sheet_type3 + "</option>");
b.push("<option value='5' " + (d.exportMethod == 5 ? "selected" : "") + ">" + this.m_languageMap.sheet_type5 + "</option>");
b.push("<option value='4' " + (d.exportMethod == 4 ? "selected" : "") + ">" + this.m_languageMap.sheet_type4 + "</option>");
b.push("</select>");
b.push("<table style='position:absolute;top:30px;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
b.push("<tr><td valign='middle' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectExcelOpCheck();\"><input title='" + this.m_languageMap.merge_cell + "' type='checkbox' " + (d.mergeCell ? "checked" : "") + " disabled/>" + this.m_languageMap.merge_cell + "</td></tr>");
b.push("<tr><td style='padding-left:15px' valign='middle'><input title='" + this.m_languageMap.merge_EmptyCell + "' type='checkbox' " + (d.mergeEmptyCell ? "checked" : "") + " disabled/>" + this.m_languageMap.merge_EmptyCell + "</td></tr>");
b.push("<tr><td valign='middle'><input title='" + this.m_languageMap.cell_Separated + "' type='checkbox' " + (d.splitCellAtPageSize ? "checked" : "") + " disabled/>" + this.m_languageMap.cell_Separated + "</td></tr>");
b.push("<tr><td valign='middle'><input title='" + this.m_languageMap.rightToLeft + "' type='checkbox' " + (d.rightToLeft ? "checked" : "") + " disabled/>" + this.m_languageMap.rightToLeft + "</td></tr>");
b.push("<tr><td valign='middle'><input title='" + this.m_languageMap.fitToPageWhenPrinting + "' type='checkbox' " + (d.fitToPageWhenPrinting ? "checked" : "") + " disabled/>" + this.m_languageMap.fitToPageWhenPrinting + "</td></tr>");
b.push("</table>");
b.push("<span style='position:absolute;top:5px;'>" + this.m_languageMap.sheet_type + " :</span>");
b.push("</div>");
b.push("<div style='position:absolute;left:15px;right:15px;top:40%;height:20%;border:1px solid darkgray'>");
b.push("<table style='position:absolute;top:10px;left:5px'>");
b.push("<tr><td style='cursor:default'>" + this.m_languageMap.cellWidth + " : <input id='re_excelwidthRate_" + this.m_uid + "' title='" + this.m_languageMap.cellWidth + "' type='text' value='" + d.widthRate + "' maxlength='3' disabled/> %</td></tr>");
b.push("<tr><td style='cursor:default'>" + this.m_languageMap.cellHeight + " : <input id='re_excelheightRate_" + this.m_uid + "' title='" + this.m_languageMap.cellHeight + "' type='text' value='" + d.heightRate + "' maxlength='3' disabled/> %</td></tr>");
b.push("</table>");
b.push("</div>");
b.push("<div style='position:absolute;left:13px;right:15px;top:65%;height:20%;'>");
b.push("<input title='" + this.m_languageMap.rangeError + "' type='text' value='" + d.coordinateErrorLimit + "' style='position:absolute;right:0px;height:18px;width:170px' disabled/>");
b.push("<select title='" + this.m_languageMap.displayFormat + "' style='position:absolute;right:0px;height:23px;width:150px;top:28px' disabled>");
b.push("<option value='1' " + (d.processGerenalFormat == 1 ? "selected" : "") + ">" + this.m_languageMap.text + "</option>");
b.push("<option value='2' " + (d.processGerenalFormat == 2 ? "selected" : "") + ">" + this.m_languageMap.normal + "</option>");
b.push("</select>");
b.push("<input title='" + this.m_languageMap.printRate + "' type='text' value='" + d.printingMagnification + "' style='position:absolute;top:54px;right:0px;height:18px;width:145px' maxlength='3' disabled/>");
var a = this.m_language == 0 ? 5 : 0;
b.push("<span style='position:absolute;top:" + a + "px;left:0px;width:100px'>" + this.m_languageMap.rangeError + " : </span>");
b.push("<span style='position:absolute;top:33px;left:0px;width:150px'>" + this.m_languageMap.displayFormat + " : </span>");
b.push("<span style='position:absolute;top:58px;left:0px;width:150px'>" + this.m_languageMap.printRate + " : </span>");
b.push("</div>");
b.push("<span class='report_view_box' style='position:absolute;left:20px;top:38.5%;border:0;'>" + this.m_languageMap.cellSizeRatio + "</span>");
b.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_saveExcelOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
b.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelExcelOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
b.push("<span style='position:absolute;left:16px;top:85%;font-size:8pt;color:red'></span>");
c.innerHTML = b.join("");
b = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(c);
}
this.mRe_setExcelViewDomInfo(c);
}
;
Report.prototype.mRe_setExcelViewDomInfo = function(a) {
var d = this.m_saveInfo_view.child_option;
d.viewDom = a;
var c = a.firstChild;
d.validationDom = a.lastChild;
d.cancelButtonDom = d.validationDom.previousSibling;
d.saveButtonDom = d.cancelButtonDom.previousSibling;
d.exportMethodDom = c.firstChild;
var b = d.exportMethodDom.nextSibling.firstChild.firstChild;
d.mergeCellDom = b.firstChild.firstChild;
b = b.nextSibling;
d.mergeEmptyCellDom = b.firstChild.firstChild;
b = b.nextSibling;
d.splitCellAtPageSizeDom = b.firstChild.firstChild;
b = b.nextSibling;
d.rightToLeftDom = b.firstChild.firstChild;
b = b.nextSibling;
d.fitToPageWhenPrintingDom = b.firstChild.firstChild;
d.widthRateDom = document.getElementById("re_excelwidthRate_" + this.m_uid);
d.heightRateDom = document.getElementById("re_excelheightRate_" + this.m_uid);
c = c.nextSibling.nextSibling;
d.coordinateErrorLimitDom = c.firstChild;
d.processGerenalFormatDom = d.coordinateErrorLimitDom.nextSibling;
d.printingMagnification = d.processGerenalFormatDom.nextSibling;
b = null;
c = null;
d = null;
}
;
Report.prototype.mRe_disabledExcelViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.exportMethodDom.disabled = b;
a.mergeCellDom.disabled = b;
if (a.mergeCellDom.checked) {
a.mergeEmptyCellDom.disabled = b;
}
a.splitCellAtPageSizeDom.disabled = b;
a.rightToLeftDom.disabled = b;
a.fitToPageWhenPrintingDom.disabled = b;
a.widthRateDom.disabled = b;
a.heightRateDom.disabled = b;
a.coordinateErrorLimitDom.disabled = b;
a.processGerenalFormatDom.disabled = b;
a.printingMagnification.disabled = b;
}
;
Report.prototype.mRe_cancelExcelOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makeExcelSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_saveExcelOptionInfo = function() {
if (this.saveExcelOptionViewValidationCheck()) {
this.setExcelOptionValue();
this.mRe_cancelExcelOptionInfo();
}
}
;
Report.prototype.saveExcelOptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.widthRateDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.widthError;
b = null;
return false;
} else {
if (a < 50 || a > 200) {
b.validationDom.innerHTML = this.m_languageMap.widthErrorValue;
b = null;
return false;
}
}
a = Number(b.heightRateDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.heightError;
b = null;
return false;
} else {
if (a < 50 || a > 200) {
b.validationDom.innerHTML = this.m_languageMap.heightErrorValue;
b = null;
return false;
}
}
a = Number(b.coordinateErrorLimitDom.value);
if (isNaN(a) || a <= 0) {
b.validationDom.innerHTML = this.m_languageMap.coordinateError;
b = null;
return false;
}
a = Number(b.printingMagnification.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.printError;
b = null;
return false;
} else {
if (a < 10 || a > 400) {
b.validationDom.innerHTML = this.m_languageMap.printErrorValue;
b = null;
return false;
}
}
b = null;
return true;
}
;
Report.prototype.mRe_selectExcelOpCheck = function() {
var a = this.m_saveInfo_view.child_option;
if (a.mergeCellDom.checked && this.m_editOp) {
a.mergeEmptyCellDom.disabled = false;
} else {
a.mergeEmptyCellDom.checked = false;
a.mergeEmptyCellDom.disabled = true;
}
a = null;
}
;
Report.prototype.setExcelOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.exportMethod = b.exportMethodDom.value;
a.mergeCell = b.mergeCellDom.checked;
a.mergeEmptyCell = b.mergeEmptyCellDom.checked;
a.splitCellAtPageSize = b.splitCellAtPageSizeDom.checked;
a.rightToLeft = b.rightToLeftDom.checked;
a.widthRate = Number(b.widthRateDom.value);
a.heightRate = Number(b.heightRateDom.value);
a.coordinateErrorLimit = Number(b.coordinateErrorLimitDom.value);
a.processGerenalFormat = Number(b.processGerenalFormatDom.value);
a.printingMagnification = Number(b.printingMagnification.value);
a.fitToPageWhenPrinting = b.fitToPageWhenPrintingDom.checked;
b = null;
a = null;
}
;
function mRe_getDefaultSaveExcelOption(a) {
var b = null;
if (("xls" == a) && (typeof window.getDefaultSaveExcelOption != "undefined")) {
b = getDefaultSaveExcelOption();
b.type = a;
} else {
if (("xlsx" == a) && (typeof window.getDefaultSaveExcelOption != "undefined")) {
b = getDefaultSaveExcelxOption();
b.type = a;
} else {
if ((typeof window.getDefaultSaveHanCellOption != "undefined")) {
b = getDefaultSaveHanCellOption();
b.type = a;
} else {
b = {
type: a,
exportMethod: "1",
mergeCell: true,
mergeEmptyCell: false,
splitCellAtPageSize: true,
rightToLeft: false,
widthRate: 100,
heightRate: 100,
coordinateErrorLimit: 10,
processGerenalFormat: 1,
printingMagnification: 100,
fitToPageWhenPrinting: false
};
}
}
}
return b;
}
Report.prototype.makeHWPSaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_saveHWP_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:10px;height:130px;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle'><input id='re_hwp1" + this.m_uid + "' title='" + this.m_languageMap.fixSize + "' type='checkbox' " + (c.fixSize ? "checked" : "") + " disabled/>" + this.m_languageMap.fixSize + "</td></tr>");
a.push("<tr><td valign='middle'>");
a.push("<span style='position:relative;left:10px;width:130px'>" + this.m_languageMap.positionRelTo + " : </span>");
a.push("<select id='re_hwp12" + this.m_uid + "' title='" + this.m_languageMap.positionRelTo + "' onChange=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectPositionRelTo(this)\" style='position:relative;left:23px;height:23px;width:105px;' disabled>");
a.push("<option value='1' " + (c.positionRelTo == 1 ? "selected" : "") + ">" + this.m_languageMap.paper + "</option>");
a.push("<option value='2' " + (c.positionRelTo == 2 ? "selected" : "") + ">" + this.m_languageMap.paragraph + "</option>");
a.push("</select>");
a.push("</td></tr>");
a.push("<tr><td valign='middle'><input id='re_hwp2" + this.m_uid + "' title='" + this.m_languageMap.allowOverlay + "' type='checkbox' " + (c.allowOverlay ? "checked" : "") + " disabled/>" + this.m_languageMap.allowOverlay + "</td></tr>");
a.push("<tr><td valign='middle'><input id='re_hwp10" + this.m_uid + "' title='" + this.m_languageMap.mergeTable + "' type='checkbox' " + (c.mergeTable ? "checked" : "") + " disabled/>" + this.m_languageMap.mergeTable + "</td></tr>");
a.push("<tr><td valign='middle'><input id='re_hwp3" + this.m_uid + "' title='" + this.m_languageMap.setPageBottomMarginToZero + "' type='checkbox' " + (c.setPageBottomMarginToZero ? "checked" : "") + " disabled/>" + this.m_languageMap.setPageBottomMarginToZero + "</td></tr>");
a.push("<tr><td valign='middle' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectHWPOpCheck()\"><input id='re_hwp4" + this.m_uid + "' title='" + this.m_languageMap.outputLikeWord + "' type='checkbox' " + (c.outputLikeWord ? "checked" : "") + " disabled/>" + this.m_languageMap.outputLikeWord + "</td></tr>");
a.push("</table></div>");
a.push("<div style='position:absolute;left:15px;right:15px;top:145px;height:40px;'>");
a.push("<span style='position:absolute;top:3px;left:0px;width:130px'>" + this.m_languageMap.tableSplit + " : </span>");
a.push("<select id='re_hwp5" + this.m_uid + "' title='" + this.m_languageMap.tableSplit + "' style='position:absolute;right:0px;height:23px;width:105px;' disabled>");
a.push("<option value='1' " + (c.tableSplitMethod == 1 ? "selected" : "") + ">" + this.m_languageMap.Split + "</option>");
a.push("<option value='2' " + (c.tableSplitMethod == 2 ? "selected" : "") + ">" + this.m_languageMap.cellSplit + "</option>");
a.push("<option value='3' " + (c.tableSplitMethod == 3 ? "selected" : "") + ">" + this.m_languageMap.noneSplit + "</option>");
a.push("</select></div>");
a.push("<div style='position:absolute;left:13px;right:15px;top:175px;height:90px;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle'>" + this.m_languageMap.defaultCharGap + " : <input id='re_hwp6" + this.m_uid + "' title='" + this.m_languageMap.defaultCharGap + "' value='" + c.defaultCharGap + "' type='text' style='width:70px' disabled/> %</td></tr>");
a.push("<tr><td valign='middle'>" + this.m_languageMap.charRatio + " : <input id='re_hwp7" + this.m_uid + "' title='" + this.m_languageMap.charRatio + "' value='" + c.charRatio + "' type='text' style='width:70px' disabled/> %</td></tr>");
a.push("<tr><td valign='middle'>" + this.m_languageMap.lineSpaceRate + " : <input id='re_hwp11" + this.m_uid + "' title='" + this.m_languageMap.lineSpaceRate + "' value='" + c.lineSpaceRate + "' type='text' style='width:70px' disabled/> %</td></tr>");
a.push("<tr><td valign='middle'><input id='re_hwp8" + this.m_uid + "' title='" + this.m_languageMap.putCheckboxIntoCell + "' type='checkbox' " + (c.putCheckboxIntoCell ? "checked" : "") + " disabled/>" + this.m_languageMap.putCheckboxIntoCell + "</td></tr>");
a.push("<tr><td valign='middle'><input id='re_hwp9" + this.m_uid + "' title='" + this.m_languageMap.splitTextByLine + "' type='checkbox' " + (c.splitTextByLine ? "checked" : "") + " disabled/>" + this.m_languageMap.splitTextByLine + "</td></tr>");
a.push("</table></div>");
a.push("<span style='position:absolute;left:10px;right:10px;bottom:65px;font-size:9pt;border:1px solid black;'>본 제품은 한글과컴퓨터의 한/글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다.</span>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_saveHWPOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelHWPOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;bottom:45px;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setHWPViewDomInfo(b);
}
;
Report.prototype.mRe_setHWPViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.fixSizeDom = document.getElementById("re_hwp1" + this.m_uid);
b.allowOverlayDom = document.getElementById("re_hwp2" + this.m_uid);
b.setPageBottomMarginToZeroDom = document.getElementById("re_hwp3" + this.m_uid);
b.outputLikeWordDom = document.getElementById("re_hwp4" + this.m_uid);
b.tableSplitMethodDom = document.getElementById("re_hwp5" + this.m_uid);
b.defaultCharGapDom = document.getElementById("re_hwp6" + this.m_uid);
b.charRatioDom = document.getElementById("re_hwp7" + this.m_uid);
b.putCheckboxIntoCellDom = document.getElementById("re_hwp8" + this.m_uid);
b.splitTextByLineDom = document.getElementById("re_hwp9" + this.m_uid);
b.mergeTableDom = document.getElementById("re_hwp10" + this.m_uid);
b.lineSpaceRateDom = document.getElementById("re_hwp11" + this.m_uid);
b.positionRelToDom = document.getElementById("re_hwp12" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_selectHWPOpCheck = function() {
var a = this.m_saveInfo_view.child_option;
if (a.outputLikeWordDom.checked && this.m_editOp) {
a.tableSplitMethodDom.disabled = false;
} else {
a.tableSplitMethodDom.disabled = true;
}
a = null;
}
;
Report.prototype.mRe_selectPositionRelTo = function(a) {
var b = this.m_saveInfo_view.child_option;
if (a.value == "2") {
b.allowOverlayDom.disabled = false;
} else {
b.allowOverlayDom.disabled = true;
}
}
;
Report.prototype.mRe_disabledHWPViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.fixSizeDom.disabled = b;
if (a.positionRelToDom.value == "2") {
a.allowOverlayDom.disabled = b;
}
a.positionRelToDom.disabled = b;
a.setPageBottomMarginToZeroDom.disabled = b;
a.outputLikeWordDom.disabled = b;
if (a.outputLikeWordDom.checked) {
a.tableSplitMethodDom.disabled = b;
}
a.defaultCharGapDom.disabled = b;
a.charRatioDom.disabled = b;
a.putCheckboxIntoCellDom.disabled = b;
a.splitTextByLineDom.disabled = b;
a.mergeTableDom.disabled = b;
a.lineSpaceRateDom.disabled = b;
}
;
Report.prototype.mRe_cancelHWPOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makeHWPSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_saveHWPOptionInfo = function() {
if (this.saveHWPOptionViewValidationCheck()) {
this.setHWPOptionValue();
this.mRe_cancelHWPOptionInfo();
}
}
;
Report.prototype.saveHWPOptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.defaultCharGapDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.defaultCharGapError;
b = null;
return false;
} else {
if (a < -50 || a > 50) {
b.validationDom.innerHTML = this.m_languageMap.defaultCharGapValueError;
b = null;
return false;
}
}
a = Number(b.charRatioDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.charRatioError;
b = null;
return false;
} else {
if (a < 50 || a > 200) {
b.validationDom.innerHTML = this.m_languageMap.charRatioValueError;
b = null;
return false;
}
}
b = null;
return true;
}
;
Report.prototype.setHWPOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.fixSize = b.fixSizeDom.checked;
a.allowOverlay = b.allowOverlayDom.checked;
a.setPageBottomMarginToZero = b.setPageBottomMarginToZeroDom.checked;
a.outputLikeWord = b.outputLikeWordDom.checked;
a.tableSplitMethod = Number(b.tableSplitMethodDom.value);
a.defaultCharGap = Number(b.defaultCharGapDom.value);
a.charRatio = Number(b.charRatioDom.value);
a.putCheckboxIntoCell = b.putCheckboxIntoCellDom.checked;
a.splitTextByLine = b.splitTextByLineDom.checked;
a.mergeTable = b.mergeTableDom.checked;
a.lineSpaceRate = Number(b.lineSpaceRateDom.value);
a.positionRelTo = Number(b.positionRelToDom.value);
b = null;
a = null;
}
;
function mRe_getDefaultSaveHWPOption() {
var a = null;
if (typeof window.getDefaultSaveHWPOption != "undefined") {
a = getDefaultSaveHWPOption();
} else {
a = {
fixSize: true,
allowOverlay: true,
setPageBottomMarginToZero: true,
outputLikeWord: false,
tableSplitMethod: 2,
defaultCharGap: -8,
charRatio: 100,
putCheckboxIntoCell: true,
splitTextByLine: true,
mergeTable: false,
lineSpaceRate: 100,
positionRelTo: 1
};
}
return a;
}
Report.prototype.makeRTFSaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_saveRTF_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:10px;height:50px;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle'><input id='re_rtf1" + this.m_uid + "' title='" + this.m_languageMap.splitTextLine + "' type='checkbox' " + (c.splitTextLine ? "checked" : "") + " disabled/>" + this.m_languageMap.splitTextLine + " </td></tr>");
a.push("<tr style='display:none;'><td valign='middle'><input id='re_rtf2" + this.m_uid + "' title='" + this.m_languageMap.processAsUnicode + "' type='checkbox' " + (c.processAsUnicode ? "checked" : "") + " disabled/>" + this.m_languageMap.processAsUnicode + "</td></tr>");
a.push("</table></div>");
a.push("<div style='position:absolute;left:15px;right:15px;top:65px;height:30px;display:none;'>");
a.push("<span style='position:absolute;top:3px;left:0px;width:130px'>" + this.m_languageMap.processEqualAlign + " : </span>");
a.push("<select id='re_rtf3" + this.m_uid + "' title='" + this.m_languageMap.processEqualAlign + "' style='position:absolute;right:0px;height:23px;width:105px;' disabled>");
a.push("<option value='1' " + (c.processEqualAlign == 1 ? "selected" : "") + ">" + this.m_languageMap.soLeft + "</option>");
a.push("<option value='2' " + (c.processEqualAlign == 2 ? "selected" : "") + ">" + this.m_languageMap.soCenter + "</option>");
a.push("<option value='3' " + (c.processEqualAlign == 3 ? "selected" : "") + ">" + this.m_languageMap.soRight + "</option>");
a.push("<option value='4' " + (c.processEqualAlign == 4 ? "selected" : "") + ">" + this.m_languageMap.soBoth + "</option>");
a.push("</select></div>");
a.push("<div style='position:absolute;left:13px;right:15px;top:35px;height:140px;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr style='height:20px'><td valign='middle'>" + this.m_languageMap.defaultCharGap + " : <input id='re_rtf4" + this.m_uid + "' title='" + this.m_languageMap.defaultCharGap + "' type='text' value='" + c.defaultCharSpace + "' style='width:70px' disabled/> pt</td></tr>");
a.push("<tr style='height:20px'><td valign='middle'><input id='re_rtf7" + this.m_uid + "' title='" + this.m_languageMap.mergeTable + "' type='checkbox' " + (c.mergeTable ? "checked" : "") + " disabled/>" + this.m_languageMap.mergeTable + "</td></tr>");
a.push("<tr style='height:20px'><td valign='middle'><input id='re_rtf8" + this.m_uid + "' title='" + this.m_languageMap.fitShapeToText + "' type='checkbox' " + (c.fitShapeToText ? "checked" : "") + " disabled/>" + this.m_languageMap.fitShapeToText + "</td></tr>");
a.push("<tr style='height:20px'><td valign='middle' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectRTFOpCheck();\"><input id='re_rtf6" + this.m_uid + "' title='" + this.m_languageMap.insertTableWrapper + "' type='checkbox' " + (c.insertTableWrapper ? "checked" : "") + " disabled/>" + this.m_languageMap.insertTableWrapper + "</td></tr>");
a.push("<tr style='height:20px'><td valign='middle'><span style='width:100px'>" + this.m_languageMap.tableWrapperBottomGap + " : </span>");
a.push("<input id='re_rtf5" + this.m_uid + "' title='" + this.m_languageMap.tableWrapperBottomGap + "' type='text' value='" + c.tableWrapperBottomGap + "' style='width:70px;' disabled/></td></tr>");
a.push("<tr style='height:20px'><td valign='middle'><span>" + this.m_languageMap.TableRowHeightSort + " : </span>");
a.push("<select id='re_rtf9" + this.m_uid + "' title='" + this.m_languageMap.TableRowHeightSort + "' style='width:105px;' disabled>");
a.push("<option value='1' " + (c.TableRowHeightSort == 1 ? "selected" : "") + ">Fix</option>");
a.push("<option value='2' " + (c.TableRowHeightSort == 2 ? "selected" : "") + ">Minimum</option>");
a.push("</select></td></tr>");
a.push("</table></div>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_saveRTFOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelRTFOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;top:74%;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setRTFViewDomInfo(b);
}
;
Report.prototype.mRe_setRTFViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.splitTextLineDom = document.getElementById("re_rtf1" + this.m_uid);
b.processAsUnicodeDom = document.getElementById("re_rtf2" + this.m_uid);
b.processEqualAlignDom = document.getElementById("re_rtf3" + this.m_uid);
b.defaultCharSpaceDom = document.getElementById("re_rtf4" + this.m_uid);
b.tableWrapperBottomGapDom = document.getElementById("re_rtf5" + this.m_uid);
b.insertTableWrapperDom = document.getElementById("re_rtf6" + this.m_uid);
b.mergeTableDom = document.getElementById("re_rtf7" + this.m_uid);
b.fitShapeToTextDom = document.getElementById("re_rtf8" + this.m_uid);
b.TableRowHeightSortDom = document.getElementById("re_rtf9" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_disabledRTFViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.splitTextLineDom.disabled = b;
a.processAsUnicodeDom.disabled = b;
a.processEqualAlignDom.disabled = b;
a.defaultCharSpaceDom.disabled = b;
a.insertTableWrapperDom.disabled = b;
if (a.insertTableWrapperDom.checked) {
a.tableWrapperBottomGapDom.disabled = b;
}
a.mergeTableDom.disabled = b;
a.fitShapeToTextDom.disabled = b;
a.TableRowHeightSortDom.disabled = b;
}
;
Report.prototype.mRe_cancelRTFOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makeRTFSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_saveRTFOptionInfo = function() {
if (this.saveRTFOptionViewValidationCheck()) {
this.setRTFOptionValue();
this.mRe_cancelRTFOptionInfo();
}
}
;
Report.prototype.saveRTFOptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.defaultCharSpaceDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.defaultCharGapError;
b = null;
return false;
} else {
if (a < -3 || a > 3) {
b.validationDom.innerHTML = this.m_languageMap.defaultCharGapValue2Error;
b = null;
return false;
}
}
a = Number(b.tableWrapperBottomGapDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.tableWrapperBottomGapError;
b = null;
return false;
} else {
if (a < 0 || a > 500) {
b.validationDom.innerHTML = this.m_languageMap.tableWrapperBottomGapValueError;
b = null;
return false;
}
}
b = null;
return true;
}
;
Report.prototype.setRTFOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.splitTextLine = b.splitTextLineDom.checked;
a.processAsUnicode = b.processAsUnicodeDom.checked;
a.processEqualAlign = Number(b.processEqualAlignDom.value);
a.defaultCharSpace = Number(b.defaultCharSpaceDom.value);
a.tableWrapperBottomGap = Number(b.tableWrapperBottomGapDom.value);
a.insertTableWrapper = b.insertTableWrapperDom.checked;
a.mergeTable = b.mergeTableDom.checked;
a.fitShapeToText = b.fitShapeToTextDom.checked;
a.TableRowHeightSort = Number(b.TableRowHeightSortDom.value);
b = null;
a = null;
}
;
Report.prototype.mRe_selectRTFOpCheck = function() {
var a = this.m_saveInfo_view.child_option;
if (a.insertTableWrapperDom.checked && this.m_editOp) {
a.tableWrapperBottomGapDom.disabled = false;
} else {
a.tableWrapperBottomGapDom.disabled = true;
}
a = null;
}
;
function mRe_getDefaultSaveRTFOption(a) {
var b = null;
if (("rtf" == a) && (typeof window.getDefaultSaveRTFOption != "undefined")) {
b = getDefaultSaveRTFOption();
b.type = a;
} else {
if ((typeof window.getDefaultSaveDOCOption != "undefined")) {
b = getDefaultSaveDOCOption();
b.type = a;
} else {
b = {
type: a,
splitTextLine: true,
processAsUnicode: true,
processEqualAlign: 4,
defaultCharSpace: -0.5,
tableWrapperBottomGap: 0,
insertTableWrapper: true,
mergeTable: false,
fitShapeToText: false,
TableRowHeightSort: 1
};
}
}
return b;
}
Report.prototype.makeHTMLSaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_saveHtml_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:30%;'>");
a.push("<table style='position:absolute;top:0px;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle'><input id='re_html1" + this.m_uid + "' " + (c.processCellLikeShape ? "checked" : "") + " title='테이블 셀을 라벨처럼 저장' type='checkbox' disabled/>테이블 셀을 라벨처럼 저장 </td></tr>");
a.push("<tr><td valign='middle'><input id='re_html2" + this.m_uid + "' " + (c.displayPageLine ? "checked" : "") + " title='페이지 분리선 표시' type='checkbox' disabled/>페이지 분리선 표시</td></tr>");
a.push("<tr><td valign='middle'><input id='re_html3" + this.m_uid + "' " + (c.keepPageHeight ? "checked" : "") + " title='페이지 높이 유지' type='checkbox' disabled/>페이지 높이 유지</td></tr>");
a.push("<tr><td valign='middle'><input id='re_html4" + this.m_uid + "' " + (c.applyWordBreak ? "checked" : "") + " title='글자 감싸기 적용' type='checkbox' disabled/>글자 감싸기 적용</td></tr>");
a.push("<tr><td valign='middle'><input id='re_html5" + this.m_uid + "' " + (c.setTextProperiesToEmptyCell ? "checked" : "") + " title='빈 셀에 텍스트 속성 설정' type='checkbox' disabled/>빈 셀에 텍스트 속성 설정</td></tr>");
a.push("<tr><td valign='middle'><input id='re_html6" + this.m_uid + "' " + (c.putTagIntoEmptyCell ? "checked" : "") + " title='열빈 셀에 삽입' type='checkbox' disabled/>빈 셀에 & nbsp; 삽입</td></tr>");
a.push("<tr><td valign='middle'><input id='re_html7" + this.m_uid + "' " + (c.textOverflowHidden ? "checked" : "") + " title='Overflow=flase 스타일 적용' type='checkbox' disabled/>Overflow=flase 스타일 적용</td></tr>");
a.push("</table></div>");
a.push("<div style='position:absolute;left:15px;right:15px;top:47%;height:20%;border:1px solid darkgray'>");
a.push("<table style='position:absolute;top:10px;left:5px'>");
a.push("<tr><td style='cursor:default'>X축 비율 : <input id='re_html8" + this.m_uid + "' value='" + c.coordinateRateForX + "' title='X축 비율' type='text' value='100' maxlength='3' disabled/></td></tr>");
a.push("<tr><td style='cursor:default'>Y축 비율 : <input id='re_html9" + this.m_uid + "' value='" + c.coordinateRateForY + "' title='Y축 비율' type='text' value='100' maxlength='3' disabled/></td></tr>");
a.push("</table></div>");
a.push("<div style='position:absolute;left:13px;right:15px;top:70%;height:20%;'>");
a.push("<select id='re_html10" + this.m_uid + "' title='인코딩' style='position:absolute;right:0px;height:23px;width:200px;top:8px' disabled>");
a.push("<option value='1' " + (c.encodingType == 1 ? "selected" : "") + ">UTF-8</option>");
a.push("<option value='2' " + (c.encodingType == 2 ? "selected" : "") + ">Unicode</option>");
a.push("<option value='3' " + (c.encodingType == 3 ? "selected" : "") + ">EUC-KR</option>");
a.push("</select>");
a.push("<span style='position:absolute;top:13px;left:0px;width:150px'>인코딩 : </span></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:45%;border:0;'>좌표 비율</span>");
a.push("<button title='확인' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_saveHTMLOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>확인</button>");
a.push("<button title='취소' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelHTMLOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>취소</button>");
a.push("<span style='position:absolute;left:16px;top:82%;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setHTMLViewDomInfo(b);
}
;
Report.prototype.mRe_setHTMLViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.processCellLikeShapeDom = document.getElementById("re_html1" + this.m_uid);
b.displayPageLineDom = document.getElementById("re_html2" + this.m_uid);
b.keepPageHeightDom = document.getElementById("re_html3" + this.m_uid);
b.applyWordBreakDom = document.getElementById("re_html4" + this.m_uid);
b.setTextProperiesToEmptyCellDom = document.getElementById("re_html5" + this.m_uid);
b.putTagIntoEmptyCellDom = document.getElementById("re_html6" + this.m_uid);
b.textOverflowHiddenDom = document.getElementById("re_html7" + this.m_uid);
b.coordinateRateForXDom = document.getElementById("re_html8" + this.m_uid);
b.coordinateRateForYDom = document.getElementById("re_html9" + this.m_uid);
b.encodingTypeDom = document.getElementById("re_html10" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_disabledHTMLViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.processCellLikeShapeDom.disabled = b;
a.displayPageLineDom.disabled = b;
a.keepPageHeightDom.disabled = b;
a.applyWordBreakDom.disabled = b;
a.setTextProperiesToEmptyCellDom.disabled = b;
a.textOverflowHiddenDom.disabled = b;
a.putTagIntoEmptyCellDom.disabled = b;
a.coordinateRateForXDom.disabled = b;
a.coordinateRateForYDom.disabled = b;
a.encodingTypeDom.disabled = b;
}
;
Report.prototype.mRe_cancelHTMLOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makeHTMLSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_saveHTMLOptionInfo = function() {
if (this.saveHTMLOptionViewValidationCheck()) {
this.setHTMLOptionValue();
this.mRe_cancelHTMLOptionInfo();
}
}
;
Report.prototype.saveHTMLOptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.coordinateRateForXDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = "X축 비율의 설정값이 올바르지 않습니다.";
b = null;
return false;
} else {
if (a < 1 || a > 5) {
b.validationDom.innerHTML = "X축 비율의 설정값은 (1.0 ~ 5.0) 가능합니다.";
b = null;
return false;
}
}
a = Number(b.coordinateRateForYDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = "Y축 비율의 설정값이 올바르지 않습니다.";
b = null;
return false;
} else {
if (a < 1 || a > 5) {
b.validationDom.innerHTML = "Y축 비율의 설정값은 (1.0 ~ 5.0) 가능합니다.";
b = null;
return false;
}
}
b = null;
return true;
}
;
Report.prototype.setHTMLOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.processCellLikeShape = b.processCellLikeShapeDom.checked;
a.displayPageLine = b.displayPageLineDom.checked;
a.keepPageHeight = b.keepPageHeightDom.checked;
a.applyWordBreak = b.applyWordBreakDom.checked;
a.setTextProperiesToEmptyCell = b.setTextProperiesToEmptyCellDom.checked;
a.putTagIntoEmptyCell = b.putTagIntoEmptyCellDom.checked;
a.textOverflowHidden = b.textOverflowHiddenDom.checked;
a.coordinateRateForX = Number(b.coordinateRateForXDom.value);
a.coordinateRateForY = Number(b.coordinateRateForYDom.value);
a.encodingType = Number(b.encodingTypeDom.value);
b = null;
a = null;
}
;
function mRe_getDefaultSaveHTMLOption() {
var a = null;
if (typeof window.getDefaultSaveHTMLOption != "undefined") {
a = getDefaultSaveHTMLOption();
} else {
a = {
processCellLikeShape: false,
displayPageLine: true,
keepPageHeight: true,
applyWordBreak: false,
setTextProperiesToEmptyCell: false,
putTagIntoEmptyCell: false,
textOverflowHidden: false,
coordinateRateForX: 2.6,
coordinateRateForY: 2.6,
encodingType: 1
};
}
return a;
}
Report.prototype.makePDFSaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_savePDF_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:70%;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectPDFOpCheck();\"><input id='re_pdf1" + this.m_uid + "' " + (c.isSplite ? "checked" : "") + " title='" + this.m_languageMap.pageSplite + "' type='checkbox' disabled/>" + this.m_languageMap.pageSplite + "</td></tr>");
a.push("<tr><td valign='middle' style='padding-left:25px;padding-top:5px;'>" + this.m_languageMap.pageSpliteCount + " : <input id='re_pdf2" + this.m_uid + "' value='" + c.spliteValue + "' title='" + this.m_languageMap.pageSpliteCount + "' type='text' style='width:40px;' disabled/></td></tr>");
a.push("<tr><td valign='middle' style='padding-top:5px;'>" + this.m_languageMap.password + " : <input id='re_pdf3" + this.m_uid + "' value='" + c.userpw + "' title='" + this.m_languageMap.password + "' type='password' style='width:120px;' disabled/></td></tr>");
a.push("<tr><td valign='middle'><input id='re_pdf4" + this.m_uid + "' " + (c.textToImage ? "checked" : "") + " title='" + this.m_languageMap.textToImage + "' type='checkbox' disabled/>" + this.m_languageMap.textToImage + "</td></tr>");
a.push("<tr><td valign='middle' style='visibility:hidden;'><input id='re_pdf5" + this.m_uid + "' " + (c.importOriginImage ? "checked" : "") + " title='" + this.m_languageMap.importOriginImage + "' type='checkbox' disabled/>" + this.m_languageMap.importOriginImage + "</td></tr>");
a.push("</table>");
a.push("</div>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_savePDFOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelPDFOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;bottom:40px;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setPDFViewDomInfo(b);
}
;
Report.prototype.mRe_setPDFViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.isSpliteDom = document.getElementById("re_pdf1" + this.m_uid);
b.spliteValueDom = document.getElementById("re_pdf2" + this.m_uid);
b.userpwDom = document.getElementById("re_pdf3" + this.m_uid);
b.textToImageDom = document.getElementById("re_pdf4" + this.m_uid);
b.importOriginImageDom = document.getElementById("re_pdf5" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_disabledPDFViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.isSpliteDom.disabled = b;
if (a.isSpliteDom.checked) {
a.spliteValueDom.disabled = b;
}
a.userpwDom.disabled = b;
a.textToImageDom.disabled = b;
a.importOriginImageDom.disabled = b;
}
;
Report.prototype.mRe_cancelPDFOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makePDFSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_savePDFOptionInfo = function() {
if (this.savePDFOptionViewValidationCheck()) {
this.setPDFOptionValue();
this.mRe_cancelPDFOptionInfo();
}
}
;
Report.prototype.savePDFOptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.spliteValueDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.pageSpliteCountError;
b = null;
return false;
}
b = null;
return true;
}
;
Report.prototype.setPDFOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.isSplite = b.isSpliteDom.checked;
a.spliteValue = Number(b.spliteValueDom.value);
a.userpw = b.userpwDom.value;
a.textToImage = b.textToImageDom.checked;
a.importOriginImage = b.importOriginImageDom.checked;
b = null;
a = null;
}
;
Report.prototype.mRe_selectPDFOpCheck = function() {
var a = this.m_saveInfo_view.child_option;
if (a.isSpliteDom.checked && this.m_editOp) {
a.spliteValueDom.disabled = false;
} else {
a.spliteValueDom.disabled = true;
}
a = null;
}
;
function mRe_getDefaultSavePDFOption() {
var a = null;
if (typeof window.getDefaultSavePDFOption != "undefined") {
a = getDefaultSavePDFOption();
a.fileNames = null;
} else {
a = {
isSplite: false,
spliteValue: 1,
fileNames: null,
userpw: "",
textToImage: false,
importOriginImage: false
};
}
return a;
}
function mRe_setPDFFileList(d, b) {
if (null != b) {
d.fileNames = new Array();
var a = b.length;
for (var c = 0; c < a; c++) {
d.fileNames.push(Base64.encode(b[c]));
}
}
}
Report.prototype.makeHTML5SaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_savePDF_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:70%;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle' ><input id='re_html51" + this.m_uid + "' " + (c.isSplite ? "checked" : "") + " title='" + this.m_languageMap.html5page + "' type='checkbox' disabled/>" + this.m_languageMap.html5page + "</td></tr>");
a.push("<tr><td valign='middle' style='padding-left:10px;padding-top:5px;'>DPI : <input id='re_html52" + this.m_uid + "' value='" + c.dpiValue + "' title='DPI' type='text' style='width:40px;' value='96' disabled/></td></tr>");
a.push("</table>");
a.push("</div>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_saveHTML5OptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelHTML5OptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;top:50%;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setHTML5ViewDomInfo(b);
}
;
Report.prototype.mRe_setHTML5ViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.isSpliteDom = document.getElementById("re_html51" + this.m_uid);
b.DPIDom = document.getElementById("re_html52" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_disabledHTML5ViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.isSpliteDom.disabled = b;
a.DPIDom.disabled = b;
}
;
Report.prototype.mRe_cancelHTML5OptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makeHTML5SaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_saveHTML5OptionInfo = function() {
if (this.saveHTML5OptionViewValidationCheck()) {
this.setHTML5OptionValue();
this.mRe_cancelHTML5OptionInfo();
}
}
;
Report.prototype.saveHTML5OptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.DPIDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = this.m_languageMap.dpiError;
b = null;
return false;
}
b = null;
return true;
}
;
Report.prototype.setHTML5OptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.isSplite = b.isSpliteDom.checked;
a.dpiValue = Number(b.DPIDom.value);
b = null;
a = null;
}
;
function mRe_getDefaultSaveHTML5Option() {
var a = null;
if (typeof window.getDefaultSaveHTML5Option != "undefined") {
a = getDefaultSaveHTML5Option();
} else {
a = {
isSplite: true,
DPI: 96
};
}
return a;
}
Report.prototype.makeJPGSaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_saveJPG_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:70%;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle' style='padding-top:5px;'><input id='re_jpg1" + this.m_uid + "' " + (c.rotate90 ? "checked" : "") + " title='rotate 90' type='checkbox' disabled/>rotate 90</td></tr>");
a.push("<tr><td valign='middle' style='padding-top:5px;'>DPI X : <input id='re_jpg2" + this.m_uid + "' value='" + c.dpiX + "' title='DPI X' type='text' style='width:40px;' disabled/></td></tr>");
a.push("<tr><td valign='middle' style='padding-top:5px;'>DPI Y : <input id='re_jpg3" + this.m_uid + "' value='" + c.dpiY + "' title='DPI Y' type='text' style='width:40px;' disabled/></td></tr>");
a.push("<tr><td valign='middle' style='padding-top:5px;'>quality : <input id='re_jpg4" + this.m_uid + "' value='" + c.quality + "' title='quality' type='text' style='width:40px;' disabled/></td></tr>");
a.push("</table>");
a.push("</div>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_saveJPGOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelJPGOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;bottom:40px;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setJPGViewDomInfo(b);
}
;
Report.prototype.mRe_setJPGViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.rotate90Dom = document.getElementById("re_jpg1" + this.m_uid);
b.dpiXDom = document.getElementById("re_jpg2" + this.m_uid);
b.dpiYDom = document.getElementById("re_jpg3" + this.m_uid);
b.qualityDom = document.getElementById("re_jpg4" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_disabledJPGViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.rotate90Dom.disabled = b;
a.dpiXDom.disabled = b;
a.dpiYDom.disabled = b;
a.qualityDom.disabled = b;
}
;
Report.prototype.mRe_cancelJPGOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makeJPGSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_saveJPGOptionInfo = function() {
if (this.saveJPGOptionViewValidationCheck()) {
this.setJPGOptionValue();
this.mRe_cancelJPGOptionInfo();
}
}
;
Report.prototype.saveJPGOptionViewValidationCheck = function() {
var b = this.m_saveInfo_view.child_option;
var a = Number(b.qualityDom.value);
if (isNaN(a)) {
b.validationDom.innerHTML = "quality (1 ~ 100)";
b = null;
return false;
}
b = null;
return true;
}
;
Report.prototype.setJPGOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.rotate90 = b.rotate90Dom.checked;
a.dpiX = Number(b.dpiXDom.value);
a.dpiY = Number(b.dpiYDom.value);
a.quality = Number(b.qualityDom.value);
b = null;
a = null;
}
;
function mRe_getDefaultSaveJPGOption() {
var a = null;
if (typeof window.getDefaultSaveJPGOption != "undefined") {
a = getDefaultSaveJPGOption();
} else {
a = {
rotate90: false,
dpiX: 96,
dpiY: 96,
quality: 100
};
}
return a;
}
Report.prototype.makePPTSaveOptionWindow = function() {
this.m_editOp = false;
var c = this.m_saveInfo_view.child_option.json_data;
var b = document.createElement("div");
b.className = "report_savePPT_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:70%;'>");
a.push("<table style='position:absolute;cursor:default' cellpadding='0' cellspacing='0' border='0'>");
a.push("<tr><td valign='middle' style='padding-top:5px;'><input id='re_ppt1" + this.m_uid + "' " + (c.mergeTable ? "checked" : "") + " title='" + this.m_languageMap.mergeTable + "' type='checkbox' disabled/>" + this.m_languageMap.mergeTable + "</td></tr>");
a.push("<tr><td valign='middle' style='padding-top:5px;'><input id='re_ppt2" + this.m_uid + "' " + (c.ignoreLineSpace ? "checked" : "") + " title='" + this.m_languageMap.ignoreLineSpace + "' type='checkbox' disabled/>" + this.m_languageMap.ignoreLineSpace + "</td></tr>");
a.push("</table>");
a.push("</div>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_savePPTOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_cancelPPTOptionInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;visibility:hidden;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;bottom:40px;font-size:8pt;color:red'></span>");
b.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.mRe_setPPTViewDomInfo(b);
}
;
Report.prototype.mRe_setPPTViewDomInfo = function(a) {
var b = this.m_saveInfo_view.child_option;
b.viewDom = a;
b.validationDom = a.lastChild;
b.cancelButtonDom = b.validationDom.previousSibling;
b.saveButtonDom = b.cancelButtonDom.previousSibling;
b.mergeTableDom = document.getElementById("re_ppt1" + this.m_uid);
b.ignoreLineSpaceDom = document.getElementById("re_ppt2" + this.m_uid);
b = null;
}
;
Report.prototype.mRe_disabledPPTViewDomInfo = function(b) {
var a = this.m_saveInfo_view.child_option;
if (b) {
a.cancelButtonDom.style.visibility = "hidden";
a.saveButtonDom.style.visibility = "hidden";
} else {
a.cancelButtonDom.style.visibility = "visible";
a.saveButtonDom.style.visibility = "visible";
}
a.mergeTableDom.disabled = b;
a.ignoreLineSpaceDom.disabled = b;
}
;
Report.prototype.mRe_cancelPPTOptionInfo = function() {
this.m_popupViewDiv.removeChild(this.m_saveInfo_view.child_option.viewDom);
this.makePPTSaveOptionWindow();
this.mRe_disabledViewDomInfo(false);
}
;
Report.prototype.mRe_savePPTOptionInfo = function() {
this.setPPTOptionValue();
this.mRe_cancelPPTOptionInfo();
}
;
Report.prototype.setPPTOptionValue = function() {
var b = this.m_saveInfo_view.child_option;
var a = b.json_data;
a.mergeTable = b.mergeTableDom.checked;
a.ignoreLineSpace = b.ignoreLineSpaceDom.checked;
b = null;
a = null;
}
;
function mRe_getDefaultSavePPTOption() {
var a = null;
if (typeof window.getDefaultSavePPTOption != "undefined") {
a = getDefaultSavePPTOption();
} else {
a = {
mergeTable: false,
ignoreLineSpace: true
};
}
return a;
}
function mRe_exprotFileName(b) {
var a = "";
a += b.name;
switch (b.exportType) {
case 1:
a += ".xls";
break;
case 7:
a += ".cell";
break;
case 2:
a += ".pdf";
break;
case 3:
a += ".hwp";
break;
case 4:
a += ".rtf";
break;
case 5:
a += ".ppt";
break;
case 6:
a += ".html";
break;
case 8:
a += ".html";
break;
case 9:
a += ".doc";
break;
case 10:
a += ".xlsx";
break;
case 11:
a += ".jpg";
break;
}
return a;
}
Report.prototype.selectPrintView = function() {
if (this.m_buttonEvent.startPrintButton != null) {
var f = this.m_buttonEvent.startPrintButton();
if (f != true) {
return;
}
}
this.printOptionValue.isNetPrint = false;
this.printOpReset();
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var e = document.createElement("div");
e.className = "report_print_view_position report_view_box";
var a = new Array();
a.push("<div style='position:absolute;left:15px;right:15px;top:20px;height:48px;border:1px solid darkgray'>");
a.push("<select title='" + this.m_languageMap.printType + "' id='re_printType1" + this.m_uid + "' style='position:absolute;left:10px;top:15px;width:90%;height:50%;' onChange=\"m_reportHashMap['" + this.m_uid + "'].selectPrintOption(this)\">");
a.push(this.printOptionValue.isNetPrint ? "<optgroup label='Local'>" : "");
var b = ["pdf", "html", "hwp", "exe"];
if ((typeof window.ReportPrintMenuOrder != "undefined")) {
b = ReportPrintMenuOrder();
}
for (var c = 0; c < b.length; c++) {
if (this.m_printDisplay.pdf && b[c] == "pdf") {
a.push("<option value='pdf' ");
a.push(this.printOptionValue.isNetPrint ? "" : "style='padding-left: 30px;'");
a.push(this.printOptionValue.localStorage == "pdf" ? " selected" : "");
a.push(">" + this.printNames.pdf + "</option>");
}
if (this.m_printDisplay.html && is_svg && !is_window_safari && b[c] == "html") {
a.push("<option value='html' ");
a.push(this.printOptionValue.isNetPrint ? "" : "style='padding-left: 30px;'");
a.push(this.printOptionValue.localStorage == "html" ? " selected" : "");
a.push(">" + this.printNames.html + "</option>");
}
if (this.m_printDisplay.hwp && this.m_isHWPPrint && is_ie && b[c] == "hwp") {
a.push("<option value='hwp' ");
a.push(this.printOptionValue.isNetPrint ? "" : "style='padding-left: 30px;'");
a.push(this.printOptionValue.localStorage == "hwp" ? " selected" : "");
a.push(">" + this.printNames.hwp + "</option>");
}
if (this.m_printDisplay.exe && is_window && b[c] == "exe") {
a.push("<option value='exe' ");
a.push(this.printOptionValue.isNetPrint ? "" : "style='padding-left: 30px;'");
a.push(this.printOptionValue.localStorage == "exe" ? " selected" : "");
a.push(">" + this.printNames.exe + "</option>");
}
}
a.push(this.printOptionValue.isNetPrint ? "</optgroup>" : "");
if (this.printOptionValue.isNetPrint) {
a.push(" <optgroup label='Network'>");
for (var c = 0; c < this.printOptionValue.netPrintList.length; c++) {
var d = this.printOptionValue.netPrintList[c];
a.push(" <option value='" + d.name + "' style='padding-left: 30px;'>" + d.name + "</option>");
}
a.push("</optgroup>");
}
a.push("</select>");
a.push("</div>");
a.push("<div id='re_printType2" + this.m_uid + "' style='position:absolute;left:15px;right:15px;top:83px;height:40px;border:1px solid darkgray;display:none'>");
a.push("<table style='position:absolute;top:5px'>");
a.push("<tbody><tr><td style='padding-left:5px;padding-top:5px'>" + this.m_languageMap.NofC + " : </td>");
a.push("<td style='padding-left:5px;padding-top:5px'><input id='re_printType3" + this.m_uid + "' type='text' value='1' style='width:40px'></td>");
a.push("</tr></tbody></table>");
a.push("</div>");
a.push("<div id='re_printType11" + this.m_uid + "' style='position:absolute;left:15px;right:15px;bottom:50px;height:110px;border:1px solid darkgray;background-color: inherit;'>");
a.push("<table style='position:absolute;top:5px'>");
a.push(" <tbody><tr><td onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectPrintRange(1);\" style='cursor:default'><input id='re_printType4" + this.m_uid + "' type='radio' value='1' name='m_ReSelectRange' checked/>" + this.m_languageMap.total_page + "</td></tr>");
a.push(" <tr><td onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectPrintRange(2);\" style='cursor:default'><input id='re_printType5" + this.m_uid + "' type='radio' value='2' name='m_ReSelectRange'/>" + this.m_languageMap.currentPage + "</td></tr>");
a.push(" <tr><td onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_selectPrintRange(3);\" style='cursor:default'><input id='re_printType6" + this.m_uid + "' type='radio' value='3' name='m_ReSelectRange'/>" + this.m_languageMap.page_designation + "</td></tr>");
a.push(" <tr><td style='padding-left:25px;padding-top:5px'>");
a.push(" <input type='text' id='re_printType7" + this.m_uid + "' value='1' style='width:40px' disabled/>" + this.m_languageMap.from + " ");
a.push(" <input type='text' id='re_printType8" + this.m_uid + "' value='" + this.m_pageCount + "' style='width:40px'disabled/>" + this.m_languageMap.to + "");
a.push(" </td></tr>");
a.push("</tbody></table>");
a.push("</div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:14px;border:0;'>" + this.m_languageMap.printType + "</span>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:75px;border:0;display:none' id='re_printType9" + this.m_uid + "'>" + this.m_languageMap.print_info + "</span>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;bottom:154px;border:0;' id='re_printType10" + this.m_uid + "'>" + this.m_languageMap.print_range + "</span>");
a.push("<button title='" + this.m_languageMap.print + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printExportInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.print + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closeReportPrintInfo();return false;\" class='report_view_button' style='position:absolute;bottom:5px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
a.push("<span style='position:absolute;left:16px;bottom:37px;font-size:8pt;color:red' id='re_printType10" + this.m_uid + "'></span>");
e.innerHTML = a.join("");
a = null;
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(e);
}
this.mRe_setPrintViewDomInfo(e);
if (this.printOptionValue.localStorage != "0") {
this.mRe_selectPrintOption(this.printOptionValue.localStorage);
}
}
;
Report.prototype.mRe_setPrintViewDomInfo = function(b) {
this.printOptionValue.domList = {};
var c = {};
var a = this.m_uid;
c.viewDom = b;
c.printTypeDom = document.getElementById("re_printType1" + a);
c.validationDom = document.getElementById("re_printType10" + a);
c.netSpan1Dom = document.getElementById("re_printType2" + a);
c.netSpan2Dom = document.getElementById("re_printType9" + a);
c.netPageCountDom = document.getElementById("re_printType3" + a);
c.check1Dom = document.getElementById("re_printType4" + a);
c.check2Dom = document.getElementById("re_printType5" + a);
c.check3Dom = document.getElementById("re_printType6" + a);
c.startInDom = document.getElementById("re_printType7" + a);
c.endInDom = document.getElementById("re_printType8" + a);
c.netSpan3Dom = document.getElementById("re_printType10" + a);
c.printRangeDom = document.getElementById("re_printType11" + a);
this.printOptionValue.domList = c;
}
;
Report.prototype.selectPrintLoader = function() {
var a = this.printOptionValue.domList.printTypeDom.value;
if (a == "pdf") {
this.printView();
} else {
if (a == "html") {
this.printHTMLView();
} else {
if (a == "hwp") {
this.printHWPView();
} else {
if (a == "exe") {
this.printEXEView();
}
}
}
}
}
;
Report.prototype.mRe_selectPrintOption = function(a) {
if (a == "pdf" || a == "html" || a == "hwp") {
this.printOptionValue.domList.viewDom.style.height = "";
this.printOptionValue.domList.netSpan1Dom.style.display = "none";
this.printOptionValue.domList.netSpan2Dom.style.display = "none";
this.printOptionValue.domList.netSpan3Dom.style.display = "block";
this.printOptionValue.domList.printRangeDom.style.display = "block";
} else {
if (a == "exe") {
this.printOptionValue.domList.viewDom.style.height = "130px";
this.printOptionValue.domList.netSpan1Dom.style.display = "none";
this.printOptionValue.domList.netSpan2Dom.style.display = "none";
this.printOptionValue.domList.netSpan3Dom.style.display = "none";
this.printOptionValue.domList.printRangeDom.style.display = "none";
} else {
this.printOptionValue.domList.viewDom.style.height = "300px";
this.printOptionValue.domList.netSpan1Dom.style.display = "block";
this.printOptionValue.domList.netSpan2Dom.style.display = "block";
this.printOptionValue.domList.netSpan3Dom.style.display = "block";
this.printOptionValue.domList.printRangeDom.style.display = "block";
}
}
}
;
Report.prototype.mRe_selectPrintRange = function(b) {
var a = this.printOptionValue.domList;
if (a.check1Dom.disabled) {
return;
}
if (1 == b) {
a.check1Dom.checked = true;
a.startInDom.disabled = true;
a.endInDom.disabled = true;
} else {
if (2 == b) {
a.check2Dom.checked = true;
a.startInDom.disabled = true;
a.endInDom.disabled = true;
} else {
a.check3Dom.checked = true;
a.startInDom.disabled = false;
a.endInDom.disabled = false;
}
}
}
;
Report.prototype.printViewValidationCheck = function() {
var c = this.printOptionValue.domList;
if (c.check3Dom.checked) {
var b = Number(c.startInDom.value);
var a = Number(c.endInDom.value);
if (isNaN(b) || isNaN(a)) {
c.validationDom.innerHTML = this.m_languageMap.printNum_validation;
c = null;
return false;
} else {
if (b <= 0.9 || a <= 0.9 || b > a || b > this.m_pageCount || a > this.m_pageCount) {
c.validationDom.innerHTML = this.m_languageMap.printNum_validation;
c = null;
return false;
}
}
}
c = null;
return true;
}
;
Report.prototype.makePrintOption = function() {
var a = this.printOptionValue.domList;
if (a.check1Dom.checked) {
this.printOptionValue.startNum = 1;
this.printOptionValue.endNum = this.m_pageCount;
} else {
if (a.check2Dom.checked) {
this.printOptionValue.startNum = this.beforePageIndex + 1;
this.printOptionValue.endNum = this.beforePageIndex + 1;
} else {
this.printOptionValue.startNum = Number(a.startInDom.value);
this.printOptionValue.endNum = Number(a.endInDom.value);
}
}
}
;
Report.prototype.mRe_printExportInfo = function() {
if (this.printViewValidationCheck()) {
this.makePrintOption();
this.targetDiv.removeChild(this.m_popupViewDiv);
this.m_popupViewDiv = null;
this.selectPrintLoader();
}
}
;
Report.prototype.mRe_closeReportPrintInfo = function() {
this.targetDiv.removeChild(this.m_popupViewDiv);
this.m_popupViewDiv = null;
this.disabledMenu(false);
}
;
Report.prototype.checkPrintJsonOption = function() {
var a = this.printOptionValue.domList;
if (null != a) {
return '{"pageCount":' + this.printOptionValue.pageCount + ',"startNum":' + this.printOptionValue.startNum + ',"endNum":' + this.printOptionValue.endNum + "}";
} else {
return '{"startNum":1,"endNum":' + this.m_pageCount + "}";
}
}
;
Report.prototype.printOpReset = function() {
this.printOptionValue.domList = null;
}
;
Report.prototype.printIEExportView = function() {
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_reader9";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;bottom:50px;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:8%;'><span>");
if (this.adobeMessage.is_message) {
a.push(this.adobeMessage.message);
} else {
a.push(this.m_languageMap.adobe9Info);
a.push("<br>" + this.m_languageMap.adobe9Info2);
a.push(this.m_languageMap.adobe9Info3);
}
a.push("</span><br>");
var c = null != this.m_pdfLink ? this.m_pdfLink : ("https://get.adobe.com/reader/?loc=" + this.m_languageMap.languageInfo);
a.push("<a style='position:ralative' href='" + c + "' target='blank'>" + c + "</a><br>");
if (this.pESaveButtonVisible) {
a.push("<br><span>" + this.m_languageMap.adobe9Info4 + "</span>");
}
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
if (this.pESaveButtonVisible) {
a.push("<button title='" + this.m_languageMap.save + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.save + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrintFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
} else {
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrintFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
}
b.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.mRe_printFilePDF = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
this.printOpReset();
this.reportCheckSend(1);
}
;
Report.prototype.mRe_closePrintFilePDF = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
}
;
Report.prototype.mRe_printIEWindow = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
this.printIEWindow();
}
;
Report.prototype.closePrintInfoWindow = function() {
if (null != this.m_printInfo_view) {
this.targetDiv.removeChild(this.m_popupViewDiv);
this.m_popupViewDiv = null;
this.m_printInfo_view = null;
}
}
;
Report.prototype.printNotExportView = function() {
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_NOTReader";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;bottom:50px;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:8%;'><span>");
if (this.adobeMessage.is_message) {
a.push(this.adobeMessage.message);
} else {
a.push(this.m_languageMap.adobe9Info5);
a.push("<br>" + this.m_languageMap.adobe9Info2);
a.push(this.m_languageMap.adobe9Info3);
}
a.push("</span><br>");
var c = null != this.m_pdfLink ? this.m_pdfLink : ("https://get.adobe.com/reader/?loc=" + this.m_languageMap.languageInfo);
a.push("<a style='position:ralative' href='" + c + "' target='blank'>" + c + "</a><br>");
if (this.pESaveButtonVisible) {
a.push("<br><span>" + this.m_languageMap.adobe9Info4 + "</span>");
}
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
if (this.pESaveButtonVisible) {
a.push("<button title='" + this.m_languageMap.save + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.save + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrintFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
} else {
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrintFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
}
b.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.printFirefoxExportView = function() {
if (this.m_directPrint) {
this.mRe_printPopFilePDF();
return;
}
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_popPrint";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:7%;bottom:50px;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:8%;'>");
a.push("<span>" + this.m_languageMap.pdfPrintLimit1 + "</span>");
a.push("<br>" + this.m_languageMap.pdfPrintLimit2);
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printPopFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.ignore + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printIEWindow();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:175px; height:30px;width:75px;visibility:hidden'>" + this.m_languageMap.ignore + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrintFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
b.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.mRe_printPopFilePDF = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
if (this.m_directPrint && is_safari) {
this.formTag_clipid.value = "R08";
this.formTag_uid.value = this.m_uid;
this.formTag_print.value = "print";
this.formTag_printImage.value = this.isPDFPrintImage;
this.formTag_path.value = this.clientPath;
this.formTag_option.value = this.checkPrintJsonOption();
this.formTag_ChromeFitToPage.value = this.isChromePrintFitToPage;
this.formTag_s_time.value = new Date().getTime();
if (null == this.formTag) {
var b = document.createElement("form");
this.targetDiv.appendChild(b);
b.appendChild(this.formTag_clipid);
b.appendChild(this.formTag_uid);
b.appendChild(this.formTag_print);
b.appendChild(this.formTag_printImage);
b.appendChild(this.formTag_path);
b.appendChild(this.formTag_option);
b.appendChild(this.formTag_ChromeFitToPage);
b.appendChild(this.formTag_s_time);
b.style.display = "none";
b.encoding = "application/x-www-form-urlencoded";
b.method = "post";
this.formTag = b;
}
this.formTag.action = this.servletPath;
this.formTag.target = "report_SubWindow";
this.formTag.submit();
return;
}
if (-1 != this.servletPath.indexOf("?")) {
var a = new Date().getTime();
var c = this.servletPath + "&";
c += "ClipID=R08";
c += "&fileName=report.pdf";
c += "&isPDFPrintImage=" + this.isPDFPrintImage;
c += "&optionValue=" + this.checkPrintJsonOption();
c += "&path=" + this.clientPath;
c += "&print=print";
c += "&isChromePrintFitToPage=" + this.isChromePrintFitToPage;
c += "&uid=" + this.m_uid;
c += "&s_time=" + a;
if (this.m_firefoxPrint.isPopup) {
window.open(c, "", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width);
} else {
window.open(c, "_blank");
}
} else {
this.formTag_clipid.value = "R08";
this.formTag_uid.value = this.m_uid;
this.formTag_print.value = "print";
this.formTag_printImage.value = this.isPDFPrintImage;
this.formTag_path.value = this.clientPath;
this.formTag_option.value = this.checkPrintJsonOption();
this.formTag_ChromeFitToPage.value = this.isChromePrintFitToPage;
this.formTag_s_time.value = new Date().getTime();
if (null == this.formTag) {
var b = document.createElement("form");
this.targetDiv.appendChild(b);
b.appendChild(this.formTag_clipid);
b.appendChild(this.formTag_uid);
b.appendChild(this.formTag_print);
b.appendChild(this.formTag_printImage);
b.appendChild(this.formTag_path);
b.appendChild(this.formTag_option);
b.appendChild(this.formTag_ChromeFitToPage);
b.appendChild(this.formTag_s_time);
b.style.display = "none";
b.encoding = "application/x-www-form-urlencoded";
b.method = "post";
this.formTag = b;
}
this.formTag.action = this.servletPath;
if (this.m_firefoxPrint.isPopup) {
window.open("", "report_SubWindow", "height=" + this.m_firefoxPrint.height + ",width=" + this.m_firefoxPrint.width);
this.formTag.target = "report_SubWindow";
} else {
this.formTag.target = "_blank";
}
this.formTag.submit();
}
}
;
Report.prototype.printEdgeExportView = function() {
if (this.m_directPrint) {
this.mRe_printPopFilePDF();
return;
}
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_popPrint";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:7%;bottom:50px;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:8%;'>");
a.push("<span>" + this.m_languageMap.pdfPrintLimit3 + "</span>");
a.push("<br>" + this.m_languageMap.pdfPrintLimit4);
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printEdgePopFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
a.push("<button title='" + this.m_languageMap.ignore + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printIEWindow();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:175px; height:30px;width:75px;visibility:hidden'>" + this.m_languageMap.ignore + "</button>");
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrintFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
b.innerHTML = a.join("");
this.m_popupViewDiv.appendChild(b);
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.mRe_printEdgePopFilePDF = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
var f = new Array();
var g = this.servletPath;
if (-1 != this.servletPath.indexOf("?")) {
var c = this.servletPath.split("?");
if (g.length > 1) {
var e = c[1];
g = c[0];
var a = e.split("&");
for (var b = 0; b < a.length; b++) {
var h = a[b].split("=");
if (h.length > 1) {
var d = document.createElement("input");
d.type = "hidden";
d.name = h[0];
d.value = h[1];
this.formTag.appendChild(d);
f.push(d);
}
}
}
}
this.formTag_clipid.value = "R08";
this.formTag_uid.value = this.m_uid;
this.formTag_print.value = "print";
this.formTag_printImage.value = this.isPDFPrintImage;
this.formTag_path.value = this.clientPath;
this.formTag_option.value = this.checkPrintJsonOption();
this.formTag_ChromeFitToPage.value = this.isChromePrintFitToPage;
this.formTag_s_time.value = new Date().getTime();
this.formTag.action = g;
this.formTag.target = "re_target" + this.m_uid;
this.formTag.submit();
if (f.length > 0) {
for (var b = 0; b < f.length; b++) {
var d = f[b];
this.formTag.removeChild(d);
}
}
f = null;
}
;
Report.prototype.printLimitedExportView = function(c) {
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_limitPrint";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:50%;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:26%;'><span>");
a.push(this.m_languageMap.printLimit1);
a.push("<br>" + this.m_languageMap.printLimit2 + "</span>");
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
if (this.pESaveButtonVisible) {
a.push("<button title='" + this.m_languageMap.save + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_printFilePDF();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:175px; height:30px;width:75px;'>" + this.m_languageMap.save + "</button>");
}
if ("pdf" == c) {
a.push("<button title='" + this.m_languageMap.ignore + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_IgnorePrinting();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.ignore + "</button>");
} else {
if ("hwp" == c) {
a.push("<button title='" + this.m_languageMap.ignore + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_IgnoreHWPPrinting();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.ignore + "</button>");
} else {
if ("exe" == c) {
a.push("<button title='" + this.m_languageMap.ignore + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_IgnoreEXEPrinting();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.ignore + "</button>");
} else {
a.push("<button title='" + this.m_languageMap.ignore + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_IgnoreHTMLPrinting();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:95px; height:30px;width:75px;'>" + this.m_languageMap.ignore + "</button>");
}
}
}
a.push("<button title='" + this.m_languageMap.cancel + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closePrinting();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.cancel + "</button>");
b.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.mRe_closePrinting = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
}
;
Report.prototype.mRe_IgnorePrinting = function() {
this.closePrintInfoWindow();
this.mRe_printView();
this.disabledMenu(false);
}
;
Report.prototype.mRe_IgnoreHTMLPrinting = function() {
this.closePrintInfoWindow();
this.mRe_printHTMLView();
this.disabledMenu(false);
}
;
Report.prototype.mRe_IgnoreHWPPrinting = function() {
this.closePrintInfoWindow();
this.mRe_printHWPView();
this.disabledMenu(false);
}
;
Report.prototype.mRe_IgnoreEXEPrinting = function() {
this.closePrintInfoWindow();
this.mRe_printEXEView();
this.disabledMenu(false);
}
;
Report.prototype.printHtmlPopupCheckExportView = function() {
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_popHTMLPrint";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:50%;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:26%;'><span>");
a.push(this.m_languageMap.printSet1);
if (this.m_language == 0) {
a.push("<br>");
}
a.push(this.m_languageMap.printSet2 + "</span>");
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
a.push("<input type='checkbox' value='true' id='htmlPopupCheck" + this.m_uid + "' style='position:absolute;bottom:40px;right:15px; height:20px;left:10px;'/>");
a.push("<span style='position:absolute;bottom:40px;right:15px; height:20px;left:30px;'>" + this.m_languageMap.printSet3 + "</span>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_htmlPopupCheck();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
b.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.mRe_htmlPopupCheck = function() {
var a = document.getElementById("htmlPopupCheck" + this.m_uid);
if (null != a) {
if (a.checked) {
mRe_setLocalStorage("mRe_htmlPopupCheck", "1");
}
}
this.mRe_closePrinting();
this.checkPrintHTMLView();
}
;
function getPrintFrame(a) {
var b = new Array();
b.push('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
b.push("<html>");
b.push("<head>");
b.push('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">');
b.push("<title>report</title>");
b.push("<style media='print' type='text/css'>");
b.push(" #header, #leftside, #rightside, #footer {");
b.push(" display:none;");
b.push("}");
b.push(" @page {");
if (!is_ie) {
b.push("size:");
b.push((a.pageWidth / 100) + "cm ");
b.push((a.pageHeight / 100) + "cm;");
}
b.push(" margin: 0mm 0mm 0mm 0mm;");
b.push(" }");
b.push(" body, #content, .container .row {");
b.push(" margin : 0;");
b.push(" width:100%;");
b.push(" }");
b.push("</style>");
b.push(" <script type='text/javascript'>");
b.push(" function HttpClient() {");
b.push(" try {");
b.push(" var objRequest = new XMLHttpRequest();");
b.push(" if (null != objRequest)");
b.push(" this.m_objHttpRequest = objRequest;");
b.push(" } catch (e) {");
b.push(" try {");
b.push(" var objRequest = new ActiveXObject('Msxml2.XMLHTTP');");
b.push(" if (null != objRequest)");
b.push(" this.m_objHttpRequest = objRequest;");
b.push(" } catch (e) {");
b.push(" try {");
b.push(" var objRequest = new ActiveXObject('Microsoft.XMLHTTP');");
b.push(" if (null != objRequest)");
b.push(" this.m_objHttpRequest = objRequest;");
b.push(" } catch (e) {");
b.push(" throw new Error('HttpRequest not supported');");
b.push(" }");
b.push(" }");
b.push(" }");
b.push(" }");
b.push("HttpClient.prototype.send = function(strURL, objData, bAsync,");
b.push(" handleASyncHttpResponse) {");
b.push(" if (bAsync) {");
b.push(" this.m_objHttpRequest.onreadystatechange = handleASyncHttpResponse;");
b.push(" } else {");
b.push(" this.m_objHttpRequest.onreadystatechange = null;");
b.push(" }");
b.push(" this.m_objHttpRequest.open('POST', strURL, bAsync);");
b.push(" this.m_objHttpRequest.setRequestHeader('Content-Type',");
b.push(" 'application/x-www-form-urlencoded; charset=UTF-8');");
b.push(" this.m_objHttpRequest.send(objData);");
b.push(" if (!bAsync) {");
b.push(" if (4 == this.m_objHttpRequest.readyState) {");
b.push(" if (200 == this.m_objHttpRequest.status) {");
b.push(" return this.m_objHttpRequest.responseText;");
b.push(" } else {");
b.push(" throw new Error(this.m_objHttpRequest.status);");
b.push(" }");
b.push(" }");
b.push(" return this._handleSyncHttpResponse();");
b.push(" }");
b.push("};");
b.push("var m_report = null;");
b.push("var m_obj = null;");
b.push("function bodyPaint(obj, report){");
b.push(" m_report = report;");
b.push(" m_obj = obj;");
b.push(" window.setTimeout('bodyPaintRun()', 0);");
b.push(" }");
b.push("function bodyPaintRun(){");
b.push(" var obj = m_obj;");
b.push(" var svgBody = document.getElementById('body1');");
b.push(" svgBody.innerHTML = '';");
b.push("try{");
b.push(" if(obj.type == 0){");
b.push(" var newDiv = null;");
b.push(" for(var i=(obj.option.startNum-1); i<obj.option.endNum; i++){");
b.push(" newDiv = document.createElement('img');");
b.push(" svgBody.appendChild(newDiv);");
b.push(" newDiv.src = obj.url + '?&ClipID=R10&pageNumber=' + i + '&uid=' + obj.uid + '&html5=false&DPI=96';");
b.push(" }");
b.push(" }");
b.push(" else{");
b.push(" var newDiv = null;");
b.push(" var objHttpClient = new HttpClient();");
b.push(" for(var i=(obj.option.startNum-1); i<obj.option.endNum; i++){");
b.push(" newDiv = document.createElement('div');");
b.push(" svgBody.appendChild(newDiv);");
b.push(" var strUrl ='';");
b.push(" if(-1 != obj.url.indexOf('?')){");
b.push(" strUrl = obj.url + '&ClipID=R10&pageNumber=' + i + '&uid=' + obj.uid + '&html5=true&DPI=96';");
b.push(" }else{");
b.push(" strUrl = obj.url + '?ClipID=R10&pageNumber=' + i + '&uid=' + obj.uid + '&html5=true&DPI=96';");
b.push(" }");
b.push(" var strResult = objHttpClient.send(strUrl, '', false, null);");
b.push(" if(0 == strResult.indexOf('\"')){");
b.push(" strResult = strResult.substring(1,strResult.length - 1);");
b.push(" }");
b.push(" var data = strResult.split('{clipreport_separator}');");
b.push(" newDiv.innerHTML = unescape(data[1]);");
b.push(" if(null != newDiv.firstChild && 'svg'== newDiv.firstChild.tagName){");
if (is_ie) {
b.push(" newDiv.style.border='1px solid transparent';");
b.push(" newDiv.style.overflow='visible';");
} else {
b.push(" newDiv.style.overflow='hidden';");
b.push(" newDiv.style.border='0px solid red';");
b.push(" newDiv.style.width='" + (a.pageWidth / 100) + "cm';");
b.push(" newDiv.style.height='" + ((a.pageHeight / 100) - 0.1) + "cm';");
}
b.push(" newDiv.firstChild.style.overflow = 'hidden';");
b.push(" }");
b.push(" }");
b.push(" }");
b.push(" if(obj.firefox){");
b.push(" window.print();");
b.push(" }else{");
b.push(" document.execCommand('print', false, null);");
b.push(" }");
b.push(" m_report.mRe_printHTMLViewEnd(true);");
b.push(" m_report = null;");
b.push(" m_obj= null;");
b.push("}catch(err){");
b.push(" m_report.mRe_printHTMLViewEnd(false);");
b.push(" m_report = null;");
b.push(" m_obj= null;");
b.push(" }");
b.push(" }");
b.push("<\/script>");
b.push("</head>");
b.push("<body id='body1'>");
b.push("</body>");
b.push("</html>");
return b.join("");
}
function getPDFPrintFrame() {
var a = new Array();
a.push('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
a.push("<html>");
a.push("<head>");
a.push('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">');
a.push("<title>print</title>");
a.push('<script type="text/javascript">');
a.push("function receiveMessage(event){");
a.push('var iframe = document.getElementById("target1");');
a.push("document.body.removeChild(iframe);");
a.push("iframe = document.createElement('iframe');");
a.push("iframe.id = 'target1';");
a.push("iframe.name = 're_target_print';");
a.push("document.body.appendChild(iframe);");
a.push("var data = window.eval(event.data);");
a.push("document.getElementById('re_form_uid').value = data.uid;");
a.push("document.getElementById('re_form_path').value = data.clientPath;");
a.push("document.getElementById('re_form_printImage').value = data.isPDFPrintImage;");
a.push("document.getElementById('re_form_ChromeFitToPage').value = data.isChromePrintFitToPage;");
a.push("document.getElementById('re_form_s_time').value = new Date().getTime();");
a.push('var jsonData = "{\\"drawDashedLineDirectly\\":true,\\"startNum\\":"+data.optionValue.startNum+",\\"endNum\\":"+data.optionValue.endNum+"}";');
a.push("document.getElementById('re_form_option').value = jsonData;");
a.push("var form1 = document.getElementById('re_form1');");
a.push("form1.action = data.url;");
a.push("if(-1 != data.url.indexOf('?')){");
a.push(" var s_time = new Date().getTime();");
a.push(" var strUrl = data.url + '&ClipID=R08&isPDFPrintImage=' + data.isPDFPrintImage + '&' + ");
a.push(" 'isChromePrintFitToPage=' + data.isChromePrintFitToPage + '&'+");
a.push(" 'optionValue=' + jsonData + '&print=print&uid=' + data.uid + '&path='+ escape(data.clientPath)+'&' + ");
a.push(" 's_time=' + s_time;");
a.push(" iframe.src = strUrl;");
a.push("}else{");
a.push(" form1.submit();");
a.push("}");
a.push(" iframe.onload = function() {");
a.push(" var win = iframe.contentWindow;");
a.push(' window.parent.postMessage(data.uid,"*");');
a.push(" if (win) {");
a.push(" win.focus();");
a.push(" win.print();");
a.push(" }");
a.push(" };");
a.push("}");
a.push("if (window.addEventListener){");
a.push(' addEventListener("message", receiveMessage, false);');
a.push("} else {");
a.push(' attachEvent("onmessage", receiveMessage);');
a.push("}");
a.push("<\/script>");
a.push("</head>");
a.push("<body>");
a.push(' <iframe id="target1" name="re_target_print"></iframe>');
a.push("<form id='re_form1' style='display:none;' encoding='application/x-www-form-urlencoded' method='post' target='re_target_print'>");
a.push("<input type='text' id='re_form_clipid' name='ClipID' value='R08' />");
a.push("<input type='text' id='re_form_uid' name='uid' />");
a.push("<input type='text' id='re_form_print' name='print' value='print'/>");
a.push("<input type='text' id='re_form_printImage' name='isPDFPrintImage' value='false'/>");
a.push("<input type='text' id='re_form_path' name='path' />");
a.push("<input type='text' id='re_form_option' name='optionValue' />");
a.push("<input type='text' id='re_form_ChromeFitToPage' name='isChromePrintFitToPage' />");
a.push("<input type='text' id='re_form_s_time' name='s_time' />");
a.push("</body>");
a.push("</html>");
return a.join("");
}
Report.prototype.editableSignControl = function(n, a, o, g, i) {
if (this.m_isButtonLock == false) {
if (null != this.signPaintDiv) {
return;
}
Re_zoom.isPop = true;
var f = this;
this.disabledMenu(true);
a += 100;
o += 100;
var k = n.getAttribute("type");
var d = n.getAttribute("controlindex");
var q = document.createElement("div");
if (this.m_signOption.staticPos) {
q.style.cssText = "position:absolute;left:" + this.m_signOption.staticLeft + ";top:" + this.m_signOption.staticTop + ";width:" + (a + 50) + "px;height:" + (o + 110) + "px;";
} else {
q.style.cssText = "position:absolute;left:" + (this.paintDiv.scrollLeft + 10 + this.m_signOption.offsetLeft) + "px;top:" + (this.paintDiv.scrollTop + 10 + this.m_signOption.offsetTop) + "px;width:" + (a + 50) + "px;height:" + (o + 110) + "px;";
}
q.className = "report_sign_div";
var b = document.createElement("div");
b.className = "report_sign_menu";
var l = document.createElement("button");
l.className = "report_sign_button report_sign_save";
l.innerHTML = this.m_languageMap.save;
var m = document.createElement("button");
m.className = "report_sign_button report_sign_reset";
m.innerHTML = this.m_languageMap.reset;
var c = document.createElement("button");
c.className = "report_sign_button report_sign_cancel";
c.innerHTML = this.m_languageMap.cancel;
var p = document.createElement("span");
p.innerHTML = " ";
b.appendChild(l);
b.appendChild(p.cloneNode(true));
b.appendChild(m);
b.appendChild(p.cloneNode(true));
b.appendChild(c);
var j = document.createElement("div");
j.className = "report_sign_paint";
q.appendChild(b);
q.appendChild(j);
this.paintDiv.appendChild(q);
this.signPaintDiv = q;
var e = $(j);
e.jSignature({
"background-color": "transparent",
"decor-color": "transparent",
lineWidth: g,
color: i,
width: (a),
height: (o)
});
m.onclick = function() {
e.jSignature("reset");
}
;
c.onclick = function() {
f.paintDiv.removeChild(q);
f.disabledMenu(false);
f.signPaintDiv = null;
}
;
var h = this.m_necessaryCheck;
l.onclick = function() {
f.disabledMenu(false);
f.signPaintDiv = null;
var x = e.jSignature("getData").split("base64,");
var v = {
necessaryPage: h,
data: new Array()
};
v.data[Number(d)] = {};
v.data[Number(d)].type = k;
v.data[Number(d)].controlIndex = d;
v.data[Number(d)].value = encodeURIComponent(x[1]);
var u = new Date().getTime();
var s = "ClipID=R11&pageNumber=" + f.beforePageIndex + "&uid=" + f.m_uid + "&Accessibility=" + f.m_isAccessibility + "&data=" + JSON.stringify(v) + "&s_time=" + u;
s = mRe_onBeforeSend(s);
if (f.m_isCrossDomain) {
if (window.XDomainRequest) {
var r = new XDomainRequest();
var t = servletPath + "?" + s;
if (r) {
r.onload = function() {
f.resultNewReport(mRe_onAfterSend(r.responseText));
}
;
r.onerror = function() {
ReportWebLog("IE8 crossDomain error");
mRe_ReportEventHandler(40);
}
;
r.open("GET", t);
r.send();
}
} else {
$.ajax({
type: "POST",
url: servletPath,
crossDomain: true,
data: s,
success: function(y) {
paintReportText(mRe_onAfterSend(y));
},
error: function(y) {
ReportWebLog(y);
mRe_ReportEventHandler(40);
}
});
}
} else {
var w = new HttpClient();
w.send(f.servletPath, s, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintReportText(mRe_onAfterSend(this.responseText));
} else {
f.paintDiv.innerHTML = f.m_languageMap.link_error;
mRe_ReportEventHandler(40);
f.pageSlideShow();
throw new Error(this.status);
}
}
});
}
f.paintDiv.removeChild(q);
f.createEditableProgress();
n.style.zIndex = "0";
}
;
}
}
;
Report.prototype.m_NecessaryPopup = function(e) {
this.m_necessaryCheck = true;
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var d = 0;
var c = document.createElement("div");
c.className = "report_view_box";
var f = 100;
if (this.m_signOption.staticPos) {
c.style.cssText = "position:absolute;left:" + this.m_signOption.staticLeft + ";top:" + this.m_signOption.staticTop + ";width:350px;";
} else {
c.style.cssText = "position:absolute;left:" + (10 + this.m_signOption.offsetLeft) + "px;top:" + (80 + this.m_signOption.offsetTop) + "px;width:350px;";
}
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;height:20%;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:26%;font-weight:bold;'><span>");
a.push("필수 입력사항이 누락되었습니다.</span>");
a.push("</div></div>");
a.push("<div style='position:absolute;left:20px;right:5px;top:30%;'>");
for (var b = 0; b < e.length; b++) {
if (b == 0) {
d = e[b].pageNum;
}
a.push((b + 1) + ". ");
a.push(e[b].value + "<br>");
f += 20;
}
c.style.height = f + "px";
a.push("</div>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].NecessaryPage(" + d + ");return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
c.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(c);
}
a = null;
}
;
Report.prototype.NecessaryPage = function(a) {
if (this.m_popupViewDiv != null) {
if (null != this.signPaintDiv) {
this.paintDiv.removeChild(this.signPaintDiv);
this.signPaintDiv = null;
}
this.targetDiv.removeChild(this.m_popupViewDiv);
}
this.disabledMenu(false);
if (this.beforePageIndex == a) {
this.sendData(a);
} else {
this.selectPage(a);
}
}
;
window.m_report_language_map = {
lic_error: ["리포트 서버 라이센스에 문제가 있습니다.", "Report a problem with the server license.", "レポートサーバーのライセンスに問題があります。", "报告服务器许可证出现问题。"],
report_error: ["잘못된 결과입니다.", "Invalid results", "結果が正しくありません。", "结果错误。"],
report_error2: ["보고서 양식이 잘못되었습니다.(페이지가 없습니다.)", "Report form is incorrect. (There is no page.)", "レポートフォームが間違っています。(ページがありません。)", "报告的形式不正确。 (没有页。)"],
install_error: ["리포트 서버 설치에 문제가 있습니다.", "There is a problem with the report server installation.", "レポートサーバーのインストールに問題があります。", "报告服务器的安装出现问题。"],
sesstion_error: ["리포트파일이 삭제되어 찾을 수 없습니다.", "This session has been terminated.", "セッションが終了しました。", "会话结束。"],
link_error: ["리포트 서버와의 연결에 실패하였습니다.", "It failed to connect to the report server.", "これは、レポートサーバーへの接続に失敗しました。", "它无法连接到报表服务器。"],
img_alt: ["리포트 본문 입니다.", "The body of the report.", "レポートの本文です。", "报告正文。"],
save: ["저장", "Save", "保存", "保存"],
ignore: ["무시", "Ignore", "無視", "忽略"],
cancel: ["취소", "Cancel", "キャンセル", "取消"],
reset: ["초기화", "Reset", "リセット", "重置"],
pdf_save: ["PDF 저장", "PDF file", "PDF形式で保存", "保存成PDF文件"],
excel_save: ["엑셀 저장", "Excel file", "エクセル形式で保存", "保存成表格文件"],
hwp_save: ["한글 저장", "HWP file", "ハングル形式で保存", "保存成hwp文件"],
rtf_save: ["RTF 저장", "RTF file", "RTF形式で保存", "保存成RTF文件"],
ppt_save: ["PPT 저장", "PPT file", "PPT形式で保存", "保存成PPT文件"],
html_save: ["HTML 저장", "HTML file", "HTML形式で保存", "保存成HTML文件"],
hancell_save: ["한셀 저장", "Hancell file", "ハンセル形式で保存", "保存成Hancell文件"],
html5_save: ["HTML5 저장", "HTML5 file", "HTML5形式で保存", "保存成HTML 5文件"],
doc_save: ["DOC 저장", "DOC file", "DOC形式で保存", "保存成DOC文件"],
jpg_save: ["JPG 저장", "JPG file", "JPG形式で保存", "保存成JPG文件"],
txt_save: ["TXT 저장", "TXT file", "TXT形式で保存", "保存成TXT文件"],
print: ["인쇄", "Print", "印刷", "打印"],
first_page: ["첫 페이지", "First Page", "先頭ページ", "首页"],
prv_page: ["이전 페이지", "Previous Page", "前のページ", "上一页"],
page: ["페이지", "Page", "ページ", "页数"],
total_page: ["전체 페이지", "All Page", "全てのページ", "全部页"],
next_page: ["다음 페이지", "Next Page", "次のページ", "下一页"],
last_page: ["마지막 페이지", "Last Page", "最後のページ", "末页"],
zoomIn: ["화면 비율 선택", "Zoom", "画面の比率を選択", "选择画面分配率"],
report_info: ["등록 정보", "Information", "登録情報", "注册信息"],
close: ["닫기", "Close", "閉じる", "关闭"],
clipReport: ["클립리포트", "Clipreport", "Clipreport", "Clipreport"],
version: ["버전", "Version", "バージョン", "版本"],
webversion: ["뷰어", "Viewer", "Viewer", "Viewer"],
build: ["빌드", "Build", "ビルド", "新建"],
report_info_text: ["경고:이 컴퓨터 프로그램은 저작권법과 국제 협약의 보호를 받습니다.<br>이 프로그램의 전부 혹은 일부를 무단으로 복제, 배포하는 행위는 민사<br>및 형사법에 의해 엄격히 규제되어 있으며 기소의 사유가 됩니다.", "This program is ClipReport4.0 viewer that<br>was develop and deploy by the Clipsoft", "警告:このコンピュータープログラムは、著作権法と国際条約による保護を受けています。<br>このプログラムの全部若しくは一部を無断で複製、配布する行為は、民事<br>及び刑事法により厳しく規制されており起訴事由となります。", "警告:本计算机程序受著作权法和国际协议的保护。<br>任意复制、发放本程序的全部或部分的行为严格受到民事<br>和刑事法的管制,构成起诉的事由。"],
ok: ["확인", "Ok", "確認", "确定"],
fileType: ["파일형식", "File Type", "ファイル形式", "文件形式"],
printType: ["인쇄방식", "Type", "印刷方法", "打印方式"],
propertys: ["옵션수정", "Settings", "オプションの修正", "修改选项"],
fileName: ["파일명", "Location", "ファイル名", "文件名"],
save_range: ["저장범위", "Range", "保存範囲", "保存范围"],
from: ["부터", " from", " から", "从"],
to: ["까지", " to", " まで", "至"],
currentPage: ["현재 페이지", "Current Page", "現在のページ", "当前页"],
page_designation: ["페이지 지정", "Page", "ページ指定", "保存页"],
NofC: ["매수", "Number of Copies", "部数", "张"],
print_info: ["인쇄정보", "Information", "印刷情報", "打印信息"],
print_info2: ["인쇄 안내", "Information", "印刷案内", "打印说明"],
print_range: ["인쇄범위", "Range", "印刷範囲", "打印范围"],
printName_validation: ["파일이름이 올바르지 않습니다.", "File name is incorrect.", "ファイル名が正しくありません。", "文件名不正确。"],
printNum_validation: ["저장범위의 지정 값이 올바르지 않습니다.", "The specified value of the storage range is incorrect.", "保存範囲に指定した値が正しくありません。", "保存范围的指定值不正确。"],
sheet_type: ["시트구분", "Sheet Type", "シートの区分け", "表格区分"],
sheet_type1: ["페이지 마다", "Pages", "ページ毎に", "每页"],
sheet_type2: ["하나의 시트", "One Sheet", "一つのシート", "一个表格"],
sheet_type3: ["하나의 시트(페이지 영역 무시)", "One Sheet(igore a page layout)", "一つのシート(ページ領域を無視)", "一个表格(忽略页面布局)"],
sheet_type4: ["리포트 마다(페이지 영역 무시)", "One Sheet for each report(ignore a page layout)", "レポート毎に", "每份报告"],
sheet_type5: ["리포트 마다", "One Sheet for each report", "各レポートの一枚", "一张纸上为每个报表"],
merge_cell: ["셀 합치기", "Merge Cells", "セルの結合", "合并单元格"],
merge_EmptyCell: ["공백 셀일 경우 합치기", "Merge blank cells", "空白セルの場合結合", "合并空白单元格"],
cell_Separated: ["페이지 크기로 셀 분리", "Split row at the end of each page", "ページのサイズに合わせてセルを分離", "按照页面大小拆分单元格"],
rightToLeft: ["열이 오른쪽에서 왼쪽으로 진행", "Display a sheet in a RTL(Right-to-left) layout", "列番号を右から左へ表示", "纵列自由向左进行"],
fitToPageWhenPrinting: ["출력시 페이지 맞춤", "Fit page at the time of output", "出力時のページ合わせる", "在输出时适合页面"],
cellSizeRatio: ["셀 크기 비율", "The ratio of a cell's size", "セルサイズの比率", "单元格大小比例"],
cellWidth: ["가로 비율", "Column", "横比", "横向比例"],
cellHeight: ["세로 비율", "Row", "縦比", "纵向比例"],
rangeError: ["좌표 오차 범위", "Error Range", "座標誤差の範囲", "坐标误差范围"],
displayFormat: ["일반 표시형식 처리", "Format Cells", "一般表示形式で処理", "常规显示形式处理"],
text: ["텍스트", "Text", "テキスト", "文本"],
normal: ["일반", "General", "一般", "一般"],
printRate: ["인쇄 확대/축소 비율", "Zoom Rate", "印刷拡大/縮小比率", "打印放大/缩小比例"],
widthError: ["가로 비율의 설정값이 올바르지 않습니다.", "Setting value of the Column is not correct.", "横比の設定値が正しくありません。", "横向比例的设定值不正确。"],
heightError: ["세로 비율의 설정값이 올바르지 않습니다.", "Setting value of the Row is not correct.", "縦比の設定値が正しくありません。", "纵向比例的设定值不正确。"],
widthErrorValue: ["가로 비율의 설정값은 (50 ~ 200) 가능합니다.", "Setting value of the Column, ( 50-200 ) is possible.", "設定可能な横比の値は(50 ~ 200)です。", "横向比例的设定值可在(50~200)范围内。"],
heightErrorValue: ["세로 비율의 설정값은 (50 ~ 200) 가능합니다.", "Setting value of the Row, ( 50-200 ) is possible.", "設定可能な縦比の値は(50 ~ 200)です。", "纵向比例的设定值可在(50~200)范围内。"],
coordinateError: ["좌표 오차 범위의 설정값이 올바르지 않습니다.", "Setting value of the error range of coordinates is incorrect.", "座標誤差範囲の設定値が正しくありません。", "坐标误差范围的设定值不正确。"],
printError: ["인쇄 확대/축소 비율의 설정값이 올바르지 않습니다.", "Setting of print enlargement / reduction ratio is not correct.", "印刷拡大/縮小比率の設定値が正しくありません。", "打印放大/缩小比例的设定值不正确。"],
printErrorValue: ["인쇄 확대/축소 비율의 설정값은 (10 ~ 400) 가능합니다.", "Setting of print enlargement / reduction ratio , ( 10-400 ) is possible.", "設定可能な印刷拡大/縮小比率の値は(10 ~ 400)です。", "打印放大/缩小比例可在(10~400)范围内。"],
fixSize: ["크기 고정", "Locks controls", "サイズを固定", "固定尺寸"],
allowOverlay: ["겹침 허용", "Overlay", "重ね合わせを許可", "允许重叠"],
setPageBottomMarginToZero: ["페이지 바닥 여백을 0으로 설정", "Set the bottom margin of the page to 0", "ページ下部の余白を「0」に設定", "页脚空白设为0"],
outputLikeWord: ["글자처럼 출력", "In Line with Text", "文字のように出力", "打印文字"],
tableSplit: ["쪽 영역에서 표 나눔", "Split Table", "改ページ領域でテーブルを分割", "页域内拆分表"],
Split: ["나눔", "Split Table", "分割", "拆分"],
cellSplit: ["셀 단위로 나눔", "Split Table by row", "セル単位に分割", "以单元格单位拆分"],
noneSplit: ["나누지 않음", "Do not split", "分割しない", "不拆分"],
defaultCharGap: ["기본 자간", "Default a character spacing", "基本カーニング", "基本字间距"],
charRatio: ["자평", "Character Ratio", "字送り", "字符比率"],
lineSpaceRate: ["줄간격 비율", "Ratio of line spacing", "行間隔の比率", "行距的比率"],
putCheckboxIntoCell: ["셀 안에 체크박스 이미지로 넣기", "Place a checkbox in a cell", "セル内にチェックボックスを挿入", "在单元格中添加复选框"],
splitTextByLine: ["문자열을 여러줄로 나눠서 표현", "Split a multi-line text into lines.", "テキストをライン別に分けて表示", "分行显示文本"],
defaultCharGapError: ["기본 자간의 설정값이 올바르지 않습니다.", "Setting value of the Default a character spacing is not correct.", "設定した基本カーニング値が正しくありません。", "基本字间距的设定值不正确。"],
defaultCharGapValueError: ["기본 자간의 설정값은 (-50 ~ 50) 가능합니다.", "Setting value of the Default a character spacing, ( -50 ~ 50 ) is possible.", "設定可能な基本カーニング値は(-50 ~ 50)です。", "基本字间距的设定值可在(-50 ~ 50)范围内。"],
defaultCharGapValue2Error: ["기본 자간의 설정값은 (-3.0 ~ 3.0) 가능합니다.", "Setting value of the Default a character spacing, ( -3.0 ~ 3.0 ) is possible.", "設定可能な基本カーニング値は(-3.0 ~ 3.0)です。", "基本字间距的设定值可在(-3.0 ~ 3.0)范围内。"],
charRatioError: ["자평의 설정값이 올바르지 않습니다.", "Setting value of the Character Ratio is not correct.", "設定した字送り値が正しくありません。", "字符比率的设定值不正确。"],
charRatioValueError: ["자평의 설정값은 (50 ~ 200) 가능합니다.", "Setting value of the Character ratio , ( 50-200 ) is possible.", "設定可能な字送り値は(50 ~ 200)です。", "字符比率的设定值可在(50 ~ 200)范围内。"],
splitTextLine: ["문자열을 여러 줄로 나누어 표현", "Split a multi-line text into lines", "文字列を複数行に分けて表示", "分多行显示字符串"],
processAsUnicode: ["유니코드로 문자열을 처리", "A text is encoded in Unicode format", "文字列をユニコードとして処理", "用字符编码处理字符串"],
processEqualAlign: ["균등분할 정렬 처리", "Convert an equal alignment into", "均等割付の整列指定", "均等拆分排列"],
soLeft: ["왼쪽 정렬", "Left", "左揃え", "靠左排列"],
soCenter: ["가운데 정렬", "Center", "中央揃え", "居中排列"],
soRight: ["오른쪽 정렬", "Right", "右揃え", "靠右排列"],
soBoth: ["양쪽 정렬", "Both", "両端揃え", "两边对齐"],
insertTableWrapper: ["표를 감싸는 객체 삽입", "Whether or not to insert an object that wraps around the table", "テーブルを包み込むオブジェクトを挿入するかどうか", "是否要插入的对象环绕表"],
tableWrapperBottomGap: ["표를 감싸는 객체의 아래쪽 여백", "The bottom margin of an object(a control) including a table", "テーブルを囲っているオブジェクト下部の余白", "表格周围个体的底部空白"],
tableWrapperBottomGapError: ["표의 아래쪽 여백 설정값이 올바르지 않습니다.", "Setting value of the margin below is not correct.", "テーブル下部の余白の設定値が正しくありません。", "表格底部空白的设定值不正确。"],
tableWrapperBottomGapValueError: ["표의 아래쪽 여백 설정값은 (0 ~ 500) 가능합니다.", "Setting value of the margin below , (0 ~ 500) is possible.", "テーブル下部の余白の設定値は(0 ~ 500)です。", "表格底部空白的设定值可在(0~500)范围内。"],
pageSplite: ["페이지를 분할하여 저장", "Save by dividing the page", "ページを区切って保存", "保存拆分页"],
pageSpliteCount: ["분할 수", "Count", "分割数", "拆分数"],
password: ["문서암호", "Password", "文書パスワード", "文件密码"],
textToImage: ["문자를 이미지로 표현", "Text To Image", "文字を画像として表示", "图像显示文本"],
importOriginImage: ["원본 이미지 사용", "Use Original Image", "原画像を使用", "使用原图"],
pageSpliteCountError: ["분할 수의 설정값이 올바르지 않습니다.", "Setting value of the Count is not correct.", "分割数の設定値が正しくありません。", "拆分数的设定值不正确。"],
html5page: ["페이지 라인 표시", "Show page breaks", "ページ枠を表示", "显示分页符号"],
dpiError: ["DPI의 설정값이 올바르지 않습니다.", "Setting value of the DPI is not correct.", "DPIの設定値が正しくありません。", "DPI的设定值不正确。"],
mergeTable: ["이웃한 표 병합", "Whether to merge the adjacent table", "隣接したテーブルをマージするかどうか", "是否合并相邻表"],
ignoreLineSpace: ["행간 무시", "Line spacing ignored", "行間無視", "行间距忽略"],
positionRelTo: ["좌표 기준", "Coordinate criteria", "座標基準", "协调标准"],
paper: ["종이", "paper", "紙", "纸"],
paragraph: ["문단", "paragraph", "段落", "段落"],
fitShapeToText: ["도형을 텍스트 크기에 맟춤", "fitShapeToText", "図形をテキストのサイズにカスタマイズされた", "对文本的大小形状定制"],
TableRowHeightSort: ["표의 행의 높이 설정", "TableRowHeightSort", "表の行の高さを設定", "设置在表中的行的高度"],
languageInfo: ["kr", "en", "jp", "cn"],
adobe9Info: ["현재 Adobe Reader 9 버전이 설치되어 있습니다.", "Version of Adode Reader 9 is installed currently .", "現在、Adobe Reader 9がインストールされています。", "当前已安装了Adobe Reader 9版本。"],
adobe9Info2: ["정상적인 인쇄를 사용하기 위해서는 Adode Reader 10 버전 이상을 설치하여야 합니다.", "To use the normal printing , you need to install the version Adode Reader 10 and later.", "正常に印刷するためには、Adode Reader 10以上をインストールする必要があります。", "正常打印必须安装Adobe Reader 10以上的版本。"],
adobe9Info3: ["현재 사용 중이신 브라우져의 창을 종료 한 후 아래의 사이트를 통하여 설치 하시기 바랍니다.", "After the completion of the browser window now gotten use it , please install via the following site .", "現在ご利用中のブラウザを閉じた後、下記のサイトからインストールして下さい。", "请关闭正在使用的浏览器窗口,通过下方网站安装。"],
adobe9Info4: ["설치 없이 인쇄를 원하신다면 저장 버튼을 이용하여 파일을 저장 후 인쇄 하실 수 있습니다.", "After you save the file by using the Save button if you want to print without installing , you can print .", "インストールせずに印刷したい場合は、[保存]をクリックしファイルを保存してから印刷して下さい。", "若想不安装,直接打印,可以使用保存按钮保存文件后再打印。"],
adobe9Info5: ["현재 브라우져에서 Adobe Reader 찾을 수 없습니다.", "We were not able to find Adode Reader in the browser now .", "現在のブラウザで、Adobe Readerは見つかりません。", "用当前的浏览器找不到Adobe Reader。"],
exeInfo1: ["인쇄에 필요한 프로그램을 찾을 수 없습니다.", "I could not find the program you need to print.", "印刷に必要なプログラムを見つけることができませんでした。", "我找不到你需要打印的程序。"],
exeInfo2: ["아래에 링크를 통하여 프로그램을 설치하시기 바랍니다.", "Please install the program via the link below.", "下にリンクを介してプログラムをインストールしてください。", "请通过以下链接安装该程序。"],
exeInfo3: ["설치가 완료되면 다시 인쇄 하실 수 있습니다.", "When the installation is complete, you can re-print.", "インストールが完了すると、再印刷することができます。", "当安装完成后,可以重新打印。"],
exeInfo4: ["현재 사용중이신 인쇄 프로그램은 업데이트가 필요합니다.", "Print program of your current use, the update is required.", "現在ご使用の印刷プログラムは、更新が必要になります。", "当前的使用的打印程序,则需要进行更新。"],
printLimit1: ["현재 리포트에 대한 인쇄 페이지 수가 많습니다.", "Print number of pages of the current report is large.", "現在のレポートの印刷ページ数が多すぎます。", "当前报告打印页数多。"],
printLimit2: ["페이지가 많을 경우 속도 저하의 문제가 될 수 있으므로 PDF 저장 인쇄를 권장하고 있습니다.", "If the page is large , because there is that the speed reduction of the problems , PDF save , I recommends printing .", "ページが多い場合、速度が低下することがあるためPDF形式で保存、印刷することをお勧めします。", "页数过多可能减低速度,建议保存成为PDF文件后打印。"],
printSet1: ["처음 인쇄를 시작하셨다면 브라우져의 설정이 필요합니다.", "If this is the first time you start printing you will need to set the browser .", "初めて印刷する場合は、ブラウザの設定が必要です。", "首次打印时需要设定浏览器。"],
printSet2: ["브라우저의 메뉴에 파일 -> 페이지설정 사용하여 여백을 모두 0, 머리글, 바닥글 사용 안 함으로 설정하시고 저장하시면 됩니다.", "File to the browser menu - > 0 the margin of using the settings of the page , the header , it is the footer disabled to save .", "ブラウザメニューのファイル -> ページ設定で余白を全て「0」にし, 「ヘッダーとフッターを使用しない」に設定してから保存して下さい。", "在浏览器菜单中选择文件->页面设定,将空白全部设为0,不使用页眉和页脚,保存即可。"],
printSet3: ["다음 인쇄 사용시 이 팝업을 원하지 않을 경우 표시 안함", "It does not want to appear in the case you do not want pop-up at the next printing use", "次回印刷する際、このポップアップ画面の表示を望まない場合は表示しない。", "若下次打印时不希望看到此弹出窗口,将不显示。"],
pdfPrintLimit1: ["현재 사용 중이신 브라우져는 팝업창의 인쇄화면을 제공하고 있습니다.", "Currently gotten your browser offers a print screen of the pop-up.", "現在ご使用いただいてブラウザはポップアップの印刷画面を提供しています。", "目前得到您的浏览器提供的弹出打印屏幕。"],
pdfPrintLimit2: ["아래의 확인 버튼을 누르시면 팝업 인쇄창을 확인 하실 수 있습니다.", "When you press the [OK] button below, you will be able to confirm the pop-up print window.", "下の[OK]ボタンを押すと、ポップアップ印刷ウィンドウを確認することができます。", "当您按下下面的[确定]按钮,你将能够确认弹出打印窗口。"],
pdfPrintLimit3: ["현재 사용 중이신 Edge Browser는 팝업창의 인쇄화면을 제공하고 있습니다. 만약 Adobe Reader가 없다면 PDF 파일로 다운로드 됩니다.", "Currently gotten your browser offers a print screen of the pop-up. If there is no Adobe Reader, it will be downloaded as a PDF file.", "現在ご使用いただいてブラウザはポップアップの印刷画面を提供しています。もしAdobe Readerがない場合は、PDFファイルとしてダウンロードされます。", "目前得到您的浏览器提供的弹出打印屏幕。如果没有Adobe Reader的,它会下载一个PDF文件。"],
pdfPrintLimit4: ["아래의 확인 버튼을 누르시면 확인 하실 수 있습니다.", "You can check by pressing the [OK] button below.", "下の[OK]ボタンを押すと確認することができます。", "您可以检查按下面的[确定]按钮。"]
};
function mRe_report_language(b) {
obj_language = {};
for (var a in window.m_report_language_map) {
obj_language[a] = window.m_report_language_map[a][b];
}
return obj_language;
}
var JSON;
if (!JSON) {
JSON = {};
}
(function() {
function d(f) {
return f < 10 ? "0" + f : f;
}
if (typeof Date.prototype.toJSON !== "function") {
Date.prototype.toJSON = function(f) {
return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + d(this.getUTCMonth() + 1) + "-" + d(this.getUTCDate()) + "T" + d(this.getUTCHours()) + ":" + d(this.getUTCMinutes()) + ":" + d(this.getUTCSeconds()) + "Z" : null;
}
;
String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function(f) {
return this.valueOf();
}
;
}
var c = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, g = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, h, b, j = {
"\b": "\\b",
"\t": "\\t",
"\n": "\\n",
"\f": "\\f",
"\r": "\\r",
'"': '\\"',
"\\": "\\\\"
}, i;
function a(f) {
g.lastIndex = 0;
return g.test(f) ? '"' + f.replace(g, function(k) {
var l = j[k];
return typeof l === "string" ? l : "\\u" + ("0000" + k.charCodeAt(0).toString(16)).slice(-4);
}) + '"' : '"' + f + '"';
}
function e(r, o) {
var m, l, s, f, p = h, n, q = o[r];
if (q && typeof q === "object" && typeof q.toJSON === "function") {
q = q.toJSON(r);
}
if (typeof i === "function") {
q = i.call(o, r, q);
}
switch (typeof q) {
case "string":
return a(q);
case "number":
return isFinite(q) ? String(q) : "null";
case "boolean":
case "null":
return String(q);
case "object":
if (!q) {
return "null";
}
h += b;
n = [];
if (Object.prototype.toString.apply(q) === "[object Array]") {
f = q.length;
for (m = 0; m < f; m += 1) {
n[m] = e(m, q) || "null";
}
s = n.length === 0 ? "[]" : h ? "[\n" + h + n.join(",\n" + h) + "\n" + p + "]" : "[" + n.join(",") + "]";
h = p;
return s;
}
if (i && typeof i === "object") {
f = i.length;
for (m = 0; m < f; m += 1) {
if (typeof i[m] === "string") {
l = i[m];
s = e(l, q);
if (s) {
n.push(a(l) + (h ? ": " : ":") + s);
}
}
}
} else {
for (l in q) {
if (Object.prototype.hasOwnProperty.call(q, l)) {
s = e(l, q);
if (s) {
n.push(a(l) + (h ? ": " : ":") + s);
}
}
}
}
s = n.length === 0 ? "{}" : h ? "{\n" + h + n.join(",\n" + h) + "\n" + p + "}" : "{" + n.join(",") + "}";
h = p;
return s;
}
}
if (typeof JSON.stringify !== "function") {
JSON.stringify = function(m, k, l) {
var f;
h = "";
b = "";
if (typeof l === "number") {
for (f = 0; f < l; f += 1) {
b += " ";
}
} else {
if (typeof l === "string") {
b = l;
}
}
i = k;
if (k && typeof k !== "function" && (typeof k !== "object" || typeof k.length !== "number")) {
throw new Error("JSON.stringify");
}
return e("", {
"": m
});
}
;
}
if (typeof JSON.parse !== "function") {
JSON.parse = function(m, f) {
var l;
function k(q, p) {
var o, n, r = q[p];
if (r && typeof r === "object") {
for (o in r) {
if (Object.prototype.hasOwnProperty.call(r, o)) {
n = k(r, o);
if (n !== undefined) {
r[o] = n;
} else {
delete r[o];
}
}
}
}
return f.call(q, p, r);
}
m = String(m);
c.lastIndex = 0;
if (c.test(m)) {
m = m.replace(c, function(n) {
return "\\u" + ("0000" + n.charCodeAt(0).toString(16)).slice(-4);
});
}
if (/^[\],:{}\s]*$/.test(m.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) {
l = (new Function("return (" + m + ")"))();
return typeof f === "function" ? k({
"": l
}, "") : l;
}
throw new SyntaxError("JSON.parse");
}
;
}
}());
var Base64 = {
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
encode: function(c) {
var a = "";
var k, h, f, j, g, e, d;
var b = 0;
c = Base64._utf8_encode(c);
while (b < c.length) {
k = c.charCodeAt(b++);
h = c.charCodeAt(b++);
f = c.charCodeAt(b++);
j = k >> 2;
g = ((k & 3) << 4) | (h >> 4);
e = ((h & 15) << 2) | (f >> 6);
d = f & 63;
if (isNaN(h)) {
e = d = 64;
} else {
if (isNaN(f)) {
d = 64;
}
}
a = a + this._keyStr.charAt(j) + this._keyStr.charAt(g) + this._keyStr.charAt(e) + this._keyStr.charAt(d);
}
return a;
},
decode: function(c) {
var a = "";
var k, h, f;
var j, g, e, d;
var b = 0;
c = c.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while (b < c.length) {
j = this._keyStr.indexOf(c.charAt(b++));
g = this._keyStr.indexOf(c.charAt(b++));
e = this._keyStr.indexOf(c.charAt(b++));
d = this._keyStr.indexOf(c.charAt(b++));
k = (j << 2) | (g >> 4);
h = ((g & 15) << 4) | (e >> 2);
f = ((e & 3) << 6) | d;
a = a + String.fromCharCode(k);
if (e != 64) {
a = a + String.fromCharCode(h);
}
if (d != 64) {
a = a + String.fromCharCode(f);
}
}
a = Base64._utf8_decode(a);
return a;
},
_utf8_encode: function(b) {
b = b.replace(/\r\n/g, "\n");
var a = "";
for (var e = 0; e < b.length; e++) {
var d = b.charCodeAt(e);
if (d < 128) {
a += String.fromCharCode(d);
} else {
if ((d > 127) && (d < 2048)) {
a += String.fromCharCode((d >> 6) | 192);
a += String.fromCharCode((d & 63) | 128);
} else {
a += String.fromCharCode((d >> 12) | 224);
a += String.fromCharCode(((d >> 6) & 63) | 128);
a += String.fromCharCode((d & 63) | 128);
}
}
}
return a;
},
_utf8_decode: function(a) {
var b = "";
var d = 0;
var e = c1 = c2 = 0;
while (d < a.length) {
e = a.charCodeAt(d);
if (e < 128) {
b += String.fromCharCode(e);
d++;
} else {
if ((e > 191) && (e < 224)) {
c2 = a.charCodeAt(d + 1);
b += String.fromCharCode(((e & 31) << 6) | (c2 & 63));
d += 2;
} else {
c2 = a.charCodeAt(d + 1);
c3 = a.charCodeAt(d + 2);
b += String.fromCharCode(((e & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
d += 3;
}
}
}
return b;
}
};
Report.prototype.notFoundEXEService = function(d) {
if (!this.m_isViewer) {
this.debugMeg("report log :: 설치된 exe Service 찾을 수 없습니다. pc에 설치가 필요합니다.");
this.endDebugMeg(false);
return;
}
this.debugMeg("report log :: 설치 안내창을 실행합니다.");
this.endDebugMeg(false);
this.disabledMenu(true);
this.m_popupViewDiv = document.createElement("div");
this.m_popupViewDiv.className = "report_popup_view";
this.targetDiv.appendChild(this.m_popupViewDiv);
var b = document.createElement("div");
b.className = "report_view_box report_Ex_NOTReader";
b.style.height = "150px";
var a = new Array();
a.push("<div style='position:absolute;left:13px;right:15px;top:5%;bottom:50px;border:1px solid darkgray'>");
a.push("<div style='position:absolute;left:3px;right:3px;top:8%;'><span>");
if (d) {
a.push(this.m_languageMap.exeInfo4);
} else {
a.push(this.m_languageMap.exeInfo1);
}
a.push("<br>" + this.m_languageMap.exeInfo2);
a.push("</span><br>");
var c = null != this.m_exeLink ? this.m_exeLink : ("./install/CLIPreportPrintService.exe");
a.push("<a style='position:ralative' href='" + c + "' target='blank'>download</a><br>");
a.push("<br><span>" + this.m_languageMap.exeInfo3 + "</span>");
a.push("</div></div>");
a.push("<span class='report_view_box' style='position:absolute;left:20px;top:2%;border:0;'>" + this.m_languageMap.print_info2 + "</span>");
a.push("<button title='" + this.m_languageMap.ok + "' onclick=\"m_reportHashMap['" + this.m_uid + "'].mRe_closeExeInstallView();return false;\" class='report_view_button' style='position:absolute;bottom:10px;right:15px; height:30px;width:75px;'>" + this.m_languageMap.ok + "</button>");
b.innerHTML = a.join("");
if (null != this.m_popupViewDiv) {
this.m_popupViewDiv.appendChild(b);
}
this.m_printInfo_view = b;
a = null;
}
;
Report.prototype.mRe_closeExeInstallView = function() {
this.closePrintInfoWindow();
this.disabledMenu(false);
this.debugMeg("report log :: 설치 안내창을 종료합니다.");
this.endDebugMeg(true);
}
;
Report.prototype.startEXEPrintResponse = function(a) {
try {
this.debugMeg("report log :: 서비스 응답 >>>" + a);
this.endDebugMeg(true);
var c = null;
if (typeof a === "string") {
c = objectCall(ClipStrTrim(a));
} else {
c = a;
}
var b = this;
window.clearInterval(this.m_exePrintStatus.intervalKey);
if (c.result) {
window.setTimeout(function() {
b.exePrintStatusCheck(c.port);
}, 1500);
} else {
var f = c.serviceCode;
this.debugMeg("report log :: exe print service에 문제가 발생하였습니다. 코드번호 >> " + f);
this.endDebugMeg(false);
if (this.m_isViewer) {
this.removePrintProgress();
if (400 == f) {
this.notFoundEXEService(false);
}
}
mRe_ReportEventHandler(105);
}
} catch (d) {
this.m_exePrintStatus.disConnectCount++;
this.debugMeg("report log :: 다른 로컬서버가 존재하는것 같습니다.");
this.debugMeg("report log :: startEXEPrintResponse function error >> " + d);
this.endDebugMeg(false);
mRe_ReportEventHandler(104);
}
}
;
Report.prototype.exePrintStatusCheck = function(e) {
this.m_exePrintStatus.portNumber = e;
var a = this;
var c = {
ClipID: "P02",
uid: a.m_uid
};
var f = "option=" + JSON.stringify(c);
this.debugMeg("report log :: 인쇄가 종료될 때 까지 서비스에 인쇄상태를 요청합니다. >>>" + f);
if (window.XDomainRequest) {
var b = new XDomainRequest();
if (b) {
b.onload = function() {
a.exePrintStatusResult(b.responseText);
}
;
b.onerror = function() {
mRe_ReportEventHandler(105);
if (a.m_isViewer) {
a.removePrintProgress();
}
}
;
b.open("POST", this.m_exePrintStatus.url + e);
b.send(f);
}
} else {
var d = this.m_exePrintStatus.url + e;
$.ajax({
type: "POST",
url: d,
crossDomain: true,
data: f,
success: function(g) {
a.exePrintStatusResult(g);
},
error: function(g) {
mRe_ReportEventHandler(105);
if (a.m_isViewer) {
a.removePrintProgress();
}
}
});
}
this.endDebugMeg(true);
}
;
Report.prototype.exePrintStatusResult = function(a) {
try {
var c = null;
if (typeof a === "string") {
c = objectCall(ClipStrTrim(a));
} else {
c = a;
}
this.debugMeg("report log :: 서비스 응답 >>>" + c);
var b = this;
if (c.endPrint) {
if (this.m_isViewer) {
this.removePrintProgress();
}
if (c.okButton) {
this.debugMeg("report log :: 인쇄에 대한 이벤트가 종료 되었습니다. ");
if (this.m_exePrintEvent.ok != null) {
this.m_exePrintEvent.ok(c.errorCode);
}
mRe_ReportEventHandler(106);
} else {
if (c.cancelButton) {
this.debugMeg("report log :: 인쇄에 대한 이벤트가 취소 되었습니다. ");
if (c.errorCode == 2) {
this.notFoundEXEService(true);
}
if (this.m_exePrintEvent.cancel != null) {
this.m_exePrintEvent.cancel(c.errorCode);
}
mRe_ReportEventHandler(107);
}
}
this.endDebugMeg(false);
} else {
if (false == c.endPrint) {
this.debugMeg("report log :: 인쇄가 아직 진행중 입니다....");
window.setTimeout(function() {
b.exePrintStatusCheck(b.m_exePrintStatus.portNumber);
}, 1500);
}
}
} catch (d) {
this.debugMeg("report log :: exePrintStatusResult function error >> " + d);
this.endDebugMeg(true);
mRe_ReportEventHandler(105);
if (this.m_isViewer) {
this.removePrintProgress();
}
}
}
;
Report.prototype.printEXEDirect = function() {
this.debugMeg("<<<<<<<<<<<< 리포트 디버깅 로그를 시작합니다 >>>>>>>>>>>>>>>");
this.debugMeg("userAgent Check :: " + agt);
this.m_isViewer = false;
if (this.m_reportKey != null) {
this.checkReportCreate();
} else {
if (this.userJsp == null) {
this.newReportCreate(this.servletPath, this.oof);
} else {
this.newReportCreate(this.userJsp, null);
}
}
}
;
function createEForm(b, c, d) {
if (null == d) {
mRe_ReportEventHandler(20);
}
var a = new Report(b,null,null,c,d);
a.is_eForm = true;
eform_init(a);
return a;
}
function createJSPEForm(c, d, b, e) {
if (null == e) {
mRe_ReportEventHandler(20);
}
var a = new Report(c,d,b,null,e);
a.is_eForm = true;
eform_init(a);
return a;
}
function createImportJSPEForm(b, d, c) {
if (null == c) {
mRe_ReportEventHandler(20);
}
var a = new Report(b,null,null,null,c);
a.is_eForm = true;
a.m_reportKey = d;
eform_init(a);
return a;
}
function eform_init(a) {
a.tocOption = {
nec: [false, false, false],
viewPN: [{
visible: false,
startCh: "",
endCh: ""
}, {
visible: false,
startCh: "",
endCh: ""
}, {
visible: false,
startCh: "",
endCh: ""
}]
};
a.swipeOption = {
isDisabled: false,
is_start: false,
s_x: 0,
s_y: 0,
e_x: 0,
e_y: 0
};
a.tripleEvent = {
isDisabled: false,
x: 0,
y: 0,
cnt: 0
};
a.m_eformDisabled = false;
a.m_isEFormPageMoveEvent = null;
a.eFormRadioChecked = {};
a.eFormCheckboxChecked = {};
a.m_twoTouchEvtDisabled = false;
a.m_signMoveCount = 9;
a.m_isPreviewImg = true;
}
Report.prototype.eformCreateTag = function(c, b) {
var a = is_smartphone ? "m_" : "";
c.push("<div id='re_menu" + b + "' class='" + a + "eform_menu_div' style='" + ((this.m_isMenu) ? "" : "height:0px;") + (null != this.menuDiv ? this.menuDiv : "") + "'>");
c.push("<table class='report_menu_table' vertical-align='middle'><tr><td class='report_menu_table_td'>");
c.push("<div class='" + a + "eform_menu_table_td_div'><nobr>");
c.push("<button id='re_first" + b + "' onclick=\"m_reportHashMap['" + b + "'].firstPage();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.first ? a + "eform_menu_dis_leftEnd_button" : a + "eform_menu_leftEnd_button") + "' style='" + (null != this.first_button ? this.first_button : "") + "' " + (this.m_disControl.first ? "disabled" : "") + "></button>");
c.push("<button id='re_prev" + b + "' onclick=\"m_reportHashMap['" + b + "'].previousPage();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.prev ? a + "eform_menu_dis_left_button" : a + "eform_menu_left_button") + "' style='" + (null != this.prev_button ? this.prev_button : "") + "' " + (this.m_disControl.prev ? "disabled" : "") + "></button>");
c.push("<table class='" + a + "eform_input_table' vertical-align='middle'>");
c.push("<tr>");
c.push("<td class='" + a + "eform_input_table_td_input'>");
c.push("<input id='re_input" + b + "' type='text' value='1' class='" + a + "eform_menu_pageCount_input' onkeypress=\"enterEvent(event, m_reportHashMap['" + b + "'], this)\" onblur=\"m_reportHashMap['" + b + "'].selectPage(Number(this.value) - 1)\" style='border:0px none !important;" + (null != this.input ? this.input : "") + "' " + (this.m_disControl.input ? "disabled" : "") + "/>");
c.push("</td>");
c.push("<td class='" + a + "eform_input_table_td' ");
c.push("onclick=\"m_reportHashMap['" + b + "'].mRe_pageCountLabelClick();return false;\"");
c.push(">");
c.push("<input id='re_totalCountNumber" + b + "' value='/ 0' class='" + a + "eform_menu_pageCount_span' style='" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' readonly></input><span id='re_totalCount" + b + "' class='" + a + "eform_menu_pageCount_span' style='border:0px none !important;" + (null != this.totalCountSpan ? this.totalCountSpan : "") + "' " + (this.m_disControl.caption ? "disabled" : ""));
c.push("/>");
c.push("<img id='re_progressImg" + b + "' class='report_menu_progress' src='" + progressImg() + "'/></span>");
c.push("</td>");
c.push("</tr></table>");
c.push("<button id='re_next" + b + "' onclick=\"m_reportHashMap['" + b + "'].nextPage();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.next ? a + "eform_menu_dis_right_button" : a + "eform_menu_right_button") + "' style='" + (null != this.next_button ? this.next_button : "") + "' " + (this.m_disControl.next ? "disabled" : "") + "></button>");
c.push("<button id='re_last" + b + "' onclick=\"m_reportHashMap['" + b + "'].lastPage();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.last ? a + "eform_menu_dis_rightEnd_button" : a + "eform_menu_rightEnd_button") + "' style='" + (null != this.last_button ? this.last_button : "") + "' " + (this.m_disControl.last ? "disabled" : "") + "></button>");
c.push("<select onChange=\"m_reportHashMap['" + b + "'].zoomIn(this)\" name='zoomSelect' id='re_zoomSelect" + b + "' class='" + a + "eform_menu_zoom_combo' style='" + (null != this.zoomCombo ? this.zoomCombo : "") + "' " + +(this.m_disControl.zoomIn ? "disabled>" : ">"));
this.comboOptionCreateTag(c);
c.push("</select>");
if (!is_smartphone) {
c.push("<button title='" + this.m_languageMap.print + "' id='re_print" + b + "' onclick=\"m_reportHashMap['" + b + "'].EFormPrint();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.save ? a + "eform_menu_dis_print_button" : a + "eform_menu_print_button") + "' style='" + (null != this.print_button ? this.print_button : "") + "' " + (this.m_disControl.print ? "disabled" : "") + "></button>");
}
c.push("<button id='re_doodle" + b + "' onclick=\"m_reportHashMap['" + b + "'].EFormDoodle();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.doodle ? a + "eform_menu_dis_doodle_button" : a + "eform_menu_doodle_button") + "' style='" + (null != this.doodle_button ? this.doodle_button : "") + "' " + (this.m_disControl.doodle ? "disabled" : "") + "></button>");
c.push("<button id='re_save" + b + "' onclick=\"m_reportHashMap['" + b + "'].EFormSave();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.save ? a + "eform_menu_dis_save_button" : a + "eform_menu_save_button") + "' style='" + (null != this.save_button ? this.save_button : "") + "' " + (this.m_disControl.save ? "disabled" : "") + "></button>");
c.push("<button id='re_close" + b + "' onclick=\"m_reportHashMap['" + b + "'].closeReport();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.close ? a + "eform_menu_dis_close_button" : a + "eform_menu_close_button") + "' style='" + (null != this.close_button ? this.close_button : "") + "' " + (this.m_disControl.close ? "disabled" : "") + "></button>");
c.push("</nobr></div>");
c.push("</td></tr></table>");
c.push("</div>");
c.push("<div id='re_doodleDiv" + b + "' class='" + a + "eform_menu_div' style='display:none;" + ((this.m_isMenu) ? "" : "height:0px;") + (null != this.doodleDiv ? this.doodleDiv : "") + "'>");
c.push("<table class='report_menu_table' vertical-align='middle'><tr><td class='report_menu_table_td'>");
c.push("<div class='" + a + "eform_menu_table_td_div'><nobr>");
c.push("<button id='re_doodleprev" + b + "' onclick=\"m_reportHashMap['" + b + "'].previousDoodlePage();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.prev ? a + "eform_menu_dis_left_button" : a + "eform_menu_doodleleft_button") + "' style='" + (null != this.prev_button ? this.prev_button : "") + "' " + (this.m_disControl.prev ? "disabled" : "") + "></button>");
c.push("<table class='" + a + "eform_doodle_pageinfo_table' vertical-align='middle' ");
c.push(">");
c.push("<tr>");
c.push("<td id='re_doodle_pageinfo" + b + "' ");
c.push("onclick=\"m_reportHashMap['" + b + "'].mRe_pageCountLabelClick();return false;\"");
c.push(">");
c.push("</td></tr></table>");
c.push("<button id='re_doodlenext" + b + "' onclick=\"m_reportHashMap['" + b + "'].nextDoodlePage();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.next ? a + "eform_menu_dis_right_button" : a + "eform_menu_doodleright_button") + "' style='" + (null != this.next_button ? this.next_button : "") + "' " + (this.m_disControl.next ? "disabled" : "") + "></button>");
c.push("<button id='re_doodlepen" + b + "' onclick=\"m_reportHashMap['" + b + "'].penDoodle();return false;\" class='" + a + "eform_menu_button " + a + "eform_menu_doodlePen_button'></button>");
c.push("<button id='re_doodlepallet" + b + "' onclick=\"m_reportHashMap['" + b + "'].palletDoodle();return false;\" class='" + a + "eform_menu_button " + a + "eform_menu_doodlePallet_button'></button>");
c.push("<button id='re_doodleeraser" + b + "' onclick=\"m_reportHashMap['" + b + "'].eraserDoodle();return false;\" class='" + a + "eform_menu_button " + a + "eform_menu_doodleEraser_button'></button>");
c.push("<button id='re_doodleeraserall" + b + "' onclick=\"m_reportHashMap['" + b + "'].eraserAllDoodle();return false;\" class='" + a + "eform_menu_button " + a + "eform_menu_doodleEraserAll_button'></button>");
c.push("<button id='re_doodleclose" + b + "' onclick=\"m_reportHashMap['" + b + "'].closeDoodle();return false;\" class='" + a + "eform_menu_button " + (this.m_disControl.close ? a + "eform_menu_dis_doodleClose_button" : a + "eform_menu_doodleClose_button") + "' style='" + (null != this.close_button ? this.close_button : "") + "' " + (this.m_disControl.close ? "disabled" : "") + "></button>");
c.push("</nobr></div>");
c.push("</td></tr></table>");
c.push("</div>");
c.push("<div id='re_paintDiv" + b + "' name='CLIP_REPORT_DIV' class='" + a + "eform_paint_div' style='" + ((this.m_isMenu) ? "" : "top:0px;") + (null != this.paintDiv ? this.paintDiv : "") + "' onscroll=\"m_reportHashMap['" + b + "'].pageScrollEvent(event)\" ");
if (is_firefox) {
c.push("onwheel=\"m_reportHashMap['" + b + "'].pageMousewheelEvent(event)\">");
} else {
c.push("onmousewheel=\"m_reportHashMap['" + b + "'].pageMousewheelEvent(event)\">");
}
c.push("</div>");
}
;
Report.prototype.getEFormSaveData = function(a) {
a = null == a ? true : a;
var b = {
uid: null,
data: null
};
b.uid = this.m_uid;
b.data = this.eFormData;
if (a) {
return Base64.encode(JSON.stringify(b));
}
return JSON.stringify(b);
}
;
Report.prototype.getEFormTemporaryData = function(a) {
a = null == a ? true : a;
this.EF_DoodlePageSave();
var b = {
doodleInfo: null,
data: null
};
b.doodleInfo = this.eFormDoodleOption.pagePathSave;
b.data = this.eFormData;
if (a) {
return Base64.encode(JSON.stringify(b));
}
return JSON.stringify(b);
}
;
Report.prototype.setEFormTemporaryData = function(c, a) {
a = null == a ? true : a;
var b = null;
if (a) {
var b = Base64.decode(c);
} else {
var b = c;
}
if (null != b) {
var d = JSON.parse(b);
if (null != d) {
this.eFormTempData = d;
d = null;
}
}
}
;
Report.prototype.setEFormAppendData = function(d, a) {
a = null == a ? true : a;
var b = null;
if (a) {
var b = Base64.decode(d);
} else {
var b = d;
}
if (null != b) {
var c = JSON.parse(b);
if (null != c) {
this.eFormAppendData = c;
c = null;
}
}
}
;
Report.prototype.validationEFormData = function(b) {
for (var a in b) {
if (null == this.eFormTempData.data[a]) {
this.eFormData = b;
this.debugMeg("report log :: 임시저장의 데이터가 리포트폼과 맞지 않습니다.");
return;
}
}
this.eFormData = this.eFormTempData.data;
this.eFormDoodleOption.pagePathSave = this.eFormTempData.doodleInfo;
this.eFormTempData = null;
}
;
Report.prototype.appendEFormData = function() {
if (null != this.eFormAppendData) {
for (var b in this.eFormData) {
var c = this.eFormAppendData.data[b];
if (null != c) {
var a = this.eFormData[b].pageNumber;
c.pageNumber = a;
this.eFormData[b] = c;
}
}
this.eFormAppendData = null;
}
}
;
Report.prototype.getEFormData = function() {
var c = {};
for (var b in this.eFormData) {
var a = this.eFormData[b];
if (c[a.id] == null) {
c[a.id] = {
data: new Array()
};
}
if (a.type == "sign" || a.type == "image") {
c[a.id].data.push(a.image);
} else {
if (a.type == "input") {
c[a.id].data.push(a.value);
} else {
if (a.type == "checkbox" || a.type == "radiobox") {
if (a.checked == "true") {
c[a.id].data.push(a.value);
}
}
}
}
}
return c;
}
;
Report.prototype.EFormPrint = function() {
if (this.m_isEndReport) {
this.eForm_isNecessary.check = false;
if (this.RequiredCheckControl()) {
if (this.eForm_isNecessary.is_start) {
this.eForm_isNecessary.check = true;
}
this.eFormSubmitSave("print");
this.printWindowView();
}
}
}
;
Report.prototype.EFormSave = function() {
if (this.m_isEndReport) {
this.eForm_isNecessary.check = false;
if (this.RequiredCheckControl()) {
if (this.eForm_isNecessary.is_start) {
this.eForm_isNecessary.check = true;
}
if (this.m_buttonEvent.startSaveButton != null) {
var a = this.m_buttonEvent.startSaveButton();
if (a != true) {
return;
}
}
this.eFormSubmitSave("save");
}
} else {
mRe_ReportEventHandler(10);
}
}
;
Report.prototype.eformDoodlePosition = function(d, c, f) {
var a = {
x: 0,
y: 0
};
var e = null;
if (d == 0) {
if (is_android && !is_samsung_browser) {
e = $(c).offsetCustom();
} else {
e = $(c).offset();
}
this.eFormDoodleOption.tos = e;
} else {
e = this.eFormDoodleOption.tos;
}
var g = this.eFormDoodleOption.zoomIn;
if (is_smartphone) {
if (is_PosiFix) {
a.x = ((e.left * -1 * g) + f.touches[0].clientX) / g;
a.y = ((e.top * -1 * g) + f.touches[0].clientY) / g;
} else {
a.x = ((e.left * -1 * g) + f.touches[0].pageX) / g;
a.y = ((e.top * -1 * g) + f.touches[0].pageY) / g;
}
} else {
var b = g;
if (is_edge || is_firefox || is_ie) {
b = 1;
}
if (is_PosiFix) {
a.x = ((e.left * -1 * b) + f.clientX) / g;
a.y = ((e.top * -1 * b) + f.clientY) / g;
} else {
a.x = ((e.left * -1 * b) + f.pageX) / g;
a.y = ((e.top * -1 * b) + f.pageY) / g;
}
}
return a;
}
;
Report.prototype.closeDoodle = function() {
this.removePalletDoodle();
this.EF_DoodlePageSave();
this.eFormDoodleOption.is_Ds = false;
this.menuDiv.style.display = "";
this.doodleDiv.style.display = "none";
var a = document.getElementById(this.m_uid + "doodle");
a.style.zIndex = "";
}
;
Report.prototype.previousDoodlePage = function() {
if (!this.eFormDoodleOption.is_Ds) {
return;
}
this.removePalletDoodle();
this.EF_DoodlePageSave();
this.debugMeg("report log :: 이전 페이지로 이동 합니다.", true);
if (this.m_isButtonLock == false) {
this.selectPage((this.beforePageIndex - 1));
}
}
;
Report.prototype.nextDoodlePage = function() {
if (!this.eFormDoodleOption.is_Ds) {
return;
}
this.removePalletDoodle();
this.EF_DoodlePageSave();
this.debugMeg("report log :: 다음 페이지로 이동 합니다.", true);
if (this.m_isButtonLock == false) {
this.selectPage((this.beforePageIndex + 1));
}
}
;
Report.prototype.setIsPreviewImg = function(a) {
this.m_isPreviewImg = a;
}
;
Report.prototype.setSignMoveCount = function(a) {
this.m_signMoveCount = a;
}
;
Report.prototype.pageMove = function(a) {
if (isNaN(a) || !this.m_isEndReport) {
return;
}
a--;
if (a < 0 || this.m_pageCount <= a || this.beforePageIndex == a) {
return;
}
if (this.eFormDoodleOption.is_Ds) {
this.removePalletDoodle();
this.EF_DoodlePageSave();
}
this.selectPage(a);
}
;
Report.prototype.EF_DoodlePageSave = function() {
var a = document.getElementById(this.m_uid + "doodle");
var b = a.firstChild;
var d = b.childNodes.length;
var e = new Array();
for (var c = 0; c < d; c++) {
e[c] = {};
e[c].stroke_width = b.childNodes[c].getAttributeNS(null, "stroke-width");
e[c].stroke = b.childNodes[c].getAttributeNS(null, "stroke");
e[c].stroke_opacity = b.childNodes[c].getAttributeNS(null, "stroke-opacity");
e[c].d = b.childNodes[c].getAttributeNS(null, "d");
}
this.eFormDoodleOption.pagePathSave[this.beforePageIndex] = e;
}
;
Report.prototype.EF_setPathPage = function() {
var b = document.getElementById(this.m_uid + "doodle");
var c = b.firstChild;
if (0 == c.childNodes.length) {
var a = this;
var g = this.eFormDoodleOption.pagePathSave[this.beforePageIndex];
if (null != g) {
var e = g.length;
for (var d = 0; d < e; d++) {
var f = document.createElementNS("http://www.w3.org/2000/svg", "path");
f.setAttributeNS(null, "style", "-webkit-tap-highlight-color: rgba(0, 0, 0, 0);");
f.setAttributeNS(null, "stroke-width", g[d].stroke_width);
f.setAttributeNS(null, "fill", "none");
f.setAttributeNS(null, "stroke", g[d].stroke);
f.setAttributeNS(null, "stroke-opacity", g[d].stroke_opacity);
f.setAttributeNS(null, "d", g[d].d);
f.onclick = function() {
if (a.eFormDoodleOption.is_eraser) {
c.removeChild(this);
}
}
;
c.appendChild(f);
}
}
}
}
;
Report.prototype.EFormDoodle = function() {
this.eFormDoodleOption.is_Ds = true;
var f = this.beforePageIndex;
var e = document.getElementById("re_doodle_pageinfo" + this.m_uid);
if (null != e) {
e.innerHTML = (f + 1) + this.m_TPC.before + this.m_pageCount + this.m_TPC.after;
}
this.menuDiv.style.display = "none";
this.doodleDiv.style.display = "";
if (this.eFormDoodleOption.is_eraser) {
this.eraserDoodle();
} else {
this.penDoodle();
}
var b = document.getElementById(this.m_uid + "doodle");
b.style.zIndex = "300";
var c = b.firstChild;
this.EF_setPathPage();
var a = this;
var d = null;
c.onmousedown = function(h) {
if (a.eFormDoodleOption.is_eraser) {
return;
}
var g = a.eFormDoodleOption.pens;
var i = a.eformDoodlePosition(0, this, h);
path = document.createElementNS("http://www.w3.org/2000/svg", "path");
path.setAttributeNS(null, "style", "-webkit-tap-highlight-color: rgba(0, 0, 0, 0);");
path.setAttributeNS(null, "stroke-width", g.width);
path.setAttributeNS(null, "fill", "none");
path.setAttributeNS(null, "stroke", g.color);
path.setAttributeNS(null, "stroke-opacity", g.op);
d = new Array();
d[0] = "M" + i.x + "," + i.y;
setPath(path, d);
c.appendChild(path);
path.onclick = function() {
if (a.eFormDoodleOption.is_eraser) {
c.removeChild(this);
}
}
;
}
;
c.onmousemove = function(g) {
if (a.eFormDoodleOption.is_eraser) {
return;
}
if (!g.which && g.button) {
if (g.button & 1) {
evnet.which = 1;
}
}
if (g.which == 1) {
if (null != d) {
var i = a.eformDoodlePosition(1, this, g);
var h = d.length;
if (g.shiftKey) {
d[h] = "H" + i.x;
} else {
d[h] = "L" + i.x + "," + i.y;
}
setPath(path, d);
}
}
}
;
c.onmouseup = function(g) {
if (a.eFormDoodleOption.is_eraser) {
return;
}
path = null;
d = null;
}
;
c.ontouchstart = function(h) {
if (h.touches.length == 1) {
if (a.eFormDoodleOption.is_eraser) {
return;
}
var g = a.eFormDoodleOption.pens;
var i = a.eformDoodlePosition(0, this, h);
path = document.createElementNS("http://www.w3.org/2000/svg", "path");
path.setAttributeNS(null, "style", "-webkit-tap-highlight-color: rgba(0, 0, 0, 0);");
path.setAttributeNS(null, "stroke-width", g.width);
path.setAttributeNS(null, "fill", "none");
path.setAttributeNS(null, "stroke", g.color);
path.setAttributeNS(null, "stroke-opacity", g.op);
d = new Array();
d[0] = "M" + i.x + "," + i.y;
setPath(path, d);
c.appendChild(path);
path.onclick = function() {
if (a.eFormDoodleOption.is_eraser) {
c.removeChild(this);
}
}
;
}
}
;
c.ontouchmove = function(g) {
if (null != d && (g.touches.length < 2)) {
if (a.eFormDoodleOption.is_eraser) {
return;
}
g.preventDefault();
var i = a.eformDoodlePosition(1, this, g);
var h = d.length;
d[h] = "L" + i.x + "," + i.y;
setPath(path, d);
}
}
;
c.ontouchend = function(g) {
if (a.eFormDoodleOption.is_eraser) {
return;
}
path = null;
d = null;
}
;
}
;
Report.prototype.penDoodle = function() {
if (!this.eFormDoodleOption.is_Ds) {
return;
}
this.removePalletDoodle();
this.eFormDoodleOption.is_eraser = false;
var a = document.getElementById("re_doodlepen" + this.m_uid);
var b = document.getElementById("re_doodleeraser" + this.m_uid);
if (null != b) {
b.style.border = "";
}
if (null != a) {
a.style.border = "2px solid rgba(33, 150, 243, 0.8)";
a.focus();
}
}
;
Report.prototype.palletDoodle = function() {
if (!this.eFormDoodleOption.is_Ds) {
return;
}
var c = document.getElementById("eformPallet" + this.m_uid);
if (null != c) {
return;
}
mRe_pallet = this;
var c = document.createElement("div");
c.id = "eformPallet" + this.m_uid;
if (is_smartphone) {
c.className = "m_eform_pallet_background";
} else {
c.className = "eform_pallet_background";
}
var a = document.createElement("div");
a.className = "eform_pallet_OP_background";
c.appendChild(a);
var b = this.paintDiv.offsetHeight;
if (null != b) {
if (320 < b) {
this.palletDoodleHeight(c);
} else {
this.palletDoodleWidth(c);
}
}
this.targetDiv.appendChild(c);
}
;
Report.prototype.removePalletDoodle = function() {
var a = document.getElementById("eformPallet" + this.m_uid);
if (null != a) {
this.targetDiv.removeChild(a);
mRe_pallet = null;
}
}
;
Report.prototype.eraserDoodle = function() {
if (!this.eFormDoodleOption.is_Ds) {
return;
}
this.removePalletDoodle();
this.eFormDoodleOption.is_eraser = true;
var a = document.getElementById("re_doodlepen" + this.m_uid);
var b = document.getElementById("re_doodleeraser" + this.m_uid);
if (null != a) {
a.style.border = "";
}
if (null != b) {
b.style.border = "2px solid rgba(33, 150, 243, 0.8)";
b.focus();
}
}
;
Report.prototype.eraserAllDoodle = function() {
if (!this.eFormDoodleOption.is_Ds) {
return;
}
var a = document.getElementById(this.m_uid + "doodle");
var b = a.firstChild;
if (0 != b.childNodes.length) {
while (b.firstChild) {
b.removeChild(b.firstChild);
}
}
this.penDoodle();
}
;
Report.prototype.eFormSubmitSave = function(g) {
var c = "ClipID=R31";
c += "&uid=" + this.m_uid;
c += "&data=" + encodeURIComponent(Base64.encode(JSON.stringify(this.eFormData))) + "&";
c = mRe_onBeforeSend(c);
var f = this.servletPath;
this.debugMeg("report log :: eform 작성한 내용을 저장하기위해 서버접속 시도합니다 >>>> " + f);
if (this.m_isCrossDomain) {
var b = this;
if (window.XDomainRequest) {
var a = new XDomainRequest();
var d = f + "?" + c;
if (-1 != f.indexOf("?")) {
d = f + "&" + c;
}
if (a) {
a.onload = function() {
eFormResultText(mRe_onAfterSend(a.responseText), g);
}
;
a.onerror = function() {
b.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. ");
mRe_ReportEventHandler(40);
b.endDebugMeg(false);
}
;
a.open("GET", d);
a.send();
}
} else {
$.ajax({
type: "POST",
url: f,
crossDomain: true,
data: c,
success: function(h) {
eFormResultText(mRe_onAfterSend(h), g);
},
error: function(h) {
b.debugMeg("report log :: 서버 통신 오류 발생 >>> " + h);
mRe_ReportEventHandler(40);
b.endDebugMeg(false);
}
});
}
} else {
var b = this;
var e = new HttpClient();
e.send(f, c, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
eFormResultText(mRe_onAfterSend(this.responseText), g);
} else {
b.paintDiv.innerHTML = b.m_languageMap.link_error;
b.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status);
mRe_ReportEventHandler(40);
b.endDebugMeg(false);
throw new Error(this.status);
}
}
});
}
}
;
Report.prototype.RequiredCheckMessage = function() {
var c = new Array();
for (var b in this.eFormData) {
var a = this.eFormData[b];
if (a.is_nc) {
if (a.disable || !a.visible) {
continue;
}
c.push(a.necessaryMessage);
}
}
return EFormNecessaryCheckMessage(c);
}
;
Report.prototype.RequiredCheckControl = function() {
var e = this.eFormAllIndexControlList.length;
for (var c = 0; c < e; c++) {
var b = this.eFormAllIndexControlList[c];
var a = this.eFormData[b];
if (null == a) {
continue;
} else {
if (null == a.disable || null == a.visible) {
continue;
} else {
if (a.disable || !a.visible) {
continue;
}
}
}
if (a.is_nc) {
this.debugMeg("report log :: 필수항목이 모두 체크되지 않았습니다. 서버에 데이터 업데이트를 중지합니다.");
this.eForm_isNecessary.check = true;
if (this.RequiredCheckMessage()) {
this.m_isNecessaryInfo = b;
if (null != a.pageNumber) {
if (this.beforePageIndex == a.pageNumber) {
this.resetEFormPage(a.pageNumber);
} else {
this.selectPage(a.pageNumber);
}
} else {
for (var d = 0; d < this.eForm_isNecessary.pageList.length; d++) {
if (null == this.eForm_isNecessary.pageList[d]) {
this.selectPage(d);
break;
}
}
}
}
return false;
}
}
return true;
}
;
Report.prototype.getNecessaryCheckPage = function(h) {
var g = true;
var e = new Array();
var f = this.eFormAllIndexControlList.length;
var b = true;
for (var d = 0; d < f; d++) {
var c = this.eFormAllIndexControlList[d];
var a = this.eFormData[c];
if (null == a) {
continue;
} else {
if (null == a.disable || null == a.visible) {
continue;
} else {
if (a.disable || !a.visible) {
continue;
}
}
}
if (a.is_nc) {
this.eForm_isNecessary.check = true;
if (null != a.pageNumber) {
if (this.beforePageIndex == a.pageNumber) {
g = false;
e.push(a.necessaryMessage);
if (b) {
this.m_isNecessaryInfo = c;
b = false;
}
}
}
}
}
if (!g) {
if (h) {
if (EFormNecessaryCheckMessage(e)) {
this.resetEFormPage(this.beforePageIndex);
}
} else {
this.resetEFormPage(this.beforePageIndex);
}
}
return g;
}
;
Report.prototype.getNecessaryCheck = function() {
var e = this.eFormAllIndexControlList.length;
for (var c = 0; c < e; c++) {
var b = this.eFormAllIndexControlList[c];
var a = this.eFormData[b];
if (null == a) {
continue;
} else {
if (null == a.disable || null == a.visible) {
continue;
} else {
if (a.disable || !a.visible) {
continue;
}
}
}
if (a.is_nc) {
this.eForm_isNecessary.check = true;
this.m_isNecessaryInfo = b;
if (null != a.pageNumber) {
if (this.beforePageIndex == a.pageNumber) {
this.resetEFormPage(a.pageNumber);
} else {
this.selectPage(a.pageNumber);
}
} else {
for (var d = 0; d < this.eForm_isNecessary.pageList.length; d++) {
if (null == this.eForm_isNecessary.pageList[d]) {
this.selectPage(d);
break;
}
}
}
return false;
}
}
return true;
}
;
Report.prototype.findEFormControls = function(a) {
if (this.eForm_isNecessary.pageList == null) {
this.eForm_isNecessary.pageList = new Array(this.m_pageCount);
}
this.eForm_isNecessary.pageList[this.beforePageIndex] = true;
for (var b = 0; b < a.length; b++) {
controls = this.eFormControlList[a[b]];
switch (controls.getType()) {
case "image":
controls.eventHandlerImage();
break;
case "input":
controls.eventHandlerInput();
break;
case "sign":
controls.eventHandlerSign();
break;
case "checkbox":
controls.eventHandlerInputCheckbox();
break;
case "radiobox":
controls.eventHandlerInputRadiobox();
break;
}
}
}
;
Report.prototype.eformControlReSet = function() {
this.m_IO_HE = null;
for (var a in this.eFormControlList) {
var b = this.eFormControlList[a];
b.deleteDOM();
}
}
;
Report.prototype.defaultControlSet = function() {
this.eFormControlList = new Object();
this.eFormControlGroupList = new Object();
this.eFormIndexControlList = new Array();
this.eFormAllIndexControlList = new Array();
var i = new Array();
var e = new Array();
for (var f in this.eFormData) {
var g = this.eFormData[f];
var d = null;
if (null != g.inputOrder) {
i[(g.inputOrder - 1)] = f;
} else {
e.push(f);
}
switch (g.type) {
case "radiobox":
d = new EFormRadiobox();
d.init(f, g, this);
if (null == this.eFormRadioChecked[g.id]) {
if (g.checked == "true") {
g.is_nc = false;
for (var c in this.eFormData) {
var a = this.eFormData[c];
if (g.id == a.id && f != c) {
a.checked = "false";
a.is_nc = false;
}
}
this.eFormRadioChecked[g.id] = f;
}
if (null == g.is_nc) {
if (g.isNecessaryCheck == "true") {
g.is_nc = true;
} else {
g.is_nc = false;
}
}
}
break;
case "checkbox":
d = new EFormCheckbox();
d.init(f, g, this);
g.is_nc = false;
if (g.isNecessaryCheck == "true") {
if (g.checked == "false") {
if (g.requiredCheckInGroup) {
var b = true;
for (var c in this.eFormData) {
var a = this.eFormData[c];
if (g.id == a.id && f != c) {
if (a.checked == "true") {
b = false;
break;
}
}
}
g.is_nc = b;
} else {
g.is_nc = true;
}
}
}
break;
case "input":
d = new EFormInput();
d.init(f, g, this);
g.is_nc = false;
if (g.isNecessaryCheck == "true" && ClipStrTrim(g.value) == "") {
g.is_nc = true;
}
break;
case "sign":
d = new EFormSign();
d.init(f, g, this);
g.is_nc = false;
if (g.isNecessaryCheck == "true" && g.image == "") {
g.is_nc = true;
}
break;
case "image":
d = new EFormImage();
d.init(f, g, this);
g.is_nc = false;
if (g.isNecessaryCheck == "true" && g.image == "") {
g.is_nc = true;
}
break;
}
this.eFormControlList[f] = d;
var h = this.eFormControlGroupList[g.id];
if (null == h) {
h = new EFormGroup();
h.init(g.id, this);
h.appendControl(d);
this.eFormControlGroupList[g.id] = h;
} else {
h.appendControl(d);
}
d.setGroup(h);
}
this.eFormAllIndexControlList = i.concat(e);
i = null;
e = null;
}
;
Report.prototype.defaultTOCSet = function(b) {
if (null == b) {
this.eFormTOCList = new Array();
return;
}
this.eFormTOCList = b;
var c = this.eFormTOCList.length;
for (var a = 0; a < c; a++) {
var d = this.eFormTOCList[a];
d.title = Base64.decode(d.title);
}
b = null;
}
;
Report.prototype.resetEFormPage = function(a) {
this.eformControlReSet();
var c = new Array();
for (var b in this.eFormControlList) {
var d = this.eFormControlList[b];
if (a == d.controlData.pageNumber) {
c.push(b);
}
}
this.findEFormControls(c);
this.focusInputOrder();
this.necessaryFocus();
c = null;
}
;
Report.prototype.sendEFormData = function(a) {
if (this.m_isSlidePage && null != this.m_tempPaintDiv) {
this.slideImageView(a);
this.m_tempPaintDiv.style.overflowX = "hidden";
this.m_tempPaintDiv.style.overflowY = "hidden";
var c = $(this.m_tempPaintDiv).attr("next");
var b = this;
if ("right" == c) {
$(this.m_tempPaintDiv).animate({
left: "100%",
width: "100%"
}, 700, function() {
try {
b.targetDiv.firstChild.removeChild(this);
b.m_tempPaintDiv = null;
} catch (d) {}
});
} else {
$(this.m_tempPaintDiv).animate({
left: "-100%",
width: "100%"
}, 700, function() {
try {
b.targetDiv.firstChild.removeChild(this);
b.m_tempPaintDiv = null;
} catch (d) {}
});
}
$(this.paintDiv).animate({
left: "0%",
width: "100%",
opacity: 1
}, 700, function() {
b.createEditableProgress();
b.sendEFormPageData(a);
});
} else {
this.sendEFormPageData(a);
}
}
;
Report.prototype.sendEFormPageData = function(c) {
var a = this.is_eFormData;
var i = this.m_isAccessibility;
var h = {
isData: a,
pageNumber: c,
isAccessibility: i
};
var j = "ClipID=R30&uid=" + this.m_uid + "&option=" + JSON.stringify(h);
j = mRe_onBeforeSend(j);
var f = this.servletPath;
this.debugMeg("report log :: eform 화면을 가져오는 통신을 시도합니다 >>>> " + f);
if (this.m_isCrossDomain) {
var g = this;
if (window.XDomainRequest) {
var e = new XDomainRequest();
var b = f + "?" + j;
if (-1 != f.indexOf("?")) {
b = f + "&" + j;
}
if (e) {
e.onload = function() {
paintEFormReportText(mRe_onAfterSend(e.responseText));
}
;
e.onerror = function() {
g.debugMeg("report log :: IE8 크로스도메인 오류 발생 .. ");
mRe_ReportEventHandler(40);
g.endDebugMeg(false);
}
;
e.open("GET", b);
e.send();
}
} else {
$.ajax({
type: "POST",
url: f,
crossDomain: true,
data: j,
success: function(k) {
paintEFormReportText(mRe_onAfterSend(k));
},
error: function(k) {
g.debugMeg("report log :: 서버 통신 오류 발생 >>> " + k);
mRe_ReportEventHandler(40);
g.endDebugMeg(false);
}
});
}
} else {
var g = this;
var d = new HttpClient();
d.send(f, j, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
paintEFormReportText(mRe_onAfterSend(this.responseText));
} else {
g.paintDiv.innerHTML = g.m_languageMap.link_error;
g.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status);
mRe_ReportEventHandler(40);
g.endDebugMeg(false);
g.m_isButtonLock = false;
throw new Error(this.status);
}
}
});
}
}
;
Report.prototype.EFormDisabled = function(b) {
this.m_eformDisabled = b;
if (null != this.eFormControlList) {
for (var a in this.eFormControlList) {
var c = this.eFormControlList[a];
if (null != c) {
c.setDisabled(c.getDisabled());
}
}
}
}
;
Report.prototype.setEFormMobileSwipeDisabled = function(a) {
this.swipeOption.isDisabled = a;
}
;
Report.prototype.setEFormMobileDoubleTouchDisabled = function(a) {
this.tripleEvent.isDisabled = a;
}
;
Report.prototype.setEFormMobilePageMoveButtonDisabled = function(a) {
this.m_PageMove.ButtonDisabled = a;
this.swipeOption.isDisabled = true;
this.tripleEvent.isDisabled = true;
}
;
Report.prototype.setEndPageMoveEvent = function(a) {
this.m_isEFormPageMoveEvent = a;
}
;
Report.prototype.setNecessaryEnabled = function(a) {
this.eForm_isNecessary.is_start = a;
}
;
Report.prototype.setTouchZoomInDisabled = function(a) {
this.m_twoTouchEvtDisabled = a;
}
;
Report.prototype.eFormGestureEvent = function() {
var a = this;
this.paintDiv.ontouchstart = function(c) {
if (c.touches.length == 1) {
if (!a.eFormDoodleOption.is_Ds) {
var e = c.touches[0];
var b, d;
if (is_PosiFix) {
b = e.clientX;
d = e.clientY;
} else {
b = e.pageX;
d = e.pageY;
}
if (!a.m_PageMove.ButtonDisabled) {
a.createPageMoveButton("eform");
}
if (!a.swipeOption.isDisabled) {
a.swipeOption.is_start = true;
a.swipeOption.s_x = b;
a.swipeOption.s_y = d;
}
if (!a.tripleEvent.isDisabled) {
if (e.target.tagName != "DIV" || ((a.tripleEvent.x + 30) < b || (a.tripleEvent.x - 30) > b) || ((a.tripleEvent.y + 30) < d || (a.tripleEvent.y - 30) > d)) {
a.tripleEvent.cnt = 0;
a.tripleEvent.x = b;
a.tripleEvent.y = d;
} else {
if (a.tripleEvent.x == 0 && a.tripleEvent.y == 0) {
a.tripleEvent.x = b;
a.tripleEvent.y = d;
}
}
}
}
}
if (!a.m_twoTouchEvtDisabled) {
if (c.touches.length == 2) {
c.preventDefault();
a.swipeOption.is_start = false;
a.eFormDoodleOption.gesture.zoom = a.eFormDoodleOption.zoomIn;
a.eFormDoodleOption.gesture.isStart = true;
var b, d;
if (is_PosiFix) {
b = Math.abs(c.touches[0].clientX - c.touches[1].clientX);
d = Math.abs(c.touches[0].clientY - c.touches[1].clientY);
} else {
b = Math.abs(c.touches[0].pageX - c.touches[1].pageX);
d = Math.abs(c.touches[0].pageY - c.touches[1].pageY);
}
a.eFormDoodleOption.gesture.line = Math.sqrt((b * b) + (d * d));
a.eFormDoodleOption.gesture.pos = a.eformDoodlePosition(0, this, c);
a.paintDiv.lastChild.lastChild.style.display = "block";
a.paintDiv.firstChild.style.display = "none";
}
}
}
;
this.paintDiv.ontouchmove = function(f) {
if (f.touches.length == 1) {
if (!a.eFormDoodleOption.is_Ds) {
if (a.swipeOption.is_start && !a.swipeOption.isDisabled) {
var b, g;
if (is_PosiFix) {
b = f.touches[0].clientX;
g = f.touches[0].clientY;
} else {
b = f.touches[0].pageX;
g = f.touches[0].pageY;
}
if ((a.swipeOption.s_y - g) < 100 && (a.swipeOption.s_y - g) > -100) {
a.swipeOption.e_x = b;
a.swipeOption.e_y = g;
} else {
a.swipeOption.is_start = false;
}
}
}
}
if (!a.m_twoTouchEvtDisabled) {
if (f.touches.length == 2) {
a.swipeOption.is_start = false;
var d = a.eFormDoodleOption.gesture;
f.preventDefault();
var b, g;
if (is_PosiFix) {
b = Math.abs(f.touches[0].clientX - f.touches[1].clientX);
g = Math.abs(f.touches[0].clientY - f.touches[1].clientY);
} else {
b = Math.abs(f.touches[0].pageX - f.touches[1].pageX);
g = Math.abs(f.touches[0].pageY - f.touches[1].pageY);
}
var c = Math.sqrt((b * b) + (g * g));
var e = null;
if (c > d.line) {
e = d.zoom * (c / d.line);
} else {
e = d.zoom / (d.line / c);
}
if (e > 4) {
e = 4;
} else {
if (e < 0.75) {
e = 0.75;
}
}
d.zoomUp = e;
a.eFormZoom(e, 0);
}
}
}
;
this.paintDiv.ontouchend = function(e) {
if (!a.eFormDoodleOption.is_Ds) {
var g = e.changedTouches[0];
var b, f;
if (is_PosiFix) {
b = g.clientX;
f = g.clientY;
} else {
b = g.pageX;
f = g.pageY;
}
if (((a.tripleEvent.x + 30) > b && (a.tripleEvent.x - 30) < b) && ((a.tripleEvent.y + 30) > f && (a.tripleEvent.y - 30) < f)) {
a.tripleEvent.cnt++;
}
if (!a.tripleEvent.isDisabled && a.tripleEvent.cnt == 2) {
var d = a.paintDiv.offsetWidth / 2;
if (a.tripleEvent.x > d) {
a.nextPage();
} else {
a.previousPage();
}
a.tripleEvent.cnt = 0;
a.tripleEvent.x = 0;
a.tripleEvent.y = 0;
a.swipeOption.s_x = 0;
a.swipeOption.s_y = 0;
a.swipeOption.e_x = 0;
a.swipeOption.e_y = 0;
} else {
if (!a.swipeOption.isDisabled && a.swipeOption.is_start) {
a.swipeOption.is_start = false;
if (a.swipeOption.s_x - a.swipeOption.e_x > 140 && a.swipeOption.e_x != 0) {
a.swipeEForm(0);
}
if (a.swipeOption.s_x - a.swipeOption.e_x < -140 && a.swipeOption.e_x != 0) {
a.swipeEForm(1);
}
a.swipeOption.s_x = 0;
a.swipeOption.s_y = 0;
a.swipeOption.e_x = 0;
a.swipeOption.e_y = 0;
}
}
}
var c = a.eFormDoodleOption.gesture;
if (c.isStart) {
a.eFormZoom(c.zoomUp, 1);
a.paintDiv.lastChild.lastChild.style.display = "";
a.paintDiv.firstChild.style.display = "block";
}
c.isStart = false;
}
;
}
;
Report.prototype.swipeEForm = function(a) {
switch (a) {
case 0:
if ((this.paintDiv.clientWidth + this.paintDiv.scrollLeft + 3) >= this.paintDiv.scrollWidth) {
this.nextPage();
}
break;
case 1:
if (this.paintDiv.scrollLeft == 0) {
this.previousPage();
}
break;
}
}
;
Report.prototype.slideImageView = function(a) {
if (this.m_isPreviewImg) {
var b = "ClipID=R98&startPageNum=" + (a + 1) + "&endPageNum=" + (a + 1) + "&uid=" + this.m_uid;
var c = document.createElement("img");
c.className = "eform_zoomInOut";
c.style.display = "block";
if (null != this.paintDiv.firstChild) {
this.paintDiv.firstChild.appendChild(c);
}
b = mRe_onBeforeSend(b);
var f = this.servletPath;
var e = new HttpClient();
var d = e.send(f, b, false, null);
c.src = "data:image/png;base64," + d;
this.mRe_beforeImgData = d;
} else {
var c = document.createElement("img");
c.className = "eform_zoomInOut";
if (null != this.paintDiv.firstChild) {
this.paintDiv.firstChild.appendChild(c);
}
c.src = "data:image/png;base64," + mRe_whiteImg;
this.mRe_beforeImgData = mRe_whiteImg;
}
}
;
Report.prototype.zoomImageView = function() {
if (this.m_isPreviewImg) {
if (null == this.mRe_beforeImgData) {
var b = "ClipID=R98&startPageNum=" + (this.beforePageIndex + 1) + "&endPageNum=" + (this.beforePageIndex + 1) + "&uid=" + this.m_uid;
var c = document.createElement("img");
c.className = "eform_zoomInOut";
if (null != this.paintDiv.lastChild) {
this.paintDiv.lastChild.appendChild(c);
}
b = mRe_onBeforeSend(b);
var e = this.servletPath;
var d = new HttpClient();
var a = this;
d.send(e, b, true, function() {
if (4 == this.readyState) {
if (200 == this.status) {
var f = mRe_onAfterSend(this.responseText);
c.src = "data:image/png;base64," + f;
} else {
a.debugMeg("report log :: 서버 통신 오류 발생 >>> ajax 통신 상태 " + this.status);
mRe_ReportEventHandler(40);
a.endDebugMeg(false);
throw new Error(this.status);
}
}
});
} else {
var c = document.createElement("img");
c.className = "eform_zoomInOut";
if (null != this.paintDiv.lastChild) {
this.paintDiv.lastChild.appendChild(c);
}
c.src = "data:image/png;base64," + this.mRe_beforeImgData;
this.mRe_beforeImgData = null;
}
} else {
var c = document.createElement("img");
c.className = "eform_zoomInOut";
if (null != this.paintDiv.lastChild) {
this.paintDiv.lastChild.appendChild(c);
}
c.src = "data:image/png;base64," + mRe_whiteImg;
this.mRe_beforeImgData = null;
}
}
;
Report.prototype.eFormZoom = function(d, b) {
var e = d;
this.eFormDoodleOption.zoomIn = Re_zoom.rate = e;
var c = this.paintDiv.firstChild.firstChild;
if (null != c && b > 0) {
c.setAttribute("width", Number(this.pageWidth) * Number(e));
c.setAttribute("height", Number(this.pageHeight) * Number(e));
if (null != c.lastChild) {
c.lastChild.setAttribute("transform", "scale(" + e + ") translate(0,0)");
}
if (is_apple) {
if (1 < Number(e)) {
c.setAttribute("text-rendering", "geometricPrecision");
} else {
c.setAttribute("text-rendering", "auto");
}
}
}
var a = this.paintDiv.firstChild.nextSibling;
if (null != a && b >= 0) {
a.style.zoom = e;
}
}
;
Report.prototype.inputOrderFoucs = function(g) {
if (null == this.m_IO_HE) {
this.m_IO_HE = {};
this.m_IO_HE.main = document.getElementById(this.m_uid + "IndexOrder");
this.m_IO_HE.inner = document.getElementById(this.m_uid + "IO_in");
this.m_IO_HE.left = this.m_IO_HE.inner.firstChild;
this.m_IO_HE.right = this.m_IO_HE.inner.lastChild;
}
var b = g.getHE();
var i = this.m_IO_HE;
var f = this;
this.m_IO_HE.target = b;
var a = this.eFormDoodleOption.zoomIn;
if (null != b) {
b.style.zIndex = "101";
i.main.style.display = "block";
i.inner.style.display = "block";
var c = is_edge ? b.offsetTop / a : b.offsetTop;
var e = is_edge ? b.offsetLeft / a : b.offsetLeft;
var h = g.controlData.inputOrder;
i.left.style.display = "block";
i.right.style.display = "block";
var d = 2;
if (findPrevControl(this.eFormIndexControlList, h)) {
i.left.style.display = "none";
d--;
}
if (findNextControl(this.eFormIndexControlList, h)) {
i.right.style.display = "none";
d--;
}
if (d > 1 && 45 > b.offsetWidth) {
i.inner.style.left = (b.offsetLeft - 13) + "px";
i.inner.style.top = (c - 25) + "px";
i.inner.style.width = "1.2cm";
} else {
i.inner.style.left = b.style.left;
i.inner.style.top = (c - 25) + "px";
i.inner.style.width = b.style.width;
}
i.main.onclick = function() {
f.inputOrderBlur();
}
;
i.left.onclick = function(j) {
f.defaultFoucsOut(g);
f.nextInputOrder(h - 1, false);
if (j.stopPropagation) {
j.stopPropagation();
} else {
j.cancelBubble = true;
}
}
;
i.right.onclick = function(j) {
f.defaultFoucsOut(g);
f.nextInputOrder(h + 1, true);
if (j.stopPropagation) {
j.stopPropagation();
} else {
j.cancelBubble = true;
}
}
;
if (null != this.paintDiv) {
this.paintDiv.scrollTop = (c - 30) * a;
this.paintDiv.scrollLeft = (e - 10) * a;
}
}
}
;
Report.prototype.defaultFoucsOut = function(a) {
if ("sign" == a.getType() && a.isDOM) {
if (a.controlData.isDirectSign) {
var b = document.getElementById(this.m_uid + "okUBT");
if (null != b) {
b.click();
}
}
}
}
;
Report.prototype.defaultFoucsIn = function(a) {
a.getHE().focus();
if ("sign" == a.getType() && a.isDOM) {
if (a.controlData.isDirectSign) {
if (null != a.signElement) {
a.signElement.click();
}
}
}
}
;
Report.prototype.inputOrderBlur = function() {
if (null != this.m_IO_HE) {
this.m_IO_HE.target.style.zIndex = "";
this.m_IO_HE.main.style.display = "";
this.m_IO_HE.inner.style.display = "";
}
}
;
Report.prototype.focusInputOrder = function() {
if (null != this.eFormIndexInfo) {
this.nextInputOrder(this.eFormIndexInfo.inputOrder, this.eFormIndexInfo.isNext);
}
}
;
Report.prototype.nextInputOrder = function(a, c) {
var b = this.eFormIndexControlList[a];
if (null != b) {
if (!b.controlData.disable && b.controlData.visible && !b.controlData.indexOrderDisable) {
if (b.isDOM) {
this.eFormIndexInfo = null;
this.defaultFoucsIn(b);
} else {
this.eFormIndexInfo = {};
this.eFormIndexInfo.inputOrder = a;
this.eFormIndexInfo.isNext = c;
this.selectPage(b.controlData.pageNumber);
}
} else {
this.eFormIndexInfo = null;
if (c) {
this.nextInputOrder(a + 1, true);
} else {
this.nextInputOrder(a - 1, false);
}
}
}
}
;
Report.prototype.necessaryFocus = function() {
if (null != this.m_isNecessaryInfo) {
var b = this.eFormControlList[this.m_isNecessaryInfo];
var a = b.getHE();
if (null != a) {
a.focus();
}
}
this.m_isNecessaryInfo = null;
}
;
Report.prototype.m_dynamicScript = function(b) {
if (null != b) {
b = Base64.decode(b);
try {
this.dynamicScript = objectEFormCall("function(){if(this.m_debug.isDebug){debugger;}" + b + "}");
} catch (a) {
this.dynamicScript = null;
this.debugMeg("report log :: 리포트파일에 설정된 동적 속성 스크립에 문제가 있습니다. >> " + a.message);
mRe_ReportEventHandler(31);
}
}
}
;
function objectEFormCall(a) {
var b = (new Function("return (" + a + ")"))();
return b;
}
Report.prototype.resetDynamicScript = function() {
for (var a in this.eFormData) {
var b = this.eFormControlList[a];
switch (b.controlData.type) {
case "radiobox":
b.event.selectedEvent = null;
b.event.unSelectedEvent = null;
break;
case "checkbox":
b.event.checkedEvent = null;
b.event.unCheckedEvent = null;
break;
case "input":
b.event.focusEvent = null;
b.event.blurEvent = null;
break;
case "sign":
b.event.clickEvent = null;
b.event.okButtonEvent = null;
b.event.cencelButtonEvent = null;
break;
case "image":
b.event.clickEvent = null;
break;
}
}
}
;
function paintEFormReportText(h) {
if (0 == h.indexOf('"')) {
h = h.substring(1, h.length - 1);
}
var c = h.split("{clipreport_separator}");
var f = objectCall(ClipStrTrim(c[0]));
if (typeof f == "string") {
f = objectCall(f);
}
var a = m_reportHashMap[f.uid];
a.debugMeg("report log :: eform 리포트 페이지 서버 수신 완료...");
try {
if (f.status) {
a.debugMeg("report log :: eform 리포트 페이지 서버 수신 완료 메시지 >>> " + c[0]);
if (null != f.pageWidth) {
a.m_printPage.pageWidth = f.pageWidth;
a.m_printPage.pageHeight = f.pageHeight;
}
var b = false;
if (!a.is_eFormData) {
var g = objectCall(c[3]);
if (typeof g == "string") {
g = objectCall(g);
}
a.eFormCheckImage = g.checkImage;
a.eFormRadioImage = g.radioImage;
a.m_dynamicScript(g.dynamicScript);
if (null != a.eFormTempData) {
a.validationEFormData(g.data);
} else {
a.eFormData = g.data;
}
a.appendEFormData();
a.defaultControlSet();
a.defaultTOCSet(g.toc);
g = null;
b = true;
}
a.eformControlReSet();
a.debugMeg("report log :: eform 리포트 화면를 SVG로 표현!");
a.paintDiv.innerHTML = unescape(c[1]);
a.paintDiv.firstChild.firstChild.style.overflow = "hidden";
a.pageWidth = a.paintDiv.firstChild.firstChild.getAttribute("width");
a.pageHeight = a.paintDiv.firstChild.firstChild.getAttribute("height");
a.zoomImageView();
if (is_smartphone) {
if (b) {
a.zoomIn(a.zoomCombo);
} else {
a.eFormZoom(a.eFormDoodleOption.zoomIn, 1);
}
a.eFormGestureEvent();
} else {
a.zoomIn(a.zoomCombo);
}
a.setPaintDivEvent(a.paintDiv, f.uid);
a.m_isButtonLock = false;
var j = objectCall(c[2]);
if (typeof j == "string") {
j = objectCall(j);
}
a.findEFormControls(j);
if (a.eFormDoodleOption.is_Ds) {
a.EFormDoodle();
} else {
a.EF_setPathPage();
}
if (null == a.m_drilingTop) {
if ((is_smartphone && a.m_mobile.scrollTop) || (!is_smartphone && a.m_pcView.scrollTop) || a.m_scrollEv.isScrollPaging) {
a.paintDiv.scrollTop = 1;
}
} else {
a.paintDiv.scrollTop = a.m_drilingTop;
a.m_drilingTop = null;
}
if (!a.is_eFormData) {
if (null != a.dynamicScript) {
window.setTimeout(function() {
try {
a.dynamicScript();
} catch (k) {
a.resetDynamicScript();
a.debugMeg("report log :: 리포트파일에 설정된 동적 속성 스크립에 문제가 있습니다. >> " + k.message);
mRe_ReportEventHandler(31);
}
}, 0);
}
a.is_eFormData = true;
}
a.focusInputOrder();
a.necessaryFocus();
if (a.m_isEndReport && a.m_isEndReportEvent) {
if (a.m_endreportprogress.is_visible) {
a.m_endreportprogress.is_visible = false;
a.removeEndReportProgress();
}
mRe_ReportEventHandler(200);
if (a.m_isReportEndFunction != null) {
window.setTimeout(a.m_isReportEndFunction, 0);
}
a.m_isEndReportEvent = false;
a.debugMeg("report log :: eform 리포트 뷰어 종료!");
a.endDebugMeg(false);
} else {
if (!a.m_isEndReport) {
if (a.m_endreportprogress.is_visible) {
a.createEndReportProgress();
}
}
}
a.endDebugMeg(true);
if (!b) {
if (a.m_isEFormPageMoveEvent != null) {
a.m_isEFormPageMoveEvent();
}
}
} else {
a.debugMeg("report log :: eform 리포트 생성중 오류 발생(export) >>> 서버로그 확인 필요!");
a.debugMeg("report log :: eform 리포트 페이지 서버 수신 메시지 >>> " + c[0]);
var i = a.m_languageMap.report_error;
if (f.event == 12) {
a.debugMeg("report log :: EFORM 사용 권한이 없습니다 (라이센스)");
if (a.m_isViewer) {
i = a.m_languageMap.lic_error + ".!! (errorCode : LE0" + f.event + ")";
mRe_ReportEventHandler(12);
}
} else {
mRe_ReportEventHandler(30);
if (f.event == 60) {
i = a.m_languageMap.sesstion_error;
mRe_ReportEventHandler(60);
a.debugMeg("report log :: eform 리포트서버와의 세션 종료!");
}
}
a.paintDiv.innerHTML = i;
a.m_isButtonLock = false;
}
} catch (d) {
a.debugMeg("report log :: 서버에서 내려온 결과 메시지 >>> " + h);
a.debugMeg("report log :: 서버에서 내려온 메시지 오류 >>> " + d.message);
a.paintDiv.innerHTML = a.m_languageMap.report_error;
mRe_ReportEventHandler(30);
a.m_isButtonLock = false;
}
if (null != a.m_PageMove && is_smartphone) {
if (!a.m_PageMove.ButtonDisabled && null != a.m_PageMove.leftDOM) {
a.m_PageMove.eventKey = window.setTimeout(function() {
a.removePageMoveButton();
}, 2000);
}
}
if (a.m_pageMoveEvent.end != null) {
a.m_pageMoveEvent.end();
}
}
function eFormResultText(b, d) {
var a = objectCall(b);
if (typeof a == "string") {
a = objectCall(a);
}
if (null != a) {
var c = m_reportHashMap[a.uid];
if (null != c) {
if (a.status) {
c.debugMeg("report log :: 저장 성공!");
} else {
c.debugMeg("report log :: 서버에서 저장중 오류 발생 서버 로그 확인 필요!");
}
if ("save" == d && c.m_buttonEvent.endSaveButton != null) {
c.m_buttonEvent.endSaveButton();
}
}
}
mRe_ReportEventHandler(a.event);
}
function eFormFocusControl(a) {
a.className += " eform_control_focus";
}
function eFormBlurControl(a) {
var b = a.className;
b = b.replace("eform_control_focus", "");
a.className = b;
}
function setPath(a, b) {
a.setAttributeNS(null, "d", b.join(""));
}
function findPrevControl(c, a) {
var b = null;
for (; a > 1; a--) {
b = c[a];
if (!b.controlData.disable && b.controlData.visible) {
return false;
}
}
return true;
}
function findNextControl(c, a) {
var b = null;
a++;
for (; a < c.length; a++) {
b = c[a];
if (!b.controlData.disable && b.controlData.visible) {
return false;
}
}
return true;
}
Report.prototype.findControl = function(a) {
var c = this.findGroup(a);
if (null != c) {
var b = c.getControlList();
if (null != b && b.length > 0) {
c = b[0];
}
}
return c;
}
;
Report.prototype.findGroup = function(a) {
var b = this.eFormControlGroupList[a];
if (null == b) {
b = new EFormGroup();
b.init("", this);
}
return b;
}
;
Report.prototype.findGroupByName = function(b) {
var c = new EFormGroup();
c.init(b, this);
for (var a in this.eFormData) {
if (-1 != this.eFormData[a].id.indexOf(b)) {
c.appendControl(this.eFormControlList[a]);
}
}
return c;
}
;
Report.prototype.findGroupByControlType = function(d) {
var c = new EFormGroup();
c.init("", this);
for (var b in this.eFormData) {
var a = this.eFormData[b];
if (d == a.type) {
c.appendControl(this.eFormControlList[b]);
}
}
return c;
}
;
Report.prototype.findGroupByNameAndControlType = function(c, e) {
var d = new EFormGroup();
d.init(c, this);
for (var b in this.eFormData) {
var a = this.eFormData[b];
if (e == a.type && -1 != a.id.indexOf(c)) {
d.appendControl(this.eFormControlList[b]);
}
}
return d;
}
;
function EFormGroup() {
this.parent = null;
this.groupID = null;
this.controlList = null;
}
EFormGroup.prototype.init = function(a, b) {
this.parent = b;
this.groupID = a;
this.controlList = new Array();
}
;
EFormGroup.prototype.deleteMe = function() {
this.parent = null;
this.groupID = null;
this.controlList = null;
}
;
EFormGroup.prototype.appendControl = function(a) {
this.controlList.push(a);
}
;
EFormGroup.prototype.getGroupId = function() {
return this.groupID;
}
;
EFormGroup.prototype.setVisible = function(a) {
var c = this.controlList.length;
for (var b = 0; b < c; b++) {
var d = this.controlList[b];
d.setVisible(a);
}
}
;
EFormGroup.prototype.setDisabled = function(c) {
var b = this.controlList.length;
for (var a = 0; a < b; a++) {
var d = this.controlList[a];
d.setDisabled(c);
}
}
;
EFormGroup.prototype.getControlList = function() {
return this.controlList;
}
;
EFormGroup.prototype.getValueOfControl = function(c) {
var b = this.controlList.length;
for (var a = 0; a < b; a++) {
var d = this.controlList[a];
if (d.getValue() == c) {
return d;
}
}
return null;
}
;
EFormGroup.prototype.check = function() {
var b = this.controlList.length;
for (var a = 0; a < b; a++) {
var c = this.controlList[a];
if ("checkbox" == c.getType()) {
c.check();
}
}
}
;
EFormGroup.prototype.unCheck = function() {
var b = this.controlList.length;
for (var a = 0; a < b; a++) {
var c = this.controlList[a];
if ("checkbox" == c.getType()) {
c.unCheck();
}
}
}
;
EFormGroup.prototype.unSelect = function() {
var b = this.controlList.length;
for (var a = 0; a < b; a++) {
var c = this.controlList[a];
if ("radiobox" == c.getType()) {
c.controlData.checked = "false";
if ("true" == c.controlData.isNecessaryCheck) {
c.controlData.is_nc = true;
}
if (c.isDOM) {
c.checkElement_img.src = "data:image/png;base64," + mRe_blankImg;
}
c.eform.eFormRadioChecked[c.controlData.id] = null;
c.setDisabled(c.controlData.disable);
c.onUnSelected();
}
}
}
;
function EFormInput() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.group = null;
this.isDOM = false;
this.inputElement = null;
this.inputElement_div = null;
this.inputElement_td = null;
this.inputElement_GT = null;
this.event = {
focusEvent: null,
blurEvent: null,
requiredGuideEvent: null,
eventTarget: null
};
}
EFormInput.prototype.setGroup = function(a) {
this.group = a;
}
;
EFormInput.prototype.init = function(b, a, c) {
this.eform = c;
this.ctrlID = b;
this.controlData = a;
if (null != a.inputOrder) {
this.eform.eFormIndexControlList[a.inputOrder] = this;
}
if (null == a.maxLength) {
this.controlData.maxLength = 0;
}
if (null == a.indexOrderDisable) {
a.indexOrderDisable = false;
}
if (null == a.isNumber) {
a.isNumber = false;
}
if (null == a.isNoWrap) {
a.isNoWrap = false;
}
if (null == a.isGuideText) {
a.isGuideText = false;
}
}
;
EFormInput.prototype.deleteMe = function() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.event = null;
this.group = null;
this.deleteDOM();
}
;
EFormInput.prototype.deleteDOM = function() {
this.isDOM = false;
this.inputElement = null;
this.inputElement_div = null;
this.inputElement_td = null;
this.inputElement_GT = null;
}
;
EFormInput.prototype.getHE = function() {
if (this.isDOM) {
return this.inputElement;
}
return null;
}
;
EFormInput.prototype.eventHandlerInput = function() {
this.isDOM = true;
this.inputElement = document.getElementById(this.eform.m_uid + this.ctrlID);
this.inputElement_div = document.getElementById(this.eform.m_uid + this.ctrlID + "SPAN");
this.inputElement_td = document.getElementById(this.eform.m_uid + this.ctrlID + "TD");
if (this.controlData.isGuideText) {
this.inputElement_GT = document.getElementById(this.eform.m_uid + this.ctrlID + "GT");
}
if ("" != ClipStrTrim(this.controlData.value)) {
this.controlData.is_nc = false;
} else {
if ("" == ClipStrTrim(this.controlData.value) && this.eform.eForm_isNecessary.check && this.controlData.is_nc) {
this.inputElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
var b = this;
if (this.controlData.isNumber) {
var c = this.inputElement.parentElement;
var a = document.createElement("input");
a.type = "number";
a.id = this.inputElement.id;
a.className = this.inputElement.className;
a.tabIndex = this.inputElement.tabIndex;
a.style.cssText = this.inputElement.style.cssText;
c.insertBefore(a, this.inputElement);
c.removeChild(this.inputElement);
this.inputElement = a;
}
this.inputElement.value = this.controlData.value;
if (0 < this.controlData.maxLength) {
this.inputElement.maxLength = this.controlData.maxLength;
}
this.inputElement_td.innerText = this.controlData.value;
this.inputElement.onblur = function() {
b.blurControl(this);
b.onBlur();
}
;
this.inputElement.onfocus = function() {
b.focusControl();
b.onFocus();
}
;
this.checkKeyEvent();
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormInput.prototype.getType = function() {
return this.controlData.type;
}
;
EFormInput.prototype.getValue = function() {
return this.controlData.value;
}
;
EFormInput.prototype.setValue = function(a) {
if (this.controlData.value != a) {
this.controlData.value = a;
if (this.isDOM) {
this.inputElement.value = a;
this.inputElement_td.innerText = a;
this.inputElement.scrollTop = 0;
this.inputElement.style.overflowY = "hidden";
if ("" != ClipStrTrim(this.controlData.value)) {
this.controlData.is_nc = false;
if (this.eform.eForm_isNecessary.check) {
this.inputElement_div.className = "eF_Rect";
}
} else {
this.controlData.is_nc = true;
if (this.eform.eForm_isNecessary.check && "true" == this.controlData.isNecessaryCheck) {
this.inputElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
} else {
if ("" != ClipStrTrim(this.controlData.value)) {
this.controlData.is_nc = false;
} else {
this.controlData.is_nc = true;
}
}
}
}
;
EFormInput.prototype.getVisible = function() {
return this.controlData.visible;
}
;
EFormInput.prototype.setVisible = function(a) {
this.controlData.visible = a;
if (this.isDOM) {
if (a) {
this.inputElement.style.display = "";
this.inputElement_div.style.display = "";
this.inputElement_td.style.display = "";
} else {
this.inputElement.style.display = "none";
this.inputElement_div.style.display = "none";
this.inputElement_td.style.display = "none";
}
}
}
;
EFormInput.prototype.setUseNumberKeyPad = function(b) {
this.controlData.isNumber = b;
if (this.isDOM) {
var c = this;
if (b) {
if (this.inputElement.tagName.toLocaleLowerCase() == "textarea") {
var d = this.inputElement.parentElement;
var a = document.createElement("input");
a.type = "number";
a.id = this.inputElement.id;
a.className = this.inputElement.className;
a.tabIndex = this.inputElement.tabIndex;
a.style.cssText = this.inputElement.style.cssText;
d.insertBefore(a, this.inputElement);
d.removeChild(this.inputElement);
this.inputElement = a;
this.inputElement.value = this.controlData.value;
if (0 < this.controlData.maxLength) {
this.inputElement.maxLength = this.controlData.maxLength;
}
this.inputElement.onblur = function() {
c.setValue(this.value);
c.onBlur();
}
;
this.inputElement.onfocus = function() {
c.focusControl();
c.onFocus();
}
;
}
} else {
if (this.inputElement.tagName.toLocaleLowerCase() == "input") {
var d = this.inputElement.parentElement;
var a = document.createElement("textarea");
a.id = this.inputElement.id;
a.className = this.inputElement.className;
a.tabIndex = this.inputElement.tabIndex;
a.style.cssText = this.inputElement.style.cssText;
d.insertBefore(a, this.inputElement);
d.removeChild(this.inputElement);
this.inputElement = a;
this.inputElement.value = this.controlData.value;
if (0 < this.controlData.maxLength) {
this.inputElement.maxLength = this.controlData.maxLength;
}
this.inputElement.onblur = function() {
c.setValue(this.value);
c.onBlur();
}
;
this.inputElement.onfocus = function() {
c.focusControl();
c.onFocus();
}
;
}
}
}
this.checkKeyEvent();
}
;
EFormInput.prototype.setUseNoWrap = function(a) {
this.controlData.isNoWrap = a;
this.checkKeyEvent();
}
;
EFormInput.prototype.checkKeyEvent = function() {
if (this.isDOM) {
if (this.controlData.isNoWrap || this.controlData.isNumber) {
this.inputElement.onkeypress = function(a) {
if (a.keyCode == 13) {
this.blur();
return false;
}
return true;
}
;
} else {
this.inputElement.onkeypress = null;
}
}
}
;
EFormInput.prototype.getDisabled = function() {
return this.controlData.disable;
}
;
EFormInput.prototype.setDisabled = function(a) {
this.controlData.disable = a;
if (this.isDOM) {
if (a || this.eform.m_eformDisabled) {
this.inputElement.disabled = true;
this.inputElement_div.className = "eF_Rect";
} else {
this.inputElement.disabled = false;
if (this.eform.eForm_isNecessary.check && this.controlData.isNecessaryCheck == "true" && this.controlData.is_nc) {
this.inputElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
}
}
;
EFormInput.prototype.setNecessaryCheck = function(a) {
if (a) {
this.controlData.isNecessaryCheck = "true";
if ("" != this.controlData.value) {
this.controlData.is_nc = false;
if (this.isDOM) {
this.inputElement_div.className = "eF_Rect";
}
} else {
this.controlData.is_nc = true;
}
} else {
this.controlData.is_nc = false;
this.controlData.isNecessaryCheck = "false";
if (this.isDOM) {
this.inputElement_div.className = "eF_Rect";
}
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormInput.prototype.getIndexOrderDisabled = function() {
return this.controlData.indexOrderDisable;
}
;
EFormInput.prototype.setIndexOrderDisabled = function(a) {
this.controlData.indexOrderDisable = a;
}
;
EFormInput.prototype.setMaxLength = function(a) {
this.controlData.maxLength = a;
if (this.isDOM && 0 < a) {
this.inputElement.maxLength = a;
}
}
;
EFormInput.prototype.onRequiredGuideEvent = function(a) {
this.event.requiredGuideEvent = a;
}
;
EFormInput.prototype.onFocusEvent = function(a) {
this.event.focusEvent = a;
this.event.eventTarget = this;
}
;
EFormInput.prototype.onBlurEvent = function(a) {
this.event.blurEvent = a;
this.event.eventTarget = this;
}
;
EFormInput.prototype.onFocus = function() {
if (null != this.event.focusEvent) {
this.event.focusEvent();
}
}
;
EFormInput.prototype.blurControl = function(a) {
if (this.controlData.isGuideText) {
this.inputElement_GT.style.opacity = 0;
if (this.controlData.guideText == a.value) {
this.setValue(a.value);
} else {
this.setValue("");
a.value = "";
if (this.event.requiredGuideEvent != null) {
this.event.requiredGuideEvent();
}
}
} else {
this.setValue(a.value);
}
}
;
EFormInput.prototype.onBlur = function() {
if (null != this.event.blurEvent) {
this.event.blurEvent();
}
}
;
EFormInput.prototype.focusControl = function() {
if (this.controlData.isGuideText) {
this.inputElement_GT.style.opacity = 1;
}
if (null != this.controlData.inputOrder) {
this.eform.inputOrderFoucs(this);
} else {
this.eform.inputOrderBlur();
}
}
;
function EFormCheckbox() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.group = null;
this.isDOM = false;
this.checkElement = null;
this.checkElement_img = null;
this.checkElement_div = null;
this.checkElement_focusDiv = null;
this.event = {
checkedEvent: null,
unCheckedEvent: null,
eventTarget: null
};
}
EFormCheckbox.prototype.setGroup = function(a) {
this.group = a;
}
;
EFormCheckbox.prototype.init = function(b, a, c) {
this.eform = c;
this.ctrlID = b;
this.controlData = a;
if (null != a.inputOrder) {
this.eform.eFormIndexControlList[a.inputOrder] = this;
}
if (null == a.indexOrderDisable) {
a.indexOrderDisable = false;
}
}
;
EFormCheckbox.prototype.deleteMe = function() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.event = null;
this.group = null;
this.deleteDOM();
}
;
EFormCheckbox.prototype.deleteDOM = function() {
this.isDOM = false;
this.checkElement = null;
this.checkElement_img = null;
this.checkElement_div = null;
this.checkElement_focusDiv = null;
}
;
EFormCheckbox.prototype.getHE = function() {
if (this.isDOM) {
return this.checkElement;
}
return null;
}
;
EFormCheckbox.prototype.eventHandlerInputCheckbox = function() {
this.isDOM = true;
this.checkElement = document.getElementById(this.eform.m_uid + this.ctrlID);
this.checkElement_img = document.getElementById(this.eform.m_uid + this.ctrlID + "IMG");
this.checkElement_div = document.getElementById(this.eform.m_uid + this.ctrlID + "DIV");
this.checkElement_focusDiv = document.getElementById(this.eform.m_uid + this.ctrlID + "FOCUS");
if (null == this.controlData.isNValue && this.controlData.isNecessaryCheck == "true") {
this.controlData.isNValue = true;
if ("true" == this.controlData.checked) {
this.controlData.is_nc = false;
}
}
if (this.eform.eForm_isNecessary.check && this.controlData.is_nc) {
if ("true" != this.controlData.checked) {
this.checkElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
if ("true" == this.controlData.checked) {
if ("check" == this.controlData.imageType) {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormCheckImage;
} else {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormRadioImage;
}
} else {
this.checkElement_img.src = "data:image/png;base64," + mRe_blankImg;
}
var a = this;
this.checkElement.onmousedown = function(b) {
if ("true" == a.controlData.checked) {
a.unCheck();
} else {
a.check();
}
b.preventDefault();
this.focus();
}
;
if (null != this.checkElement_focusDiv) {
this.checkElement.onblur = function() {
a.checkElement_focusDiv.className = "eF_Rect";
}
;
this.checkElement.onfocus = function() {
a.focusControl();
}
;
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormCheckbox.prototype.getType = function() {
return this.controlData.type;
}
;
EFormCheckbox.prototype.unCheck = function() {
this.checkElement_img.src = "data:image/png;base64," + mRe_blankImg;
this.controlData.checked = "false";
if (this.controlData.isNValue) {
this.controlData.is_nc = true;
if (this.eform.eForm_isNecessary.check) {
this.checkElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
this.requiredUnCheckInGroup();
this.onUnChecked();
}
;
EFormCheckbox.prototype.requiredUnCheckInGroup = function() {
var b = false;
var e = new Object();
for (var d in this.eform.eFormData) {
var c = this.eform.eFormData[d];
if (this.controlData.id == c.id) {
if (c.checked == "true") {
b = true;
}
e[d] = c;
}
}
for (var a in e) {
var c = e[a];
if (c.requiredCheckInGroup) {
if (b) {
c.is_nc = false;
if (c.isNValue) {
var f = this.eform.eFormControlList[a];
if (f.isDOM) {
f.checkElement_div.className = "eF_Rect";
}
}
} else {
c.is_nc = true;
if (c.isNValue) {
if (this.eform.eForm_isNecessary.check) {
var f = this.eform.eFormControlList[a];
if (f.isDOM) {
f.checkElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
}
}
}
}
}
;
EFormCheckbox.prototype.check = function() {
if ("check" == this.controlData.imageType) {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormCheckImage;
} else {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormRadioImage;
}
this.controlData.checked = "true";
this.controlData.is_nc = false;
if (this.controlData.isNValue) {
this.checkElement_div.className = "eF_Rect";
}
this.requiredCheckInGroup();
this.onChecked();
}
;
EFormCheckbox.prototype.requiredCheckInGroup = function() {
for (var b in this.eform.eFormData) {
var a = this.eform.eFormData[b];
if (this.controlData.id == a.id && a.requiredCheckInGroup) {
a.is_nc = false;
if (a.isNValue) {
var c = this.eform.eFormControlList[b];
if (c.isDOM) {
c.checkElement_div.className = "eF_Rect";
}
}
}
}
}
;
EFormCheckbox.prototype.isChecked = function() {
return this.controlData.checked == "true";
}
;
EFormCheckbox.prototype.getValue = function() {
return this.controlData.value;
}
;
EFormCheckbox.prototype.getVisible = function() {
return this.controlData.visible;
}
;
EFormCheckbox.prototype.setVisible = function(a) {
this.controlData.visible = a;
if (this.isDOM) {
if (a) {
this.checkElement.style.display = "";
this.checkElement_img.style.display = "";
this.checkElement_div.style.display = "";
this.checkElement_focusDiv.style.display = "";
} else {
this.checkElement.style.display = "none";
this.checkElement_img.style.display = "none";
this.checkElement_div.style.display = "none";
this.checkElement_focusDiv.style.display = "none";
}
}
}
;
EFormCheckbox.prototype.getDisabled = function() {
return this.controlData.disable;
}
;
EFormCheckbox.prototype.setDisabled = function(a) {
this.controlData.disable = a;
if (this.isDOM) {
if (a || this.eform.m_eformDisabled) {
this.checkElement.disabled = true;
this.checkElement_div.className = "eF_Rect";
} else {
this.checkElement.disabled = false;
if (this.eform.eForm_isNecessary.check && this.controlData.isNecessaryCheck == "true" && this.controlData.is_nc) {
this.checkElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
}
}
;
EFormCheckbox.prototype.setNecessaryCheck = function(a) {
if (a) {
this.controlData.isNValue = true;
this.controlData.isNecessaryCheck = "true";
if ("true" == this.controlData.checked) {
this.controlData.is_nc = false;
if (this.isDOM) {
this.checkElement_div.className = "eF_Rect";
}
} else {
this.controlData.is_nc = true;
this.requiredUnCheckInGroup();
}
} else {
this.controlData.isNValue = false;
this.controlData.is_nc = false;
this.controlData.isNecessaryCheck = "false";
if (this.isDOM) {
this.checkElement_div.className = "eF_Rect";
}
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormCheckbox.prototype.getIndexOrderDisabled = function() {
return this.controlData.indexOrderDisable;
}
;
EFormCheckbox.prototype.setIndexOrderDisabled = function(a) {
this.controlData.indexOrderDisable = a;
}
;
EFormCheckbox.prototype.onUnCheckedEvent = function(a) {
this.event.unCheckedEvent = a;
this.event.eventTarget = this;
}
;
EFormCheckbox.prototype.onCheckedEvent = function(a) {
this.event.checkedEvent = a;
this.event.eventTarget = this;
}
;
EFormCheckbox.prototype.onUnChecked = function() {
if (null != this.event.unCheckedEvent) {
this.event.unCheckedEvent();
}
}
;
EFormCheckbox.prototype.onChecked = function() {
if (null != this.event.checkedEvent) {
this.event.checkedEvent();
}
}
;
EFormCheckbox.prototype.focusControl = function() {
this.checkElement_focusDiv.className = "eF_Rect eform_control_focus";
if (null != this.controlData.inputOrder) {
this.eform.inputOrderFoucs(this);
} else {
this.eform.inputOrderBlur();
}
}
;
function EFormRadiobox() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.group = null;
this.isDOM = false;
this.checkElement = null;
this.checkElement_img = null;
this.checkElement_div = null;
this.checkElement_focusDiv = null;
this.event = {
selectedEvent: null,
unSelectedEvent: null,
eventTarget: null
};
}
EFormRadiobox.prototype.setGroup = function(a) {
this.group = a;
}
;
EFormRadiobox.prototype.init = function(b, a, c) {
this.eform = c;
this.ctrlID = b;
this.controlData = a;
if (null != a.inputOrder) {
this.eform.eFormIndexControlList[a.inputOrder] = this;
}
if (null == a.indexOrderDisable) {
a.indexOrderDisable = false;
}
}
;
EFormRadiobox.prototype.deleteMe = function() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.event = null;
this.group = null;
this.deleteDOM();
}
;
EFormRadiobox.prototype.deleteDOM = function() {
this.isDOM = false;
this.checkElement = null;
this.checkElement_img = null;
this.checkElement_div = null;
this.checkElement_focusDiv = null;
}
;
EFormRadiobox.prototype.getHE = function() {
if (this.isDOM) {
return this.checkElement;
}
return null;
}
;
EFormRadiobox.prototype.eventHandlerInputRadiobox = function() {
this.isDOM = true;
this.checkElement = document.getElementById(this.eform.m_uid + this.ctrlID);
this.checkElement_img = document.getElementById(this.eform.m_uid + this.ctrlID + "IMG");
this.checkElement_div = document.getElementById(this.eform.m_uid + this.ctrlID + "DIV");
this.checkElement_focusDiv = document.getElementById(this.eform.m_uid + this.ctrlID + "FOCUS");
this.checkElement_img.src = "data:image/png;base64," + mRe_blankImg;
var a = this.eform.eFormRadioChecked[this.controlData.id];
if (this.eform.eForm_isNecessary.check && null == a && "true" == this.controlData.isNecessaryCheck) {
this.checkElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
var b = this;
if (null != a && this.ctrlID != a) {
this.controlData.checked = "false";
this.controlData.is_nc = false;
} else {
if ("true" == this.controlData.checked) {
if ("check" == this.controlData.imageType) {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormCheckImage;
} else {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormRadioImage;
}
this.eform.eFormRadioChecked[this.controlData.id] = this.ctrlID;
this.controlData.is_nc = false;
}
}
this.checkElement.onmousedown = function(c) {
b.select();
c.preventDefault();
this.focus();
}
;
if (null != this.checkElement_focusDiv) {
this.checkElement.onblur = function() {
b.checkElement_focusDiv.className = "eF_Rect";
}
;
this.checkElement.onfocus = function() {
b.focusControl();
}
;
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormRadiobox.prototype.isSelected = function() {
return this.controlData.checked == "true";
}
;
EFormRadiobox.prototype.select = function() {
if ("false" == this.controlData.checked) {
if ("check" == this.controlData.imageType) {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormCheckImage;
} else {
this.checkElement_img.src = "data:image/png;base64," + this.eform.eFormRadioImage;
}
this.controlData.checked = "true";
this.controlData.is_nc = false;
this.checkElement_div.className = "eF_Rect";
this.eform.eFormRadioChecked[this.controlData.id] = this.ctrlID;
this.onSelected();
}
this.findUnCheckRadio();
}
;
EFormRadiobox.prototype.findUnCheckRadio = function() {
var b = this.group.getControlList();
for (var a = 0; a < b.length; a++) {
if (this != b[a]) {
var c = b[a];
c.controlData.checked = "false";
c.controlData.is_nc = false;
if (null != c.checkElement_img && null != c.checkElement_div) {
c.checkElement_img.src = "data:image/png;base64," + mRe_blankImg;
c.checkElement_div.className = "eF_Rect";
}
c.onUnSelected();
}
}
}
;
EFormRadiobox.prototype.getType = function() {
return this.controlData.type;
}
;
EFormRadiobox.prototype.getValue = function() {
return this.controlData.value;
}
;
EFormRadiobox.prototype.getVisible = function() {
return this.controlData.visible;
}
;
EFormRadiobox.prototype.setVisible = function(a) {
this.controlData.visible = a;
if (this.isDOM) {
if (a) {
this.checkElement.style.display = "";
this.checkElement_img.style.display = "";
this.checkElement_div.style.display = "";
this.checkElement_focusDiv.style.display = "";
} else {
this.checkElement.style.display = "none";
this.checkElement_img.style.display = "none";
this.checkElement_div.style.display = "none";
this.checkElement_focusDiv.style.display = "none";
}
}
}
;
EFormRadiobox.prototype.getDisabled = function() {
return this.controlData.disable;
}
;
EFormRadiobox.prototype.setDisabled = function(a) {
this.controlData.disable = a;
if (this.isDOM) {
if (a || this.eform.m_eformDisabled) {
this.checkElement.disabled = true;
this.checkElement_div.className = "eF_Rect";
} else {
this.checkElement.disabled = false;
if (this.eform.eForm_isNecessary.check && this.controlData.isNecessaryCheck == "true" && this.controlData.is_nc) {
this.checkElement_div.className = "eF_Rect eForm_NecessaryCheck";
}
}
}
}
;
EFormRadiobox.prototype.setNecessaryCheck = function(a) {
if (a) {
this.controlData.isNecessaryCheck = "true";
if (null != this.eform.eFormRadioChecked[this.controlData.id]) {
this.controlData.is_nc = false;
if (this.isDOM) {
this.checkElement_div.className = "eF_Rect";
}
} else {
this.controlData.is_nc = true;
}
} else {
this.controlData.is_nc = false;
this.controlData.isNecessaryCheck = "false";
if (this.isDOM) {
this.checkElement_div.className = "eF_Rect";
}
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormInput.prototype.setNecessaryCheck = function(a) {
if (a) {
this.controlData.isNecessaryCheck == "true";
if ("" != this.controlData.value) {
this.controlData.is_nc = false;
if (this.isDOM) {
this.inputElement_div.className = "eF_Rect";
}
} else {
this.controlData.is_nc = true;
}
} else {
this.controlData.is_nc = false;
this.controlData.isNecessaryCheck == "false";
if (this.isDOM) {
this.inputElement_div.className = "eF_Rect";
}
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormRadiobox.prototype.getIndexOrderDisabled = function() {
return this.controlData.indexOrderDisable;
}
;
EFormRadiobox.prototype.setIndexOrderDisabled = function(a) {
this.controlData.indexOrderDisable = a;
}
;
EFormRadiobox.prototype.onUnSelectedEvent = function(a) {
this.event.unSelectedEvent = a;
this.event.eventTarget = this;
}
;
EFormRadiobox.prototype.onSelectedEvent = function(a) {
this.event.selectedEvent = a;
this.event.eventTarget = this;
}
;
EFormRadiobox.prototype.onUnSelected = function() {
if (null != this.event.unSelectedEvent) {
this.event.unSelectedEvent();
}
}
;
EFormRadiobox.prototype.onSelected = function() {
if (null != this.event.selectedEvent) {
this.event.selectedEvent();
}
}
;
EFormRadiobox.prototype.focusControl = function() {
this.checkElement_focusDiv.className = "eF_Rect eform_control_focus";
if (null != this.controlData.inputOrder) {
this.eform.inputOrderFoucs(this);
} else {
this.eform.inputOrderBlur();
}
}
;
function EFormImage() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.group = null;
this.isDOM = false;
this.imageElement = null;
this.imageElement_canas = null;
this.imageElement_guideSpan = null;
this.imageElement_focusDiv = null;
this.event = {
clickEvent: null,
eventTarget: null
};
}
EFormImage.prototype.setGroup = function(a) {
this.group = a;
}
;
EFormImage.prototype.init = function(b, a, c) {
this.eform = c;
this.ctrlID = b;
this.controlData = a;
if (null != a.inputOrder) {
this.eform.eFormIndexControlList[a.inputOrder] = this;
}
if (null == a.indexOrderDisable) {
a.indexOrderDisable = false;
}
}
;
EFormImage.prototype.deleteMe = function() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.event = null;
this.group = null;
this.deleteDOM();
}
;
EFormImage.prototype.deleteDOM = function() {
this.isDOM = false;
this.imageElement = null;
this.imageElement_canas = null;
this.imageElement_guideSpan = null;
this.imageElement_focusDiv = null;
}
;
EFormImage.prototype.getHE = function() {
if (this.isDOM) {
return this.imageElement;
}
return null;
}
;
EFormImage.prototype.eventHandlerImage = function() {
this.isDOM = true;
this.imageElement = document.getElementById(this.eform.m_uid + this.ctrlID);
this.imageElement_canas = document.getElementById(this.eform.m_uid + this.ctrlID + "Canvas");
this.imageElement_guideSpan = document.getElementById(this.eform.m_uid + this.ctrlID + "Guide");
this.imageElement_focusDiv = document.getElementById(this.eform.m_uid + this.ctrlID + "FOCUS");
this.controlData.is_ef = "yes";
if (this.controlData.is_nc) {
if (this.eform.eForm_isNecessary.check) {
this.imageElement_guideSpan.className = "eF_Rect eForm_NecessaryCheck";
}
}
if ("" != this.controlData.value) {
drawReportImage(this.imageElement_canas, this.controlData);
}
var a = this;
if (null != this.imageElement_focusDiv && null != this.imageElement) {
this.imageElement.onblur = function() {
var b = a.imageElement_focusDiv;
if (null != b) {
b.className = "eF_Rect";
}
}
;
this.imageElement.onfocus = function() {
a.focusControl();
}
;
}
this.imageElement.onmousedown = function() {
if (!a.onClick()) {
window.event.preventDefault();
window.event.stopPropagation();
}
}
;
this.imageElement.onchange = function() {
var b = new FileReader();
var c = this.files[0];
b.addEventListener("load", function() {
a.setValue(b.result);
}, false);
if (c) {
b.readAsDataURL(c);
}
}
;
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormImage.prototype.getType = function() {
return this.controlData.type;
}
;
EFormImage.prototype.getVisible = function() {
return this.controlData.visible;
}
;
EFormImage.prototype.setVisible = function(a) {
this.controlData.visible = a;
if (this.isDOM) {
if (a) {
this.imageElement.style.display = "";
this.imageElement_canas.style.display = "";
this.imageElement_guideSpan.style.display = "";
this.imageElement_focusDiv.style.display = "";
} else {
this.imageElement.style.display = "none";
this.imageElement_canas.style.display = "none";
this.imageElement_guideSpan.style.display = "none";
this.imageElement_focusDiv.style.display = "none";
}
}
}
;
EFormImage.prototype.getDisabled = function() {
return this.controlData.disable;
}
;
EFormImage.prototype.setDisabled = function(a) {
this.controlData.disable = a;
if (this.isDOM) {
if (a || this.eform.m_eformDisabled) {
this.imageElement.disabled = true;
this.imageElement_guideSpan.className = "eF_Rect";
} else {
this.imageElement.disabled = false;
if (this.controlData.is_nc) {
if (this.eform.eForm_isNecessary.check && this.controlData.isNecessaryCheck == "true") {
this.imageElement_guideSpan.className = "eF_Rect eForm_NecessaryCheck";
}
}
}
}
}
;
EFormImage.prototype.getIndexOrderDisabled = function() {
return this.controlData.indexOrderDisable;
}
;
EFormImage.prototype.setIndexOrderDisabled = function(a) {
this.controlData.indexOrderDisable = a;
}
;
EFormImage.prototype.setNecessaryCheck = function(a) {
if (a) {
this.controlData.isNecessaryCheck = "true";
if ("" != this.controlData.image) {
this.controlData.is_nc = false;
if (this.isDOM) {
this.imageElement_guideSpan.className = "eF_Rect";
}
} else {
this.controlData.is_nc = true;
}
} else {
this.controlData.is_nc = false;
this.controlData.isNecessaryCheck = "false";
if (this.isDOM) {
this.imageElement_guideSpan.className = "eF_Rect";
}
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormImage.prototype.setValue = function(a) {
this.controlData.is_nc = false;
if (this.isDOM) {
if (-1 == a.indexOf("base64,")) {
a = "data:image/png;base64," + a;
}
drawReportImageSetData(this.imageElement_canas, this.controlData, a);
this.imageElement_guideSpan.className = "eF_Rect";
}
}
;
EFormImage.prototype.setInapp = function(a) {
var b = this;
window.set_report_inapp_data = function(d) {
b.setValue(d);
}
;
var c = document.createElement("a");
c.href = a + "?width=" + this.imageElement.offsetWidth + "&height=" + this.imageElement.offsetHeight;
c.click();
}
;
EFormImage.prototype.onClickEvent = function(a) {
this.event.clickEvent = a;
this.event.eventTarget = this;
}
;
EFormImage.prototype.onClick = function() {
if (null != this.event.clickEvent) {
var a = this.event.clickEvent();
if (true == a) {
return a;
}
}
return false;
}
;
EFormImage.prototype.focusControl = function() {
this.imageElement_focusDiv.className = "eF_Rect eform_control_focus";
if (null != this.controlData.inputOrder) {
this.eform.inputOrderFoucs(this);
} else {
this.eform.inputOrderBlur();
}
}
;
function drawReportImage(c, a) {
var d = c.getContext("2d");
d.clearRect(0, 0, c.width, c.height);
var b = new Image();
d.Re_image = b;
b.onload = function() {
d.drawImage(this, 0, 0, c.width, c.height);
d.Re_image = null;
}
;
b.src = "data:image/jpeg;base64," + a.image;
}
function drawReportImageSetData(d, a, g) {
var f = d.clientWidth;
var c = d.clientHeight;
var e = d.getContext("2d");
e.clearRect(0, 0, f, c);
var b = new Image();
e.Re_image = b;
b.onload = function() {
var j = document.createElement("canvas");
j.width = b.width;
j.height = b.height;
var i = j.getContext("2d");
i.drawImage(this, 0, 0, b.width, b.height);
resample_single(j, f, c, d);
var h = d.toDataURL("image/jpeg", 1);
h = h.substring(h.indexOf("base64,") + 7, h.length);
a.image = h;
e.Re_image = null;
j = null;
}
;
b.src = g;
}
function resample_single(k, a, d, p) {
var P = k.width;
var F = k.height;
a = Math.round(a);
d = Math.round(d);
var C = P / a;
var I = F / d;
var e = Math.ceil(C / 2);
var v = Math.ceil(I / 2);
var z = k.getContext("2d");
var l = z.getImageData(0, 0, P, F);
var u = z.createImageData(a, d);
var O = l.data;
var K = u.data;
for (var M = 0; M < d; M++) {
for (var N = 0; N < a; N++) {
var s = (N + M * a) * 4;
var J = 0;
var L = 0;
var E = 0;
var m = 0;
var r = 0;
var x = 0;
var y = 0;
var b = (M + 0.5) * I;
var q = Math.floor(M * I);
var h = Math.ceil((M + 1) * I);
for (var o = q; o < h; o++) {
var f = Math.abs(b - (o + 0.5)) / v;
var c = (N + 0.5) * C;
var G = f * f;
var n = Math.floor(N * C);
var D = Math.ceil((N + 1) * C);
for (var B = n; B < D; B++) {
var g = Math.abs(c - (B + 0.5)) / e;
var H = Math.sqrt(G + g * g);
if (H >= 1) {
continue;
}
J = 2 * H * H * H - 3 * H * H + 1;
var t = 4 * (B + o * P);
y += J * O[t + 3];
E += J;
if (O[t + 3] < 255) {
J = J * O[t + 3] / 250;
}
m += J * O[t];
r += J * O[t + 1];
x += J * O[t + 2];
L += J;
}
}
K[s] = m / L;
K[s + 1] = r / L;
K[s + 2] = x / L;
K[s + 3] = y / E;
}
}
z.clearRect(0, 0, P, F);
p.width = a;
p.height = d;
var A = p.getContext("2d");
A.putImageData(u, 0, 0);
}
var mRe_sign = null;
if (window.addEventListener) {
window.addEventListener("resize", function() {
if (null != mRe_sign) {
if (is_smartphone) {
var a = mRe_sign.eform;
var b = mRe_sign.jSign.jSignature("getData").split("base64,")[1];
mRe_sign.cencelButton.click();
mRe_sign = {
image: null
};
mRe_sign.image = b;
a.eFormSignControl();
}
}
if (null != mRe_pallet) {
if (is_smartphone) {
var a = mRe_pallet;
a.removePalletDoodle();
a.palletDoodle();
a = null;
}
}
}, false);
}
function EFormSign() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.group = null;
this.isDOM = false;
this.signElement = null;
this.signElement_canas = null;
this.signElement_guideSpan = null;
this.signElement_guideInput = null;
this.signElement_focusDiv = null;
this.event = {
clickEvent: null,
okButtonEvent: null,
cencelButtonEvent: null,
eventTarget: null
};
}
EFormSign.prototype.setGroup = function(a) {
this.group = a;
}
;
EFormSign.prototype.init = function(b, a, c) {
this.eform = c;
this.ctrlID = b;
this.controlData = a;
if (null != a.inputOrder) {
this.eform.eFormIndexControlList[a.inputOrder] = this;
}
if (null == a.indexOrderDisable) {
a.indexOrderDisable = false;
}
}
;
EFormSign.prototype.deleteMe = function() {
this.eform = null;
this.ctrlID = null;
this.controlData = null;
this.event = null;
this.group = null;
this.deleteDOM();
}
;
EFormSign.prototype.deleteDOM = function() {
this.isDOM = false;
this.signElement = null;
this.signElement_canas = null;
this.signElement_guideSpan = null;
this.signElement_focusDiv = null;
}
;
EFormSign.prototype.getHE = function() {
if (this.isDOM) {
return this.signElement;
}
return null;
}
;
EFormSign.prototype.eventHandlerSign = function() {
this.isDOM = true;
this.signElement = document.getElementById(this.eform.m_uid + this.ctrlID);
this.signElement_canas = document.getElementById(this.eform.m_uid + this.ctrlID + "Canvas");
this.signElement_guideSpan = document.getElementById(this.eform.m_uid + this.ctrlID + "Guide");
this.signElement_guideInput = document.getElementById(this.eform.m_uid + this.ctrlID + "GuideInput");
this.signElement_focusDiv = document.getElementById(this.eform.m_uid + this.ctrlID + "FOCUS");
this.controlData.is_ef = "yes";
if (this.controlData.is_nc) {
if (this.eform.eForm_isNecessary.check) {
this.signElement_guideSpan.className = "eF_Rect eForm_NecessaryCheck";
}
}
if (!this.controlData.isGuidFix && "" != this.controlData.image) {
this.signElement_guideInput.style.visibility = "hidden";
} else {
this.signElement_guideInput.style.visibility = "visible";
}
if ("" != this.controlData.value) {
drawReportSign(this.signElement_canas, this.controlData);
}
var a = this;
if (null != this.signElement_focusDiv && null != this.signElement) {
this.signElement.onblur = function() {
var b = a.signElement_focusDiv;
if (null != b) {
b.className = "eF_Rect";
}
}
;
this.signElement.onfocus = function() {
a.focusControl();
}
;
}
this.signElement.onmousedown = function() {
if (a.onClick() != false) {
if (a.controlData.isDirectSign) {
a.focusControl();
a.eFormDirectSignControl();
} else {
a.eFormSignControl();
}
}
}
;
this.signElement_guideInput.value = this.controlData.guideMessage;
this.signElement_guideInput.style.fontFamily = this.controlData.fontName;
this.signElement_guideInput.style.fontSize = this.controlData.fontSize;
this.signElement_guideInput.style.color = this.controlData.fontColor;
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormSign.prototype.eFormDirectSignControl = function() {
var f = this;
var n = this.eform;
var c = this.signElement.parentElement;
var i = is_edge ? this.signElement.offsetLeft / n.eFormDoodleOption.zoomIn : this.signElement.offsetLeft;
var l = is_edge ? this.signElement.offsetTop / n.eFormDoodleOption.zoomIn : this.signElement.offsetTop;
var p = this.signElement.offsetWidth;
var o = this.signElement.offsetHeight;
var a = document.createElement("div");
a.style.cssText = "position:absolute;left:0px;top:0px;right:0px;bottom:0px;opacity: 0;background-color:#FFF;z-index:150";
var g = document.createElement("div");
g.style.cssText = "position:absolute;left:0px;top:0px;right:0px;bottom:0px;z-index:150";
var b = document.createElement("div");
b.style.position = "absolute";
b.style.left = i + "px";
b.style.top = l + "px";
b.style.width = p + "px";
b.style.height = o + "px";
var q = document.createElement("div");
q.style.position = "absolute";
q.style.left = (i + 3) + "px";
q.style.top = (l + o + 3) + "px";
q.style.width = p + "px";
var r = document.createElement("button");
r.id = n.m_uid + "okUBT";
r.className = "eform_sign_button_in eform_sign_save";
r.innerHTML = n.m_languageMap.save;
var h = document.createElement("button");
h.className = "eform_sign_button_in eform_sign_reset";
h.innerHTML = n.m_languageMap.reset;
var k = document.createElement("button");
k.className = "eform_sign_button_in eform_sign_cancel";
k.innerHTML = n.m_languageMap.cancel;
q.appendChild(r);
q.appendChild(h);
q.appendChild(k);
g.appendChild(b);
g.appendChild(q);
c.appendChild(a);
c.appendChild(g);
if (!is_smartphone) {
r.focus();
r.onkeydown = function(s) {
if (s.keyCode == 9) {
k.click();
}
}
;
}
var e = this.controlData;
e.po = {
is_down: false,
move_count: 0,
reset: false
};
var d = this.signElement_canas;
resetReportSign(d);
this.signElement_guideInput.style.visibility = "visible";
var j = $(b);
j.jSignature({
"decor-color": "transparent",
lineWidth: (e.penWidth * 2),
color: e.penColor,
width: (p * 2),
height: (o * 2),
cssclass: "eform_sign_canvas_in",
imageData: e.image
});
if (is_smartphone) {
j.bind("touchstart", function(s) {
e.po.is_down = true;
});
j.bind("touchmove", function(s) {
if (e.po.is_down) {
e.po.move_count++;
}
});
} else {
j.bind("mousedown", function(s) {
e.po.is_down = true;
});
j.bind("mousemove", function(s) {
if (e.po.is_down) {
e.po.move_count++;
}
});
}
j.bind("change", function(s) {
e.po.is_down = false;
if (!is_smartphone) {
r.focus();
}
});
h.onclick = function(s) {
j.jSignature("reset");
e.po = {
is_down: false,
move_count: 0,
reset: true
};
if (!is_smartphone) {
r.focus();
}
if (s.stopPropagation) {
s.stopPropagation();
} else {
s.cancelBubble = true;
}
}
;
var m = this.signElement_guideSpan;
k.onclick = function(s) {
if (e.is_nc) {
if (n.eForm_isNecessary.check && e.isNecessaryCheck == "true") {
m.className = "eF_Rect eForm_NecessaryCheck";
}
}
drawReportSign(d, e);
c.removeChild(a);
c.removeChild(g);
if (!e.isGuidFix && "" != e.image) {
f.signElement_guideInput.style.visibility = "hidden";
}
f.signElement.focus();
f.onCencelButton();
if (s.stopPropagation) {
s.stopPropagation();
} else {
s.cancelBubble = true;
}
}
;
b.onmousedown = b.onclick = function(s) {
if (s.stopPropagation) {
s.stopPropagation();
} else {
s.cancelBubble = true;
}
}
;
if (is_smartphone) {
g.onclick = function(s) {
r.click();
}
;
}
r.onclick = function(s) {
if (e.po.move_count > n.m_signMoveCount) {
e.is_nc = false;
} else {
if (e.po.move_count != 0 && e.isNecessaryCheck == "true") {
e.is_nc = true;
}
}
if (((e.po.move_count == 0 && e.po.reset) || e.po.move_count == 0 && "" == e.image) && e.isNecessaryCheck == "true") {
e.image = "";
e.is_nc = true;
} else {
var t = j.jSignature("getData").split("base64,")[1];
e.image = t;
drawReportSign(d, e);
}
if (e.is_nc) {
if (n.eForm_isNecessary.check && e.isNecessaryCheck == "true") {
m.className = "eF_Rect eForm_NecessaryCheck";
}
} else {
m.className = "eF_Rect";
}
c.removeChild(a);
c.removeChild(g);
if (!e.isGuidFix && "" != e.image) {
f.signElement_guideInput.style.visibility = "hidden";
}
f.signElement.focus();
f.onOkButton();
if (s.stopPropagation) {
s.stopPropagation();
} else {
s.cancelBubble = true;
}
}
;
}
;
EFormSign.prototype.eFormSignControl = function() {
var f = this;
if (this.eform.m_isButtonLock == false) {
if (null != this.eform.signPaintDiv) {
return;
}
if (null == mRe_sign) {
mRe_sign = {};
}
var y = this.eform;
mRe_sign.report = y;
mRe_sign.eform = this;
y.disabledMenu(true);
var k;
if (this.controlData.width < 400 && this.controlData.height < 400) {
if (this.controlData.width < this.controlData.height) {
var A = 400 / this.controlData.height;
this.controlData.height = 400;
this.controlData.width = this.controlData.width * A;
}
if (this.controlData.height < this.controlData.width) {
var A = 400 / this.controlData.width;
this.controlData.width = 400;
this.controlData.height = this.controlData.height * A;
}
}
var q = (y.paintDiv.offsetWidth - (this.controlData.width + 50));
var b = (y.paintDiv.offsetHeight - (this.controlData.height + 110));
if (q < b) {
k = y.paintDiv.offsetWidth / (this.controlData.width + 150);
} else {
k = y.paintDiv.offsetHeight / (this.controlData.height + 210);
}
var v = this.signElement.offsetWidth;
var d = this.signElement.offsetHeight;
var w = this.controlData.width * k;
var u = this.controlData.height * k;
var j = (y.paintDiv.offsetWidth - (w + 50)) / 2;
var i = (y.paintDiv.offsetHeight - (u + 110)) / 2;
if (i < 0) {
i = 0;
}
k = (w + 50) / 400;
var n = w / v;
var o = document.createElement("div");
if (is_smartphone) {
o.className = "m_eform_sign_background";
} else {
o.className = "eform_sign_background";
}
var t = o.cloneNode(true);
t.style.cssText = "opacity: 0;background-color:#FFF;";
var p = document.createElement("div");
mRe_sign.signPaintDiv = p;
if (y.m_signOption.staticPos) {
p.style.cssText = "position:absolute;left:" + y.m_signOption.staticLeft + ";top:" + y.m_signOption.staticTop + ";width:" + (w + 50) + "px;height:" + (u + 110) + "px;";
} else {
p.style.cssText = "position:absolute;left:" + (j + y.m_signOption.offsetLeft) + "px;top:" + (i + y.m_signOption.offsetTop) + "px;width:" + (w + 50) + "px;height:" + (u + 110) + "px;";
}
if (null != this.signElement_focusDiv) {
this.signElement_focusDiv.className = "eF_Rect";
}
p.className = "eform_sign_div";
var l = document.createElement("div");
l.className = "eform_sign_title";
l.innerHTML = this.controlData.title;
var a = document.createElement("div");
a.className = "eform_sign_menu";
var D = document.createElement("button");
mRe_sign.okButton = D;
D.className = "eform_sign_button eform_sign_save";
D.style.zoom = k < 1 ? k : 1;
D.innerHTML = y.m_languageMap.save;
var m = document.createElement("button");
mRe_sign.resetButton = m;
m.className = "eform_sign_button eform_sign_reset";
m.style.zoom = k < 1 ? k : 1;
m.innerHTML = y.m_languageMap.reset;
var s = document.createElement("button");
mRe_sign.cencelButton = s;
s.className = "eform_sign_button eform_sign_cancel";
s.style.zoom = k < 1 ? k : 1;
s.innerHTML = y.m_languageMap.cancel;
var B = document.createElement("span");
B.innerHTML = " ";
a.appendChild(D);
a.appendChild(B.cloneNode(true));
a.appendChild(m);
a.appendChild(B.cloneNode(true));
a.appendChild(s);
Re_zoom.isPop = true;
var h = document.createElement("div");
h.className = "eform_sign_paint";
var C = document.createElement("input");
mRe_sign.guideInput = C;
C.className = "eform_sign_paint_guide";
var g = "border:0px none !important;left:0px;top:0px;width:" + v + "px;height:" + d + "px;";
if (is_firefox) {
g += "transform: scale(" + n + ");transform-origin: left top 0;";
} else {
g += "zoom:" + n + ";";
}
C.style.cssText = g;
C.readOnly = true;
C.type = "text";
if (null == this.controlData.showDisplayTextInDialog || this.controlData.showDisplayTextInDialog) {
C.value = this.controlData.guideMessage;
}
C.style.fontFamily = this.controlData.fontName;
C.style.fontSize = this.controlData.fontSize;
C.style.color = this.controlData.fontColor;
h.appendChild(C);
p.appendChild(l);
p.appendChild(a);
p.appendChild(h);
o.appendChild(p);
y.targetDiv.appendChild(t);
y.targetDiv.appendChild(o);
D.focus();
D.onkeydown = function(E) {
if (E.keyCode == 9) {
s.click();
}
}
;
y.signPaintDiv = o;
var e = this.controlData;
e.po = {
is_down: false,
move_count: 0,
reset: false
};
var c = this.signElement_canas;
resetReportSign(c);
this.signElement_guideInput.style.visibility = "visible";
var z = null;
if (null != mRe_sign.image) {
z = mRe_sign.image;
mRe_sign.image = null;
} else {
z = e.image;
}
var r = $(h);
mRe_sign.jSign = r;
r.jSignature({
"decor-color": "transparent",
lineWidth: (e.penWidth * n),
color: e.penColor,
width: "100%",
height: "100%",
cssclass: "eform_sign_canvas",
imageData: z
});
if (is_smartphone) {
r.bind("touchstart", function(E) {
e.po.is_down = true;
});
r.bind("touchmove", function(E) {
if (e.po.is_down) {
e.po.move_count++;
}
});
} else {
r.bind("mousedown", function(E) {
e.po.is_down = true;
});
r.bind("mousemove", function(E) {
if (e.po.is_down) {
e.po.move_count++;
}
});
}
r.bind("change", function(E) {
e.po.is_down = false;
D.focus();
});
m.onclick = function() {
r.jSignature("reset");
e.po = {
is_down: false,
move_count: 0,
reset: true
};
D.focus();
}
;
var x = this.signElement_guideSpan;
s.onclick = function() {
if (e.is_nc) {
if (y.eForm_isNecessary.check && e.isNecessaryCheck == "true") {
x.className = "eF_Rect eForm_NecessaryCheck";
}
}
drawReportSign(c, e);
mRe_sign = null;
y.targetDiv.removeChild(t);
y.targetDiv.removeChild(o);
y.disabledMenu(false);
y.signPaintDiv = null;
Re_zoom.isPop = false;
if (!e.isGuidFix && "" != e.image) {
f.signElement_guideInput.style.visibility = "hidden";
}
f.signElement.focus();
f.onCencelButton();
}
;
D.onclick = function() {
if (e.po.move_count > y.m_signMoveCount) {
e.is_nc = false;
} else {
if (e.po.move_count != 0 && e.isNecessaryCheck == "true") {
e.is_nc = true;
}
}
y.disabledMenu(false);
y.signPaintDiv = null;
if (((e.po.move_count == 0 && e.po.reset) || e.po.move_count == 0 && "" == e.image) && e.isNecessaryCheck == "true") {
e.image = "";
e.is_nc = true;
} else {
var E = r.jSignature("getData").split("base64,")[1];
e.image = E;
drawReportSign(c, e);
}
if (e.is_nc) {
if (y.eForm_isNecessary.check && e.isNecessaryCheck == "true") {
x.className = "eF_Rect eForm_NecessaryCheck";
}
} else {
x.className = "eF_Rect";
}
mRe_sign = null;
y.targetDiv.removeChild(t);
y.targetDiv.removeChild(o);
Re_zoom.isPop = false;
if (!e.isGuidFix && "" != e.image) {
f.signElement_guideInput.style.visibility = "hidden";
}
f.signElement.focus();
f.onOkButton();
}
;
}
}
;
EFormSign.prototype.getType = function() {
return this.controlData.type;
}
;
EFormSign.prototype.getValue = function() {
return this.controlData.image;
}
;
EFormSign.prototype.setValue = function(a) {
this.controlData.image = a;
this.controlData.is_nc = false;
if (this.isDOM) {
drawReportSign(this.signElement_canas, this.controlData);
this.signElement_guideSpan.className = "eF_Rect";
if (!this.controlData.isGuidFix && "" != a) {
this.signElement_guideInput.style.visibility = "hidden";
}
}
}
;
EFormSign.prototype.setNecessaryCheck = function(a) {
if (a) {
this.controlData.isNecessaryCheck = "true";
if ("" != this.controlData.image) {
this.controlData.is_nc = false;
if (this.isDOM) {
this.signElement_guideSpan.className = "eF_Rect";
if (!this.controlData.isGuidFix) {
this.signElement_guideInput.style.visibility = "hidden";
}
}
} else {
this.controlData.is_nc = true;
if (this.isDOM) {
if (!this.controlData.isGuidFix) {
this.signElement_guideInput.style.visibility = "visible";
}
}
}
} else {
this.controlData.is_nc = false;
this.controlData.isNecessaryCheck = "false";
if (this.isDOM) {
this.signElement_guideSpan.className = "eF_Rect";
}
}
this.setDisabled(this.controlData.disable);
this.setVisible(this.controlData.visible);
}
;
EFormSign.prototype.getVisible = function() {
return this.controlData.visible;
}
;
EFormSign.prototype.setVisible = function(a) {
this.controlData.visible = a;
if (this.isDOM) {
if (a) {
this.signElement.style.display = "";
this.signElement_canas.style.display = "";
this.signElement_guideSpan.style.display = "";
this.signElement_focusDiv.style.display = "";
this.signElement_guideInput.style.display = "";
} else {
this.signElement.style.display = "none";
this.signElement_canas.style.display = "none";
this.signElement_guideSpan.style.display = "none";
this.signElement_focusDiv.style.display = "none";
this.signElement_guideInput.style.display = "none";
}
}
}
;
EFormSign.prototype.getDisabled = function() {
return this.controlData.disable;
}
;
EFormSign.prototype.setDisabled = function(a) {
this.controlData.disable = a;
if (this.isDOM) {
if (a || this.eform.m_eformDisabled) {
this.signElement.disabled = true;
this.signElement_guideSpan.className = "eF_Rect";
} else {
this.signElement.disabled = false;
if (this.controlData.is_nc) {
if (this.eform.eForm_isNecessary.check && this.controlData.isNecessaryCheck == "true") {
this.signElement_guideSpan.className = "eF_Rect eForm_NecessaryCheck";
}
}
}
}
}
;
EFormSign.prototype.getIndexOrderDisabled = function() {
return this.controlData.indexOrderDisable;
}
;
EFormSign.prototype.setIndexOrderDisabled = function(a) {
this.controlData.indexOrderDisable = a;
}
;
EFormSign.prototype.onClickEvent = function(a) {
this.event.clickEvent = a;
this.event.eventTarget = this;
}
;
EFormSign.prototype.onOkButtonEvent = function(a) {
this.event.okButtonEvent = a;
this.event.eventTarget = this;
}
;
EFormSign.prototype.onCencelButtonEvent = function(a) {
this.event.cencelButtonEvent = a;
this.event.eventTarget = this;
}
;
EFormSign.prototype.click = function() {
this.signElement.click();
}
;
EFormSign.prototype.onClick = function() {
if (null != this.event.clickEvent) {
return this.event.clickEvent();
}
return true;
}
;
EFormSign.prototype.onOkButton = function() {
if (null != this.event.okButtonEvent) {
this.event.okButtonEvent();
}
}
;
EFormSign.prototype.onCencelButton = function() {
if (null != this.event.cencelButtonEvent) {
this.event.cencelButtonEvent();
}
}
;
EFormSign.prototype.focusControl = function() {
this.signElement_focusDiv.className = "eF_Rect eform_control_focus";
if (null != this.controlData.inputOrder) {
this.eform.inputOrderFoucs(this);
} else {
this.eform.inputOrderBlur();
}
}
;
function drawReportSign(c, a) {
var d = c.getContext("2d");
d.clearRect(0, 0, c.width, c.height);
var b = new Image();
d.Re_image = b;
b.onload = function() {
d.drawImage(this, 0, 0, c.width, c.height);
d.Re_image = null;
}
;
b.src = "data:image/png;base64," + a.image;
}
function resetReportSign(a) {
var b = a.getContext("2d");
b.clearRect(0, 0, a.width, a.height);
if (null != b.Re_image) {
b.Re_image.onload = null;
b.Re_image = null;
}
}
Report.prototype.changePalletColor = function(b) {
var d = b.firstChild.style.backgroundColor;
var c = this.eFormDoodleOption.tempPens;
if (null != c.penList) {
for (var e = 0; e < c.penList.length; e++) {
var a = c.penList[e];
a.firstChild.style.backgroundColor = d;
if (null != a.style.border && "" != a.style.border) {
a.style.border = "2px solid " + d;
}
}
}
if (null != c.opList) {
for (var e = 0; e < c.opList.length; e++) {
var a = c.opList[e];
a.firstChild.style.backgroundColor = d;
if (null != a.style.border && "" != a.style.border) {
a.style.border = "2px solid " + d;
}
}
}
if (null != c.colorList) {
for (var e = 0; e < c.colorList.length; e++) {
c.colorList[e].style.border = "";
}
}
b.style.border = "2px solid " + d;
c.color = d;
}
;
Report.prototype.changePalletWidth = function(a) {
var c = this.eFormDoodleOption.tempPens;
var b = c.color;
if (null != c.penList) {
for (var d = 0; d < c.penList.length; d++) {
c.penList[d].style.border = "";
}
a.style.border = "2px solid " + b;
}
c.width = a.firstChild.offsetWidth;
}
;
Report.prototype.changePalletOP = function(a) {
var c = this.eFormDoodleOption.tempPens;
var b = c.color;
if (null != c.opList) {
for (var d = 0; d < c.opList.length; d++) {
c.opList[d].style.border = "";
}
a.style.border = "2px solid " + b;
}
c.op = Number(a.firstChild.style.opacity);
}
;
Report.prototype.createPalletPenWidthLayout = function(k, g) {
var c = this;
var a = document.createElement("div");
a.style.cssText = "position:relative;width:250px;height:50px";
var f = document.createElement("div");
f.style.cssText = "position:relative;width:250px;height:30px";
for (var i = 0; i < 5; i++) {
var d = getPalletPenWidth(i);
var e = document.createElement("span");
e.className = "eform_pallet_outE";
e.style.left = (i * 50) + "px";
var j = document.createElement("span");
j.className = "eform_pallet_inE";
if (g.width == d) {
j.style.border = "2px solid " + g.color;
}
var h = document.createElement("span");
h.style.cssText = "position:absolute;left:" + ((40 - d) / 2) + "px;top:" + ((40 - d) / 2) + "px;width:" + d + "px;height:" + d + "px;border-radius:100%;";
h.style.backgroundColor = g.color;
g.penList[i] = j;
j.onclick = function() {
c.changePalletWidth(this);
}
;
j.appendChild(h);
e.appendChild(j);
var b = document.createElement("span");
b.className = "eform_pallet_outText";
b.style.left = (i * 50) + "px";
b.innerHTML = d > 10 ? ("" + d) : ("0" + d);
a.appendChild(e);
f.appendChild(b);
}
k.appendChild(a);
k.appendChild(f);
}
;
Report.prototype.createPalletOPLayout = function(g, d) {
var b = this;
var j = document.createElement("div");
j.style.cssText = "position:relative;width:250px;height:50px";
var f = document.createElement("div");
f.style.cssText = "position:relative;width:250px;height:30px";
for (var h = 0; h < 5; h++) {
var i = getPalletOpacity(h);
var c = document.createElement("span");
c.className = "eform_pallet_outE";
c.style.left = (h * 50) + "px";
var k = document.createElement("span");
k.className = "eform_pallet_inE";
if (d.op == i) {
k.style.border = "2px solid " + d.color;
}
var e = document.createElement("span");
e.style.cssText = "position:absolute;left:12px;top:12px;width:16px;height:16px;border-radius:100%;";
e.style.backgroundColor = d.color;
e.style.opacity = i;
d.opList[h] = k;
k.onclick = function() {
b.changePalletOP(this);
}
;
k.appendChild(e);
c.appendChild(k);
var a = document.createElement("span");
a.className = "eform_pallet_outText";
a.style.left = (h * 50) + "px";
a.innerHTML = (i * 100) + "%";
j.appendChild(c);
f.appendChild(a);
}
g.appendChild(j);
g.appendChild(f);
}
;
Report.prototype.createPalletColorLayout = function(g, h, l) {
var e = this;
var m = document.createElement("div");
var d = document.createElement("div");
if (l == "height") {
m.style.cssText = "position:relative;width:250px;height:50px";
d.style.cssText = "position:relative;width:250px;height:50px";
} else {
m.style.cssText = "position:absolute;width:250px;height:50px";
d.style.cssText = "position:absolute;left:250px;width:250px;height:50px";
}
var n = document.createElement("div");
for (var j = 0; j < 5; j++) {
var c = getPalletColor(j);
var f = document.createElement("span");
f.className = "eform_pallet_outE";
f.style.top = "0px";
f.style.left = (j * 50) + "px";
var p = document.createElement("span");
p.className = "eform_pallet_inE";
n.style.backgroundColor = c;
if (h.color == n.style.backgroundColor) {
p.style.border = "2px solid " + h.color;
}
var i = document.createElement("span");
i.className = "eform_pallet_Circle";
i.style.backgroundColor = c;
h.colorList[j] = p;
p.onclick = function() {
e.changePalletColor(this);
}
;
p.appendChild(i);
f.appendChild(p);
var k = j + 5;
c = getPalletColor(k);
var b = document.createElement("span");
b.className = "eform_pallet_outE";
b.style.top = "0px";
b.style.left = (j * 50) + "px";
var o = document.createElement("span");
o.className = "eform_pallet_inE";
n.style.backgroundColor = c;
if (h.color == n.style.backgroundColor) {
o.style.border = "2px solid " + h.color;
}
var a = document.createElement("span");
a.className = "eform_pallet_Circle";
a.style.backgroundColor = c;
h.colorList[k] = o;
o.onclick = function() {
e.changePalletColor(this);
}
;
o.appendChild(a);
b.appendChild(o);
m.appendChild(f);
d.appendChild(b);
}
g.appendChild(m);
g.appendChild(d);
}
;
Report.prototype.palletDoodleWidth = function(b) {
var c = this;
var f = this.eFormDoodleOption.tempPens;
f.penList = [];
f.opList = [];
f.colorList = [];
var i = document.createElement("div");
i.className = "eform_pallet_width";
var d = document.createElement("div");
d.className = "eform_pallet_line";
d.style.cssText = "width:480px;top:53px";
i.appendChild(d);
d = document.createElement("div");
d.className = "eform_pallet_line";
d.style.cssText = "left:249px;top:65px;height:60px;width:0px;";
i.appendChild(d);
var k = document.createElement("div");
k.style.cssText = "position:absolute;left:0px;top:50px;width:250px;height:80px";
this.createPalletPenWidthLayout(k, f);
i.appendChild(k);
var e = document.createElement("div");
e.style.cssText = "position:absolute;top:0px;width:500px;height:50px";
this.createPalletColorLayout(e, f, "width");
i.appendChild(e);
var g = document.createElement("div");
g.style.cssText = "position:absolute;left:250px;top:50px;width:250px;height:80px";
this.createPalletOPLayout(g, f);
i.appendChild(g);
var j = document.createElement("div");
j.style.cssText = "position:absolute;top:130px;width:500px;height:60px";
var h = document.createElement("button");
h.className = "eform_pallet_button eform_pallet_button_ok";
h.style.left = "170px";
h.innerHTML = this.m_languageMap.ok;
h.onclick = function() {
var l = c.eFormDoodleOption;
l.pens.width = l.tempPens.width;
l.pens.color = l.tempPens.color;
l.pens.op = l.tempPens.op;
l.tempPens.penList = [];
l.tempPens.opList = [];
l.tempPens.colorList = [];
c.removePalletDoodle();
c.penDoodle();
}
;
var a = document.createElement("button");
a.className = "eform_pallet_button eform_pallet_button_cancel";
a.style.left = "180px";
a.innerHTML = this.m_languageMap.cancel;
a.onclick = function() {
c.removePalletDoodle();
}
;
j.appendChild(h);
j.appendChild(a);
i.appendChild(j);
b.appendChild(i);
}
;
Report.prototype.palletDoodleHeight = function(b) {
var c = this;
var f = this.eFormDoodleOption.tempPens;
f.penList = [];
f.opList = [];
f.colorList = [];
var i = document.createElement("div");
i.className = "eform_pallet";
var d = document.createElement("div");
d.className = "eform_pallet_line";
d.style.top = "80px";
i.appendChild(d);
d = d.cloneNode(true);
d.style.top = "180px";
i.appendChild(d);
d = d.cloneNode(true);
d.style.top = "260px";
i.appendChild(d);
var k = document.createElement("div");
k.style.cssText = "position:relative;width:250px;height:80px";
this.createPalletPenWidthLayout(k, f);
i.appendChild(k);
var e = document.createElement("div");
e.style.cssText = "position:relative;width:250px;height:100px";
this.createPalletColorLayout(e, f, "height");
i.appendChild(e);
var g = document.createElement("div");
g.style.cssText = "position:relative;width:250px;height:80px";
this.createPalletOPLayout(g, f);
i.appendChild(g);
var j = document.createElement("div");
j.style.cssText = "position:relative;width:250px;height:60px";
var h = document.createElement("button");
h.className = "eform_pallet_button eform_pallet_button_ok";
h.innerHTML = this.m_languageMap.ok;
h.onclick = function() {
var l = c.eFormDoodleOption;
l.pens.width = l.tempPens.width;
l.pens.color = l.tempPens.color;
l.pens.op = l.tempPens.op;
l.tempPens.penList = [];
l.tempPens.opList = [];
l.tempPens.colorList = [];
c.removePalletDoodle();
c.penDoodle();
}
;
var a = document.createElement("button");
a.className = "eform_pallet_button eform_pallet_button_cancel";
a.innerHTML = this.m_languageMap.cancel;
a.onclick = function() {
c.removePalletDoodle();
}
;
j.appendChild(h);
j.appendChild(a);
i.appendChild(j);
b.appendChild(i);
}
;
var docElem = window.document.documentElement;
function getWindow(a) {
return jQuery.isWindow(a) ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : false;
}
jQuery.fn.extend({
offset: function(b) {
if (arguments.length) {
return b === undefined ? this : this.each(function(g) {
jQuery.offset.setOffset(this, b, g);
});
}
var a, f, d = {
top: 0,
left: 0
}, c = this[0], e = c && c.ownerDocument;
if (!e) {
return;
}
a = e.documentElement;
if (!jQuery.contains(a, c)) {
return d;
}
if (typeof c.getBoundingClientRect !== typeof undefined) {
d = c.getBoundingClientRect();
}
f = getWindow(e);
return {
top: d.top + (f.pageYOffset || a.scrollTop) - (a.clientTop || 0),
left: d.left + (f.pageXOffset || a.scrollLeft) - (a.clientLeft || 0)
};
},
offsetCustom: function(b) {
if (arguments.length) {
return b === undefined ? this : this.each(function(g) {
jQuery.offset.setOffset(this, b, g);
});
}
var a, f, d = {
top: 0,
left: 0
}, c = this[0], e = c && c.ownerDocument;
if (!e) {
return;
}
a = e.documentElement;
if (!jQuery.contains(a, c)) {
return d;
}
if (typeof c.getBoundingClientRect !== typeof undefined) {
d = c.getBoundingClientRect();
}
f = getWindow(e);
return {
top: d.top + (a.scrollTop) - (a.clientTop || 0),
left: d.left + (a.scrollLeft) - (a.clientLeft || 0)
};
},
position: function() {
if (!this[0]) {
return;
}
var c, d, a = {
top: 0,
left: 0
}, b = this[0];
if (jQuery.css(b, "position") === "fixed") {
d = b.getBoundingClientRect();
} else {
c = this.offsetParent();
d = this.offset();
if (!jQuery.nodeName(c[0], "html")) {
a = c.offset();
}
a.top += jQuery.css(c[0], "borderTopWidth", true);
a.left += jQuery.css(c[0], "borderLeftWidth", true);
}
return {
top: d.top - a.top - jQuery.css(b, "marginTop", true),
left: d.left - a.left - jQuery.css(b, "marginLeft", true)
};
},
offsetParent: function() {
return this.map(function() {
var a = this.offsetParent || docElem;
while (a && (!jQuery.nodeName(a, "html") && jQuery.css(a, "position") === "static")) {
a = a.offsetParent;
}
return a || docElem;
});
}
});
/*!
* jQuery Mobile v1.4.4
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function(a, c, b) {
if (typeof define === "function" && define.amd) {
define(["jquery"], function(d) {
b(d, a, c);
return d.mobile;
});
} else {
b(a.jQuery, a, c);
}
}(this, document, function(c, b, a, d) {
/*!
* jQuery hashchange event - v1.3 - 7/21/2010
* http://benalman.com/projects/jquery-hashchange-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($, i, f) {
var g = "hashchange", l = a, j, k = $.event.special, m = l.documentMode, h = "on" + g in i && (m === f || m > 7);
function e(n) {
n = n || location.href;
return "#" + n.replace(/^[^#]*#?(.*)$/, "$1");
}
$.fn[g] = function(n) {
return n ? this.bind(g, n) : this.trigger(g);
}
;
$.fn[g].delay = 50;
k[g] = $.extend(k[g], {
setup: function() {
if (h) {
return false;
}
$(j.start);
},
teardown: function() {
if (h) {
return false;
}
$(j.stop);
}
});
j = (function() {
var n = {}, t, q = e(), o = function(u) {
return u;
}, p = o, s = o;
n.start = function() {
t || r();
}
;
n.stop = function() {
t && clearTimeout(t);
t = f;
}
;
function r() {
var v = e()
, u = s(q);
if (v !== q) {
p(q = v, u);
$(i).trigger(g);
} else {
if (u !== q) {
location.href = location.href.replace(/#.*/, "") + u;
}
}
t = setTimeout(r, $.fn[g].delay);
}
i.attachEvent && !i.addEventListener && !h && (function() {
var u, v;
n.start = function() {
if (!u) {
v = $.fn[g].src;
v = v && v + e();
u = $('<iframe tabindex="-1" title="empty"/>').hide().one("load", function() {
v || p(e());
r();
}).attr("src", v || "javascript:0").insertAfter("body")[0].contentWindow;
l.onpropertychange = function() {
try {
if (event.propertyName === "title") {
u.document.title = l.title;
}
} catch (w) {}
}
;
}
}
;
n.stop = o;
s = function() {
return e(u.location.href);
}
;
p = function(z, w) {
var y = u.document
, x = $.fn[g].domain;
if (z !== w) {
y.title = l.title;
y.open();
x && y.write('\x3cscript>document.domain="' + x + '"\x3c/script>');
y.close();
u.location.hash = z;
}
}
;
}
)();
return n;
}
)();
}
)(c, this);
(function(e) {
e.mobile = {};
}(c));
(function(f, e, g) {
f.extend(f.mobile, {
version: "1.4.4",
subPageUrlKey: "ui-page",
hideUrlBar: true,
keepNative: ":jqmData(role='none'), :jqmData(role='nojs')",
activePageClass: "ui-page-active",
activeBtnClass: "ui-btn-active",
focusClass: "ui-focus",
ajaxEnabled: true,
hashListeningEnabled: true,
linkBindingEnabled: true,
defaultPageTransition: "fade",
maxTransitionWidth: false,
minScrollBack: 0,
defaultDialogTransition: "pop",
pageLoadErrorMessage: "Error Loading Page",
pageLoadErrorMessageTheme: "a",
phonegapNavigationEnabled: false,
autoInitializePage: true,
pushStateEnabled: true,
ignoreContentEnabled: false,
buttonMarkup: {
hoverDelay: 200
},
dynamicBaseEnabled: true,
pageContainer: f(),
allowCrossDomainPages: false,
dialogHashKey: "&ui-state=dialog"
});
}
)(c, this);
(function(j, h, k) {
var g = {}
, f = j.find
, i = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/
, e = /:jqmData\(([^)]*)\)/g;
j.extend(j.mobile, {
ns: "",
getAttribute: function(m, l) {
var o;
m = m.jquery ? m[0] : m;
if (m && m.getAttribute) {
o = m.getAttribute("data-" + j.mobile.ns + l);
}
try {
o = o === "true" ? true : o === "false" ? false : o === "null" ? null : +o + "" === o ? +o : i.test(o) ? JSON.parse(o) : o;
} catch (n) {}
return o;
},
nsNormalizeDict: g,
nsNormalize: function(l) {
return g[l] || (g[l] = j.camelCase(j.mobile.ns + l));
},
closestPageData: function(l) {
return l.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page");
}
});
j.fn.jqmData = function(n, m) {
var l;
if (typeof n !== "undefined") {
if (n) {
n = j.mobile.nsNormalize(n);
}
if (arguments.length < 2 || m === k) {
l = this.data(n);
} else {
l = this.data(n, m);
}
}
return l;
}
;
j.jqmData = function(m, o, n) {
var l;
if (typeof o !== "undefined") {
l = j.data(m, o ? j.mobile.nsNormalize(o) : o, n);
}
return l;
}
;
j.fn.jqmRemoveData = function(l) {
return this.removeData(j.mobile.nsNormalize(l));
}
;
j.jqmRemoveData = function(l, m) {
return j.removeData(l, j.mobile.nsNormalize(m));
}
;
j.find = function(m, o, n, l) {
if (m.indexOf(":jqmData") > -1) {
m = m.replace(e, "[data-" + (j.mobile.ns || "") + "$1]");
}
return f.call(this, m, o, n, l);
}
;
j.extend(j.find, f);
}
)(c, this);
/*!
* jQuery UI Core c0ab71056b936627e8a7821f03c044aec6280a40
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
(function(f, j) {
var e = 0
, i = /^ui-id-\d+$/;
f.ui = f.ui || {};
f.extend(f.ui, {
version: "c0ab71056b936627e8a7821f03c044aec6280a40",
keyCode: {
BACKSPACE: 8,
COMMA: 188,
DELETE: 46,
DOWN: 40,
END: 35,
ENTER: 13,
ESCAPE: 27,
HOME: 36,
LEFT: 37,
PAGE_DOWN: 34,
PAGE_UP: 33,
PERIOD: 190,
RIGHT: 39,
SPACE: 32,
TAB: 9,
UP: 38
}
});
f.fn.extend({
focus: (function(k) {
return function(l, m) {
return typeof l === "number" ? this.each(function() {
var n = this;
setTimeout(function() {
f(n).focus();
if (m) {
m.call(n);
}
}, l);
}) : k.apply(this, arguments);
}
;
}
)(f.fn.focus),
scrollParent: function() {
var k;
if ((f.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
k = this.parents().filter(function() {
return (/(relative|absolute|fixed)/).test(f.css(this, "position")) && (/(auto|scroll)/).test(f.css(this, "overflow") + f.css(this, "overflow-y") + f.css(this, "overflow-x"));
}).eq(0);
} else {
k = this.parents().filter(function() {
return (/(auto|scroll)/).test(f.css(this, "overflow") + f.css(this, "overflow-y") + f.css(this, "overflow-x"));
}).eq(0);
}
return (/fixed/).test(this.css("position")) || !k.length ? f(this[0].ownerDocument || a) : k;
},
uniqueId: function() {
return this.each(function() {
if (!this.id) {
this.id = "ui-id-" + (++e);
}
});
},
removeUniqueId: function() {
return this.each(function() {
if (i.test(this.id)) {
f(this).removeAttr("id");
}
});
}
});
function h(m, k) {
var o, n, l, p = m.nodeName.toLowerCase();
if ("area" === p) {
o = m.parentNode;
n = o.name;
if (!m.href || !n || o.nodeName.toLowerCase() !== "map") {
return false;
}
l = f("img[usemap=#" + n + "]")[0];
return !!l && g(l);
}
return (/input|select|textarea|button|object/.test(p) ? !m.disabled : "a" === p ? m.href || k : k) && g(m);
}
function g(k) {
return f.expr.filters.visible(k) && !f(k).parents().addBack().filter(function() {
return f.css(this, "visibility") === "hidden";
}).length;
}
f.extend(f.expr[":"], {
data: f.expr.createPseudo ? f.expr.createPseudo(function(k) {
return function(l) {
return !!f.data(l, k);
}
;
}) : function(m, l, k) {
return !!f.data(m, k[3]);
}
,
focusable: function(k) {
return h(k, !isNaN(f.attr(k, "tabindex")));
},
tabbable: function(m) {
var k = f.attr(m, "tabindex")
, l = isNaN(k);
return (l || k >= 0) && h(m, !l);
}
});
if (!f("<a>").outerWidth(1).jquery) {
f.each(["Width", "Height"], function(m, k) {
var l = k === "Width" ? ["Left", "Right"] : ["Top", "Bottom"]
, n = k.toLowerCase()
, p = {
innerWidth: f.fn.innerWidth,
innerHeight: f.fn.innerHeight,
outerWidth: f.fn.outerWidth,
outerHeight: f.fn.outerHeight
};
function o(s, r, q, t) {
f.each(l, function() {
r -= parseFloat(f.css(s, "padding" + this)) || 0;
if (q) {
r -= parseFloat(f.css(s, "border" + this + "Width")) || 0;
}
if (t) {
r -= parseFloat(f.css(s, "margin" + this)) || 0;
}
});
return r;
}
f.fn["inner" + k] = function(q) {
if (q === j) {
return p["inner" + k].call(this);
}
return this.each(function() {
f(this).css(n, o(this, q) + "px");
});
}
;
f.fn["outer" + k] = function(q, r) {
if (typeof q !== "number") {
return p["outer" + k].call(this, q);
}
return this.each(function() {
f(this).css(n, o(this, q, true, r) + "px");
});
}
;
});
}
if (!f.fn.addBack) {
f.fn.addBack = function(k) {
return this.add(k == null ? this.prevObject : this.prevObject.filter(k));
}
;
}
if (f("<a>").data("a-b", "a").removeData("a-b").data("a-b")) {
f.fn.removeData = (function(k) {
return function(l) {
if (arguments.length) {
return k.call(this, f.camelCase(l));
} else {
return k.call(this);
}
}
;
}
)(f.fn.removeData);
}
f.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
f.support.selectstart = "onselectstart"in a.createElement("div");
f.fn.extend({
disableSelection: function() {
return this.bind((f.support.selectstart ? "selectstart" : "mousedown") + ".ui-disableSelection", function(k) {
k.preventDefault();
});
},
enableSelection: function() {
return this.unbind(".ui-disableSelection");
},
zIndex: function(n) {
if (n !== j) {
return this.css("zIndex", n);
}
if (this.length) {
var l = f(this[0]), k, m;
while (l.length && l[0] !== a) {
k = l.css("position");
if (k === "absolute" || k === "relative" || k === "fixed") {
m = parseInt(l.css("zIndex"), 10);
if (!isNaN(m) && m !== 0) {
return m;
}
}
l = l.parent();
}
}
return 0;
}
});
f.ui.plugin = {
add: function(l, m, o) {
var k, n = f.ui[l].prototype;
for (k in o) {
n.plugins[k] = n.plugins[k] || [];
n.plugins[k].push([m, o[k]]);
}
},
call: function(k, n, m, l) {
var o, p = k.plugins[n];
if (!p) {
return;
}
if (!l && (!k.element[0].parentNode || k.element[0].parentNode.nodeType === 11)) {
return;
}
for (o = 0; o < p.length; o++) {
if (k.options[p[o][0]]) {
p[o][1].apply(k.element, m);
}
}
}
};
}
)(c);
(function(g, f, h) {
var e = function(n, m) {
var i = n.parent()
, p = []
, j = i.children(":jqmData(role='header')")
, l = n.children(":jqmData(role='header')")
, o = i.children(":jqmData(role='footer')")
, k = n.children(":jqmData(role='footer')");
if (l.length === 0 && j.length > 0) {
p = p.concat(j.toArray());
}
if (k.length === 0 && o.length > 0) {
p = p.concat(o.toArray());
}
g.each(p, function(q, r) {
m -= g(r).outerHeight();
});
return Math.max(0, m);
};
g.extend(g.mobile, {
window: g(f),
document: g(a),
keyCode: g.ui.keyCode,
behaviors: {},
silentScroll: function(i) {
if (g.type(i) !== "number") {
i = g.mobile.defaultHomeScroll;
}
g.event.special.scrollstart.enabled = false;
setTimeout(function() {
f.scrollTo(0, i);
g.mobile.document.trigger("silentscroll", {
x: 0,
y: i
});
}, 20);
setTimeout(function() {
g.event.special.scrollstart.enabled = true;
}, 150);
},
getClosestBaseUrl: function(k) {
var i = g(k).closest(".ui-page").jqmData("url")
, j = g.mobile.path.documentBase.hrefNoHash;
if (!g.mobile.dynamicBaseEnabled || !i || !g.mobile.path.isPath(i)) {
i = j;
}
return g.mobile.path.makeUrlAbsolute(i, j);
},
removeActiveLinkClass: function(i) {
if (!!g.mobile.activeClickedLink && (!g.mobile.activeClickedLink.closest("." + g.mobile.activePageClass).length || i)) {
g.mobile.activeClickedLink.removeClass(g.mobile.activeBtnClass);
}
g.mobile.activeClickedLink = null;
},
getInheritedTheme: function(n, j) {
var o = n[0], k = "", l = /ui-(bar|body|overlay)-([a-z])\b/, p, i;
while (o) {
p = o.className || "";
if (p && (i = l.exec(p)) && (k = i[2])) {
break;
}
o = o.parentNode;
}
return k || j || "a";
},
enhanceable: function(i) {
return this.haveParents(i, "enhance");
},
hijackable: function(i) {
return this.haveParents(i, "ajax");
},
haveParents: function(j, p) {
if (!g.mobile.ignoreContentEnabled) {
return j;
}
var m = j.length, k = g(), o, r, n, l, q;
for (l = 0; l < m; l++) {
r = j.eq(l);
n = false;
o = j[l];
while (o) {
q = o.getAttribute ? o.getAttribute("data-" + g.mobile.ns + p) : "";
if (q === "false") {
n = true;
break;
}
o = o.parentNode;
}
if (!n) {
k = k.add(r);
}
}
return k;
},
getScreenHeight: function() {
return f.innerHeight || g.mobile.window.height();
},
resetActivePageHeight: function(i) {
var l = g("." + g.mobile.activePageClass)
, k = l.height()
, j = l.outerHeight(true);
i = e(l, (typeof i === "number") ? i : g.mobile.getScreenHeight());
l.css("min-height", "");
if (l.height() < i) {
l.css("min-height", i - (j - k));
}
},
loading: function() {
var i = this.loading._widget || g(g.mobile.loader.prototype.defaultHtml).loader()
, j = i.loader.apply(i, arguments);
this.loading._widget = i;
return j;
}
});
g.addDependents = function(j, k) {
var i = g(j)
, l = i.jqmData("dependents") || g();
i.jqmData("dependents", g(l).add(k));
}
;
g.fn.extend({
removeWithDependents: function() {
g.removeWithDependents(this);
},
enhanceWithin: function() {
var j, l = {}, i = g.mobile.page.prototype.keepNativeSelector(), k = this;
if (g.mobile.nojs) {
g.mobile.nojs(this);
}
if (g.mobile.links) {
g.mobile.links(this);
}
if (g.mobile.degradeInputsWithin) {
g.mobile.degradeInputsWithin(this);
}
if (g.fn.buttonMarkup) {
this.find(g.fn.buttonMarkup.initSelector).not(i).jqmEnhanceable().buttonMarkup();
}
if (g.fn.fieldcontain) {
this.find(":jqmData(role='fieldcontain')").not(i).jqmEnhanceable().fieldcontain();
}
g.each(g.mobile.widgets, function(m, n) {
if (n.initSelector) {
var o = g.mobile.enhanceable(k.find(n.initSelector));
if (o.length > 0) {
o = o.not(i);
}
if (o.length > 0) {
l[n.prototype.widgetName] = o;
}
}
});
for (j in l) {
l[j][j]();
}
return this;
},
addDependents: function(i) {
g.addDependents(this, i);
},
getEncodedText: function() {
return g("<a>").text(this.text()).html();
},
jqmEnhanceable: function() {
return g.mobile.enhanceable(this);
},
jqmHijackable: function() {
return g.mobile.hijackable(this);
}
});
g.removeWithDependents = function(j) {
var i = g(j);
(i.jqmData("dependents") || g()).remove();
i.remove();
}
;
g.addDependents = function(k, j) {
var i = g(k)
, l = i.jqmData("dependents") || g();
i.jqmData("dependents", g(l).add(j));
}
;
g.find.matches = function(i, j) {
return g.find(i, null, null, j);
}
;
g.find.matchesSelector = function(i, j) {
return g.find(j, null, null, [i]).length > 0;
}
;
}
)(c, this);
(function(e, f) {
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
b.matchMedia = b.matchMedia || (function(k, l) {
var i, g = k.documentElement, h = g.firstElementChild || g.firstChild, j = k.createElement("body"), m = k.createElement("div");
m.id = "mq-test-1";
m.style.cssText = "position:absolute;top:-100em";
j.style.background = "none";
j.appendChild(m);
return function(n) {
m.innerHTML = '­<style media="' + n + '"> #mq-test-1 { width: 42px; }</style>';
g.insertBefore(j, h);
i = m.offsetWidth === 42;
g.removeChild(j);
return {
matches: i,
media: n
};
}
;
}(a));
e.mobile.media = function(g) {
return b.matchMedia(g).matches;
}
;
}
)(c);
(function(f, g) {
var e = {
touch: "ontouchend"in a
};
f.mobile.support = f.mobile.support || {};
f.extend(f.support, e);
f.extend(f.mobile.support, e);
}(c));
(function(e, f) {
e.extend(e.support, {
orientation: "orientation"in b && "onorientationchange"in b
});
}(c));
(function(k, h) {
function g(y) {
var x = y.charAt(0).toUpperCase() + y.substr(1), w = (y + " " + r.join(x + " ") + x).split(" "), u;
for (u in w) {
if (p[w[u]] !== h) {
return true;
}
}
}
var i = k("<body>").prependTo("html"), p = i[0].style, r = ["Webkit", "Moz", "O"], t = "palmGetResource"in b, q = b.operamini && ({}).toString.call(b.operamini) === "[object OperaMini]", o = b.blackberry && !g("-webkit-transform"), n;
function l() {
var u = b
, x = !!u.document.createElementNS && !!u.document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect && !(u.opera && navigator.userAgent.indexOf("Chrome") === -1)
, y = function(w) {
if (!(w && x)) {
k("html").addClass("ui-nosvg");
}
}
, v = new u.Image();
v.onerror = function() {
y(false);
}
;
v.onload = function() {
y(v.width === 1 && v.height === 1);
}
;
v.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
}
function j() {
var y = "transform-3d", u = k.mobile.media("(-" + r.join("-" + y + "),(-") + "-" + y + "),(" + y + ")"), x, w, v;
if (u) {
return !!u;
}
x = a.createElement("div");
w = {
MozTransform: "-moz-transform",
transform: "transform"
};
i.append(x);
for (v in w) {
if (x.style[v] !== h) {
x.style[v] = "translate3d( 100px, 1px, 1px )";
u = b.getComputedStyle(x).getPropertyValue(w[v]);
}
}
return (!!u && u !== "none");
}
function f() {
var y = location.protocol + "//" + location.host + location.pathname + "ui-dir/", x = k("head base"), z = null, u = "", w, v;
if (!x.length) {
x = z = k("<base>", {
href: y
}).appendTo("head");
} else {
u = x.attr("href");
}
w = k("<a href='testurl' />").prependTo(i);
v = w[0].href;
x[0].href = u || location.pathname;
if (z) {
z.remove();
}
return v.indexOf(y) === 0;
}
function s() {
var v = a.createElement("x"), w = a.documentElement, x = b.getComputedStyle, u;
if (!("pointerEvents"in v.style)) {
return false;
}
v.style.pointerEvents = "auto";
v.style.pointerEvents = "x";
w.appendChild(v);
u = x && x(v, "").pointerEvents === "auto";
w.removeChild(v);
return !!u;
}
function e() {
var u = a.createElement("div");
return typeof u.getBoundingClientRect !== "undefined";
}
k.extend(k.mobile, {
browser: {}
});
k.mobile.browser.oldIE = (function() {
var w = 3
, x = a.createElement("div")
, u = x.all || [];
do {
x.innerHTML = "<!--[if gt IE " + (++w) + "]><br><![endif]-->";
} while (u[0]);
return w > 4 ? w : !w;
}
)();
function m() {
var D = b
, v = navigator.userAgent
, y = navigator.platform
, C = v.match(/AppleWebKit\/([0-9]+)/)
, B = !!C && C[1]
, x = v.match(/Fennec\/([0-9]+)/)
, z = !!x && x[1]
, A = v.match(/Opera Mobi\/([0-9]+)/)
, u = !!A && A[1];
if (((y.indexOf("iPhone") > -1 || y.indexOf("iPad") > -1 || y.indexOf("iPod") > -1) && B && B < 534) || (D.operamini && ({}).toString.call(D.operamini) === "[object OperaMini]") || (A && u < 7458) || (v.indexOf("Android") > -1 && B && B < 533) || (z && z < 6) || ("palmGetResource"in b && B && B < 534) || (v.indexOf("MeeGo") > -1 && v.indexOf("NokiaBrowser/8.5.0") > -1)) {
return false;
}
return true;
}
k.extend(k.support, {
pushState: "pushState"in history && "replaceState"in history && !(b.navigator.userAgent.indexOf("Firefox") >= 0 && b.top !== b) && (b.navigator.userAgent.search(/CriOS/) === -1),
mediaquery: k.mobile.media("only all"),
cssPseudoElement: !!g("content"),
touchOverflow: !!g("overflowScrolling"),
cssTransform3d: j(),
boxShadow: !!g("boxShadow") && !o,
fixedPosition: m(),
scrollTop: ("pageXOffset"in b || "scrollTop"in a.documentElement || "scrollTop"in i[0]) && !t && !q,
dynamicBaseTag: f(),
cssPointerEvents: s(),
boundingRect: e(),
inlineSVG: l
});
i.remove();
n = (function() {
var u = b.navigator.userAgent;
return u.indexOf("Nokia") > -1 && (u.indexOf("Symbian/3") > -1 || u.indexOf("Series60/5") > -1) && u.indexOf("AppleWebKit") > -1 && u.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/);
}
)();
k.mobile.gradeA = function() {
return ((k.support.mediaquery && k.support.cssPseudoElement) || k.mobile.browser.oldIE && k.mobile.browser.oldIE >= 8) && (k.support.boundingRect || k.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/) !== null);
}
;
k.mobile.ajaxBlacklist = b.blackberry && !b.WebKitPoint || q || n;
if (n) {
k(function() {
k("head link[rel='stylesheet']").attr("rel", "alternate stylesheet").attr("rel", "stylesheet");
});
}
if (!k.support.boxShadow) {
k("html").addClass("ui-noboxshadow");
}
}
)(c);
(function(g, h) {
var i = g.mobile.window, f, e = function() {};
g.event.special.beforenavigate = {
setup: function() {
i.on("navigate", e);
},
teardown: function() {
i.off("navigate", e);
}
};
g.event.special.navigate = f = {
bound: false,
pushStateEnabled: true,
originalEventName: h,
isPushStateEnabled: function() {
return g.support.pushState && g.mobile.pushStateEnabled === true && this.isHashChangeEnabled();
},
isHashChangeEnabled: function() {
return g.mobile.hashListeningEnabled === true;
},
popstate: function(j) {
var l = new g.Event("navigate")
, m = new g.Event("beforenavigate")
, k = j.originalEvent.state || {};
m.originalEvent = j;
i.trigger(m);
if (m.isDefaultPrevented()) {
return;
}
if (j.historyState) {
g.extend(k, j.historyState);
}
l.originalEvent = j;
setTimeout(function() {
i.trigger(l, {
state: k
});
}, 0);
},
hashchange: function(j) {
var k = new g.Event("navigate")
, l = new g.Event("beforenavigate");
l.originalEvent = j;
i.trigger(l);
if (l.isDefaultPrevented()) {
return;
}
k.originalEvent = j;
i.trigger(k, {
state: j.hashchangeState || {}
});
},
setup: function() {
if (f.bound) {
return;
}
f.bound = true;
if (f.isPushStateEnabled()) {
f.originalEventName = "popstate";
i.bind("popstate.navigate", f.popstate);
} else {
if (f.isHashChangeEnabled()) {
f.originalEventName = "hashchange";
i.bind("hashchange.navigate", f.hashchange);
}
}
}
};
}
)(c);
(function(i) {
i.event.special.throttledresize = {
setup: function() {
i(this).bind("resize", g);
},
teardown: function() {
i(this).unbind("resize", g);
}
};
var h = 250, g = function() {
k = (new Date()).getTime();
j = k - f;
if (j >= h) {
f = k;
i(this).trigger("throttledresize");
} else {
if (e) {
clearTimeout(e);
}
e = setTimeout(g, h - j);
}
}, f = 0, e, k, j;
}
)(c);
(function(j, o) {
var m = j(o), l = "orientationchange", f, k, g, p, n = {
"0": true,
"180": true
}, i, e, h;
if (j.support.orientation) {
i = o.innerWidth || m.width();
e = o.innerHeight || m.height();
h = 50;
g = i > e && (i - e) > h;
p = n[o.orientation];
if ((g && p) || (!g && !p)) {
n = {
"-90": true,
"90": true
};
}
}
j.event.special.orientationchange = j.extend({}, j.event.special.orientationchange, {
setup: function() {
if (j.support.orientation && !j.event.special.orientationchange.disabled) {
return false;
}
k = f();
m.bind("throttledresize", q);
},
teardown: function() {
if (j.support.orientation && !j.event.special.orientationchange.disabled) {
return false;
}
m.unbind("throttledresize", q);
},
add: function(r) {
var s = r.handler;
r.handler = function(t) {
t.orientation = f();
return s.apply(this, arguments);
}
;
}
});
function q() {
var r = f();
if (r !== k) {
k = r;
m.trigger(l);
}
}
j.event.special.orientationchange.orientation = f = function() {
var s = true
, r = a.documentElement;
if (j.support.orientation) {
s = n[o.orientation];
} else {
s = r && r.clientWidth / r.clientHeight < 1.1;
}
return s ? "portrait" : "landscape";
}
;
j.fn[l] = function(r) {
return r ? this.bind(l, r) : this.trigger(l);
}
;
if (j.attrFn) {
j.attrFn[l] = true;
}
}(c, this));
(function(B, K, j, q) {
var J = "virtualMouseBindings", f = "virtualTouchID", e = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), A = "clientX clientY pageX pageY screenX screenY".split(" "), G = B.event.mouseHooks ? B.event.mouseHooks.props : [], C = B.event.props.concat(G), E = {}, L = 0, w = 0, v = 0, t = false, O = [], l = false, V = false, y = "addEventListener"in j, x = B(j), I = 1, R = 0, g, P;
B.vmouse = {
moveDistanceThreshold: 10,
clickDistanceThreshold: 10,
resetTimerDuration: 1500
};
function u(i) {
while (i && typeof i.originalEvent !== "undefined") {
i = i.originalEvent;
}
return i;
}
function m(X, Y) {
var ag = X.type, ah, af, Z, W, ad, ac, ab, aa, ae;
X = B.Event(X);
X.type = Y;
ah = X.originalEvent;
af = B.event.props;
if (ag.search(/^(mouse|click)/) > -1) {
af = C;
}
if (ah) {
for (ab = af.length,
W; ab; ) {
W = af[--ab];
X[W] = ah[W];
}
}
if (ag.search(/mouse(down|up)|click/) > -1 && !X.which) {
X.which = 1;
}
if (ag.search(/^touch/) !== -1) {
Z = u(ah);
ag = Z.touches;
ad = Z.changedTouches;
ac = (ag && ag.length) ? ag[0] : ((ad && ad.length) ? ad[0] : q);
if (ac) {
for (aa = 0,
ae = A.length; aa < ae; aa++) {
W = A[aa];
X[W] = ac[W];
}
}
}
return X;
}
function T(Y) {
var W = {}, i, X;
while (Y) {
i = B.data(Y, J);
for (X in i) {
if (i[X]) {
W[X] = W.hasVirtualBinding = true;
}
}
Y = Y.parentNode;
}
return W;
}
function F(X, W) {
var i;
while (X) {
i = B.data(X, J);
if (i && (!W || i[W])) {
return X;
}
X = X.parentNode;
}
return null;
}
function N() {
V = false;
}
function o() {
V = true;
}
function U() {
R = 0;
O.length = 0;
l = false;
o();
}
function s() {
N();
}
function z() {
D();
L = setTimeout(function() {
L = 0;
U();
}, B.vmouse.resetTimerDuration);
}
function D() {
if (L) {
clearTimeout(L);
L = 0;
}
}
function r(X, Y, i) {
var W;
if ((i && i[X]) || (!i && F(Y.target, X))) {
W = m(Y, X);
B(Y.target).trigger(W);
}
return W;
}
function n(W) {
var X = B.data(W.target, f), i;
if (!l && (!R || R !== X)) {
i = r("v" + W.type, W);
if (i) {
if (i.isDefaultPrevented()) {
W.preventDefault();
}
if (i.isPropagationStopped()) {
W.stopPropagation();
}
if (i.isImmediatePropagationStopped()) {
W.stopImmediatePropagation();
}
}
}
}
function S(X) {
var Z = u(X).touches, Y, i, W;
if (Z && Z.length === 1) {
Y = X.target;
i = T(Y);
if (i.hasVirtualBinding) {
R = I++;
B.data(Y, f, R);
D();
s();
t = false;
W = u(X).touches[0];
w = W.pageX;
v = W.pageY;
r("vmouseover", X, i);
r("vmousedown", X, i);
}
}
}
function M(i) {
if (V) {
return;
}
if (!t) {
r("vmousecancel", i, T(i.target));
}
t = true;
z();
}
function h(Z) {
if (V) {
return;
}
var X = u(Z).touches[0]
, W = t
, Y = B.vmouse.moveDistanceThreshold
, i = T(Z.target);
t = t || (Math.abs(X.pageX - w) > Y || Math.abs(X.pageY - v) > Y);
if (t && !W) {
r("vmousecancel", Z, i);
}
r("vmousemove", Z, i);
z();
}
function k(Y) {
if (V) {
return;
}
o();
var i = T(Y.target), W, X;
r("vmouseup", Y, i);
if (!t) {
W = r("vclick", Y, i);
if (W && W.isDefaultPrevented()) {
X = u(Y).changedTouches[0];
O.push({
touchID: R,
x: X.clientX,
y: X.clientY
});
l = true;
}
}
r("vmouseout", Y, i);
t = false;
z();
}
function H(W) {
var X = B.data(W, J), i;
if (X) {
for (i in X) {
if (X[i]) {
return true;
}
}
}
return false;
}
function Q() {}
function p(i) {
var W = i.substr(1);
return {
setup: function() {
if (!H(this)) {
B.data(this, J, {});
}
var X = B.data(this, J);
X[i] = true;
E[i] = (E[i] || 0) + 1;
if (E[i] === 1) {
x.bind(W, n);
}
B(this).bind(W, Q);
if (y) {
E.touchstart = (E.touchstart || 0) + 1;
if (E.touchstart === 1) {
x.bind("touchstart", S).bind("touchend", k).bind("touchmove", h).bind("scroll", M);
}
}
},
teardown: function() {
--E[i];
if (!E[i]) {
x.unbind(W, n);
}
if (y) {
--E.touchstart;
if (!E.touchstart) {
x.unbind("touchstart", S).unbind("touchmove", h).unbind("touchend", k).unbind("scroll", M);
}
}
var X = B(this)
, Y = B.data(this, J);
if (Y) {
Y[i] = false;
}
X.unbind(W, Q);
if (!H(this)) {
X.removeData(J);
}
}
};
}
for (P = 0; P < e.length; P++) {
B.event.special[e[P]] = p(e[P]);
}
if (y) {
j.addEventListener("click", function(aa) {
var X = O.length, ab = aa.target, ad, ac, ae, Z, W, Y;
if (X) {
ad = aa.clientX;
ac = aa.clientY;
g = B.vmouse.clickDistanceThreshold;
ae = ab;
while (ae) {
for (Z = 0; Z < X; Z++) {
W = O[Z];
Y = 0;
if ((ae === ab && Math.abs(W.x - ad) < g && Math.abs(W.y - ac) < g) || B.data(ae, f) === W.touchID) {
aa.preventDefault();
aa.stopPropagation();
return;
}
}
ae = ae.parentNode;
}
}
}, true);
}
}
)(c, b, a);
(function(h, m, e) {
var f = h(a)
, i = h.mobile.support.touch
, j = "touchmove scroll"
, n = i ? "touchstart" : "mousedown"
, l = i ? "touchend" : "mouseup"
, g = i ? "touchmove" : "mousemove";
h.each(("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop").split(" "), function(p, o) {
h.fn[o] = function(q) {
return q ? this.bind(o, q) : this.trigger(o);
}
;
if (h.attrFn) {
h.attrFn[o] = true;
}
});
function k(s, p, r, o) {
var q = r.type;
r.type = p;
if (o) {
h.event.trigger(r, e, s);
} else {
h.event.dispatch.call(s, r);
}
r.type = q;
}
h.event.special.scrollstart = {
enabled: true,
setup: function() {
var o = this, r = h(o), q, s;
function p(t, u) {
q = u;
k(o, q ? "scrollstart" : "scrollstop", t);
}
r.bind(j, function(t) {
if (!h.event.special.scrollstart.enabled) {
return;
}
if (!q) {
p(t, true);
}
clearTimeout(s);
s = setTimeout(function() {
p(t, false);
}, 50);
});
},
teardown: function() {
h(this).unbind(j);
}
};
h.event.special.tap = {
tapholdThreshold: 750,
emitTapOnTaphold: true,
setup: function() {
var o = this
, q = h(o)
, p = false;
q.bind("vmousedown", function(t) {
p = false;
if (t.which && t.which !== 1) {
return false;
}
var s = t.target, w;
function r() {
clearTimeout(w);
}
function v() {
r();
q.unbind("vclick", u).unbind("vmouseup", r);
f.unbind("vmousecancel", v);
}
function u(x) {
v();
if (!p && s === x.target) {
k(o, "tap", x);
} else {
if (p) {
x.preventDefault();
}
}
}
q.bind("vmouseup", r).bind("vclick", u);
f.bind("vmousecancel", v);
w = setTimeout(function() {
if (!h.event.special.tap.emitTapOnTaphold) {
p = true;
}
k(o, "taphold", h.Event("taphold", {
target: s
}));
}, h.event.special.tap.tapholdThreshold);
});
},
teardown: function() {
h(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup");
f.unbind("vmousecancel");
}
};
h.event.special.swipe = {
scrollSupressionThreshold: 30,
durationThreshold: 1000,
horizontalDistanceThreshold: 30,
verticalDistanceThreshold: 30,
getLocation: function(r) {
var q = m.pageXOffset
, p = m.pageYOffset
, o = r.clientX
, s = r.clientY;
if (r.pageY === 0 && Math.floor(s) > Math.floor(r.pageY) || r.pageX === 0 && Math.floor(o) > Math.floor(r.pageX)) {
o = o - q;
s = s - p;
} else {
if (s < (r.pageY - p) || o < (r.pageX - q)) {
o = r.pageX - q;
s = r.pageY - p;
}
}
return {
x: o,
y: s
};
},
start: function(p) {
var q = p.originalEvent.touches ? p.originalEvent.touches[0] : p
, o = h.event.special.swipe.getLocation(q);
return {
time: (new Date()).getTime(),
coords: [o.x, o.y],
origin: h(p.target)
};
},
stop: function(p) {
var q = p.originalEvent.touches ? p.originalEvent.touches[0] : p
, o = h.event.special.swipe.getLocation(q);
return {
time: (new Date()).getTime(),
coords: [o.x, o.y]
};
},
handleSwipe: function(s, p, o, q) {
if (p.time - s.time < h.event.special.swipe.durationThreshold && Math.abs(s.coords[0] - p.coords[0]) > h.event.special.swipe.horizontalDistanceThreshold && Math.abs(s.coords[1] - p.coords[1]) < h.event.special.swipe.verticalDistanceThreshold) {
var r = s.coords[0] > p.coords[0] ? "swipeleft" : "swiperight";
k(o, "swipe", h.Event("swipe", {
target: q,
swipestart: s,
swipestop: p
}), true);
k(o, r, h.Event(r, {
target: q,
swipestart: s,
swipestop: p
}), true);
return true;
}
return false;
},
eventInProgress: false,
setup: function() {
var q, o = this, r = h(o), p = {};
q = h.data(this, "mobile-events");
if (!q) {
q = {
length: 0
};
h.data(this, "mobile-events", q);
}
q.length++;
q.swipe = p;
p.start = function(u) {
if (h.event.special.swipe.eventInProgress) {
return;
}
h.event.special.swipe.eventInProgress = true;
var s, w = h.event.special.swipe.start(u), t = u.target, v = false;
p.move = function(x) {
if (!w || x.isDefaultPrevented()) {
return;
}
s = h.event.special.swipe.stop(x);
if (!v) {
v = h.event.special.swipe.handleSwipe(w, s, o, t);
if (v) {
h.event.special.swipe.eventInProgress = false;
}
}
if (Math.abs(w.coords[0] - s.coords[0]) > h.event.special.swipe.scrollSupressionThreshold) {
x.preventDefault();
}
}
;
p.stop = function() {
v = true;
h.event.special.swipe.eventInProgress = false;
f.off(g, p.move);
p.move = null;
}
;
f.on(g, p.move).one(l, p.stop);
}
;
r.on(n, p.start);
},
teardown: function() {
var p, o;
p = h.data(this, "mobile-events");
if (p) {
o = p.swipe;
delete p.swipe;
p.length--;
if (p.length === 0) {
h.removeData(this, "mobile-events");
}
}
if (o) {
if (o.start) {
h(this).off(n, o.start);
}
if (o.move) {
f.off(g, o.move);
}
if (o.stop) {
f.off(l, o.stop);
}
}
}
};
h.each({
scrollstop: "scrollstart",
taphold: "tap",
swipeleft: "swipe.left",
swiperight: "swipe.right"
}, function(p, o) {
h.event.special[p] = {
setup: function() {
h(this).bind(o, h.noop);
},
teardown: function() {
h(this).unbind(o);
}
};
});
}
)(c, this);
}));
(function() {
var a = "jSignature";
var i = function(r, t) {
var s;
this.kick = function() {
clearTimeout(s);
s = setTimeout(t, r);
}
;
this.clear = function() {
clearTimeout(s);
}
;
return this;
};
var b = function(r) {
this.topics = {};
this.context = r ? r : this;
this.publish = function(w, y, x, t) {
if (this.topics[w]) {
var z = this.topics[w], A = Array.prototype.slice.call(arguments, 1), C = [], B, v, s, u;
for (v = 0,
s = z.length; v < s; v++) {
u = z[v];
if (null != u) {
B = u[0];
if (u[1]) {
u[0] = function() {}
;
C.push(v);
}
B.apply(this.context, A);
}
}
for (v = 0,
s = C.length; v < s; v++) {
z.splice(C[v], 1);
}
}
}
;
this.subscribe = function(s, u, t) {
if (!this.topics[s]) {
this.topics[s] = [[u, t]];
} else {
this.topics[s].push([u, t]);
}
return {
topic: s,
callback: u
};
}
;
this.unsubscribe = function(v) {
if (this.topics[v.topic]) {
var t = this.topics[v.topic];
for (var u = 0, s = t.length; u < s; u++) {
if (null != t[u]) {
if (t[u][0] === v.callback) {
t.splice(u, 1);
}
}
}
}
}
;
};
function m(u) {
var H, t, B = u.css("color"), r, G = u[0];
var I = false;
while (G && !r && !I) {
try {
H = $(G).css("background-color");
} catch (F) {
H = "transparent";
}
if (H !== "transparent" && H !== "rgba(0, 0, 0, 0)") {
r = H;
}
I = G.body;
G = G.parentNode;
}
var D = /rgb[a]*\((\d+),\s*(\d+),\s*(\d+)/, C = /#([AaBbCcDdEeFf\d]{2})([AaBbCcDdEeFf\d]{2})([AaBbCcDdEeFf\d]{2})/, s;
H = t;
H = B.match(D);
if (H) {
s = {
r: parseInt(H[1], 10),
g: parseInt(H[2], 10),
b: parseInt(H[3], 10)
};
} else {
H = B.match(C);
if (H) {
s = {
r: parseInt(H[1], 16),
g: parseInt(H[2], 16),
b: parseInt(H[3], 16)
};
}
}
var y;
if (!r) {
if (s) {
if (Math.max.apply(null, [s.r, s.g, s.b]) > 127) {
y = {
r: 0,
g: 0,
b: 0
};
} else {
y = {
r: 255,
g: 255,
b: 255
};
}
} else {
y = {
r: 255,
g: 255,
b: 255
};
}
} else {
H = t;
H = r.match(D);
if (H) {
y = {
r: parseInt(H[1], 10),
g: parseInt(H[2], 10),
b: parseInt(H[3], 10)
};
} else {
H = r.match(C);
if (H) {
y = {
r: parseInt(H[1], 16),
g: parseInt(H[2], 16),
b: parseInt(H[3], 16)
};
}
}
}
var v = function(J) {
return "rgb(" + [J.r, J.g, J.b].join(", ") + ")";
}, A, E, w;
if (s && y) {
var x = Math.max.apply(null, [s.r, s.g, s.b]);
E = Math.max.apply(null, [y.r, y.g, y.b]);
w = Math.round(E + (-1 * (E - x) * 0.75));
A = {
r: w,
g: w,
b: w
};
} else {
if (s) {
E = Math.max.apply(null, [s.r, s.g, s.b]);
var z = +1;
if (E > 127) {
z = -1;
}
w = Math.round(E + (z * 96));
A = {
r: w,
g: w,
b: w
};
} else {
A = {
r: 191,
g: 191,
b: 191
};
}
}
return {
color: B,
"background-color": y ? v(y) : r,
"decor-color": v(A)
};
}
function h(r, t) {
this.x = r;
this.y = t;
this.reverse = function() {
return new this.constructor(this.x * -1,this.y * -1);
}
;
this._length = null;
this.getLength = function() {
if (!this._length) {
this._length = Math.sqrt(Math.pow(this.x, 2) + Math.pow(this.y, 2));
}
return this._length;
}
;
var s = function(u) {
return Math.round(u / Math.abs(u));
};
this.resizeTo = function(v) {
if (this.x === 0 && this.y === 0) {
this._length = 0;
} else {
if (this.x === 0) {
this._length = v;
this.y = v * s(this.y);
} else {
if (this.y === 0) {
this._length = v;
this.x = v * s(this.x);
} else {
var w = Math.abs(this.y / this.x)
, u = Math.sqrt(Math.pow(v, 2) / (1 + Math.pow(w, 2)))
, z = w * u;
this._length = v;
this.x = u * s(this.x);
this.y = z * s(this.y);
}
}
}
return this;
}
;
this.angleTo = function(u) {
var v = this.getLength() * u.getLength();
if (v === 0) {
return 0;
} else {
return Math.acos(Math.min(Math.max((this.x * u.x + this.y * u.y) / v, -1), 1)) / Math.PI;
}
}
;
}
function n(r, s) {
this.x = r;
this.y = s;
this.getVectorToCoordinates = function(t, u) {
return new h(t - this.x,u - this.y);
}
;
this.getVectorFromCoordinates = function(t, u) {
return this.getVectorToCoordinates(t, u).reverse();
}
;
this.getVectorToPoint = function(t) {
return new h(t.x - this.x,t.y - this.y);
}
;
this.getVectorFromPoint = function(t) {
return this.getVectorToPoint(t).reverse();
}
;
}
function o(r, s, v, A, u) {
this.data = r;
this.context = s;
if (r.length) {
var x = r.length, z, y;
for (var w = 0; w < x; w++) {
z = r[w];
y = z.x.length;
v.call(s, z);
for (var t = 1; t < y; t++) {
A.call(s, z, t);
}
u.call(s, z);
}
}
this.changed = function() {}
;
this.startStrokeFn = v;
this.addToStrokeFn = A;
this.endStrokeFn = u;
this.inStroke = false;
this._lastPoint = null;
this._stroke = null;
this.startStroke = function(B) {
if (B && typeof (B.x) == "number" && typeof (B.y) == "number") {
this._stroke = {
x: [B.x],
y: [B.y]
};
this.data.push(this._stroke);
this._lastPoint = B;
this.inStroke = true;
var E = this._stroke
, D = this.startStrokeFn
, C = this.context;
setTimeout(function() {
D.call(C, E);
}, 3);
return B;
} else {
return null;
}
}
;
this.addToStroke = function(C) {
if (this.inStroke && typeof (C.x) === "number" && typeof (C.y) === "number" && (Math.abs(C.x - this._lastPoint.x) + Math.abs(C.y - this._lastPoint.y)) > 4) {
var B = this._stroke.x.length;
this._stroke.x.push(C.x);
this._stroke.y.push(C.y);
this._lastPoint = C;
var F = this._stroke
, E = this.addToStrokeFn
, D = this.context;
setTimeout(function() {
E.call(D, F, B);
}, 3);
return C;
} else {
return null;
}
}
;
this.endStroke = function() {
var F = this.inStroke;
this.inStroke = false;
this._lastPoint = null;
if (F) {
var E = this._stroke
, D = this.endStrokeFn
, C = this.context
, B = this.changed;
setTimeout(function() {
D.call(C, E);
B.call(C);
}, 3);
return true;
} else {
return null;
}
}
;
}
var j = function(s, r, v, u) {
var t = s.fillStyle;
s.fillStyle = s.strokeStyle;
s.fillRect(r + u / -2, v + u / -2, u, u);
s.fillStyle = t;
}
, e = function(s, t, r, v, u) {
s.beginPath();
s.moveTo(t, r);
s.lineTo(v, u);
s.stroke();
}
, p = function(z, s, r, w, v, u, t, y, x) {
z.beginPath();
z.moveTo(s, r);
z.bezierCurveTo(u, t, y, x, w, v);
z.stroke();
}
, d = function(r) {
j(this.canvasContext, r.x[0], r.y[0], this.settings.lineWidth);
}
, g = function(E, C) {
var s = new n(E.x[C - 1],E.y[C - 1])
, x = new n(E.x[C],E.y[C])
, t = s.getVectorToPoint(x);
if (C > 1) {
var D = new n(E.x[C - 2],E.y[C - 2]), z = D.getVectorToPoint(s), v;
if (z.getLength() > this.lineCurveThreshold) {
if (C > 2) {
v = (new n(E.x[C - 3],E.y[C - 3])).getVectorToPoint(D);
} else {
v = new h(0,0);
}
var r = 0.05
, u = z.getLength() * 0.35
, B = z.angleTo(v.reverse())
, A = t.angleTo(z.reverse())
, y = new h(v.x + z.x,v.y + z.y).resizeTo(Math.max(r, B) * u)
, w = (new h(z.x + t.x,z.y + t.y)).reverse().resizeTo(Math.max(r, A) * u);
p(this.canvasContext, D.x, D.y, s.x, s.y, D.x + y.x, D.y + y.y, s.x + w.x, s.y + w.y);
}
}
if (t.getLength() <= this.lineCurveThreshold) {
e(this.canvasContext, s.x, s.y, x.x, x.y);
}
}
, l = function(v) {
var t = v.x.length - 1;
if (t > 0) {
var x = new n(v.x[t],v.y[t]), s = new n(v.x[t - 1],v.y[t - 1]), r = s.getVectorToPoint(x), w;
if (r.getLength() > this.lineCurveThreshold) {
if (t > 1) {
w = (new n(v.x[t - 2],v.y[t - 2])).getVectorToPoint(s);
var u = new h(w.x + r.x,w.y + r.y).resizeTo(r.getLength() / 2);
p(this.canvasContext, s.x, s.y, x.x, x.y, s.x + u.x, s.y + u.y, x.x, x.y);
} else {
e(this.canvasContext, s.x, s.y, x.x, x.y);
}
}
}
};
function k(s, u, t, r) {
if (u === "ratio" || u.split("")[u.length - 1] === "%") {
this.eventTokens[t + ".parentresized"] = r.subscribe(t + ".parentresized", (function(y, x, v, w) {
return function() {
var z = x.width();
if (z !== v) {
for (var A in y) {
if (y.hasOwnProperty(A)) {
r.unsubscribe(y[A]);
delete y[A];
}
}
var B = s.settings;
s.$parent.children().remove();
for (var A in s) {
if (s.hasOwnProperty(A)) {
delete s[A];
}
}
B.data = (function(H, E) {
var K = [];
var C, I, F, G, D, J;
for (I = 0,
F = H.length; I < F; I++) {
J = H[I];
C = {
x: [],
y: []
};
for (G = 0,
D = J.x.length; G < D; G++) {
C.x.push(J.x[G] * E);
C.y.push(J.y[G] * E);
}
K.push(C);
}
return K;
}
)(B.data, z * 1 / v);
x[t](B);
}
}
;
}
)(this.eventTokens, this.$parent, this.$parent.width(), this.canvas.width * 1 / this.canvas.height));
}
}
function f(C, F, y) {
var w = this.$parent = $(C)
, D = this.eventTokens = {}
, E = this.events = new b(this)
, t = $.fn[a]("globalEvents")
, u = {
width: "ratio",
height: "ratio",
sizeRatio: 4,
color: "#000",
"background-color": "#fff",
"decor-color": "#eee",
lineWidth: 0,
minFatFingerCompensation: -10,
showUndoButton: false,
data: []
};
$.extend(u, m(w));
if (F) {
$.extend(u, F);
}
this.settings = u;
for (var B in y) {
if (y.hasOwnProperty(B)) {
y[B].call(this, B);
}
}
this.events.publish(a + ".initializing");
this.$controlbarUpper = (function() {
var G = "padding:0 !important;margin:0 !important;width: 100% !important; height: 0 !important;margin-top:-1em !important;margin-bottom:1em !important;";
return $('<div style="' + G + '"></div>').appendTo(w);
}
)();
this.isCanvasEmulator = false;
var s = this.canvas = this.initializeCanvas(u)
, A = $(s);
this.$controlbarLower = (function() {
var G = "padding:0 !important;margin:0 !important;width: 100% !important; height: 0 !important;margin-top:-1.5em !important;margin-bottom:1.5em !important;";
return $('<div style="' + G + '"></div>').appendTo(w);
}
)();
this.canvasContext = s.getContext("2d");
A.data(a + ".this", this);
u.lineWidth = (function(H, G) {
if (!H) {
return Math.max(Math.round(G / 400), 2);
} else {
return H;
}
}
)(u.lineWidth, s.width);
this.lineCurveThreshold = u.lineWidth * 3;
if (u.cssclass && $.trim(u.cssclass) != "") {
A.addClass(u.cssclass);
}
this.fatFingerCompensation = 0;
var r = (function(H) {
var K, J, G = function() {
var M = null;
if (is_android && !is_samsung_browser) {
M = $(H.canvas).offsetCustom();
} else {
M = $(H.canvas).offset();
}
K = M.left * -1;
J = M.top * -1;
}, I = function(R) {
var O = (R.changedTouches && R.changedTouches.length > 0 ? R.changedTouches[0] : R);
var Q = window.Re_zoom;
if (null != Q && Q.isPop) {
if (is_PosiFix) {
return new n(Math.round(O.clientX + K),Math.round(O.clientY + J) + H.fatFingerCompensation);
} else {
return new n(Math.round(O.pageX + K),Math.round(O.pageY + J) + H.fatFingerCompensation);
}
} else {
var P = Q.rate;
P *= 0.5;
var M;
var S;
if (is_smartphone) {
if (is_PosiFix) {
M = ((K * P) + O.clientX) / P;
S = ((J * P) + O.clientY) / P;
} else {
M = ((K * P) + O.pageX) / P;
S = ((J * P) + O.pageY) / P;
}
} else {
var N = P;
if (is_edge || is_firefox || is_ie) {
N = 1;
}
if (is_PosiFix) {
M = ((K * N) + O.clientX) / P;
S = ((J * N) + O.clientY) / P;
} else {
M = ((K * N) + O.pageX) / P;
S = ((J * N) + O.pageY) / P;
}
}
return new n(Math.round(M),Math.round(S) + H.fatFingerCompensation);
}
}, L = new i(750,function() {
H.dataEngine.endStroke();
}
);
this.drawEndHandler = function(N) {
try {
N.preventDefault();
} catch (M) {}
L.clear();
H.dataEngine.endStroke();
}
;
this.drawStartHandler = function(M) {
M.preventDefault();
G();
H.dataEngine.startStroke(I(M));
L.kick();
}
;
this.drawMoveHandler = function(M) {
M.preventDefault();
if (!H.dataEngine.inStroke) {
return;
}
H.dataEngine.addToStroke(I(M));
L.kick();
}
;
return this;
}
).call({}, this);
(function(L, J, H) {
var G = this.canvas, K = $(G), I;
if (this.isCanvasEmulator) {
K.bind("mousemove." + a, H);
K.bind("mouseup." + a, L);
K.bind("mousedown." + a, J);
} else {
G.ontouchstart = function(M) {
G.onmousedown = I;
G.onmouseup = I;
G.onmousemove = I;
this.fatFingerCompensation = (u.minFatFingerCompensation && u.lineWidth * -3 > u.minFatFingerCompensation) ? u.lineWidth * -3 : u.minFatFingerCompensation;
J(M);
G.ontouchend = L;
G.ontouchstart = J;
G.ontouchmove = H;
}
;
G.onmousedown = function(M) {
G.ontouchstart = I;
G.ontouchend = I;
G.ontouchmove = I;
J(M);
G.onmousedown = J;
G.onmouseup = L;
G.onmousemove = H;
}
;
}
}
).call(this, r.drawEndHandler, r.drawStartHandler, r.drawMoveHandler);
D[a + ".windowmouseup"] = t.subscribe(a + ".windowmouseup", r.drawEndHandler);
this.events.publish(a + ".attachingEventHandlers");
k.call(this, this, u.width.toString(10), a, t);
if (null != u.imageData && "" != u.imageData) {
var z = this.canvasContext;
var v = this;
var x = new Image();
x.onload = function() {
z.drawImage(this, 0, 0, s.width, s.height);
v.startResetCanvas(u.data);
v.events.publish(a + ".initialized");
}
;
x.src = "data:image/png;base64," + decodeURIComponent(u.imageData);
u.imageData = null;
} else {
this.resetCanvas(u.data);
this.events.publish(a + ".initialized");
}
return this;
}
f.prototype.startResetCanvas = function(x) {
var t = this.canvas
, v = this.settings
, z = this.canvasContext
, s = this.isCanvasEmulator
, w = t.width
, r = t.height;
z.lineWidth = Math.ceil(parseInt(v.lineWidth, 10));
z.lineCap = z.lineJoin = "round";
z.strokeStyle = v["decor-color"];
z.shadowOffsetX = 0;
z.shadowOffsetY = 0;
var u = Math.round(r / 5);
e(z, u * 1.5, r - u, w - (u * 1.5), r - u);
z.strokeStyle = v.color;
if (!s) {
z.shadowColor = z.strokeStyle;
z.shadowOffsetX = z.lineWidth * 0.5;
z.shadowOffsetY = z.lineWidth * -0.6;
z.shadowBlur = 0;
}
if (!x) {
x = [];
}
var y = this.dataEngine = new o(x,this,d,g,l);
v.data = x;
$(t).data(a + ".data", x).data(a + ".settings", v);
y.changed = (function(C, A, B) {
return function() {
A.publish(B + ".change");
C.trigger("change");
}
;
}
)(this.$parent, this.events, a);
y.changed();
return true;
}
;
f.prototype.resetCanvas = function(x) {
var t = this.canvas
, v = this.settings
, z = this.canvasContext
, s = this.isCanvasEmulator
, w = t.width
, r = t.height;
z.clearRect(0, 0, w + 30, r + 30);
z.shadowColor = z.fillStyle = v["background-color"];
if (s) {
z.fillRect(0, 0, w + 30, r + 30);
}
z.lineWidth = Math.ceil(parseInt(v.lineWidth, 10));
z.lineCap = z.lineJoin = "round";
z.strokeStyle = v["decor-color"];
z.shadowOffsetX = 0;
z.shadowOffsetY = 0;
var u = Math.round(r / 5);
e(z, u * 1.5, r - u, w - (u * 1.5), r - u);
z.strokeStyle = v.color;
if (!s) {
z.shadowColor = z.strokeStyle;
z.shadowOffsetX = z.lineWidth * 0.5;
z.shadowOffsetY = z.lineWidth * -0.6;
z.shadowBlur = 0;
}
if (!x) {
x = [];
}
var y = this.dataEngine = new o(x,this,d,g,l);
v.data = x;
$(t).data(a + ".data", x).data(a + ".settings", v);
y.changed = (function(C, A, B) {
return function() {
A.publish(B + ".change");
C.trigger("change");
}
;
}
)(this.$parent, this.events, a);
y.changed();
return true;
}
;
function q(r) {
if (r.getContext) {
return false;
} else {
var v = r.ownerDocument.parentWindow;
var u = v.FlashCanvas ? r.ownerDocument.parentWindow.FlashCanvas : (typeof FlashCanvas === "undefined" ? undefined : FlashCanvas);
if (u) {
r = u.initElement(r);
var t = 1;
if (v && v.screen && v.screen.deviceXDPI && v.screen.logicalXDPI) {
t = v.screen.deviceXDPI * 1 / v.screen.logicalXDPI;
}
if (t !== 1) {
try {
$(r).children("object").get(0).resize(Math.ceil(r.width * t), Math.ceil(r.height * t));
r.getContext("2d").scale(t, t);
} catch (s) {}
}
return true;
} else {
throw new Error("Canvas element does not support 2d context. jSignature cannot proceed.");
}
}
}
f.prototype.initializeCanvas = function(s) {
var r = document.createElement("canvas")
, t = $(r);
if (s.width === s.height && s.height === "ratio") {
s.width = "100%";
}
t.css("margin", 0).css("padding", 0).css("border", "none").css("height", s.height === "ratio" || !s.height ? 1 : s.height.toString(10)).css("width", s.width === "ratio" || !s.width ? 1 : s.width.toString(10));
t.appendTo(this.$parent);
if (s.height === "ratio") {
t.css("height", Math.round(t.width() / s.sizeRatio));
} else {
if (s.width === "ratio") {
t.css("width", Math.round(t.height() * s.sizeRatio));
}
}
t.addClass(a);
r.width = t.width();
r.height = t.height();
this.isCanvasEmulator = q(r);
r.onselectstart = function(u) {
if (u && u.preventDefault) {
u.preventDefault();
}
if (u && u.stopPropagation) {
u.stopPropagation();
}
return false;
}
;
return r;
}
;
var c = function(B) {
var s = new b();
(function(C, G, H, F) {
var D, E = function() {
C.publish(G + ".parentresized");
};
H(F).bind("resize." + G, function() {
if (D) {
clearTimeout(D);
}
D = setTimeout(E, 500);
}).bind("mouseup." + G, function(I) {
C.publish(G + ".windowmouseup");
});
}
)(s, a, $, B);
var y = {};
var r = {
"default": function(C) {
return this.toDataURL();
},
"native": function(C) {
return C;
},
image: function(E) {
var D = this.toDataURL();
if (typeof D === "string" && D.length > 4 && D.slice(0, 5) === "data:" && D.indexOf(",") !== -1) {
var C = D.indexOf(",");
return [D.slice(5, C), D.substr(C + 1)];
}
return [];
}
};
function A(E, G, D) {
var C = new Image()
, F = this;
C.onload = function() {
var H = F.getContext("2d").drawImage(C, 0, 0, (C.width < F.width) ? C.width : F.width, (C.height < F.height) ? C.height : F.height);
}
;
C.src = "data:" + G + "," + E;
}
var t = {
"native": function(D, E, C) {
C(D);
},
image: A,
"image/png;base64": A,
"image/jpeg;base64": A,
"image/jpg;base64": A
};
function w(C) {
this.find("canvas." + a).add(this.filter("canvas." + a)).data(a + ".this").resetCanvas(C);
return this;
}
function z(E, F) {
var C;
if (F === C && typeof E === "string" && E.substr(0, 5) === "data:") {
F = E.slice(5).split(",")[0];
E = E.slice(6 + F.length);
if (F === E) {
return;
}
}
var D = this.find("canvas." + a).add(this.filter("canvas." + a));
if (!t.hasOwnProperty(F)) {
throw new Error(a + " is unable to find import plugin with for format '" + String(F) + "'");
} else {
if (D.length !== 0) {
t[F].call(D[0], E, F, (function(G) {
return function() {
return G.resetCanvas.apply(G, arguments);
}
;
}
)(D.data(a + ".this")));
}
}
return this;
}
var x = function(D) {
var C = false;
D = D.parentNode;
while (D && !C) {
C = D.body;
D = D.parentNode;
}
return !C;
};
var v = {
"export": r,
"import": t,
instance: y
}
, u = {
init: function(C) {
return this.each(function() {
if (!x(this)) {
new f(this,C,y);
}
});
},
getSettings: function() {
return this.find("canvas." + a).add(this.filter("canvas." + a)).data(a + ".this").settings;
},
clear: w,
reset: w,
addPlugin: function(E, D, C) {
if (v.hasOwnProperty(E)) {
v[E][D] = C;
}
return this;
},
listPlugins: function(F) {
var D = [];
if (v.hasOwnProperty(F)) {
var E = v[F];
for (var C in E) {
if (E.hasOwnProperty(C)) {
D.push(C);
}
}
}
return D;
},
getData: function(E) {
var C, D = this.find("canvas." + a).add(this.filter("canvas." + a));
if (E === C) {
E = "default";
}
if (D.length !== 0 && r.hasOwnProperty(E)) {
return r[E].call(D.get(0), D.data(a + ".data"));
}
},
importData: z,
setData: z,
globalEvents: function() {
return s;
},
events: function() {
return this.find("canvas." + a).add(this.filter("canvas." + a)).data(a + ".this").events;
}
};
$.fn[a] = function(C) {
if (!C || typeof C === "object") {
return u.init.apply(this, arguments);
} else {
if (typeof C === "string" && u[C]) {
return u[C].apply(this, Array.prototype.slice.call(arguments, 1));
} else {
$.error("Method " + String(C) + " does not exist on jQuery." + a);
}
}
}
;
};
c(window);
}
)();
Report.prototype.EFormTOCView = function() {
if (this.m_isEndReport) {
var f = this;
var m = document.createElement("div");
m.style.cssText = "position:absolute;left:0px;right:0px;top:0px;bottom:0px;border:0px solid;overflow:hidden;background-color:rgba(0,0,0,0);z-index:1000;";
this.targetDiv.appendChild(m);
this.m_he_Toc = m;
var n = document.createElement("div");
n.className = "eform_toc_menu_top";
var h = document.createElement("div");
h.className = "eform_toc_menu_top_text";
h.innerHTML = "페이지 바로가기";
var d = document.createElement("div");
d.className = "eform_toc_menu_top_close";
d.onclick = function() {
f.EFormCloseTOCView();
}
;
n.appendChild(h);
n.appendChild(d);
var q = document.createElement("div");
q.className = "eform_toc_menu_body";
var p = this.getEFormTOCData();
if (null != p) {
var i = p.length;
for (var g = 0; g < i; g++) {
var c = p[g];
var j = "eform_toc_list_depth";
var e = "";
var k = "";
var o = null;
switch (c.depth) {
case 0:
e = "eform_toc_list_depth_text eform_toc_list_depth1_text";
if (this.tocOption.nec[0]) {
if (c.necessaryControl) {
j = "eform_toc_nec_list_depth";
}
k += "left:20px;";
} else {
k += "left:5px;";
}
if (this.tocOption.viewPN[0].visible) {
o = document.createElement("div");
o.innerHTML = this.tocOption.viewPN[0].startCh + c.page + this.tocOption.viewPN[0].endCh;
k += "right:30px;";
} else {
k += "right:5px;";
}
break;
case 1:
e = "eform_toc_list_depth_text eform_toc_list_depth2_text";
if (this.tocOption.nec[1]) {
if (c.necessaryControl) {
j = "eform_toc_nec_list_depth";
}
k += "left:25px;";
} else {
k += "left:15px;";
}
if (this.tocOption.viewPN[1].visible) {
o = document.createElement("div");
o.innerHTML = this.tocOption.viewPN[1].startCh + c.page + this.tocOption.viewPN[1].endCh;
k += "right:30px;";
} else {
k += "right:5px;";
}
break;
case 2:
e = "eform_toc_list_depth_text eform_toc_list_depth3_text";
if (this.tocOption.nec[2]) {
if (c.necessaryControl) {
j = "eform_toc_nec_list_depth";
}
k += "left:35px;";
} else {
k += "left:30px;";
}
if (this.tocOption.viewPN[2].visible) {
o = document.createElement("div");
o.innerHTML = this.tocOption.viewPN[2].startCh + c.page + this.tocOption.viewPN[2].endCh;
k += "right:30px;";
} else {
k += "right:5px;";
}
break;
}
var l = document.createElement("div");
l.className = j;
var a = document.createElement("div");
a.className = e;
a.style.cssText = k;
a.innerHTML = c.title;
a.setAttribute("pageNumber", c.page);
a.onclick = function() {
var r = this.getAttribute("pageNumber");
f.pageMove(Number(r));
}
;
l.appendChild(a);
if (null != o) {
o.className = "eform_toc_list_depth_pageNumber";
l.appendChild(o);
}
q.appendChild(l);
}
}
var b = document.createElement("div");
b.className = "eform_toc_menu_bottom";
m.appendChild(n);
m.appendChild(q);
m.appendChild(b);
} else {
this.debugMeg("report log :: 리포트폼이 완료되지 않은 상태이거나 목차의 보이기옵션이 false상태에서 EFormTOCView 함수가 호출되었습니다.");
}
}
;
Report.prototype.EFormCloseTOCView = function() {
if (null != this.m_he_Toc) {
this.targetDiv.removeChild(this.m_he_Toc);
this.m_he_Toc = null;
}
}
;
Report.prototype.setTOCVisible = function(a) {
this.m_isTOCVisible = a;
}
;
Report.prototype.setTOCNecessaryOption = function(b, a) {
if (null != this.tocOption) {
this.tocOption.nec[(Number(b) - 1)] = a;
}
}
;
Report.prototype.setTOCPageNumberOption = function(b, a, d, c) {
if (null != this.tocOption) {
option = this.tocOption.viewPN[(Number(b) - 1)];
if (null != option) {
option.visible = a;
option.startCh = d;
option.endCh = c;
}
}
}
;
Report.prototype.getEFormTOCData = function() {
if (this.m_isEndReport) {
if (this.eFormTOCList.length > 0) {
var d = new Array();
for (var b in this.eFormData) {
var a = this.eFormData[b];
if (a.visible && !a.disable && "true" == a.isNecessaryCheck) {
d[a.pageNumber] = true;
}
}
var e = this.eFormTOCList.length;
for (var c = 0; c < e; c++) {
var f = this.eFormTOCList[c];
f.necessaryControl = false;
if (null != d[(f.page - 1)]) {
f.necessaryControl = true;
}
}
d = null;
}
return this.eFormTOCList;
}
this.debugMeg("report log :: 리포트폼이 완료되지 않은 상태에서 getEFormTOCData 함수가 호출되었습니다.");
return null;
}
;