diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp index 3b774150..a4548e58 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp @@ -115,9 +115,6 @@ $P.curDataIndex; // 현재 탭의 위치 $P.activeTabIndex = 0; - // 개별총정보를 호출한 Control - $P.callControlName = "${callControlName}"; - $P.callControl = ${callControlName}; /************************************************************************** * DatasetControl @@ -143,10 +140,9 @@ // 화면에 Dataset 셋팅 $P.formFields.set($P.mainCtrl, item); - let key = item.data.CRDN_ID; - - if ($P.callControlName != "noControlName") { - $P.fnChangeCountStauts(); // 건수 표기 + // 호출한 controlName이 "noDatasetControl" 아니라면 건수를 표시한다. + if ("${callControlName}" != "noDatasetControl") { + $P.fnChangeCountStauts(${callControlName}.dataset._items); // 건수 표기 } $P.fnUseDataEdit(item); // 자료 수정 @@ -206,8 +202,8 @@ $P.fnClose = (isDataReLoad) => { dialog.close($P.selfDlgId()); - if (isDataReLoad && $P.callControlName != "noControlName") { - $P.callControl._load(); + if (isDataReLoad && "${callControlName}" != "noDatasetControl") { + ${callControlName}._load(); } } @@ -215,10 +211,8 @@ * 네이게이션 Event **************************************************************************/ // 건수 표기 - $P.fnChangeCountStauts = () => { - let dataItems = $P.callControl.dataset._items; - - // $P.curDataIndex 에 값이 없다면.. + $P.fnChangeCountStauts = (dataItems) => { + // $P.curDataIndex 에 값이 없다면.. if ($P.curDataIndex == null) { let curCrdnId = $P.mainCtrl.getValue("CRDN_ID"); @@ -238,7 +232,10 @@ // 이전 자료 조회 $P.fnPrev = () => { - let dataItems = $P.callControl.dataset._items; + // 종료 + if ("${callControlName}" == "noDatasetControl") return; + + let dataItems = ${callControlName}.dataset._items; let curCrdnId = $P.mainCtrl.getValue("CRDN_ID"); // 초기 값은 callControl dataset 의 총 건수 - 1 @@ -272,7 +269,10 @@ // 다음 자료 조회 $P.fnNext = () => { - let dataItems = $P.callControl.dataset._items; + // 종료 + if ("${callControlName}" == "noDatasetControl") return; + + let dataItems = ${callControlName}.dataset._items; let curCrdnId = $P.mainCtrl.getValue("CRDN_ID"); // 초기 값은 0 @@ -282,7 +282,7 @@ for (iLoop = $P.curDataIndex; iLoop < dataItems.length; iLoop++) { if (dataItems[iLoop].data.CRDN_ID == curCrdnId) { - if (iLoop + 1 >= dataItems.length) return; // 종료 + if (iLoop + 1 >= dataItems.length) return; // 종료 $P.curDataIndex = iLoop + 1; break; diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp index 506b9518..363c9745 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp @@ -23,24 +23,24 @@ - - - + + + @@ -136,7 +136,7 @@
- +
@@ -983,24 +983,24 @@ $P.$find("btnViewAnswerPreview").on("click", () => { $P.fnViewAnswerPreview($P.$find("btnViewAnswerPreview").attr("title")); // 민원 답변 보기 }); - $P.$find("btnUpdateCrdn").on("click", () => { - $P.fnUpdateCrdn($P.$find("btnUpdateCrdn").attr("title")); // 단속 정보 수정 - }); - $P.$find("btnRemoveCrdn").on("click", () => { - $P.fnRemoveCrdn($P.$find("btnRemoveCrdn").attr("title")); // 단속 정보 삭제 - }); - $P.$find("btnCreateCrdnReReg").on("click", () => { - $P.fnCreateCrdnReReg($P.$find("btnCreateCrdnReReg").attr("title")); // 단속 재등록 - }); $P.$find("btnPrintNhtPdf01").on("click", () => { $P.fnMakeFileNht($P.$find("btnPrintNhtPdf01").attr("title"), "pdf", "01"); // 고지서 출력 }); $P.$find("btnPrintNhtPdf02").on("click", () => { $P.fnMakeFileNht($P.$find("btnPrintNhtPdf02").attr("title"), "pdf", "02"); // 고지서 출력 }); + $P.$find("btnUpdateCrdn").on("click", () => { + $P.fnUpdateCrdn($P.$find("btnUpdateCrdn").attr("title")); // 단속 정보 수정 + }); + $P.$find("btnRemoveCrdn").on("click", () => { + $P.fnRemoveCrdn($P.$find("btnRemoveCrdn").attr("title")); // 단속 정보 삭제 + }); $P.$find("btnUpdateCrdnSttsCd").on("click", () => { $P.fnUpdateCrdnSttsCd($P.$find("btnUpdateCrdnSttsCd").attr("title")); // 단속 상태 변경 }); + $P.$find("btnCreateCrdnReReg").on("click", () => { + $P.fnCreateCrdnReReg($P.$find("btnCreateCrdnReReg").attr("title")); // 단속 재등록 + }); $P.$find("btnDeleteCrdnPayer").on("click", () => { $P.fnDeleteCrdnPayer($P.$find("btnDeleteCrdnPayer").attr("title")); // 납부자 초기화 }); @@ -1017,11 +1017,12 @@ // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true if (pageObject['${mainPageName}'].callPurpose == "view") { + $P.$find("btnPrintNhtPdf01").prop("disabled", true); + $P.$find("btnPrintNhtPdf02").prop("disabled", true); $P.$find("btnUpdateCrdn").prop("disabled", true); $P.$find("btnRemoveCrdn").prop("disabled", true); - $P.$find("btnCreateCrdnReReg").prop("disabled", true); - $P.$find("btnPrintNotice").prop("disabled", true); $P.$find("btnUpdateCrdnSttsCd").prop("disabled", true); + $P.$find("btnCreateCrdnReReg").prop("disabled", true); $P.$find("btnDeleteCrdnPayer").prop("disabled", true); $P.$find("btnUpdatePayer").prop("disabled", true); $P.$find("btnOpenVideoCapture").prop("disabled", true); @@ -1029,11 +1030,12 @@ $P.$find("btnEditPhoto").prop("disabled", true); $P.$find("btnDeleteExistPhoto").prop("disabled", true); } else { - $P.$find("btnUpdateCrdn").prop("disabled", false); + $P.$find("btnPrintNhtPdf01").prop("disabled", false); + $P.$find("btnPrintNhtPdf02").prop("disabled", false); + $P.$find("btnUpdateCrdn").prop("disabled", false); $P.$find("btnRemoveCrdn").prop("disabled", false); - $P.$find("btnCreateCrdnReReg").prop("disabled", false); - $P.$find("btnPrintNotice").prop("disabled", false); $P.$find("btnUpdateCrdnSttsCd").prop("disabled", false); + $P.$find("btnCreateCrdnReReg").prop("disabled", false); $P.$find("btnDeleteCrdnPayer").prop("disabled", false); $P.$find("btnUpdatePayer").prop("disabled", false); $P.$find("btnOpenVideoCapture").prop("disabled", false);