|
|
|
@ -30,6 +30,16 @@
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 민원인명 -->
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label for="cvlprNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">민원인명</label>
|
|
|
|
|
<input type="text" class="form-control w-px-160" id="cvlprNm--${pageName}" name="cvlprNm" data-map="CVLPR_NM" autocomplete="off" />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 민원인 연락처 -->
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label for="cvlprCttpc--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">연락처</label>
|
|
|
|
|
<input type="text" class="form-control w-px-160" id="cvlprCttpc--${pageName}" name="cvlprCttpc" data-map="CVLPR_CTTPC" autocomplete="off" />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 상담 내용 -->
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<label for="dscsnCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">상담 내용</label>
|
|
|
|
@ -66,20 +76,23 @@
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
|
prefix : "cvlcptDscsnCn"
|
|
|
|
|
, prefixName : "민원상담내용"
|
|
|
|
|
prefix : "cvlcptDscsn"
|
|
|
|
|
, prefixName : "민원상담"
|
|
|
|
|
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
|
|
|
|
|
, dataGetter : obj => obj.cvlcptDscsnCn
|
|
|
|
|
, urls : {
|
|
|
|
|
create : wctx.url(${pageName}PrefixUrl + "/020/create.do") // 등록
|
|
|
|
|
, update : wctx.url(${pageName}PrefixUrl + "/020/update.do") // 수정
|
|
|
|
|
}
|
|
|
|
|
, dataGetter : obj => obj.cvlcptDscsn
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
${pageName}Control.onCurrentChange = item => {
|
|
|
|
|
// Dataset 셋팅
|
|
|
|
|
${pageName}Fields.set(item);
|
|
|
|
|
|
|
|
|
|
// 민원상담을 등록시 접수구분을 선택할 수 있게 한다.
|
|
|
|
|
if (item.data.CVLCPT_DSCSN_ID == null || item.data.CVLCPT_DSCSN_ID == "") {
|
|
|
|
|
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", false);
|
|
|
|
|
} else {
|
|
|
|
|
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 업무구분에 따른 url 변경
|
|
|
|
|
${pageName}Control.urls.create = wctx.url(item.data.TASK_SE_CD + ${pageName}PrefixUrl + "/020/create.do");
|
|
|
|
|
${pageName}Control.urls.update = wctx.url(item.data.TASK_SE_CD + ${pageName}PrefixUrl + "/020/update.do");
|
|
|
|
@ -118,13 +131,7 @@
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 검색조건 초기값 셋팅
|
|
|
|
|
initForm${pageName} = () => {
|
|
|
|
|
let initDataset = ${cvlcptDscsnCn};
|
|
|
|
|
|
|
|
|
|
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", true);
|
|
|
|
|
|
|
|
|
|
if (initDataset.CVLCPT_DSCSN_ID == undefined || initDataset.CVLCPT_DSCSN_ID == null) {
|
|
|
|
|
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
@ -159,8 +166,7 @@
|
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
|
|
// Data 셋팅
|
|
|
|
|
${pageName}Control.setData([${cvlcptDscsnCn}]);
|
|
|
|
|
${pageName}Control.setData([${cvlcptDscsn}]);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// #sourceURL=sprt04020-info.jsp
|
|
|
|
|
</script>
|
|
|
|
|