|
|
|
@ -6,11 +6,24 @@
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
|
<input type="text" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" hidden />
|
|
|
|
|
|
|
|
|
|
<input type="text" id="ntcId--${pageName}" name="ntcId" data-map="NTC_ID" hidden />
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<label for="sggCd--${pageName}"
|
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
|
|
|
|
|
시군구
|
|
|
|
|
</label>
|
|
|
|
|
<select id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" class="form-select">
|
|
|
|
|
<option value="">전체</option>
|
|
|
|
|
<c:forEach items="${sggList}" var="item">
|
|
|
|
|
<c:if test="${item.SGG_CD ne 'default'}">
|
|
|
|
|
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<label for="ntcTtl--${pageName}"
|
|
|
|
|
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">
|
|
|
|
@ -150,18 +163,21 @@ $(document).ready(function(){
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var ntcInfo = ${ntcInfo};
|
|
|
|
|
if(ntcInfo != null){
|
|
|
|
|
$P.ntcControl.dataset.setData([ntcInfo]);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
if(ntcInfo == null){
|
|
|
|
|
$P.ntcControl.dataset.setData([]);
|
|
|
|
|
$("#sggCd--${pageName}").val(MY_INFO.info.sggCd);
|
|
|
|
|
$("#btnRemove--${pageName}").attr("hidden","hidden");
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$P.ntcControl.dataset.setData([ntcInfo]);
|
|
|
|
|
$("#sggCd--${pageName}").attr("disabled","disabled");
|
|
|
|
|
|
|
|
|
|
if(MY_INFO.institute != "default"){
|
|
|
|
|
$("#btnSave--${pageName}").attr("hidden","hidden");
|
|
|
|
|
$("#btnRemove--${pageName}").attr("hidden","hidden");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|