|
|
|
@ -12,13 +12,13 @@
|
|
|
|
|
<label class="w-px-120 bg-label-danger pe-2 col-form-label text-sm-center">민원상담 정보</label>
|
|
|
|
|
<!-- 버튼 우측 정렬 -->
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnCreate--${pageName}" title="민원 상담 등록" onclick="fnBtnCvlcptDscsnCnCreate${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCreateCvlcptDscsnCn--${pageName}" title="민원 상담 등록" onclick="fnCreateCvlcptDscsnCn${pageName}();">
|
|
|
|
|
민원 상담 등록
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnUpdate--${pageName}" title="민원 상담 수정" onclick="fnBtnCvlcptDscsnCnUpdate${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnUpdateCvlcptDscsnCn--${pageName}" title="민원 상담 수정" onclick="fnUpdateCvlcptDscsnCn${pageName}();">
|
|
|
|
|
민원 상담 수정
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCvlcptDscsnCnRemove--${pageName}" title="민원 상담 삭제" onclick="fnBtnCvlcptDscsnCnRemove${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnRemoveCvlcptDscsnCn--${pageName}" title="민원 상담 삭제" onclick="fnRemoveCvlcptDscsnCn${pageName}();">
|
|
|
|
|
민원 상담 삭제
|
|
|
|
|
</button>
|
|
|
|
|
</span> <!-- <span class="container-window-btn-right"> -->
|
|
|
|
@ -70,7 +70,7 @@
|
|
|
|
|
</div> <!-- / DataTables(그리드) -->
|
|
|
|
|
<!-- 상담 내용 -->
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<textarea class="form-control w-100" id="dscsnCn--${pageName}" name="dscsnCn" data-map="DSCSN_CN" rows="5" data-maxlengthb="4000" readonly>
|
|
|
|
|
<textarea class="form-control w-100" style="font-size:x-large;" id="dscsnCn--${pageName}" name="dscsnCn" data-map="DSCSN_CN" rows="5" data-maxlengthb="4000" readonly>
|
|
|
|
|
</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
@ -94,7 +94,7 @@
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
|
prefix : "cvlcptDscsnCn"
|
|
|
|
|
, prefixName : "민원상담 정보"
|
|
|
|
|
, prefixName : "민원상담내용"
|
|
|
|
|
, infoSize : "lg"
|
|
|
|
|
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
|
|
|
|
|
, dataGetter : obj => obj.cvlcptDscsnCnList
|
|
|
|
@ -136,13 +136,29 @@
|
|
|
|
|
, content : resp
|
|
|
|
|
, size : "lg"
|
|
|
|
|
, init : () => { }
|
|
|
|
|
, onClose : () => { fnDataRefreshInfo(); } // callback 자료 조회
|
|
|
|
|
, onClose : () => { fnDataRefreshInfo(); } // callback 자료 재조회
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 재조회
|
|
|
|
|
// 삭제 callback
|
|
|
|
|
${pageName}Control.onRemove = (resp) => {
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
fnDataRefreshInfo(); // 자료 재조회
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 삭제
|
|
|
|
|
${pageName}Control.remove = (params) => {
|
|
|
|
|
ajax.post({
|
|
|
|
|
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/010/remove.do")
|
|
|
|
|
, data : params || {}
|
|
|
|
|
, success : resp => ${pageName}Control.onRemove(resp)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 자료 재조회
|
|
|
|
|
fnDataRefreshInfo = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let vhrno = $("#vhrno--${pageNameMain}").val();
|
|
|
|
@ -188,7 +204,6 @@
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -208,7 +223,7 @@
|
|
|
|
|
* function
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 민원 상담 내용 등록
|
|
|
|
|
fnBtnCvlcptDscsnCnCreate${pageName} = () => {
|
|
|
|
|
fnCreateCvlcptDscsnCn${pageName} = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let sggCd = $("#sggCd--${pageNameMain}").val();
|
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
@ -229,7 +244,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 민원 상담 내용 수정
|
|
|
|
|
fnBtnCvlcptDscsnCnUpdate${pageName} = () => {
|
|
|
|
|
fnUpdateCvlcptDscsnCn${pageName} = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let sggCd = $("#sggCd--${pageNameMain}").val();
|
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
@ -252,8 +267,31 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 민원 상담 내용 삭제
|
|
|
|
|
fnBtnCvlcptDscsnCnRemove${pageName} = () => {
|
|
|
|
|
alert("민원 상담 삭제");
|
|
|
|
|
fnRemoveCvlcptDscsnCn${pageName} = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let sggCd = $("#sggCd--${pageNameMain}").val();
|
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
|
let cvlcptDscsnId = ${pageName}Control.dataset.getValue("CVLCPT_DSCSN_ID");
|
|
|
|
|
|
|
|
|
|
// 민원 상담 ID 가 없다면.. return
|
|
|
|
|
if (cvlcptDscsnId == undefined || cvlcptDscsnId == "") {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
callPurpose : "remove"
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
, sggCd : sggCd
|
|
|
|
|
, taskSeCd : taskSeCd
|
|
|
|
|
, cvlcptDscsnId : cvlcptDscsnId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "선택한 민원상담 내용을 삭제하시겠습니까?"
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
${pageName}Control.remove(params);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|