부서 설정 관리 화면 수정

main
이범준 3 months ago
parent 925908c382
commit 802338ea63

@ -6,22 +6,23 @@
<div class="card wrapper-list"> <div class="card wrapper-list">
<div class="container-page-btn"> <div class="container-page-btn">
<button type="button" id="btnReset--${pageName}" class="btn btn-outline-dark w-px-120" title="초기화"> <button type="button" name="btnReset" class="btn btn-outline-dark w-px-120" title="초기화">
초기화 초기화
</button> </button>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<button type="button" id="btnSearch--${pageName}" class="btn btn-search w-px-120" title="검색"> <button type="button" name="btnSearch" class="btn btn-search w-px-120" title="검색">
검색 검색
</button> </button>
</span> </span>
</div> </div>
<form id="frmSearch--${pageName}" name="frmSearch"> <form name="frmSearch">
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title" for="sggCd--${pageName}">시군구</label> <label is="name-label" for="sggCd"
<select id="sggCd--${pageName}" name="sggCd" class="form-select" disabled> class="form-label fw-bold form-search-title">시군구</label>
<select is="id-select" name="sggCd" class="form-select" disabled>
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${sggList}" var="item"> <c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option> <option value="${item.SGG_CD}">${item.SGG_NM}</option>
@ -29,22 +30,26 @@
</select> </select>
</div> </div>
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title" for="instNm--${pageName}">기관명</label> <label is="name-label" for="instNm"
<input type="text" id="instNm--${pageName}" name="instNm" class="form-control" /> class="form-label fw-bold form-search-title">기관명</label>
<input type="text" is="id-input" name="instNm" class="form-control" />
</div> </div>
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title" for="instCd--${pageName}">기관코드</label> <label is="name-label" for="instCd"
<input type="text" id="instCd--${pageName}" name="instCd" class="form-control" maxlength="7" /> class="form-label fw-bold form-search-title">기관코드</label>
<input type="text" is="id-input" name="instCd" class="form-control" maxlength="7" />
</div> </div>
</div> </div>
<div class="row g-1"> <div class="row g-1">
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title" for="deptNm--${pageName}">부서명</label> <label is="name-label" for="deptNm"
<input type="text" id="deptNm--${pageName}" name="deptNm" class="form-control" /> class="form-label fw-bold form-search-title">부서명</label>
<input type="text" is="id-input" name="deptNm" class="form-control" />
</div> </div>
<div class="col-3"> <div class="col-3">
<label class="form-label fw-bold form-search-title" for="deptCd--${pageName}">부서코드</label> <label is="name-label" for="deptCd"
<input type="text" id="deptCd--${pageName}" name="deptCd" class="form-control" maxlength="7" /> class="form-label fw-bold form-search-title">부서코드</label>
<input type="text" is="id-input" name="deptCd" class="form-control" maxlength="7" />
</div> </div>
<div class="col-6"> <div class="col-6">
</div> </div>
@ -54,25 +59,21 @@
</form> </form>
<div> <div>
<div id="gridbuttonArea--${pageName}" class="container-page-btn"> <div name="gridButtonArea" class="container-page-btn">
<div class="d-flex flex-row justify-content-between"> <div class="d-flex flex-row justify-content-between">
<span id="deptPaging--${pageName}PagingInfo" name="deptPagingInfo" <span is="paging-info" name="deptPagingInfo" class="dataTables_info"></span>
class="dataTables_info"></span> <ul name="deptPaging" class="pagination pagination-primary"></ul>
<ul name="deptPaging"
class="pagination pagination-primary">
</ul>
</div> </div>
</div> </div>
</div> </div>
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div name="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-500"> <div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-500">
<table id="DataTables_Table_0--${pageName}" <table name="DataTables_Table_0"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
<tr id="deptThead--${pageName}"> <tr name="deptThead">
<th style="width: 80px;" class="cmn">No.</th> <th style="width: 80px;" class="cmn">No.</th>
<th class="cmn" style="width: 56px;"> <th class="cmn" style="width: 56px;">
<input type="checkbox" class="form-check-input" <input type="checkbox" class="form-check-input"
@ -88,9 +89,9 @@
<th class="dummy-th"></th> <th class="dummy-th"></th>
</tr> </tr>
</thead> </thead>
<tbody id="deptTbody--${pageName}"> <tbody name="deptTbody">
</tbody> </tbody>
<template id="deptRow--${pageName}"> <template name="deptRow">
<tr data-key="{DEPT_CD}"> <tr data-key="{DEPT_CD}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
<td class="text-center"> <td class="text-center">
@ -107,7 +108,7 @@
<td class="dummy-td"></td> <td class="dummy-td"></td>
</tr> </tr>
</template> </template>
<template id="deptNotFound--${pageName}"> <template name="deptNotFound">
<tr> <tr>
<td valign="top" colspan="10" class="dataTables_empty text-center"> <td valign="top" colspan="10" class="dataTables_empty text-center">
부서 정보를 찾지 못했습니다. 부서 정보를 찾지 못했습니다.
@ -120,7 +121,7 @@
</div> </div>
<div class="toast-container position-fixed bottom-0 end-0 p-3"> <div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="divToast--${pageName}" class="toast" role="alert" aria-live="assertive" aria-atomic="true"> <div name="divToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-body bg-black text-white"> <div class="toast-body bg-black text-white">
삭제 되었습니다. 삭제 되었습니다.
</div> </div>
@ -146,7 +147,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), { $P.toast = new bootstrap.Toast($P.find("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -184,11 +185,11 @@ $(document).ready(function(){
}; };
$P.ctrl.dataset.onCurrentChange = (dataItem) => { $P.ctrl.dataset.onCurrentChange = (dataItem) => {
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $("#deptTbody--${pageName}")[0]); Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("deptTbody"));
} }
$P.ctrl.dataset.onSelectionChange = (selectedArr) => { $P.ctrl.dataset.onSelectionChange = (selectedArr) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, document.getElementById("deptTbody--${pageName}"), 1, selectedArr); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("deptTbody"), 1, selectedArr);
}; };
@ -196,7 +197,7 @@ $(document).ready(function(){
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
var searchForm = $("#frmSearch--${pageName}"); var searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false); searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
@ -208,7 +209,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}"); var formFields = new FimsFormFields($P.selector("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -233,8 +234,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [document.getElementById("deptNotFound--${pageName}").innerHTML]; var notFound = [$P.find("deptNotFound").innerHTML];
var found = document.getElementById("deptRow--${pageName}").innerHTML; var found = $P.find("deptRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('" + dataItem.getValue("DEPT_CD") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('" + dataItem.getValue("DEPT_CD") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('" + dataItem.getValue("DEPT_CD") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('" + dataItem.getValue("DEPT_CD") + "');");
@ -254,7 +255,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@ -265,7 +266,7 @@ $(document).ready(function(){
return; return;
} }
$("#deptTbody--${pageName}").setCurrentRow(dataKey); $P.$find("deptTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -320,20 +321,20 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $P.$find("btnReset").on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchDeptList()); $P.$find("btnSearch").on('click', () => $P.searchDeptList());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDeptList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDeptList);
$P.fnReset(); $P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.institute == "ADMIN00"){ if(MY_INFO.institute == "ADMIN00"){
$("#sggCd--${pageName}").removeAttr("disabled"); $P.$find("sggCd").removeAttr("disabled");
} }
}); });

