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 a498ce9a..afab8454 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
@@ -17,28 +17,28 @@
-
@@ -437,7 +437,7 @@
AppSupport.setDialogZindex();
}
- , onClose: () => { $P.ctrlCrdn.refresh(); } // 자료 재조회
+ , onClose: () => { $P.fnRefresh(); } // 정보 새로고침
});
}
});
@@ -458,7 +458,7 @@
, init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
- if (resp.saved) { $P.ctrlCrdn.refresh(); } // 자료 재조회
+ if (resp.saved) { $P.fnRefresh(); } // 정보 새로고침
}
});
}
@@ -495,12 +495,46 @@
AppSupport.setDialogZindex();
}
- , onClose: () => { $P.ctrlCrdn.refresh(); } // 자료 재조회
+ , onClose: () => { $P.fnRefresh(); } // 정보 새로고침
});
}
});
}
+ // 정보 새로고침
+ $P.fnRefresh = () => {
+ let ctrlMain = pageObject["${pageNameMain}"].ctrlMain;
+
+ // 단속 ID 가 없다면.. return
+ let crdnId = ctrlMain.getValue("CRDN_ID"); // 단속 ID
+ if (!crdnId) return;
+
+ let params = {
+ callPurpose: "refresh"
+ , sggCd: ctrlMain.getValue("SGG_CD")
+ , taskSeCd: ctrlMain.getValue("TASK_SE_CD")
+ , crdnId: ctrlMain.getValue("CRDN_ID")
+ , delYn: "N"
+ };
+
+ ajax.get({
+ url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/020/info.do")
+ , headers: { Accept: "application/json; charset=utf-8" } // json
+ , data: params || {}
+ , success: (resp) => {
+ // 초기화
+ $P.findn("frmCrdnPayer").reset(); // 단속 화면
+ $P.ctrlCrdn.dataset.clear(); // 단속, 납부자 Dataset
+
+ // sprt02010-main 단속 정보
+ ctrlMain.setData([resp.totalInfo]);
+
+ // 단속, 납부자 정보
+ if (resp.crdnPayerInfo) { $P.ctrlCrdn.setData([resp.crdnPayerInfo]); }
+ }
+ });
+ }
+
/**************************************************************************
* 버튼 clickEvent
**************************************************************************/
@@ -771,6 +805,7 @@
, taskSeCd: $P.ctrlCrdn.getValue("TASK_SE_CD") // 업무 구분 코드
, crdnId: $P.ctrlCrdn.getValue("CRDN_ID") // 단속 ID
, rtpyrId: $P.ctrlCrdn.getValue("RTPYR_ID") // 납부자 ID
+ , etcCn: "" // 기타 내용
, delYn: "N"
};
@@ -845,25 +880,15 @@
// 초기 화면 설정
$P.fnReset = () => {
- // 초기화
- $P.findn("frmCrdnPayer").reset(); // 화면 초기화
- $P.ctrlCrdn.dataset.clear(); // Dataset 초기화
-
- // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
- if (pageObject["${pageNameMain}"].callPurpose == "view") {
- $P.$findn("btnPrintNhtPdf01").prop("disabled", true);
- $P.$findn("btnPrintNhtPdf02").prop("disabled", true);
- $P.$findn("btnUpdateCrdn").prop("disabled", true);
- $P.$findn("btnRemoveCrdn").prop("disabled", true);
- $P.$findn("btnUpdateCrdnSttsCd").prop("disabled", true);
- $P.$findn("btnCreateCrdnReReg").prop("disabled", true);
- $P.$findn("btnDeleteCrdnPayer").prop("disabled", true);
- $P.$findn("btnUpdatePayer").prop("disabled", true);
- $P.$findn("btnOpenVideoCapture").prop("disabled", true);
- $P.$findn("btnAddFile").prop("disabled", true);
- $P.$findn("btnEditPhoto").prop("disabled", true);
- $P.$findn("btnDeleteExistPhoto").prop("disabled", true);
- } else {
+ // 화면 초기화
+ $P.findn("frmCrdnPayer").reset();
+ // Dataset 초기화
+ $P.ctrlCrdn.dataset.clear(); // 단속 Dataset
+
+ // 화면 호출(callPurpose)이 view가 아니라면 버튼 활성화 disabled = false
+ if (pageObject["${pageNameMain}"].callPurpose != "view") {
+ $P.$findn("btnViewCvlcptOrgnl").prop("disabled", false);
+ $P.$findn("btnViewAnswerPreview").prop("disabled", false);
$P.$findn("btnPrintNhtPdf01").prop("disabled", false);
$P.$findn("btnPrintNhtPdf02").prop("disabled", false);
$P.$findn("btnUpdateCrdn").prop("disabled", false);
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp
index 8389da46..3d0e790b 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp
@@ -17,16 +17,16 @@
-