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 @@ - - - - @@ -246,6 +246,40 @@ document.location.href = url + "?" + parameter; } + // 정보 새로고침 + $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/030/info.do") + , headers: { Accept: "application/json; charset=utf-8" } // json + , data: params || {} + , success: (resp) => { + // 초기화 + $P.findn("frmOpnn").reset(); // 의견진술 화면 초기화 + $P.ctrlOpnn.dataset.clear(); // 의견진술 Dataset 초기화 + + // sprt02010-main 단속 정보 + ctrlMain.setData([resp.totalInfo]); + + // 의견진술 정보 + if (resp.opnnInfo) { $P.ctrlOpnn.setData([resp.opnnInfo]); } + } + }); + } + /************************************************************************** * 버튼 clickEvent **************************************************************************/ @@ -433,7 +467,7 @@ // 첨부파일 조회 $P.fnSearchFileList = (opnnId) => { - let tableFileList = $P.findn("fileList"); // table element 찾기 + let tableFileList = $P.findn("fileList"); // table element 찾기 let fileLength = tableFileList.rows.length; // 기존 table에 자료가 존재하면 tableRow 삭제 @@ -510,18 +544,14 @@ // 화면 초기화 $P.findn("frmOpnn").reset(); // Dataset 초기화 - $P.ctrlOpnn.dataset.clear(); // 의견제출 - - // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true - if (pageObject["${pageNameMain}"].callPurpose == "view") { - $P.$findn("btnCreateOpnnSbmsn").prop("disabled", true); - $P.$findn("btnUpdateOpnnSbmsn").prop("disabled", true); - $P.$findn("btnRemoveOpnnSbmsn").prop("disabled", true); - $P.$findn("btnUpdateOpnnSbmsnDlbrt").prop("disabled", true); - } else { + $P.ctrlOpnn.dataset.clear(); // 의견제출 Dataset + + // 화면 호출(callPurpose)이 view가 아니라면 버튼 활성화 disabled = false + if (pageObject["${pageNameMain}"].callPurpose != "view") { $P.$findn("btnCreateOpnnSbmsn").prop("disabled", false); $P.$findn("btnUpdateOpnnSbmsn").prop("disabled", false); $P.$findn("btnRemoveOpnnSbmsn").prop("disabled", false); + $P.$findn("btnPrintDlbrDecsn").prop("disabled", false); $P.$findn("btnUpdateOpnnSbmsnDlbrt").prop("disabled", false); } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp index 5230e7c8..4a5a7ddc 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp @@ -12,16 +12,16 @@ - - - - @@ -212,8 +212,6 @@ // pageObject let $P = pageObject["${pageName}"]; - // URL - $P.prefixUrl = "${prefixUrl}" // datasetControl $P.ctrlSndngDtl = newSprt02040ControlSD("${pageName}", "[data-doctx=${pageName}]", "${pageNameMain}"); $P.ctrlSvbtc = newSprt02040ControlSV("${pageName}", "[data-doctx=${pageName}]", "${pageNameMain}"); @@ -243,7 +241,7 @@ , data: params || {} , success: (resp) => { // 초기화 - $P.findn("frmEditSndngDtl").reset(); // 화면 초기화 + $P.findn("frmEditSndngDtl").reset(); // 발송상세 화면 초기화 $P.ctrlSndngDtl.dataset.clear(); // 발송상세 Dataset 초기화 $P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화 @@ -426,15 +424,12 @@ $P.ctrlSndngDtl.dataset.clear(); // 발송상세 $P.ctrlSvbtc.dataset.clear(); // 공시송달 - // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true - if (pageObject["${pageNameMain}"].callPurpose == "view") { - $P.$findn("btnCreateSndbk").prop("disabled", true); - $P.$findn("btnUpdateSndbk").prop("disabled", true); - $P.$findn("btnRemoveSndbk").prop("disabled", true); - } else { + // 화면 호출(callPurpose)이 view가 아니라면 버튼 활성화 disabled = false + if (pageObject["${pageNameMain}"].callPurpose != "view") { $P.$findn("btnCreateSndbk").prop("disabled", false); $P.$findn("btnUpdateSndbk").prop("disabled", false); $P.$findn("btnRemoveSndbk").prop("disabled", false); + $P.$findn("btnViewPostTrace").prop("disabled", false); } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp index 1c97e693..a6b6de03 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp @@ -3,224 +3,224 @@
-
- -
-
- -
- - - - - - - -
- - -
- - - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
+
+ +
+
+ +
+ + + + + + + +
+ + + + + + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
-
-
+
+
-
-
- - -
-
- - - -
-
- -
- - - - - - - - -
- - -
- - - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
+
+
+
+ +
+
+ + + +
+
+ +
+ + + + + + + + +
+ + +
+ + + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
-
-
+
+
-
-
-
- -
-
- -
- -
- -
-
- -
- -
- -
- -
-
-
- - - -
-
- -
- -
- -
- -
-
-
- -
+
+
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ +
+
+
+ + + +
+
+ +
+ +
+ +
+ +
+
+
+ +
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp index 3b57c321..0fed2bbb 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp @@ -3,68 +3,68 @@
-
- -
-
- -
- - - - - - - -
- -
- -
- +
+
+ +

+ + +
+ + + + +
+
+ + + +
+
+ + + +
- -
- - - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- +
+ + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
- -
+
-
- -
+
+
-
-
- - -
-
- -
+
+
+ + + + + +