|
|
@ -9,7 +9,7 @@
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="container-search">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
|
<span class="form-label fw-bold form-search-title">업무구분</span>
|
|
|
|
<span class="form-label fw-bold form-search-title w-px-120 text-end">업무구분</span>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<c:forEach items="${TaskListForSgg}" var="item">
|
|
|
|
<c:forEach items="${TaskListForSgg}" var="item">
|
|
|
|
<label>
|
|
|
|
<label>
|
|
|
@ -24,37 +24,37 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container-page-btn mt-3">
|
|
|
|
<div class="container-page-btn mt-3">
|
|
|
|
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화">
|
|
|
|
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화">
|
|
|
|
초기화
|
|
|
|
초기화
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<span class="container-window-btn-right"></span>
|
|
|
|
<span class="container-window-btn-right"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<span class="d-flex justify-content-center">
|
|
|
|
<span class="d-flex justify-content-center">
|
|
|
|
<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" id="btnAnsBasicTab--${pageName}" 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" id="btnLevyAnsBodyTab--${pageName}" 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" id="btnWarningAnsBodyTab--${pageName}" 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" id="btnNonlevyAnsBodyTab--${pageName}" class="nav-link"
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
role="tab" data-bs-toggle="tab">
|
|
|
|
미부과처리건 답변내용
|
|
|
|
미부과처리건 답변내용
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
@ -62,9 +62,9 @@
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="h-px-500 mt-1">
|
|
|
|
<div class="h-px-500 mt-1">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 머리말,꼬리말 영역 -->
|
|
|
|
<!-- 머리말,꼬리말 영역 -->
|
|
|
|
<span class="area-answerbasic">
|
|
|
|
<span class="area-answerbasic">
|
|
|
|
<div class="d-flex flex-row justify-content-center h-100">
|
|
|
|
<div class="d-flex flex-row justify-content-center h-100">
|
|
|
@ -76,7 +76,7 @@
|
|
|
|
<label for="headerCn--${pageName}"
|
|
|
|
<label for="headerCn--${pageName}"
|
|
|
|
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end align-top"
|
|
|
|
class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end align-top"
|
|
|
|
>머리말</label>
|
|
|
|
>머리말</label>
|
|
|
|
<textarea id="headerCn--${pageName}" name="headerCn"
|
|
|
|
<textarea id="headerCn--${pageName}" name="headerCn"
|
|
|
|
rows="5" cols="80%" class="form-control" required
|
|
|
|
rows="5" cols="80%" class="form-control" required
|
|
|
|
placeholder="머리말이 없습니다."
|
|
|
|
placeholder="머리말이 없습니다."
|
|
|
|
></textarea>
|
|
|
|
></textarea>
|
|
|
@ -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" id="btnSaveAnsBasic--${pageName}"
|
|
|
|
class="btn btn-primary float-end" title="적용">적용</button>
|
|
|
|
class="btn btn-primary float-end" title="적용">적용</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -104,7 +104,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 본문처리 영역 -->
|
|
|
|
<!-- 본문처리 영역 -->
|
|
|
|
<span class="area-answerbody area-answerbody-common">
|
|
|
|
<span class="area-answerbody area-answerbody-common">
|
|
|
|
<div class="d-flex flex-row justify-content-center h-100">
|
|
|
|
<div class="d-flex flex-row justify-content-center h-100">
|
|
|
@ -136,7 +136,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="vltnNotFound--${pageName}">
|
|
|
|
<template id="vltnNotFound--${pageName}">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="2"
|
|
|
|
<td valign="top" colspan="2"
|
|
|
|
class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
|
|
|
|
class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -167,7 +167,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="warningNotFound--${pageName}">
|
|
|
|
<template id="warningNotFound--${pageName}">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="2"
|
|
|
|
<td valign="top" colspan="2"
|
|
|
|
class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
|
|
|
|
class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -200,7 +200,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="nonlevyNotFound--${pageName}">
|
|
|
|
<template id="nonlevyNotFound--${pageName}">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top" colspan="3"
|
|
|
|
<td valign="top" colspan="3"
|
|
|
|
class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
|
|
|
|
class="dataTables_empty text-center">정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -224,7 +224,7 @@
|
|
|
|
답변내용
|
|
|
|
답변내용
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<textarea id="prcsRsltCn--${pageName}" name="prcsRsltCn"
|
|
|
|
<textarea id="prcsRsltCn--${pageName}" name="prcsRsltCn"
|
|
|
|
class="form-control w-100" required rows="15"
|
|
|
|
class="form-control w-100" required rows="15"
|
|
|
|
></textarea>
|
|
|
|
></textarea>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
@ -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" id="btnRemove--${pageName}"
|
|
|
|
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" id="btnOpenPreviewPop--${pageName}"
|
|
|
|
class="btn btn-primary" title="미리보기">미리보기</button>
|
|
|
|
class="btn btn-primary" title="미리보기">미리보기</button>
|
|
|
|
<button type="button" id="btnSaveAnsBody--${pageName}"
|
|
|
|
<button type="button" id="btnSaveAnsBody--${pageName}"
|
|
|
|
class="btn btn-primary" title="적용">적용</button>
|
|
|
|
class="btn btn-primary" title="적용">적용</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -252,7 +252,6 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 매크로 삽입 버튼 영역 -->
|
|
|
|
<!-- 매크로 삽입 버튼 영역 -->
|
|
|
|
<div class="mt-4 d-flex flex-row justify-content-center align-items-center">
|
|
|
|
<div class="mt-4 d-flex flex-row justify-content-center align-items-center">
|
|
|
|
<div class="card ps-3 py-3 w-px-1300">
|
|
|
|
<div class="card ps-3 py-3 w-px-1300">
|
|
|
@ -260,12 +259,12 @@
|
|
|
|
<div class="col-12 btns">
|
|
|
|
<div class="col-12 btns">
|
|
|
|
<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" 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}"
|
|
|
|
class="btn btn-primary" title="사용자 전화번호 삽입">사용자 전화번호</button>
|
|
|
|
class="btn btn-primary" title="사용자 전화번호 삽입">사용자 전화번호</button>
|
|
|
|
<button type="button" id="btnInsertMacro3--${pageName}"
|
|
|
|
<button type="button" id="btnInsertMacro3--${pageName}"
|
|
|
|
class="btn btn-primary" title="사용자 성명 삽입">사용자 성명</button>
|
|
|
|
class="btn btn-primary" title="사용자 성명 삽입">사용자 성명</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -278,12 +277,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
<div class="content-backdrop fade"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -313,13 +309,13 @@ pageObject["${pageName}"] = {};
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
animation: true,
|
|
|
|
animation: true,
|
|
|
|
autohide: true,
|
|
|
|
autohide: true,
|
|
|
|
delay: 2000
|
|
|
|
delay: 2000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -335,7 +331,7 @@ $(document).ready(function(){
|
|
|
|
dataGetter : obj => obj["nonlevyCaseList"], urls : {}, formats : {},
|
|
|
|
dataGetter : obj => obj["nonlevyCaseList"], urls : {}, formats : {},
|
|
|
|
keymapper : info => info ? info.LEVY_EXCL_RSN_CD : ""
|
|
|
|
keymapper : info => info ? info.LEVY_EXCL_RSN_CD : ""
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* pageObject.function
|
|
|
|
* pageObject.function
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -344,23 +340,23 @@ $(document).ready(function(){
|
|
|
|
$P.ansBodyControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc05/010/info.do");
|
|
|
|
$P.ansBodyControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc05/010/info.do");
|
|
|
|
$P.ansBodyControl.urls.update = wctx.url("/"+taskSeCd+"/cvlc/cvlc05/010/save.do");
|
|
|
|
$P.ansBodyControl.urls.update = wctx.url("/"+taskSeCd+"/cvlc/cvlc05/010/save.do");
|
|
|
|
$P.ansBodyControl.urls.remove = wctx.url("/"+taskSeCd+"/cvlc/cvlc05/010/remove.do");
|
|
|
|
$P.ansBodyControl.urls.remove = wctx.url("/"+taskSeCd+"/cvlc/cvlc05/010/remove.do");
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset();
|
|
|
|
$P.fnReset();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$('#btnAnsBasicTab--${pageName}').trigger("click");
|
|
|
|
$('#btnAnsBasicTab--${pageName}').trigger("click");
|
|
|
|
$P.ansBodyControl.levy.setData([]);
|
|
|
|
$P.ansBodyControl.levy.setData([]);
|
|
|
|
$P.ansBodyControl.warning.setData([]);
|
|
|
|
$P.ansBodyControl.warning.setData([]);
|
|
|
|
$P.ansBodyControl.nonlevy.setData([]);
|
|
|
|
$P.ansBodyControl.nonlevy.setData([]);
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderAnsBodyList(0,'levy');
|
|
|
|
$P.renderAnsBodyList(0,'levy');
|
|
|
|
$P.renderAnsBodyList(0,'warning');
|
|
|
|
$P.renderAnsBodyList(0,'warning');
|
|
|
|
$P.renderAnsBodyList(0,'nonlevy');
|
|
|
|
$P.renderAnsBodyList(0,'nonlevy');
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmEditAnsBasic--${pageName}").find("input, textarea").val("");
|
|
|
|
$("#frmEditAnsBasic--${pageName}").find("input, textarea").val("");
|
|
|
|
$("#frmEditAnsBody--${pageName}").find("input, textarea").val("");
|
|
|
|
$("#frmEditAnsBody--${pageName}").find("input, textarea").val("");
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchWordsStng();
|
|
|
|
$P.searchWordsStng();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -369,7 +365,7 @@ $(document).ready(function(){
|
|
|
|
var data = formFields.get();
|
|
|
|
var data = formFields.get();
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.searchWordsStng = () => {
|
|
|
|
$P.searchWordsStng = () => {
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
|
@ -380,15 +376,15 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
$("#headerCn--${pageName}").val(resp.headerCn);
|
|
|
|
$("#headerCn--${pageName}").val(resp.headerCn);
|
|
|
|
$("#footerCn--${pageName}").val(resp.footerCn);
|
|
|
|
$("#footerCn--${pageName}").val(resp.footerCn);
|
|
|
|
|
|
|
|
|
|
|
|
$P.ansBodyControl.levy.setData(resp.levyCaseList);
|
|
|
|
$P.ansBodyControl.levy.setData(resp.levyCaseList);
|
|
|
|
$P.ansBodyControl.warning.setData(resp.warningCaseList);
|
|
|
|
$P.ansBodyControl.warning.setData(resp.warningCaseList);
|
|
|
|
$P.ansBodyControl.nonlevy.setData(resp.nonlevyCaseList);
|
|
|
|
$P.ansBodyControl.nonlevy.setData(resp.nonlevyCaseList);
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderAnsBodyList(resp.levyCaseList.length,'levy');
|
|
|
|
$P.renderAnsBodyList(resp.levyCaseList.length,'levy');
|
|
|
|
$P.renderAnsBodyList(resp.warningCaseList.length,'warning');
|
|
|
|
$P.renderAnsBodyList(resp.warningCaseList.length,'warning');
|
|
|
|
$P.renderAnsBodyList(resp.nonlevyCaseList.length,'nonlevy');
|
|
|
|
$P.renderAnsBodyList(resp.nonlevyCaseList.length,'nonlevy');
|
|
|
|
|
|
|
|
|
|
|
|
if(resp.levyCaseList.length > 0){
|
|
|
|
if(resp.levyCaseList.length > 0){
|
|
|
|
var current = $P.ansBodyControl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
var current = $P.ansBodyControl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
$P.clickAnsBodyList(current,'levy');
|
|
|
|
$P.clickAnsBodyList(current,'levy');
|
|
|
@ -404,9 +400,9 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderAnsBodyList = (total, renderDataType) => {
|
|
|
|
$P.renderAnsBodyList = (total, renderDataType) => {
|
|
|
|
|
|
|
|
|
|
|
|
var notFoundId = "";
|
|
|
|
var notFoundId = "";
|
|
|
|
var foundId = "";
|
|
|
|
var foundId = "";
|
|
|
|
var tbodyId = "";
|
|
|
|
var tbodyId = "";
|
|
|
@ -425,17 +421,17 @@ $(document).ready(function(){
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var ansBodyDS = $P.ansBodyControl[renderDataType].dataset;
|
|
|
|
var ansBodyDS = $P.ansBodyControl[renderDataType].dataset;
|
|
|
|
var empty = ansBodyDS.empty;
|
|
|
|
var empty = ansBodyDS.empty;
|
|
|
|
var notFound = [document.getElementById(notFoundId).innerHTML];
|
|
|
|
var notFound = [document.getElementById(notFoundId).innerHTML];
|
|
|
|
var found = document.getElementById(foundId).innerHTML;
|
|
|
|
var found = document.getElementById(foundId).innerHTML;
|
|
|
|
|
|
|
|
|
|
|
|
var replacer = () => {};
|
|
|
|
var replacer = () => {};
|
|
|
|
if(renderDataType == "levy"){
|
|
|
|
if(renderDataType == "levy"){
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("VLTN_CASE_ID") + "','levy');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("VLTN_CASE_ID") + "','levy');")
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('" + dataItem.getValue("VLTN_CASE_ID") + "','levy');");
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('" + dataItem.getValue("VLTN_CASE_ID") + "','levy');");
|
|
|
|
} else if(renderDataType == "warning"){
|
|
|
|
} else if(renderDataType == "warning"){
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "','warning');")
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "','warning');")
|
|
|
@ -449,11 +445,11 @@ $(document).ready(function(){
|
|
|
|
var trs = empty ? notFound : ansBodyDS.inStrings(found, replacer);
|
|
|
|
var trs = empty ? notFound : ansBodyDS.inStrings(found, replacer);
|
|
|
|
$("#"+tbodyId).html(trs.join());
|
|
|
|
$("#"+tbodyId).html(trs.join());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.radioClickAnsBodyList = (dataKey, gridType) => {
|
|
|
|
$P.radioClickAnsBodyList = (dataKey, gridType) => {
|
|
|
|
|
|
|
|
|
|
|
|
$P.ansBodyControl[gridType].setCurrent(dataKey);
|
|
|
|
$P.ansBodyControl[gridType].setCurrent(dataKey);
|
|
|
|
|
|
|
|
|
|
|
|
var tbodyId = "";
|
|
|
|
var tbodyId = "";
|
|
|
|
if(gridType == "levy"){
|
|
|
|
if(gridType == "levy"){
|
|
|
|
tbodyId = "vltnTbody--${pageName}";
|
|
|
|
tbodyId = "vltnTbody--${pageName}";
|
|
|
@ -474,7 +470,7 @@ $(document).ready(function(){
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.clickAnsBodyList = (dataKey, gridType) => {
|
|
|
|
$P.clickAnsBodyList = (dataKey, gridType) => {
|
|
|
|
var radioName = "";
|
|
|
|
var radioName = "";
|
|
|
|
if(gridType == "levy"){
|
|
|
|
if(gridType == "levy"){
|
|
|
@ -486,9 +482,9 @@ $(document).ready(function(){
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").prop("checked",true);
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").prop("checked",true);
|
|
|
|
|
|
|
|
|
|
|
|
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
|
|
|
|
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
} else if(gridType == "warning" && $P.currentDisplay == "warningAnsBody"){
|
|
|
|
} else if(gridType == "warning" && $P.currentDisplay == "warningAnsBody"){
|
|
|
@ -496,15 +492,15 @@ $(document).ready(function(){
|
|
|
|
} else if(gridType == "nonlevy" && $P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
} else if(gridType == "nonlevy" && $P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.radioClickAnsBodyList(dataKey, gridType);
|
|
|
|
$P.radioClickAnsBodyList(dataKey, gridType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText = () => {
|
|
|
|
$P.changeAnsBodyText = () => {
|
|
|
|
var curData = null;
|
|
|
|
var curData = null;
|
|
|
|
var rnsRsnCd = "";
|
|
|
|
var rnsRsnCd = "";
|
|
|
|
var dstrbncYn = "";
|
|
|
|
var dstrbncYn = "";
|
|
|
|
|
|
|
|
|
|
|
|
if($P.currentDisplay == "levyAnsBody"){
|
|
|
|
if($P.currentDisplay == "levyAnsBody"){
|
|
|
|
curData = $P.ansBodyControl.levy.getCurrent();
|
|
|
|
curData = $P.ansBodyControl.levy.getCurrent();
|
|
|
|
} else if($P.currentDisplay == "warningAnsBody"){
|
|
|
|
} else if($P.currentDisplay == "warningAnsBody"){
|
|
|
@ -512,7 +508,7 @@ $(document).ready(function(){
|
|
|
|
} else if($P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
} else if($P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
curData = $P.ansBodyControl.nonlevy.getCurrent();
|
|
|
|
curData = $P.ansBodyControl.nonlevy.getCurrent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(curData == null){
|
|
|
|
if(curData == null){
|
|
|
|
$("#ansRsnCd--${pageName}").val("");
|
|
|
|
$("#ansRsnCd--${pageName}").val("");
|
|
|
|
$("#dstrbncYn--${pageName}").val("");
|
|
|
|
$("#dstrbncYn--${pageName}").val("");
|
|
|
@ -520,7 +516,7 @@ $(document).ready(function(){
|
|
|
|
$("#prcsRsltCn--${pageName}").val("");
|
|
|
|
$("#prcsRsltCn--${pageName}").val("");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($P.currentDisplay == "levyAnsBody"){
|
|
|
|
if($P.currentDisplay == "levyAnsBody"){
|
|
|
|
if(curData["VLTN_CASE_ID"].endsWith("D")){
|
|
|
|
if(curData["VLTN_CASE_ID"].endsWith("D")){
|
|
|
|
rnsRsnCd = "3" + curData["VLTN_CASE_ID"].substring(0,2);
|
|
|
|
rnsRsnCd = "3" + curData["VLTN_CASE_ID"].substring(0,2);
|
|
|
@ -533,7 +529,7 @@ $(document).ready(function(){
|
|
|
|
rnsRsnCd = curData["LEVY_EXCL_RSN_CD"]
|
|
|
|
rnsRsnCd = curData["LEVY_EXCL_RSN_CD"]
|
|
|
|
} else if($P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
} else if($P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
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);
|
|
|
|
$("#btnRemove--${pageName}").prop("disabled",true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -546,30 +542,30 @@ $(document).ready(function(){
|
|
|
|
$("#ansWordsId--${pageName}").val(curData["ANS_WORDS_ID"]);
|
|
|
|
$("#ansWordsId--${pageName}").val(curData["ANS_WORDS_ID"]);
|
|
|
|
$("#prcsRsltCn--${pageName}").val(curData["PRCS_RSLT_CN"]);
|
|
|
|
$("#prcsRsltCn--${pageName}").val(curData["PRCS_RSLT_CN"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshAnsWordsInfo = () => {
|
|
|
|
$P.refreshAnsWordsInfo = () => {
|
|
|
|
var cursor1 = $P.ansBodyControl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
var cursor1 = $P.ansBodyControl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
var cursor2 = $P.ansBodyControl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
var cursor2 = $P.ansBodyControl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
var cursor3 = $P.ansBodyControl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
var cursor3 = $P.ansBodyControl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName}").find("input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : $P.ansBodyControl.urls.load,
|
|
|
|
url : $P.ansBodyControl.urls.load,
|
|
|
|
data : {"taskSeCd" : taskSeCd},
|
|
|
|
data : {"taskSeCd" : taskSeCd},
|
|
|
|
success : (resp) => {
|
|
|
|
success : (resp) => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#headerCn--${pageName}").val(resp.headerCn);
|
|
|
|
$("#headerCn--${pageName}").val(resp.headerCn);
|
|
|
|
$("#footerCn--${pageName}").val(resp.footerCn);
|
|
|
|
$("#footerCn--${pageName}").val(resp.footerCn);
|
|
|
|
|
|
|
|
|
|
|
|
$P.ansBodyControl.levy.setData(resp.levyCaseList);
|
|
|
|
$P.ansBodyControl.levy.setData(resp.levyCaseList);
|
|
|
|
$P.ansBodyControl.warning.setData(resp.warningCaseList);
|
|
|
|
$P.ansBodyControl.warning.setData(resp.warningCaseList);
|
|
|
|
$P.ansBodyControl.nonlevy.setData(resp.nonlevyCaseList);
|
|
|
|
$P.ansBodyControl.nonlevy.setData(resp.nonlevyCaseList);
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderAnsBodyList(resp.levyCaseList.length,'levy');
|
|
|
|
$P.renderAnsBodyList(resp.levyCaseList.length,'levy');
|
|
|
|
$P.renderAnsBodyList(resp.warningCaseList.length,'warning');
|
|
|
|
$P.renderAnsBodyList(resp.warningCaseList.length,'warning');
|
|
|
|
$P.renderAnsBodyList(resp.nonlevyCaseList.length,'nonlevy');
|
|
|
|
$P.renderAnsBodyList(resp.nonlevyCaseList.length,'nonlevy');
|
|
|
|
|
|
|
|
|
|
|
|
if(resp.levyCaseList.length > 0){
|
|
|
|
if(resp.levyCaseList.length > 0){
|
|
|
|
$P.ansBodyControl.levy.setCurrent(cursor1);
|
|
|
|
$P.ansBodyControl.levy.setCurrent(cursor1);
|
|
|
|
var current = $P.ansBodyControl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
var current = $P.ansBodyControl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
@ -591,19 +587,19 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
//적용
|
|
|
|
//적용
|
|
|
|
$P.fnSave = (isBasicWords) => {
|
|
|
|
$P.fnSave = (isBasicWords) => {
|
|
|
|
|
|
|
|
|
|
|
|
var formId = "";
|
|
|
|
var formId = "";
|
|
|
|
var confirmMessage = "";
|
|
|
|
var confirmMessage = "";
|
|
|
|
|
|
|
|
|
|
|
|
if(isBasicWords){
|
|
|
|
if(isBasicWords){
|
|
|
|
confirmMessage = "머리말/꼬리말 내용을 저장하시겠습니까?";
|
|
|
|
confirmMessage = "머리말/꼬리말 내용을 저장하시겠습니까?";
|
|
|
|
formId = "frmEditAnsBasic--${pageName}";
|
|
|
|
formId = "frmEditAnsBasic--${pageName}";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
confirmMessage = "본문내용을 저장하시겠습니까?"
|
|
|
|
confirmMessage = "본문내용을 저장하시겠습니까?"
|
|
|
|
formId = "frmEditAnsBody--${pageName}";
|
|
|
|
formId = "frmEditAnsBody--${pageName}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!customValidate($("#"+formId).find("input, select, textarea"))) return;
|
|
|
|
if(!customValidate($("#"+formId).find("input, select, textarea"))) return;
|
|
|
|
var info = (new FimsFormFields("#"+formId)).get();
|
|
|
|
var info = (new FimsFormFields("#"+formId)).get();
|
|
|
|
if(isBasicWords){
|
|
|
|
if(isBasicWords){
|
|
|
@ -617,13 +613,13 @@ $(document).ready(function(){
|
|
|
|
content : confirmMessage,
|
|
|
|
content : confirmMessage,
|
|
|
|
init : function() { focusOK(); },
|
|
|
|
init : function() { focusOK(); },
|
|
|
|
onOK: () => {
|
|
|
|
onOK: () => {
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : $P.ansBodyControl.urls.update,
|
|
|
|
url : $P.ansBodyControl.urls.update,
|
|
|
|
data : info,
|
|
|
|
data : info,
|
|
|
|
success : (resp) => {
|
|
|
|
success : (resp) => {
|
|
|
|
if(resp.saved){
|
|
|
|
if(resp.saved){
|
|
|
|
$P.toast.show();
|
|
|
|
$P.toast.show();
|
|
|
|
sleep(1000).then(() => $P.refreshAnsWordsInfo());
|
|
|
|
sleep(1000).then(() => $P.refreshAnsWordsInfo());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -631,13 +627,13 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//답변대상 제외
|
|
|
|
//답변대상 제외
|
|
|
|
$P.fnRemove = () => {
|
|
|
|
$P.fnRemove = () => {
|
|
|
|
|
|
|
|
|
|
|
|
if(!customValidate($("#frmEditAnsBody--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
if(!customValidate($("#frmEditAnsBody--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
var info = (new FimsFormFields("#frmEditAnsBody--${pageName}")).get();
|
|
|
|
var info = (new FimsFormFields("#frmEditAnsBody--${pageName}")).get();
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content : "해당 미부과사유를 답변대상에서 제외하시겠습니까?",
|
|
|
|
content : "해당 미부과사유를 답변대상에서 제외하시겠습니까?",
|
|
|
|
init : function() { focusOK(); },
|
|
|
|
init : function() { focusOK(); },
|
|
|
@ -655,10 +651,10 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//미리보기 팝업 호출
|
|
|
|
//미리보기 팝업 호출
|
|
|
|
$P.fnOpenPreviewPop = () => {
|
|
|
|
$P.fnOpenPreviewPop = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var result = fnMacroWordsReplace(
|
|
|
|
var result = fnMacroWordsReplace(
|
|
|
|
$("#headerCn--${pageName}").val(),
|
|
|
|
$("#headerCn--${pageName}").val(),
|
|
|
|
$("#footerCn--${pageName}").val(),
|
|
|
|
$("#footerCn--${pageName}").val(),
|
|
|
@ -666,7 +662,7 @@ $(document).ready(function(){
|
|
|
|
"${currentUserTelno}",
|
|
|
|
"${currentUserTelno}",
|
|
|
|
"${currentUserName}"
|
|
|
|
"${currentUserName}"
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : "previewDialog--${pageName}",
|
|
|
|
id : "previewDialog--${pageName}",
|
|
|
|
title : "답변 내용 미리보기",
|
|
|
|
title : "답변 내용 미리보기",
|
|
|
@ -682,23 +678,23 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* element.on
|
|
|
|
* element.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
|
|
|
|
|
|
|
//탭 버튼
|
|
|
|
//탭 버튼
|
|
|
|
$('#btnAnsBasicTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnAnsBasicTab--${pageName}').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();
|
|
|
|
|
|
|
|
|
|
|
|
$P.currentDisplay = "ansBasic";
|
|
|
|
$P.currentDisplay = "ansBasic";
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnLevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnLevyAnsBodyTab--${pageName}').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(){
|
|
|
|
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-levy")){
|
|
|
|
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-levy")){
|
|
|
@ -707,17 +703,17 @@ $(document).ready(function(){
|
|
|
|
$(this).hide();
|
|
|
|
$(this).hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.currentDisplay = "levyAnsBody";
|
|
|
|
$P.currentDisplay = "levyAnsBody";
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='levyRadio']:checked").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='levyRadio']:checked").focus();
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnWarningAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnWarningAnsBodyTab--${pageName}').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(){
|
|
|
|
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-warning")){
|
|
|
|
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-warning")){
|
|
|
@ -726,17 +722,17 @@ $(document).ready(function(){
|
|
|
|
$(this).hide();
|
|
|
|
$(this).hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.currentDisplay = "warningAnsBody";
|
|
|
|
$P.currentDisplay = "warningAnsBody";
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='warningRadio']:checked").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='warningRadio']:checked").focus();
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#btnNonlevyAnsBodyTab--${pageName}').on('click', (event) => {
|
|
|
|
$('#btnNonlevyAnsBodyTab--${pageName}').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(){
|
|
|
|
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-nonlevy")){
|
|
|
|
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-nonlevy")){
|
|
|
@ -745,26 +741,26 @@ $(document).ready(function(){
|
|
|
|
$(this).hide();
|
|
|
|
$(this).hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.currentDisplay = "nonlevyAnsBody";
|
|
|
|
$P.currentDisplay = "nonlevyAnsBody";
|
|
|
|
|
|
|
|
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='nonlevyRadio']:checked").focus();
|
|
|
|
$("#wrapper--${pageName}").find(":radio[name='nonlevyRadio']:checked").focus();
|
|
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
|
|
|
|
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
$("#macroTarget--${pageName}").attr("for","");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//업무처리 버튼
|
|
|
|
//업무처리 버튼
|
|
|
|
$("#btnSaveAnsBasic--${pageName}").on("click", () => $P.fnSave(true));
|
|
|
|
$("#btnSaveAnsBasic--${pageName}").on("click", () => $P.fnSave(true));
|
|
|
|
$("#btnSaveAnsBody--${pageName}").on("click", () => $P.fnSave(false));
|
|
|
|
$("#btnSaveAnsBody--${pageName}").on("click", () => $P.fnSave(false));
|
|
|
|
$("#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) => {
|
|
|
|
$("#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", () => {
|
|
|
|
$("#btnInsertMacro1--${pageName}").on("click", () => {
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
var macroTarget = $("#macroTarget--${pageName}").attr("for");
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
|
if(macroTarget == ""){ return; }
|
|
|
@ -786,7 +782,7 @@ $(document).ready(function(){
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
$P.fnResetAndChangeBiz(defaultBizValue);
|
|
|
|
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
});
|
|
|
|
});
|
|
|
|