|
|
@ -36,25 +36,25 @@
|
|
|
|
<div class="nav-align-top mb-1 w-px-1300">
|
|
|
|
<div class="nav-align-top mb-1 w-px-1300">
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<li class="nav-item">
|
|
|
|
<li class="nav-item">
|
|
|
|
<button type="button" id="btnAnsBasicTab--${pageName}" class="nav-link active"
|
|
|
|
<button type="button" name="btnAnsBasicTab" class="nav-link active"
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
머리말/꼬리말
|
|
|
|
머리말/꼬리말
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<li class="nav-item">
|
|
|
|
<button type="button" id="btnLevyAnsBodyTab--${pageName}" class="nav-link"
|
|
|
|
<button type="button" name="btnLevyAnsBodyTab" class="nav-link"
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
부과건 답변내용
|
|
|
|
부과건 답변내용
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<li class="nav-item">
|
|
|
|
<button type="button" id="btnWarningAnsBodyTab--${pageName}" class="nav-link"
|
|
|
|
<button type="button" name="btnWarningAnsBodyTab" class="nav-link"
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
계도건 답변내용
|
|
|
|
계도건 답변내용
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<li class="nav-item">
|
|
|
|
<button type="button" id="btnNonlevyAnsBodyTab--${pageName}" class="nav-link"
|
|
|
|
<button type="button" name="btnNonlevyAnsBodyTab" class="nav-link"
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
미부과처리건 답변내용
|
|
|
|
미부과처리건 답변내용
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
@ -95,7 +95,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row justify-content-end">
|
|
|
|
<div class="row justify-content-end">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
|
<button type="button" id="btnSaveAnsBasic--${pageName}"
|
|
|
|
<button type="button" name="btnSaveAnsBasic"
|
|
|
|
class="btn btn-primary float-end" title="적용">적용</button>
|
|
|
|
class="btn btn-primary float-end" title="적용">적용</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -233,14 +233,14 @@
|
|
|
|
<div class="row g-1 py-2">
|
|
|
|
<div class="row g-1 py-2">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="btns float-start">
|
|
|
|
<div class="btns float-start">
|
|
|
|
<button type="button" id="btnRemove--${pageName}"
|
|
|
|
<button type="button" name="btnRemove"
|
|
|
|
class="btn btn-primary area-answerbody area-nonlevy"
|
|
|
|
class="btn btn-primary area-answerbody area-nonlevy"
|
|
|
|
title="답변대상 제외">답변대상 제외</button>
|
|
|
|
title="답변대상 제외">답변대상 제외</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="btns float-end">
|
|
|
|
<div class="btns float-end">
|
|
|
|
<button type="button" id="btnOpenPreviewPop--${pageName}"
|
|
|
|
<button type="button" name="btnOpenPreviewPop"
|
|
|
|
class="btn btn-primary" title="미리보기">미리보기</button>
|
|
|
|
class="btn btn-primary" title="미리보기">미리보기</button>
|
|
|
|
<button type="button" id="btnSaveAnsBody--${pageName}"
|
|
|
|
<button type="button" name="btnSaveAnsBody"
|
|
|
|
class="btn btn-primary" title="적용">적용</button>
|
|
|
|
class="btn btn-primary" title="적용">적용</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -260,11 +260,11 @@
|
|
|
|
<strong>[매크로 문자 삽입]</strong>
|
|
|
|
<strong>[매크로 문자 삽입]</strong>
|
|
|
|
<label id="macroTarget--${pageName}" for="" hidden></label>
|
|
|
|
<label id="macroTarget--${pageName}" for="" hidden></label>
|
|
|
|
|
|
|
|
|
|
|
|
<button type="button" id="btnInsertMacro1--${pageName}"
|
|
|
|
<button type="button" name="btnInsertMacro1"
|
|
|
|
class="btn btn-primary" title="일련번호 삽입">일련번호</button>
|
|
|
|
class="btn btn-primary" title="일련번호 삽입">일련번호</button>
|
|
|
|
<button type="button" id="btnInsertMacro2--${pageName}"
|
|
|
|
<button type="button" name="btnInsertMacro2"
|
|
|
|
class="btn btn-primary" title="사용자 전화번호 삽입">사용자 전화번호</button>
|
|
|
|
class="btn btn-primary" title="사용자 전화번호 삽입">사용자 전화번호</button>
|
|
|
|
<button type="button" id="btnInsertMacro3--${pageName}"
|
|
|
|
<button type="button" name="btnInsertMacro3"
|
|
|
|
class="btn btn-primary" title="사용자 성명 삽입">사용자 성명</button>
|
|
|
|
class="btn btn-primary" title="사용자 성명 삽입">사용자 성명</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -283,16 +283,16 @@
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<template id="previewDialogTemplate--${pageName}">
|
|
|
|
<template name="previewDialogTemplate">
|
|
|
|
<form id="frmView--${pageName}">
|
|
|
|
<form name="frmView">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
|
<textarea id="preview--${pageName}" rows="15"
|
|
|
|
<textarea name="preview" rows="15"
|
|
|
|
></textarea>
|
|
|
|
></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<button type="button" class="btn btn-primary" id="btnClose--${pageName}" title="닫기">닫기</button>
|
|
|
|
<button type="button" class="btn btn-primary" name="btnClose" title="닫기">닫기</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -334,7 +334,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$('#btnAnsBasicTab--${pageName}').trigger("click");
|
|
|
|
$P.$find("btnAnsBasicTab").trigger("click");
|
|
|
|
$P.ctrl.levy.setData([]);
|
|
|
|
$P.ctrl.levy.setData([]);
|
|
|
|
$P.ctrl.warning.setData([]);
|
|
|
|
$P.ctrl.warning.setData([]);
|
|
|
|
$P.ctrl.nonlevy.setData([]);
|
|
|
|
$P.ctrl.nonlevy.setData([]);
|
|
|
@ -520,9 +520,9 @@ $(document).ready(function(){
|
|
|
|
rnsRsnCd = curData["LEVY_EXCL_RSN_CD"]
|
|
|
|
rnsRsnCd = curData["LEVY_EXCL_RSN_CD"]
|
|
|
|
|
|
|
|
|
|
|
|
if(curData["ANS_WORDS_ID"] == null){
|
|
|
|
if(curData["ANS_WORDS_ID"] == null){
|
|
|
|
$("#btnRemove--${pageName}").prop("disabled",true);
|
|
|
|
$P.$find("btnRemove").prop("disabled",true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#btnRemove--${pageName}").prop("disabled",false);
|
|
|
|
$P.$find("btnRemove").prop("disabled",false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -655,11 +655,12 @@ $(document).ready(function(){
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : "previewDialog--${pageName}",
|
|
|
|
id : "previewDialog--${pageName}",
|
|
|
|
title : "답변 내용 미리보기",
|
|
|
|
title : "답변 내용 미리보기",
|
|
|
|
content : document.getElementById("previewDialogTemplate--${pageName}").innerHTML,
|
|
|
|
content : $P.find("previewDialogTemplate").innerHTML,
|
|
|
|
size : "lg",
|
|
|
|
size : "lg",
|
|
|
|
init : () => {
|
|
|
|
init : () => {
|
|
|
|
$("#preview--${pageName}").val(result);
|
|
|
|
$("#previewDialog--${pageName}").find("[name='preview']").val(result);
|
|
|
|
$("#btnClose--${pageName}").on("click", () => dialog.close("previewDialog--${pageName}"));
|
|
|
|
$("#previewDialog--${pageName}").find("[name='btnClose']").on("click",
|
|
|
|
|
|
|
|
() => dialog.close("previewDialog--${pageName}"));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onOk : () => {},
|
|
|
|
onOk : () => {},
|
|
|
|
onClose : () => {}
|
|
|
|
onClose : () => {}
|
|
|
@ -672,7 +673,7 @@ $(document).ready(function(){
|
|
|
|
$P.$find("btnReset").on('click', () => $P.fnReset());
|
|
|
|
$P.$find("btnReset").on('click', () => $P.fnReset());
|
|
|
|
|
|
|
|
|
|
|
|
//탭 버튼
|
|
|
|
//탭 버튼
|
|
|
|
$('#btnAnsBasicTab--${pageName}').on('click', (event) => {
|
|
|
|
$P.$find("btnAnsBasicTab").on('click', (event) => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").show();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").show();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").hide();
|
|
|
@ -682,7 +683,7 @@ $(document).ready(function(){
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnLevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$P.$find("btnLevyAnsBodyTab").on('click', (event) => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").each(function(){
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").each(function(){
|
|
|
@ -701,7 +702,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnWarningAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$P.$find("btnWarningAnsBodyTab").on('click', (event) => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").each(function(){
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").each(function(){
|
|
|
@ -720,7 +721,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnNonlevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$P.$find("btnNonlevyAnsBodyTab").on('click', (event) => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbasic").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").each(function(){
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").each(function(){
|
|
|
@ -741,26 +742,26 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//업무처리 버튼
|
|
|
|
//업무처리 버튼
|
|
|
|
$("#btnSaveAnsBasic--${pageName}").on("click", () => $P.fnSave(true));
|
|
|
|
$P.$find("btnSaveAnsBasic").on("click", () => $P.fnSave(true));
|
|
|
|
$("#btnSaveAnsBody--${pageName}").on("click", () => $P.fnSave(false));
|
|
|
|
$P.$find("btnSaveAnsBody").on("click", () => $P.fnSave(false));
|
|
|
|
$("#btnRemove--${pageName}").on("click", () => $P.fnRemove());
|
|
|
|
$P.$find("btnRemove").on("click", () => $P.fnRemove());
|
|
|
|
$("#btnOpenPreviewPop--${pageName}").on("click", () => $P.fnOpenPreviewPop());
|
|
|
|
$P.$find("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop());
|
|
|
|
|
|
|
|
|
|
|
|
$("#headerCn--${pageName},#footerCn--${pageName},#prcsRsltCn--${pageName}").on("focus", (event) => {
|
|
|
|
$("#headerCn--${pageName},#footerCn--${pageName},#prcsRsltCn--${pageName}").on("focus", (event) => {
|
|
|
|
$("#macroTarget--${pageName}").attr("for", event.target.id);
|
|
|
|
$("#macroTarget--${pageName}").attr("for", event.target.id);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnInsertMacro1--${pageName}").on("click", () => {
|
|
|
|
$P.$find("btnInsertMacro1").on("click", () => {
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ);
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#btnInsertMacro2--${pageName}").on("click", () => {
|
|
|
|
$P.$find("btnInsertMacro2").on("click", () => {
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO);
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#btnInsertMacro3--${pageName}").on("click", () => {
|
|
|
|
$P.$find("btnInsertMacro3").on("click", () => {
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
|
|
|
|