부서 설정 메뉴 수정

main
이범준 5 months ago
parent a5eef36655
commit dc274a6734

@ -61,18 +61,6 @@
</ul> </ul>
</div> </div>
<span class="container-window-btn-right">
<span>
<button type="button" class="btn btn-primary w-px-120"
id="btnAdd--${pageName}" title="추가">
추가
</button>
<button type="button" class="btn btn-primary w-px-120"
id="btnDel--${pageName}" title="삭제">
삭제
</button>
</span>
</span>
</div> </div>
</div> </div>
@ -200,7 +188,7 @@ $(document).ready(function(){
$P.deptControl.dataset.onSelectionChange = (selectedArr) => { $P.deptControl.dataset.onSelectionChange = (selectedArr) => {
Apply.fromDataset.gridCheckbox($P.deptControl.dataset, document.getElementById("deptTbody--${pageName}"), 1, selectedArr); Apply.fromDataset.gridCheckbox($P.deptControl.dataset, document.getElementById("deptTbody--${pageName}"), 1, selectedArr);
Apply.fromDataset.gridButton($P.deptControl.dataset, $("#btnDel--${pageName}")[0], selectedArr);
}; };
/************************************************************************** /**************************************************************************
@ -289,15 +277,11 @@ $(document).ready(function(){
$P.getInfo(dataKey); $P.getInfo(dataKey);
} }
$P.createDept = () => {
$P.getInfo();
}
$P.getInfo = (deptCd) => { $P.getInfo = (deptCd) => {
var params = {}; var params = {};
if(deptCd != null){ params.deptCd = deptCd;
params.deptCd = deptCd;
}
ajax.get({ ajax.get({
url : $P.deptControl.urls.getInfo, url : $P.deptControl.urls.getInfo,
@ -329,31 +313,6 @@ $(document).ready(function(){
}); });
} }
$P.removeDept = () => {
var selected = $P.deptControl.dataset.getKeys("selected");
if (selected.length < 1) {
return;
}
var params = {
"deptCds" : selected.join(",")
};
ajax.post({
url : $P.deptControl.urls.remove,
data : params,
success : (resp) => {
$P.removeCallback(resp);
}
});
}
$P.removeCallback = (resp) => {
if (resp.saved){
$P.toast.show();
sleep(1000).then(() => $P.refreshDeptList());
}
}
$P.provide = { $P.provide = {
"refreshList" : function(){ "refreshList" : function(){
@ -366,8 +325,6 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchDeptList()); $('#btnSearch--${pageName}').on('click', () => $P.searchDeptList());
$('#btnAdd--${pageName}').on('click', () => $P.createDept());
$('#btnDel--${pageName}').on('click', () => $P.removeDept());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -15,7 +15,7 @@
</label> </label>
<input type="text" id="sggID--${pageName}" name="sggID" data-map="SGG_CD" <input type="text" id="sggID--${pageName}" name="sggID" data-map="SGG_CD"
class="form-control" required maxlength="7" /> class="form-control" required maxlength="7" readonly />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
@ -25,7 +25,7 @@
</label> </label>
<input type="text" id="instCode--${pageName}" name="instCode" data-map="INST_CD" <input type="text" id="instCode--${pageName}" name="instCode" data-map="INST_CD"
class="form-control" required maxlength="7" /> class="form-control" required maxlength="7" readonly />
</div> </div>
</div> </div>
@ -41,7 +41,7 @@
</label> </label>
<input type="text" id="deptID--${pageName}" name="deptID" data-map="DEPT_CD" <input type="text" id="deptID--${pageName}" name="deptID" data-map="DEPT_CD"
class="form-control" required maxlength="7" /> class="form-control" required maxlength="7" readonly />
</div> </div>
@ -52,72 +52,196 @@
</label> </label>
<input type="text" id="name--${pageName}" name="name" data-map="DEPT_NM" <input type="text" id="name--${pageName}" name="name" data-map="DEPT_NM"
class="form-control" required /> class="form-control" required readonly />
</div> </div>
<div class="col-md-6"> <div class="col-md-12" hidden>
<label for="telno--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
전화
</label>
<input type="text" id="telno--${pageName}" name="telno" data-map="DEPT_TELNO" <input type="text" id="telno--${pageName}" name="telno" data-map="DEPT_TELNO"
class="form-control" /> class="form-control" />
</div>
<div class="col-md-6">
<label for="faxno--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
팩스
</label>
<input type="text" id="faxno--${pageName}" name="faxno" data-map="DEPT_FXNO" <input type="text" id="faxno--${pageName}" name="faxno" data-map="DEPT_FXNO"
class="form-control" /> class="form-control" />
</div> </div>
</div> </div>
<div class="row g-1"> <div class="row g-1">
<input type="text" id="cvlcptLinkSeCd--${pageName}" name="cvlcptLinkSeCd" data-map="CVLCPT_LINK_SE_CD" <div class="col-md-6">
class="form-control" hidden /> <label for="cvlcptLinkSeCd--${pageName}"
<input type="text" id="vrbacntLinkSeCd--${pageName}" name="vrbacntLinkSeCd" data-map="VRBACNT_LINK_SE_CD" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
class="form-control" hidden /> 민원연계구분
<input type="text" id="pstofcNm--${pageName}" name="pstofcNm" data-map="PSTOFC_NM" </label>
class="form-control" hidden /> <input type="text" id="cvlcptLinkSeCd--${pageName}" name="cvlcptLinkSeCd" data-map="CVLCPT_LINK_SE_CD"
<input type="text" id="rgNoHeader--${pageName}" name="rgNoHeader" data-map="RG_NO_HEADER" class="form-control" />
class="form-control" hidden /> </div>
<input type="text" id="sndngLinkSeCd--${pageName}" name="sndngLinkSeCd" data-map="SNDNG_LINK_SE_CD" <div class="col-md-6">
class="form-control" hidden /> <label for="vrbacntLinkSeCd--${pageName}"
<input type="text" id="egpConOrg--${pageName}" name="egpConOrg" data-map="EGP_CON_ORG" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
class="form-control" hidden /> 가상계좌연계구분
<input type="text" id="egpRceptId--${pageName}" name="egpRceptId" data-map="EGP_RCEPT_ID" </label>
class="form-control" hidden /> <input type="text" id="vrbacntLinkSeCd--${pageName}" name="vrbacntLinkSeCd" data-map="VRBACNT_LINK_SE_CD"
<input type="text" id="egpApvlNb--${pageName}" name="egpApvlNb" data-map="EGP_APVL_NB" class="form-control" />
class="form-control" hidden /> </div>
<input type="text" id="egpEsbPath--${pageName}" name="egpEsbPath" data-map="EGP_ESB_PATH" <div class="col-md-6">
class="form-control" hidden /> <label for="pstofcNm--${pageName}"
<input type="text" id="egpPostInstId--${pageName}" name="egpPostInstId" data-map="EGP_POST_INST_ID" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
class="form-control" hidden /> 우체국명
<input type="text" id="egpCertCn--${pageName}" name="egpCertCn" data-map="EGP_CERT_CN" </label>
class="form-control" hidden /> <input type="text" id="pstofcNm--${pageName}" name="pstofcNm" data-map="PSTOFC_NM"
<input type="text" id="ensInterfaceId--${pageName}" name="ensInterfaceId" data-map="ENS_INTERFACE_ID" class="form-control" />
class="form-control" hidden /> </div>
<input type="text" id="ensSourceCd--${pageName}" name="ensSourceCd" data-map="ENS_SOURCE_CD" <div class="col-md-6">
class="form-control" hidden /> <label for="rgNoHeader--${pageName}"
<input type="text" id="ensTargetCd--${pageName}" name="ensTargetCd" data-map="ENS_TARGET_CD" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
class="form-control" hidden /> 등기번호 헤더
<input type="text" id="ensUrl--${pageName}" name="ensUrl" data-map="ENS_URL" </label>
class="form-control" hidden /> <input type="text" id="rgNoHeader--${pageName}" name="rgNoHeader" data-map="RG_NO_HEADER"
<input type="text" id="nxrpLinkYn--${pageName}" name="nxrpLinkYn" data-map="NXRP_LINK_YN" class="form-control" />
class="form-control" hidden /> </div>
<input type="text" id="nxrpRgnSeCd--${pageName}" name="nxrpRgnSeCd" data-map="NXRP_RGN_SE_CD" <div class="col-md-6">
class="form-control" hidden /> <label for="sndngLinkSeCd--${pageName}"
<input type="text" id="dtbnBankNm--${pageName}" name="dtbnBankNm" data-map="DTBN_BANK_NM" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
class="form-control" hidden /> 발송연계구분
<input type="text" id="dtbnActno--${pageName}" name="dtbnActno" data-map="DTBN_ACTNO" </label>
class="form-control" hidden /> <input type="text" id="sndngLinkSeCd--${pageName}" name="sndngLinkSeCd" data-map="SNDNG_LINK_SE_CD"
<input type="text" id="docHeader--${pageName}" name="docHeader" data-map="DOC_HEADER" class="form-control" />
class="form-control" hidden /> </div>
<input type="text" id="srvrOs--${pageName}" name="srvrOs" data-map="SRVR_OS" <div class="col-md-6">
class="form-control" hidden /> <label for="egpConOrg--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
E그린 외부기관구분
</label>
<input type="text" id="egpConOrg--${pageName}" name="egpConOrg" data-map="EGP_CON_ORG"
class="form-control" />
</div>
<div class="col-md-6">
<label for="egpRceptId--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
E그린 접수수체국기호
</label>
<input type="text" id="egpRceptId--${pageName}" name="egpRceptId" data-map="EGP_RCEPT_ID"
class="form-control" />
</div>
<div class="col-md-6">
<label for="egpApvlNb--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
E그린 후납계약승인번호
</label>
<input type="text" id="egpApvlNb--${pageName}" name="egpApvlNb" data-map="EGP_APVL_NB"
class="form-control" />
</div>
<div class="col-md-6">
<label for="egpEsbPath--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
E그린 ESB경로
</label>
<input type="text" id="egpEsbPath--${pageName}" name="egpEsbPath" data-map="EGP_ESB_PATH"
class="form-control" />
</div>
<div class="col-md-6">
<label for="egpPostInstId--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
E그린 우정정보센터 기관ID
</label>
<input type="text" id="egpPostInstId--${pageName}" name="egpPostInstId" data-map="EGP_POST_INST_ID"
class="form-control" />
</div>
<div class="col-md-6">
<label for="egpCertCn--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
E그린 인증서CN
</label>
<input type="text" id="egpCertCn--${pageName}" name="egpCertCn" data-map="EGP_CERT_CN"
class="form-control" />
</div>
<div class="col-md-6">
<label for="ensInterfaceId--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입인터페이스ID
</label>
<input type="text" id="ensInterfaceId--${pageName}" name="ensInterfaceId" data-map="ENS_INTERFACE_ID"
class="form-control" />
</div>
<div class="col-md-6">
<label for="ensSourceCd--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입소스코드
</label>
<input type="text" id="ensSourceCd--${pageName}" name="ensSourceCd" data-map="ENS_SOURCE_CD"
class="form-control" />
</div>
<div class="col-md-6">
<label for="ensTargetCd--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입타겟코드
</label>
<input type="text" id="ensTargetCd--${pageName}" name="ensTargetCd" data-map="ENS_TARGET_CD"
class="form-control" />
</div>
<div class="col-md-6">
<label for="ensUrl--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입URL
</label>
<input type="text" id="ensUrl--${pageName}" name="ensUrl" data-map="ENS_URL"
class="form-control" />
</div>
<div class="col-md-6">
<label for="nxrpLinkYn--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입 연계 여부
</label>
<input type="text" id="nxrpLinkYn--${pageName}" name="nxrpLinkYn" data-map="NXRP_LINK_YN"
class="form-control" />
</div>
<div class="col-md-6">
<label for="nxrpLinkSrvcUrl--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입연계서비스URL
</label>
<input type="text" id="nxrpLinkSrvcUrl--${pageName}" name="nxrpLinkSrvcUrl" data-map="NXRP_LINK_SRVC_URL"
class="form-control" />
</div>
<div class="col-md-6">
<label for="nxrpRgnSeCd--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
세외수입지역구분코드
</label>
<input type="text" id="nxrpRgnSeCd--${pageName}" name="nxrpRgnSeCd" data-map="NXRP_RGN_SE_CD"
class="form-control" />
</div>
<div class="col-md-6">
<label for="dtbnBankNm--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
교부은행명
</label>
<input type="text" id="dtbnBankNm--${pageName}" name="dtbnBankNm" data-map="DTBN_BANK_NM"
class="form-control" />
</div>
<div class="col-md-6">
<label for="dtbnActno--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
교부계좌번호
</label>
<input type="text" id="dtbnActno--${pageName}" name="dtbnActno" data-map="DTBN_ACTNO"
class="form-control" />
</div>
<div class="col-md-6">
<label for="docHeader--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
문서머릿말
</label>
<input type="text" id="docHeader--${pageName}" name="docHeader" data-map="DOC_HEADER"
class="form-control" />
</div>
<div class="col-md-6">
<label for="srvrOs--${pageName}"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">
서버OS
</label>
<input type="text" id="srvrOs--${pageName}" name="srvrOs" data-map="SRVR_OS"
class="form-control" />
</div>
</div> </div>
<div class="row m-3"> <div class="row m-3">
@ -226,21 +350,13 @@ $(document).ready(function(){
} }
var deptInfo = ${deptInfo}; var deptInfo = ${deptInfo};
if(deptInfo != null){ $("#deptID--${pageName}").attr("disabled","disabled");
$("#deptID--${pageName}").attr("disabled","disabled"); $("#name--${pageName}").attr("disabled","disabled");
$("#name--${pageName}").attr("disabled","disabled"); $P.deptControl.dataset.setData([deptInfo]);
$P.deptControl.dataset.setData([deptInfo]); if(deptInfo.USE_YN == "N"){
if(deptInfo.USE_YN == "N"){ $("#btnSave--${pageName}").attr("disabled","disabled");
$("#btnSave--${pageName}").attr("disabled","disabled");
}
} 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> </script>
Loading…
Cancel
Save