|
|
|
@ -18,16 +18,16 @@
|
|
|
|
|
<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="btnOpnnSbmsnCreate--${pageName}" title="의견제출 등록" onclick="fnBtnOpnnSbmsnCreate${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCreateOpnnSbmsn--${pageName}" title="의견제출 등록" onclick="fnCreateOpnnSbmsn${pageName}();">
|
|
|
|
|
의견제출 등록
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnOpnnSbmsnUpdate--${pageName}" title="의견제출 수정" onclick="fnBtnOpnnSbmsnUpdate${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnUpdateOpnnSbmsn--${pageName}" title="의견제출 수정" onclick="fnUpdateOpnnSbmsn${pageName}();">
|
|
|
|
|
의견제출 수정
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnOpnnSbmsnRemove--${pageName}" title="의견제출 삭제" onclick="fnBtnOpnnSbmsnRemove${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnRemoveOpnnSbmsn--${pageName}" title="의견제출 삭제" onclick="fnRemoveOpnnSbmsn${pageName}();">
|
|
|
|
|
의견제출 삭제
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnDlbrtLtfrPrint--${pageName}" title="심의의결서 출력" onclick="fnBtnDlbrtLtfrPrint${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnPrintDlbrtLtfr--${pageName}" title="심의의결서 출력" onclick="fnPrintDlbrtLtfr${pageName}();">
|
|
|
|
|
심의의결서 출력
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
@ -133,7 +133,7 @@
|
|
|
|
|
<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="btnOpnnSbmsnDlbrt--${pageName}" title="의견제출 심의" onclick="fnBtnOpnnSbmsnDlbrt${pageName}();">
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnUpdateOpnnSbmsnDlbrt--${pageName}" title="의견제출 심의" onclick="fnUpdateOpnnSbmsnDlbrt${pageName}();">
|
|
|
|
|
의견제출 심의
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
@ -180,7 +180,7 @@
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// URL
|
|
|
|
|
var ${pageName}PrefixUrl = "/sprt/sprt02";
|
|
|
|
|
var ${pageName}PrefixUrl = "/excl/excl02";
|
|
|
|
|
// FormFields
|
|
|
|
|
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
|
|
|
|
// 파일 리스트
|
|
|
|
@ -190,7 +190,7 @@
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
|
prefix : "totalInfoOpnnSbmsn"
|
|
|
|
|
prefix : "opnnInfo"
|
|
|
|
|
, prefixName : "의견제출"
|
|
|
|
|
, keymapper : info => info ? info.OPNN_ID : ""
|
|
|
|
|
, dataGetter : obj => obj.opnnSbmsn
|
|
|
|
@ -211,10 +211,10 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 의견제출 dialog
|
|
|
|
|
${pageName}Control.getOpnnSbmsnInfo = (params) => {
|
|
|
|
|
${pageName}Control.getInfo = (params) => {
|
|
|
|
|
let dialogTitle = "";
|
|
|
|
|
|
|
|
|
|
if (params.callPurpose == "create") {
|
|
|
|
@ -226,24 +226,24 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/excl/excl02/020/info.do")
|
|
|
|
|
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do")
|
|
|
|
|
, data : params || {}
|
|
|
|
|
, success : resp => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "opnnInfoDialog"
|
|
|
|
|
id : ${pageName}Control.prefixed("Dialog")
|
|
|
|
|
, title : dialogTitle
|
|
|
|
|
, content : resp
|
|
|
|
|
, size : "xl"
|
|
|
|
|
, onClose : () => { fnDataRefreshInfo(params.crdnId); } // callback 자료 조회
|
|
|
|
|
, onClose : () => { fnDataRefreshInfo(); } // callback 자료 재조회
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 삭제 callback
|
|
|
|
|
${pageName}Control.onRemoveOpnnSbmsn = (resp) => {
|
|
|
|
|
${pageName}Control.onRemove = (resp) => {
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
fnDataRefreshInfo(); // 자료 조회
|
|
|
|
|
fnDataRefreshInfo(); // 자료 재조회
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -252,12 +252,15 @@
|
|
|
|
|
ajax.post({
|
|
|
|
|
url : wctx.url("/excl/excl02/010/remove.do")
|
|
|
|
|
, data : params || {}
|
|
|
|
|
, success : resp => ${pageName}Control.onRemoveOpnnSbmsn(resp)
|
|
|
|
|
, success : resp => ${pageName}Control.onRemove(resp)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
*
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 심의 dialog
|
|
|
|
|
${pageName}Control.getOpnnSbmsnDlbrtInfo = (params) => {
|
|
|
|
|
${pageName}Control.getInfoOpnnSbmsnDlbrt = (params) => {
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/excl/excl02/030/info.do")
|
|
|
|
|
, data : params || {}
|
|
|
|
@ -274,7 +277,7 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 재조회
|
|
|
|
|
// 자료 재조회
|
|
|
|
|
fnDataRefreshInfo = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
|
|
|
|
@ -294,8 +297,11 @@
|
|
|
|
|
, headers: { Accept: "application/json; charset=utf-8" } // json
|
|
|
|
|
, data : params || {}
|
|
|
|
|
, success : resp => {
|
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
|
${pageName}Control.setData([resp.opnnSbmsn]); // Dataset 셋팅
|
|
|
|
|
if (resp.opnnSbmsn) {
|
|
|
|
|
${pageName}Control.setData([resp.opnnSbmsn]);
|
|
|
|
|
} else {
|
|
|
|
|
$("#frmEdit--${pageName}")[0].reset();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -317,8 +323,10 @@
|
|
|
|
|
* function
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 의견제출 등록
|
|
|
|
|
fnBtnOpnnSbmsnCreate${pageName} = () => {
|
|
|
|
|
let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID");
|
|
|
|
|
fnCreateOpnnSbmsn${pageName} = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let sggCd = $("#sggCd--${pageNameMain}").val();
|
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
|
|
|
|
|
|
// 단속 ID 가 없다면.. return
|
|
|
|
|
if (crdnId == null || crdnId == "") {
|
|
|
|
@ -328,15 +336,19 @@
|
|
|
|
|
let params = {
|
|
|
|
|
callPurpose : "create"
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
, sggCd : sggCd
|
|
|
|
|
, taskSeCd : taskSeCd
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
${pageName}Control.getOpnnSbmsnInfo(params);
|
|
|
|
|
${pageName}Control.getInfo(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 의견제출 수정
|
|
|
|
|
fnBtnOpnnSbmsnUpdate${pageName} = () => {
|
|
|
|
|
fnUpdateOpnnSbmsn${pageName} = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let sggCd = $("#sggCd--${pageNameMain}").val();
|
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
|
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
|
|
|
|
|
let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID");
|
|
|
|
|
|
|
|
|
|
// 의견 ID 가 없다면.. return
|
|
|
|
|
if (opnnId == null || opnnId == "") {
|
|
|
|
@ -345,17 +357,21 @@
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
callPurpose : "update"
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
, sggCd : sggCd
|
|
|
|
|
, taskSeCd : taskSeCd
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
${pageName}Control.getOpnnSbmsnInfo(params);
|
|
|
|
|
${pageName}Control.getInfo(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 의견제출 삭제
|
|
|
|
|
fnBtnOpnnSbmsnRemove${pageName} = () => {
|
|
|
|
|
fnRemoveOpnnSbmsn${pageName} = () => {
|
|
|
|
|
let crdnId = $("#crdnId--${pageNameMain}").val();
|
|
|
|
|
let sggCd = $("#sggCd--${pageNameMain}").val();
|
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageNameMain}").val();
|
|
|
|
|
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
|
|
|
|
|
let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID");
|
|
|
|
|
|
|
|
|
|
// 의견 ID 가 없다면.. return
|
|
|
|
|
if (opnnId == null || opnnId == "") {
|
|
|
|
@ -363,9 +379,11 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
callPurpose : "remove"
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
callPurpose : "update"
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
, sggCd : sggCd
|
|
|
|
|
, taskSeCd : taskSeCd
|
|
|
|
|
, opnnId : opnnId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
@ -377,7 +395,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 의견제출 심의
|
|
|
|
|
fnBtnOpnnSbmsnDlbrt${pageName} = () => {
|
|
|
|
|
fnUpdateOpnnSbmsnDlbrt${pageName} = () => {
|
|
|
|
|
let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID");
|
|
|
|
|
let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID");
|
|
|
|
|
|
|
|
|
@ -392,11 +410,11 @@
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
${pageName}Control.getOpnnSbmsnDlbrtInfo(params);
|
|
|
|
|
${pageName}Control.getInfoOpnnSbmsnDlbrt(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 심의의결서 출력
|
|
|
|
|
fnBtnDlbrtLtfrPrint${pageName} = () => {
|
|
|
|
|
fnPrintDlbrtLtfr${pageName} = () => {
|
|
|
|
|
alert("심의의결서 출력");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -460,8 +478,11 @@
|
|
|
|
|
// 화면 초기 설정
|
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
|
${pageName}Control.setData([${opnnSbmsn}]);
|
|
|
|
|
// 의견제출 정보 Data 셋팅
|
|
|
|
|
let opnnSbmsn = ${opnnSbmsn};
|
|
|
|
|
if (opnnSbmsn) {
|
|
|
|
|
${pageName}Control.setData([opnnSbmsn]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// #sourceURL=sprt02030-info.jsp
|
|
|
|
|