|
|
@ -237,7 +237,9 @@
|
|
|
|
<div class="card ps-3 py-3 w-px-1300">
|
|
|
|
<div class="card ps-3 py-3 w-px-1300">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 btns">
|
|
|
|
<div class="col-12 btns">
|
|
|
|
<strong class="">[매크로 문자 삽입]</strong>
|
|
|
|
<strong>[매크로 문자 삽입]</strong>
|
|
|
|
|
|
|
|
<label id="macroTarget--${pageName}" for="" hidden></label>
|
|
|
|
|
|
|
|
|
|
|
|
<button type="button" id="btnInsertMacro1--${pageName}"
|
|
|
|
<button type="button" id="btnInsertMacro1--${pageName}"
|
|
|
|
class="btn btn-primary" title="일련번호 삽입">일련번호</button>
|
|
|
|
class="btn btn-primary" title="일련번호 삽입">일련번호</button>
|
|
|
|
<button type="button" id="btnInsertMacro2--${pageName}"
|
|
|
|
<button type="button" id="btnInsertMacro2--${pageName}"
|
|
|
@ -268,7 +270,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
<template id="previewDialogTemplate--${pageName}">
|
|
|
|
<template id="previewDialogTemplate--${pageName}">
|
|
|
|
<form id="frmView--${pageName}">
|
|
|
|
<form id="frmView--${pageName}">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<textarea id="preview--${pageName}" rows="15"
|
|
|
|
|
|
|
|
></textarea>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnClose--${pageName}" title="닫기">닫기</button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -276,6 +288,7 @@
|
|
|
|
<script ${module}>
|
|
|
|
<script ${module}>
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
AnswerBodyControl,
|
|
|
|
AnswerBodyControl,
|
|
|
|
|
|
|
|
MACRO_STRING,
|
|
|
|
fnMacroStringInsert,
|
|
|
|
fnMacroStringInsert,
|
|
|
|
fnMacroWordsReplace
|
|
|
|
fnMacroWordsReplace
|
|
|
|
} from "<c:url value='/resources/js/fims/cvlc/answerWords.js?${ver}'/>";
|
|
|
|
} from "<c:url value='/resources/js/fims/cvlc/answerWords.js?${ver}'/>";
|
|
|
@ -593,8 +606,6 @@ $(document).ready(function(){
|
|
|
|
content : confirmMessage,
|
|
|
|
content : confirmMessage,
|
|
|
|
onOK: () => {
|
|
|
|
onOK: () => {
|
|
|
|
|
|
|
|
|
|
|
|
console.log(info);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : $P.ansBodyControl.urls.update,
|
|
|
|
url : $P.ansBodyControl.urls.update,
|
|
|
|
data : info,
|
|
|
|
data : info,
|
|
|
@ -635,6 +646,26 @@ $(document).ready(function(){
|
|
|
|
//미리보기 팝업 호출
|
|
|
|
//미리보기 팝업 호출
|
|
|
|
$P.fnOpenPreviewPop = () => {
|
|
|
|
$P.fnOpenPreviewPop = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var result = fnMacroWordsReplace(
|
|
|
|
|
|
|
|
$("#headerCn--${pageName}").val(),
|
|
|
|
|
|
|
|
$("#footerCn--${pageName}").val(),
|
|
|
|
|
|
|
|
$("#prcsRsltCn--${pageName}").val(),
|
|
|
|
|
|
|
|
"${currentUserTelno}",
|
|
|
|
|
|
|
|
"${currentUserName}"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "previewDialog--${pageName}",
|
|
|
|
|
|
|
|
title : "답변 내용 미리보기",
|
|
|
|
|
|
|
|
content : document.getElementById("previewDialogTemplate--${pageName}").innerHTML,
|
|
|
|
|
|
|
|
size : "lg",
|
|
|
|
|
|
|
|
init : () => {
|
|
|
|
|
|
|
|
$("#preview--${pageName}").val(result);
|
|
|
|
|
|
|
|
$("#btnClose--${pageName}").on("click", () => dialog.close("previewDialog--${pageName}"));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onOk : () => {},
|
|
|
|
|
|
|
|
onClose : () => {}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -651,6 +682,8 @@ $(document).ready(function(){
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").hide();
|
|
|
|
$("#wrapper--${pageName}").find(".area-answerbody").hide();
|
|
|
|
|
|
|
|
|
|
|
|
$P.currentDisplay = "ansBasic";
|
|
|
|
$P.currentDisplay = "ansBasic";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnLevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnLevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
@ -671,6 +704,8 @@ $(document).ready(function(){
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='levyRadio']:checked").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='levyRadio']:checked").focus();
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnWarningAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnWarningAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$(event.target).addClass("active");
|
|
|
|
$(event.target).addClass("active");
|
|
|
@ -690,6 +725,8 @@ $(document).ready(function(){
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='warningRadio']:checked").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='warningRadio']:checked").focus();
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnNonlevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnNonlevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$(event.target).addClass("active");
|
|
|
|
$(event.target).addClass("active");
|
|
|
@ -709,6 +746,8 @@ $(document).ready(function(){
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='nonlevyRadio']:checked").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='nonlevyRadio']:checked").focus();
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//업무처리 버튼
|
|
|
|
//업무처리 버튼
|
|
|
@ -717,6 +756,25 @@ $(document).ready(function(){
|
|
|
|
$("#btnRemove--${pageName}").on("click", () => $P.fnRemove());
|
|
|
|
$("#btnRemove--${pageName}").on("click", () => $P.fnRemove());
|
|
|
|
$("#btnOpenPreviewPop--${pageName}").on("click", () => $P.fnOpenPreviewPop());
|
|
|
|
$("#btnOpenPreviewPop--${pageName}").on("click", () => $P.fnOpenPreviewPop());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#headerCn--${pageName},#footerCn--${pageName},#prcsRsltCn--${pageName}").on("focus", (event) => {
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for", event.target.id);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnInsertMacro1--${pageName}").on("click", () => {
|
|
|
|
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#btnInsertMacro2--${pageName}").on("click", () => {
|
|
|
|
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#btnInsertMacro3--${pageName}").on("click", () => {
|
|
|
|
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
|
|
|
|
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
|
|
|
|
|
|
|
|
});
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화
|
|
|
|
* 초기화
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|