/** * 리포트 결과에 따른 event의 값으로 함수를 호출합니다.
* * @example 사용자는 아래에 기본 설정된 함수가 아닌 다른 기능으로 대체하여 사용하실 수 있습니다. * case 8:ReportWebLog("리포트 서버가 정상적으로 설치되지 않았습니다.!!"); break; * //위에 코드 대신 * case 8:alert("관리자에게 문의 하세요"); break; * * @method UserConfig * @param event {Integer} 값 * @since version 1.0.0.9 */ function ReportEventHandler(event){ switch(event){ case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8:ReportWebLog("Report Server is not installed properly.!!"); break; case 10: ReportWebLog("It is during the generation of reports.!!"); break; case 11:ReportWebLog("You do not have permission for the license of the report..!!"); break; case 12:ReportWebLog("You do not have permission for the license of the EForm..!!"); break; case 20: ReportWebLog("Target and become TAG (div or body) is NULL.!!"); break; case 30: ReportWebLog("There is a problem with the creation of the report.!!");break; case 40: ReportWebLog("It failed to connect to the report server.!!");break; case 50: ReportWebLog("Failed to delete the report.!!");break; case 60: ReportWebLog("Section of the report server has ended.!!");break; case 70: ReportWebLog("There was a problem OOF document.!!");break; case 100: ReportWebLog("not found pdf reader ."); break; case 101: ReportWebLog("not found hwp viewer."); break; case 102: ReportWebLog("There was a problem to html Print."); break; case 103: ReportWebLog("not found exe Print."); break; case 104: ReportWebLog("There was a problem EXE Print."); break; case 105: ReportWebLog("There was a problem Print Service."); break; case 106: ReportWebLog("finish EXE Print.."); break; case 107: ReportWebLog("cancel EXE Print.."); break; case 150: ReportWebLog("pdf reader version is low.."); break; case 200: ReportWebLog("The report was completed successfully.");break; case 300: ReportWebLog("It was saved.");break; case 301: ReportWebLog("There was a problem when you save.");break; case 1000: case 1001: case 1002: case 1003: ReportWebLog("In connection with the license problem occurred.");break; case 1004: ReportWebLog("You do not have permission for the license");break; } } /** * console이 존재할 경우 메시지를 console에 출력합니다.
* console이 없는 브라우져는 alert 창으로 메시지를 출력합니다. * * @method UserConfig * @param message {String} 값 * @since version 1.0.0.9 */ function ReportWebLog(message){ if(typeof window.console != 'undefined'){ window.console.log(message); } else{ alert(message); } } /** * eForm-Viewer 사용할 때 필수항목에 대한 체크 메시지를 변경합니다. * @method UserConfig * @param message {Array} 값 * @returns {String} * @since version 1.0.0.67 */ function EFormNecessaryCheckMessage(arrMessage){ var message = new Array(); message.push("필수 항목이 모두 체크되지 않았습니다.\n"); for(var i=0; i
"; } } /** * 리포트 전체에 저장 선택부분에서 기본 타입을 지정합니다.
* @example *{String} excel, excelx, pdf, hwp, rtf, ppt, html, html5, hancell, doc, jpg * * @method UserConfig * @since version 1.0.0.18 */ function getDefaultSaveOption(){ return "excel"; } /** * 전체 리포트에 대한 Excel 저장 옵션 기본값을 설정합니다.
* @example * exportMethod {Integer}
* 1 = 페이지 마다
* 2 = 하나의 시트
* 3 = 하나의 시트(페이지영역 무시)
* 4 = 리포트 마다(페이지영역 무시)
* 5 = 리포트 마다
* mergeCell {Boolean} 셀 합치기
* mergeEmptyCell {Boolean} 공백 셀일 경우 합치기
* splitCellAtPageSize {Boolean} 페이지 크기로 셀 분리
* rightToLeft {Boolean} 열이 오른쪽에서 왼쪽으로 진행
* widthRate {Integer} 가로 비율
* heightRate {Integer} 세로 비율
* coordinateErrorLimit {Integer} 좌표 오차 범위
* processGerenalFormat {Integer}
* 1 = 텍스트
* 2 = 일반
* printingMagnification {Integer} 인쇄 확대/축소 비율
* fitToPageWhenPrinting {Boolean} 출력시 페이지 맞춤
* * @method UserConfig * @since version 1.0.0.18 */ function getDefaultSaveExcelOption(){ var option = { exportMethod : "1", mergeCell : true, mergeEmptyCell : false, splitCellAtPageSize : true, rightToLeft : false, widthRate : 100, heightRate : 100, coordinateErrorLimit : 10, processGerenalFormat : 1, printingMagnification : 100, fitToPageWhenPrinting : false }; return option; } /** * 전체 리포트에 대한 Excel(xlsx) 저장 옵션 기본값을 설정합니다.
* @example * exportMethod {Integer}
* 1 = 페이지 마다
* 2 = 하나의 시트
* 3 = 하나의 시트(페이지영역 무시)
* 4 = 리포트 마다(페이지영역 무시)
* 5 = 리포트 마다
* mergeCell {Boolean} 셀 합치기
* mergeEmptyCell {Boolean} 공백 셀일 경우 합치기
* splitCellAtPageSize {Boolean} 페이지 크기로 셀 분리
* rightToLeft {Boolean} 열이 오른쪽에서 왼쪽으로 진행
* widthRate {Integer} 가로 비율
* heightRate {Integer} 세로 비율
* coordinateErrorLimit {Integer} 좌표 오차 범위
* processGerenalFormat {Integer}
* 1 = 텍스트
* 2 = 일반
* printingMagnification {Integer} 인쇄 확대/축소 비율
* fitToPageWhenPrinting {Boolean} 출력시 페이지 맞춤
* * @method UserConfig * @since version 1.0.0.54 */ function getDefaultSaveExcelxOption(){ var option = { exportMethod : "1", mergeCell : true, mergeEmptyCell : false, splitCellAtPageSize : true, rightToLeft : false, widthRate : 100, heightRate : 100, coordinateErrorLimit : 10, processGerenalFormat : 1, printingMagnification : 100, fitToPageWhenPrinting : false }; return option; } /** * 전체 리포트에 대한 HanCell 저장 옵션 기본값을 설정합니다.
* @example * exportMethod {Integer}
* 1 = 페이지 마다
* 2 = 하나의 시트
* 3 = 하나의 시트(페이지영역 무시)
* 4 = 리포트 마다(페이지영역 무시)
* 5 = 리포트 마다
* mergeCell {Boolean} 셀 합치기
* mergeEmptyCell {Boolean} 공백 셀일 경우 합치기
* splitCellAtPageSize {Boolean} 페이지 크기로 셀 분리
* rightToLeft {Boolean} 열이 오른쪽에서 왼쪽으로 진행
* widthRate {Integer} 가로 비율
* heightRate {Integer} 세로 비율
* coordinateErrorLimit {Integer} 좌표 오차 범위
* processGerenalFormat {Integer}
* 1 = 텍스트
* 2 = 일반
* printingMagnification {Integer} 인쇄 확대/축소 비율
* fitToPageWhenPrinting {Boolean} 출력시 페이지 맞춤
* * @method UserConfig * @since version 1.0.0.18 * */ function getDefaultSaveHanCellOption(){ var option = { exportMethod : "1", mergeCell : true, mergeEmptyCell : false, splitCellAtPageSize : true, rightToLeft : false, widthRate : 100, heightRate : 100, coordinateErrorLimit : 10, processGerenalFormat : 1, printingMagnification : 100, fitToPageWhenPrinting : false }; return option; } /** * 전체 리포트에 대한 HWP 저장 옵션 기본값을 설정합니다.
* @example * fixSize {Boolean} 크기 고정
* allowOverlay {Boolean} 겹침 허용
* setPageBottomMarginToZero {Boolean} 페이지 바닥 여백을 0으로 설정
* outputLikeWord {Boolean} 글자처럼 출력
* tableSplitMethod {Integer}
* 1 = 나눔
* 2 = 셀 단위로 나눔
* 3 = 나누지 않음
* defaultCharGap {Integer} 기본 자간
* charRatio {Integer} 자평
* putCheckboxIntoCell {Boolean} 셀 안에 체크박스 넣기(version 1.0.0.22)
* splitTextByLine {Boolean} 텍스트를 라인별로 나눠서 표현(version 1.0.0.23)
* mergeTable{Boolean} 이웃한 테이블과 병합할 것인지 여부(version 1.0.0.55)
* lineSpaceRate{Integer} 줄간격 비율(version 1.0.0.58)
* positionRelTo{Integer} 좌표 기준(version 1.0.0.63)
* 1 = 종이
* 2 = 문단
* @method UserConfig * @since version 1.0.0.18 * */ function getDefaultSaveHWPOption(){ var option = { 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 option; } /** * 전체 리포트에 대한 RTF 저장 옵션 기본값을 설정합니다.
* @example * splitTextLine {Boolean} 문자열을 여러 줄로 나누어 표현
* processAsUnicode {Boolean} 유니코드로 문자열을 처리
* processEqualAlign {Integer}
* 1 = 왼쪽 정렬
* 2 = 가운데 정렬
* 3 = 오른쪽 정렬
* 4 = 양쪽 정렬
* defaultCharSpace {Double} 기본 자간
* tableWrapperBottomGap {Integer} 표를 감싸는 객체의 아래쪽 여백
* insertTableWrapper {Boolean} 표를 감싸는 객체의 아래쪽 여백
* mergeTable {Boolean} 이웃한 테이블과 병합할 것인지 여부
* @method UserConfig * @since version 1.0.0.18 */ function getDefaultSaveRTFOption(){ var option = { splitTextLine : true, processAsUnicode : true, processEqualAlign : 4, defaultCharSpace : -0.5, tableWrapperBottomGap : 0, insertTableWrapper : true, mergeTable : false }; return option; } /** * 전체 리포트에 대한 DOC 저장 옵션 기본값을 설정합니다.
* @example * splitTextLine {Boolean} 문자열을 여러 줄로 나누어 표현
* processAsUnicode {Boolean} 유니코드로 문자열을 처리
* processEqualAlign {Integer}
* 1 = 왼쪽 정렬
* 2 = 가운데 정렬
* 3 = 오른쪽 정렬
* 4 = 양쪽 정렬
* defaultCharSpace {Double} 기본 자간
* tableWrapperBottomGap {Integer} 표를 감싸는 객체의 아래쪽 여백
* insertTableWrapper {Boolean} 표를 감싸는 객체의 아래쪽 여백
* mergeTable {Boolean} 이웃한 테이블과 병합할 것인지 여부
* @method UserConfig * @since version 1.0.0.23 */ function getDefaultSaveDOCOption(){ var option = { splitTextLine : true, processAsUnicode : true, processEqualAlign : 4, defaultCharSpace : -0.5, tableWrapperBottomGap : 0, insertTableWrapper : true, mergeTable : false }; return option; } /** * 전체 리포트에 대한 HTML 저장 옵션 기본값을 설정합니다.
* @example * processCellLikeShape {Boolean} 테이블 셀을 라벨처럼 저정
* displayPageLine {Boolean} 페이지 분리선 표시
* keepPageHeight {Boolean} 페이지 높이 유지
* applyWordBreak {Boolean} 글자 감싸기 적용
* setTextProperiesToEmptyCell {Boolean} 빈 셀에 택스트 속성 설정
* putTagIntoEmptyCell {Boolean} 빈 셀에 공백 삽입
* textOverflowHidden {Boolean} overflow=hidden 스타일 적용
* coordinateRateForX {Double} X축 비율
* coordinateRateForY {Double} Y축 비율
* encodingType {Integer} 인코딩
* 1 = UTF=8
* 2 = Unicode
* 3 = EUC-KR
* * @method UserConfig * @since version 1.0.0.18 */ function getDefaultSaveHTMLOption(){ var option = { processCellLikeShape : false, displayPageLine : true, keepPageHeight : true, applyWordBreak : false, setTextProperiesToEmptyCell : false, putTagIntoEmptyCell : false, textOverflowHidden : false, coordinateRateForX : 2.6, coordinateRateForY : 2.6, encodingType : 1 }; return option; } /** * 전체 리포트에 대한 PDF 저장 옵션 기본값을 설정합니다.
* @example * isSplit {Boolean} 분할 저장 선택
* pageCount {Integer} 페이지 수
* userpw {String} 문서암호 (version 1.0.0.25)
* textToImage {Boolean} pdf에 문자를 이미지로 표현 (version 1.0.0.29)
* importOriginImage {Boolean} 원본 이미지 사용 (version 1.0.0.31)
* * @method UserConfig * @since version 1.0.0.18 * */ function getDefaultSavePDFOption(){ var option = { isSplite : false, spliteValue : 1, userpw : "", textToImage : false, importOriginImage : false }; return option; } /** * 전체 리포트에 대한 html5 저장 옵션 기본값을 설정합니다.
* @example * isSplite {Boolean} 페이지 구분
* dpiValue {Integer} DPI 값
* * @method UserConfig * @since version 1.0.0.22 * */ function getDefaultSaveHTML5Option(){ var option = { isSplite : true, dpiValue : 96 }; return option; } /** * 전체 리포트에 대한 JPG 저장 옵션 기본값을 설정합니다.
* @example * rotate90 {Boolean} 90도 회전
* dpiX {Integer} DPI X
* dpiY {Integer} DPI X
* quality {Integer} 품질
* * @method UserConfig * @since version 1.0.0.60 * */ function getDefaultSaveJPGOption(){ var option = { rotate90 : false, dpiX : 96, dpiY : 96, quality : 100 }; return option; } /** * 전체 리포트에 대한 PPT 저장 옵션 기본값을 설정합니다.
* @example * mergeTable {Boolean} 이웃한 표 병합
* ignoreLineSpace {Boolean} 행간 무시
* * @method UserConfig * @since version 1.0.0.63 * */ function getDefaultSavePPTOption(){ var option = { mergeTable : false, ignoreLineSpace : true }; return option; } /** * 빠른 PDF 저장 대한 옵션 기본값을 설정합니다.
* @example * fileName{String} 문서를 저장 할 파일 이름
* isSplit {Boolean} 분할 저장 선택
* pageCount {Integer} 페이지 수
* userpw {String} 문서암호 (version 1.0.0.25)
* textToImage {Boolean} pdf에 문자를 이미지로 표현 (version 1.0.0.29)
* importOriginImage {Boolean} 원본 이미지 사용 (version 1.0.0.31)
* * @method UserConfig * @since version 1.0.0.20 * */ function getDirectSavePDFOption(){ var option = { fileName : "report", isSplite : false, spliteValue : 1, userpw : "", textToImage : false, importOriginImage : false }; return option; } /** * 빠른 HWP 저장 대한 옵션 기본값을 설정합니다.
* @example * fileName{String} 문서를 저장 할 파일 이름
* fixSize {Boolean} 크기 고정
* allowOverlay {Boolean} 겹침 허용
* setPageBottomMarginToZero {Boolean} 페이지 바닥 여백을 0으로 설정
* outputLikeWord {Boolean} 글자처럼 출력
* tableSplitMethod {Integer}
* 1 = 나눔
* 2 = 셀 단위로 나눔
* 3 = 나누지 않음
* defaultCharGap {Integer} 기본 자간
* charRatio {Integer} 자평
* putCheckboxIntoCell {Boolean} 셀 안에 체크박스 넣기(version 1.0.0.22)
* splitTextByLine {Boolean} 텍스트를 라인별로 나눠서 표현(version 1.0.0.23)
* mergeTable{Boolean} 이웃한 테이블과 병합할 것인지 여부(version 1.0.0.55)
* lineSpaceRate{Integer} 줄간격 비율(version 1.0.0.58)
* positionRelTo{Integer} 좌표 기준(version 1.0.0.63)
* 1 = 종이
* 2 = 문단
* @method UserConfig * @since version 1.0.0.20 * */ function getDirectSaveHWPOption(){ var option = { fileName : "report", 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 option; } /** * 빠른 EXCEL 저장 대한 옵션 기본값을 설정합니다.
* @example * fileName{String} 문서를 저장 할 파일 이름
* exportMethod {Integer}
* 1 = 페이지 마다
* 2 = 하나의 시트
* 3 = 하나의 시트(페이지영역 무시)
* 4 = 리포트 마다(페이지영역 무시)
* 5 = 리포트 마다
* mergeCell {Boolean} 셀 합치기
* mergeEmptyCell {Boolean} 공백 셀일 경우 합치기
* splitCellAtPageSize {Boolean} 페이지 크기로 셀 분리
* rightToLeft {Boolean} 열이 오른쪽에서 왼쪽으로 진행
* widthRate {Integer} 가로 비율
* heightRate {Integer} 세로 비율
* coordinateErrorLimit {Integer} 좌표 오차 범위
* processGerenalFormat {Integer}
* 1 = 텍스트
* 2 = 일반
* printingMagnification {Integer} 인쇄 확대/축소 비율
* * @method UserConfig * @since version 1.0.0.20 * */ function getDirectSaveEXCELOption(){ var option = { fileName : "report", exportMethod : "1", mergeCell : true, mergeEmptyCell : false, splitCellAtPageSize : true, rightToLeft : false, widthRate : 100, heightRate : 100, coordinateErrorLimit : 10, processGerenalFormat : 1, printingMagnification : 100, fitToPageWhenPrinting : false }; return option; } /** * 빠른 DOC 저장 대한 옵션 기본값을 설정합니다.
* @example * fileName{String} 문서를 저장 할 파일 이름
* splitTextLine {Boolean} 문자열을 여러 줄로 나누어 표현 * processAsUnicode {Boolean} 유니코드로 문자열을 처리 * processEqualAlign {Integer}
* 1 = 왼쪽 정렬
* 2 = 가운데 정렬
* 3 = 오른쪽 정렬
* 4 = 양쪽 정렬
* defaultCharSpace {Double} 기본 자간 * tableWrapperBottomGap {Integer} 표를 감싸는 객체의 아래쪽 여백 * insertTableWrapper {Boolean} 테이블을 감싸는 객체를 삽입할 것인지 여부 * mergeTable {Boolean} 이웃한 테이블과 병합할 것인지 여부 * @method UserConfig * @since version 1.0.0.62 * */ function getDirectSaveDOCOption(){ var option = { fileName : "report", type : "doc", splitTextLine : true, processAsUnicode : true, processEqualAlign : 4, defaultCharSpace : -0.5, tableWrapperBottomGap : 0, insertTableWrapper : true, mergeTable : false }; return option; }