@ -5,28 +5,24 @@
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<div class="card"> <div class="card">
<form id="frmEdit--${pageName}" name="frmEdit"> <form name="frmEdit">
<div class="row g-1" id="forRootAdmin--${pageName}" hidden> <div class="row g-1" name="forRootAdmin" hidden>
<div class="col-md-6"> <div class="col-md-6">
<label for="sggID--${pageName}" <label is="name-label" for="sggID"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end required">
시군구코드 시군구코드
</label> </label>
<input type="text" is="id-input" name="sggID" data-map="SGG_CD"
<input type="text" id="sggID--${pageName}" name="sggID" data-map="SGG_CD" class="form-control w-px-200" required maxlength="7" readonly />
class="form-control" required maxlength="7" readonly />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="instCode--${pageName}" <label is="name-label" for="instCode"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end required">
기관코드 기관코드
</label> </label>
<input type="text" is="id-input" name="instCode" data-map="INST_CD"
<input type="text" id="instCode--${pageName}" name="instCode" data-map="INST_CD" class="form-control w-px-200" required maxlength="7" readonly />
class="form-control" required maxlength="7" readonly />
</div> </div>
</div> </div>
@ -35,219 +31,219 @@
<div class="row g-1"> <div class="row g-1">
<div class="col-md-6"> <div class="col-md-6">
<label for="deptID--${pageName}" <label is="name-label" for="deptID"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end required">
부서코드 부서코드
</label> </label>
<input type="text" id="deptID--${pageName}" name="deptID" data-map="DEPT_CD" <input type="text" is="id-input" name="deptID" data-map="DEPT_CD"
class="form-control" required maxlength="7" readonly /> class="form-control w-px-200" required maxlength="7" readonly />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="name--${pageName}" <label is="name-label" for="name"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end required">
부서명 부서명
</label> </label>
<input type="text" id="name--${pageName}" name="name" data-map="DEPT_NM" <input type="text" is="id-input" name="name" data-map="DEPT_NM"
class="form-control" required readonly /> class="form-control w-px-200" required readonly />
</div> </div>
<div class="col-md-12" hidden> <div class="col-md-12" hidden>
<input type="text" id="telno--${pageName}" name="telno" data-map="DEPT_TELNO" <input type="text" is="id-input" name="telno" data-map="DEPT_TELNO"
class="form-control" /> class="form-control w-px-200" />
<input type="text" id="faxno--${pageName}" name="faxno" data-map="DEPT_FXNO" <input type="text" is="id-input" name="faxno" data-map="DEPT_FXNO"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
</div> </div>
<div class="row g-1"> <div class="row g-1">
<div class="col-md-6"> <div class="col-md-6">
<label for="cvlcptLinkSeCd--${pageName}" <label is="name-label" for="cvlcptLinkSeCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
민원연계구분 민원연계구분
</label> </label>
<input type="text" id="cvlcptLinkSeCd--${pageName}" name="cvlcptLinkSeCd" data-map="CVLCPT_LINK_SE_CD" <input type="text" is="id-input" name="cvlcptLinkSeCd" data-map="CVLCPT_LINK_SE_CD"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="vrbacntLinkSeCd--${pageName}" <label is="name-label" for="vrbacntLinkSeCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
가상계좌연계구분 가상계좌연계구분
</label> </label>
<input type="text" id="vrbacntLinkSeCd--${pageName}" name="vrbacntLinkSeCd" data-map="VRBACNT_LINK_SE_CD" <input type="text" is="id-input" name="vrbacntLinkSeCd" data-map="VRBACNT_LINK_SE_CD"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="pstofcNm--${pageName}" <label is="name-label" for="pstofcNm"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
우체국명 우체국명
</label> </label>
<input type="text" id="pstofcNm--${pageName}" name="pstofcNm" data-map="PSTOFC_NM" <input type="text" is="id-input" name="pstofcNm" data-map="PSTOFC_NM"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="rgNoHeader--${pageName}" <label is="name-label" for="rgNoHeader"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
등기번호 헤더 등기번호 헤더
</label> </label>
<input type="text" id="rgNoHeader--${pageName}" name="rgNoHeader" data-map="RG_NO_HEADER" <input type="text" is="id-input" name="rgNoHeader" data-map="RG_NO_HEADER"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="sndngLinkSeCd--${pageName}" <label is="name-label" for="sndngLinkSeCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
발송연계구분 발송연계구분
</label> </label>
<input type="text" id="sndngLinkSeCd--${pageName}" name="sndngLinkSeCd" data-map="SNDNG_LINK_SE_CD" <input type="text" is="id-input" name="sndngLinkSeCd" data-map="SNDNG_LINK_SE_CD"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="egpConOrg--${pageName}" <label is="name-label" for="egpConOrg"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
E그린 외부기관구분 E그린 외부기관구분
</label> </label>
<input type="text" id="egpConOrg--${pageName}" name="egpConOrg" data-map="EGP_CON_ORG" <input type="text" is="id-input" name="egpConOrg" data-map="EGP_CON_ORG"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="egpRceptId--${pageName}" <label is="name-label" for="egpRceptId"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
E그린 접수수체국기호 E그린 접수수체국기호
</label> </label>
<input type="text" id="egpRceptId--${pageName}" name="egpRceptId" data-map="EGP_RCEPT_ID" <input type="text" is="id-input" name="egpRceptId" data-map="EGP_RCEPT_ID"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="egpApvlNb--${pageName}" <label is="name-label" for="egpApvlNb"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
E그린 후납계약승인번호 E그린 후납계약승인번호
</label> </label>
<input type="text" id="egpApvlNb--${pageName}" name="egpApvlNb" data-map="EGP_APVL_NB" <input type="text" is="id-input" name="egpApvlNb" data-map="EGP_APVL_NB"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="egpEsbPath--${pageName}" <label is="name-label" for="egpEsbPath"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
E그린 ESB경로 E그린 ESB경로
</label> </label>
<input type="text" id="egpEsbPath--${pageName}" name="egpEsbPath" data-map="EGP_ESB_PATH" <input type="text" is="id-input" name="egpEsbPath" data-map="EGP_ESB_PATH"
class="form-control" /> class="form-control w-px-300" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="egpPostInstId--${pageName}" <label is="name-label" for="egpPostInstId"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
E그린 우정정보센터 기관ID E그린 우정정보센터 기관ID
</label> </label>
<input type="text" id="egpPostInstId--${pageName}" name="egpPostInstId" data-map="EGP_POST_INST_ID" <input type="text" is="id-input" name="egpPostInstId" data-map="EGP_POST_INST_ID"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="egpCertCn--${pageName}" <label is="name-label" for="egpCertCn"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
E그린 인증서CN E그린 인증서CN
</label> </label>
<input type="text" id="egpCertCn--${pageName}" name="egpCertCn" data-map="EGP_CERT_CN" <input type="text" is="id-input" name="egpCertCn" data-map="EGP_CERT_CN"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="ensInterfaceId--${pageName}" <label is="name-label" for="ensInterfaceId"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입인터페이스ID 세외수입인터페이스ID
</label> </label>
<input type="text" id="ensInterfaceId--${pageName}" name="ensInterfaceId" data-map="ENS_INTERFACE_ID" <input type="text" is="id-input" name="ensInterfaceId" data-map="ENS_INTERFACE_ID"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="ensSourceCd--${pageName}" <label is="name-label" for="ensSourceCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입소스코드 세외수입소스코드
</label> </label>
<input type="text" id="ensSourceCd--${pageName}" name="ensSourceCd" data-map="ENS_SOURCE_CD" <input type="text" is="id-input" name="ensSourceCd" data-map="ENS_SOURCE_CD"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="ensTargetCd--${pageName}" <label is="name-label" for="ensTargetCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입타겟코드 세외수입타겟코드
</label> </label>
<input type="text" id="ensTargetCd--${pageName}" name="ensTargetCd" data-map="ENS_TARGET_CD" <input type="text" is="id-input" name="ensTargetCd" data-map="ENS_TARGET_CD"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="ensUrl--${pageName}" <label is="name-label" for="ensUrl"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입URL 세외수입URL
</label> </label>
<input type="text" id="ensUrl--${pageName}" name="ensUrl" data-map="ENS_URL" <input type="text" is="id-input" name="ensUrl" data-map="ENS_URL"
class="form-control" /> class="form-control w-px-300" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="nxrpLinkYn--${pageName}" <label is="name-label" for="nxrpLinkYn"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입 연계 여부 세외수입 연계 여부
</label> </label>
<input type="text" id="nxrpLinkYn--${pageName}" name="nxrpLinkYn" data-map="NXRP_LINK_YN" <input type="text" is="id-input" name="nxrpLinkYn" data-map="NXRP_LINK_YN"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="nxrpLinkSrvcUrl--${pageName}" <label is="name-label" for="nxrpLinkSrvcUrl"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입연계서비스URL 세외수입연계서비스URL
</label> </label>
<input type="text" id="nxrpLinkSrvcUrl--${pageName}" name="nxrpLinkSrvcUrl" data-map="NXRP_LINK_SRVC_URL" <input type="text" is="id-input" name="nxrpLinkSrvcUrl" data-map="NXRP_LINK_SRVC_URL"
class="form-control" /> class="form-control w-px-300" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="nxrpRgnSeCd--${pageName}" <label is="name-label" for="nxrpRgnSeCd"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
세외수입지역구분코드 세외수입지역구분코드
</label> </label>
<input type="text" id="nxrpRgnSeCd--${pageName}" name="nxrpRgnSeCd" data-map="NXRP_RGN_SE_CD" <input type="text" is="id-input" name="nxrpRgnSeCd" data-map="NXRP_RGN_SE_CD"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="dtbnBankNm--${pageName}" <label is="name-label" for="dtbnBankNm"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
교부은행명 교부은행명
</label> </label>
<input type="text" id="dtbnBankNm--${pageName}" name="dtbnBankNm" data-map="DTBN_BANK_NM" <input type="text" is="id-input" name="dtbnBankNm" data-map="DTBN_BANK_NM"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="dtbnActno--${pageName}" <label is="name-label" for="dtbnActno"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
교부계좌번호 교부계좌번호
</label> </label>
<input type="text" id="dtbnActno--${pageName}" name="dtbnActno" data-map="DTBN_ACTNO" <input type="text" is="id-input" name="dtbnActno" data-map="DTBN_ACTNO"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="docHeader--${pageName}" <label is="name-label" for="docHeader"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
문서머릿말 문서머릿말
</label> </label>
<input type="text" id="docHeader--${pageName}" name="docHeader" data-map="DOC_HEADER" <input type="text" is="id-input" name="docHeader" data-map="DOC_HEADER"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label for="srvrOs--${pageName}" <label is="name-label" for="srvrOs"
class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end"> class="w-px-160 bg-lighter pe-2 col-form-label text-sm-end">
서버OS 서버OS
</label> </label>
<input type="text" id="srvrOs--${pageName}" name="srvrOs" data-map="SRVR_OS" <input type="text" is="id-input" name="srvrOs" data-map="SRVR_OS"
class="form-control" /> class="form-control w-px-200" />
</div> </div>
</div> </div>
<div class="row m-3"> <div class="row m-3">
<div class="col-md-12"> <div class="col-md-12">
<span class="float-end"> <span class="float-end">
<button type="button" id="btnSave--${pageName}" class="btn btn-primary">저장</button> <button type="button" name="btnSave" class="btn btn-primary">저장</button>
</span> </span>
</div> </div>
</div> </div>
@ -281,7 +277,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields("#frmEdit--${pageName}"); $P.formFields = new FimsFormFields($P.selector("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true, dataGetter : obj => obj["List"], appendData : true,
@ -309,7 +305,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnSave = () => { $P.fnSave = () => {
if(!customValidate($("#frmEdit--${pageName} input"))) return; if(!customValidate($P.$find("frmEdit").find("input"))) return;
var info = $P.formFields.get(); var info = $P.formFields.get();
if(info.deptID.length != 7){ if(info.deptID.length != 7){
@ -337,7 +333,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$("#btnSave--${pageName}").on('click', () => $P.fnSave()); $P.$find("btnSave").on('click', () => $P.fnSave());
/************************************************************************** /**************************************************************************
@ -345,15 +341,15 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
if(MY_INFO.institute == 'ADMIN00') { if(MY_INFO.institute == 'ADMIN00') {
$("#forRootAdmin--${pageName}").removeAttr("hidden"); $P.$find("forRootAdmin").removeAttr("hidden");
} }
var deptInfo = ${deptInfo}; var deptInfo = ${deptInfo};
$("#deptID--${pageName}").attr("disabled","disabled"); $P.$find("deptID").attr("disabled","disabled");
$("#name--${pageName}").attr("disabled","disabled"); $P.$find("name").attr("disabled","disabled");
$P.ctrl.dataset.setData([deptInfo]); $P.ctrl.dataset.setData([deptInfo]);
if(deptInfo.USE_YN == "N"){ if(deptInfo.USE_YN == "N"){
$("#btnSave--${pageName}").attr("disabled","disabled"); $P.$find("btnSave").attr("disabled","disabled");
} }
}); });

Loading…
Cancel
Save