최고관리자로 로그인시 부서 등록 화면에서 시군구코드,기관코드 입력 가능하도록 수정

main
이범준 5 months ago
parent 73024d87f2
commit bed6e0c43e

@ -6,8 +6,31 @@
<div class="card">
<form id="frmEdit--${pageName}" name="frmEdit">
<input type="text" id="sggID--${pageName}" name="sggID" data-map="SGG_CD" hidden />
<input type="text" id="instCode--${pageName}" name="instCode" data-map="INST_CD" hidden />
<div class="row g-1" id="forRootAdmin--${pageName}" hidden>
<div class="col-md-6">
<label for="sggID--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">
시군구코드
</label>
<input type="text" id="sggID--${pageName}" name="sggID" data-map="SGG_CD"
class="form-control" required maxlength="7" />
</div>
<div class="col-md-6">
<label for="instCode--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">
기관코드
</label>
<input type="text" id="instCode--${pageName}" name="instCode" data-map="INST_CD"
class="form-control" required maxlength="7" />
</div>
</div>
<div class="row g-1">
@ -197,6 +220,11 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
if(MY_INFO.institute == 'default') {
$("#forRootAdmin--${pageName}").removeAttr("hidden");
}
var deptInfo = ${deptInfo};
if(deptInfo != null){
$("#deptID--${pageName}").attr("disabled","disabled");
@ -207,10 +235,12 @@ $(document).ready(function(){
}
} else {
$P.deptControl.dataset.setData([]);
if(MY_INFO.institute != 'default') {
$("#sggID--${pageName}").val(MY_INFO.info.sggCd);
$("#instCode--${pageName}").val(MY_INFO.info.instCd);
}
}
});
</script>
Loading…
Cancel
Save