diff --git a/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java b/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java index cab58d2f..8795826a 100644 --- a/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java +++ b/src/main/java/cokr/xit/fims/cmmn/hwp/format/DlbrDecsnList.java @@ -46,7 +46,7 @@ public class DlbrDecsnList extends HWPFormat { writer.setValue("접수일", one.string("RCPT_YMD_MASK")); writer.setValue("위반정보", one.string("TASK_SE_NM")); writer.setValue("진술자명", one.string("STTR_NM")); - writer.setValue("진술자생년월일", one.string("STTR_BRDT_FORMAT")); + writer.setValue("진술자생년월일", one.string("STTR_BRDT_MASK")); writer.setValue("진술자연락처", one.string("STTR_CTTPC")); writer.setValue("소유주관계", one.string("OWNR_REL_NM")); writer.setValue("진술자주소", one.string("STTR_WHOL_ADDR")); diff --git a/src/main/java/cokr/xit/fims/excl/dao/OpnnSbmsnMapper.java b/src/main/java/cokr/xit/fims/excl/dao/OpnnSbmsnMapper.java index 9f7f1d1e..959b920e 100644 --- a/src/main/java/cokr/xit/fims/excl/dao/OpnnSbmsnMapper.java +++ b/src/main/java/cokr/xit/fims/excl/dao/OpnnSbmsnMapper.java @@ -77,7 +77,7 @@ public interface OpnnSbmsnMapper extends AbstractMapper { *
{
@@ -364,15 +365,15 @@ public class Excl02Controller extends ApplicationController {
@Task
@RequestMapping(name="의견제출 심의의결서 출력", value=METHOD_URL.makeDlbrDecsnFileFromHwpFormat)
public ModelAndView makeDlbrDecsnFileFromHwpFormat(LevyExclQuery req) {
-
UserInfo userInfo = currentUser();
factionBean.initUserInfo(userInfo);
+
Print print = new Print();
print.setPrintRequestUserInfo(userInfo);
PrintOption printOption = new PrintOption();
- List dataObjectList = opnnSbmsnBean.getOpnnSbmsnDlbrDecsns(req);
+ List dataObjectList = opnnSbmsnService.getOpnnSbmsnDlbrDecsns(req);
DlbrDecsnList hwpFormat = new DlbrDecsnList(print, printOption, dataObjectList);
HashMap result = hwpFormat.makeFile();
@@ -394,7 +395,21 @@ public class Excl02Controller extends ApplicationController {
@RequestMapping(name="의견제출 대장 삭제", value=METHOD_URL.removeOpinionSubmission)
public ModelAndView removeOpinionSubmission(OpnnSbmsn opnnSbmsn) {
boolean saved = false;
- String rtnMsg = opnnSbmsnService.removeOpnnSbmsn(opnnSbmsn);
+ String rtnMsg = "";
+
+ if (opnnSbmsn.getOpnnIds() == null || opnnSbmsn.getOpnnIds().length < 1) {
+ rtnMsg = opnnSbmsnService.removeOpnnSbmsn(opnnSbmsn);
+ } else {
+ // 의견제출 IDs 만큼 반복..
+ for (int iLoop = 0; iLoop < opnnSbmsn.getOpnnIds().length; iLoop++) {
+ opnnSbmsn.setOpnnId(opnnSbmsn.getOpnnIds()[iLoop]); // 의견제출 ID 설정
+
+ // 의견제출 삭제 호출
+ rtnMsg = opnnSbmsnService.removeOpnnSbmsn(opnnSbmsn);
+ if (rtnMsg.contains("[F]")) // 오류가 발생하였으면 종료..
+ break;
+ }
+ }
if (rtnMsg.contains("[S]")) {
saved = true;
diff --git a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml
index 7151f15a..4269d4af 100644
--- a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml
+++ b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml
@@ -28,50 +28,49 @@
- SELECT LE.LEVY_EXCL_ID
- , LE.LEVY_EXCL_YMD
- , LE.LEVY_EXCL_SE_CD
+ SELECT LE.LEVY_EXCL_ID
+ , LE.LEVY_EXCL_YMD
, (SELECT GET_CODE_NM('FIM021', LE.LEVY_EXCL_SE_CD) FROM DUAL) AS LEVY_EXCL_SE_NM
- , LE.LEVY_EXCL_RSN_CD
, (SELECT GET_CODE_NM('FIM022', LE.LEVY_EXCL_RSN_CD) FROM DUAL) AS LEVY_EXCL_RSN_NM
- , LE.ETC_CN
- , LE.DEL_YN
- , LE.REG_DT
- , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LE.RGTR) AS RGTR_NM
- , LE.MDFCN_DT
- , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LE.MDFR) AS MDFR_NM
- , C.CRDN_ID
- , C.SGG_CD
- , C.TASK_SE_CD
+ , LE.ETC_CN
+ , LE.DEL_YN
+ , LE.REG_DT
+ , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LE.RGTR) AS RGTR_NM
+ , LE.MDFCN_DT
+ , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = LE.MDFR) AS MDFR_NM
+ , C.CRDN_ID
+ , C.SGG_CD
+ , C.TASK_SE_CD
, (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
, (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM
- , C.VHRNO
- , C.CRDN_STDG_NM
- , C.CRDN_PLC
- , C.FFNLG_CRDN_AMT
- , C.FFNLG_AMT
- , C.CRDN_STTS_CD
- , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM
- , (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM
- , (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM
+ , C.VHRNO
+ , C.CRDN_STDG_NM
+ , C.CRDN_ROAD_NM
+ , C.CRDN_PLC
+ , C.FFNLG_CRDN_AMT
+ , C.FFNLG_AMT
+ , C.CRDN_STTS_CD
+ , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM
+ , (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM
+ , (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM
, (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM
- , V.VLTN_ID
- , V.VLTN_CD
- , V.VLTN_ARTCL
- , P.RTPYR_ID
+ , V.VLTN_ID
+ , V.VLTN_CD
+ , V.VLTN_ARTCL
+ , P.RTPYR_ID
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM
- , P.RTPYR_NO
+ , P.RTPYR_NO
+ , P.RTPYR_NM
, (SELECT GET_BRDT_FORMAT(P.RTPYR_BRDT, '.') FROM DUAL) AS RTPYR_BRDT_MASK
- , P.RTPYR_NM
- , P.ZIP
- , P.ADDR
- , P.DTL_ADDR
- , CC.CVLCPT_LINK_ID
- , CC.CVLCPT_RCPT_YMD
- , CC.CVLCPT_APLY_NO
- , CC.CVLCPT_RCPT_NO
- , CC.CVLCPT_PRCS_CD
- , (SELECT GET_CODE_NM('FIM017', CC.CVLCPT_PRCS_CD) FROM DUAL) AS CVLCPT_PRCS_NM
+ , P.ZIP
+ , P.ADDR
+ , P.DTL_ADDR
+ , CC.CVLCPT_LINK_ID
+ , CC.CVLCPT_RCPT_YMD
+ , CC.CVLCPT_APLY_NO
+ , CC.CVLCPT_RCPT_NO
+ , CC.CVLCPT_PRCS_CD
+ , (SELECT GET_CODE_NM('FIM017', CC.CVLCPT_PRCS_CD) FROM DUAL) AS CVLCPT_PRCS_NM
FROM TB_LEVY_EXCL LE
INNER JOIN TB_CRDN C ON (LE.CRDN_ID = C.CRDN_ID)
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
@@ -219,18 +218,21 @@
- AND LE.LEVY_EXCL_ID IN (
+ AND LE.LEVY_EXCL_ID IN (
#{levyExclId}
)
- AND LE.LEVY_EXCL_ID = #{levyExclId}
+ AND LE.LEVY_EXCL_ID = #{levyExclId}
+
+
+ AND LE.DEL_YN = #{delYn}
- AND C.CRDN_ID = #{crdnId}
+ AND C.CRDN_ID = #{crdnId}
- AND C.DEL_YN = 'N'
+ AND C.DEL_YN = 'N'
diff --git a/src/main/resources/sql/mapper/fims/excl/opnnSbmsn-mapper.xml b/src/main/resources/sql/mapper/fims/excl/opnnSbmsn-mapper.xml
index d076ed2f..afb3fddd 100644
--- a/src/main/resources/sql/mapper/fims/excl/opnnSbmsn-mapper.xml
+++ b/src/main/resources/sql/mapper/fims/excl/opnnSbmsn-mapper.xml
@@ -8,7 +8,6 @@
============================ -->
-
@@ -51,12 +50,12 @@
SELECT OS.OPNN_ID
- , OS.RCPT_NO
+ , (CONCAT(SUBSTR(OS.RCPT_NO,1,4), '-', SUBSTR(OS.RCPT_NO,5,6))) AS RCPT_NO_MASK
, OS.RCPT_YMD
- , OS.RCPT_SE_CD
- , OS.OWNR_REL_CD
+ , (SELECT GET_CODE_NM('FIM029', OS.RCPT_SE_CD) FROM DUAL) AS RCPT_SE_NM
+ , (SELECT GET_CODE_NM('FIM032', OS.OWNR_REL_CD) FROM DUAL) AS OWNR_REL_NM
, OS.STTR_NM
- , OS.STTR_BRDT
+ , (SELECT GET_BRDT_FORMAT(OS.STTR_BRDT, '.') FROM DUAL) AS STTR_BRDT_MASK
, OS.STTR_RRNO
, OS.STTR_ADDR
, OS.STTR_DADDR
@@ -64,33 +63,25 @@
, OS.STTR_CTTPC
, OS.STTR_EML
, OS.OPNN_SBMSN_CN
- , OS.OPNN_SBMSN_SE_CD
+ , (SELECT GET_CODE_NM('FIM033', OS.OPNN_SBMSN_SE_CD) FROM DUAL) AS OPNN_SBMSN_SE_NM
, OS.OPNN_SBMSN_GIST
, OS.DOC_NO
- , OS.NTFCTN_SE_CD
+ , (SELECT GET_CODE_NM('FIM030', OS.NTFCTN_SE_CD) FROM DUAL) AS NTFCTN_SE_NM
, OS.PIC_RVW_OPNN
, OS.OPNN_SBMSN_STTS_CD
- , OS.ANS_YMD
- , OS.ANS_TM
+ , (SELECT GET_CODE_NM('FIM031', OS.OPNN_SBMSN_STTS_CD) FROM DUAL) AS OPNN_SBMSN_STTS_NM
+ , (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM
, OS.ANS_CN
, OS.DEL_YN
, OS.REG_DT
+ , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = OS.RGTR) AS RGTR_NM
, OS.MDFCN_DT
- , OS.DEL_DT
- , (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM
- , (GET_BRDT_FORMAT(OS.STTR_BRDT, '.')) AS STTR_BRDT_MASK
- , (SELECT GET_CODE_NM('FIM029', OS.RCPT_SE_CD) FROM DUAL) AS RCPT_SE_NM
- , (SELECT GET_CODE_NM('FIM032', OS.OWNR_REL_CD) FROM DUAL) AS OWNR_REL_NM
- , (SELECT GET_CODE_NM('FIM033', OS.OPNN_SBMSN_SE_CD) FROM DUAL) AS OPNN_SBMSN_SE_NM
- , (SELECT GET_CODE_NM('FIM030', OS.NTFCTN_SE_CD) FROM DUAL) AS NTFCTN_SE_NM
- , (SELECT GET_CODE_NM('FIM031', OS.OPNN_SBMSN_STTS_CD) FROM DUAL) AS OPNN_SBMSN_STTS_NM
- , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = OS.RGTR) AS RGTR_NM
- , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = OS.MDFR) AS MDFR_NM
- , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = OS.DLTR) AS DLTR_NM
+ , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = OS.MDFR) AS MDFR_NM
, C.CRDN_ID
, C.SGG_CD
, C.TASK_SE_CD
- , C.CRDN_INPT_SE_CD
+ , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
+ , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM
, C.VHRNO
, C.CRDN_STDG_NM
, C.CRDN_ROAD_NM
@@ -98,13 +89,7 @@
, C.FFNLG_CRDN_AMT
, C.FFNLG_AMT
, C.CRDN_STTS_CD
- , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM
- , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
- , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM
- , CA.CRDN_SE_CD
- , CA.CRDN_SPAREA_CD
- , CA.PARKNG_PSBLTY_RSLT_CD
, (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM
, (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM
, (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM
@@ -112,19 +97,18 @@
, V.VLTN_CD
, V.VLTN_ARTCL
, P.RTPYR_ID
- , P.RTPYR_SE_CD
+ , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM
, P.RTPYR_NO
, P.RTPYR_NM
+ , (GET_BRDT_FORMAT(P.RTPYR_BRDT, '.')) AS RTPYR_BRDT_MASK
, P.ZIP
, P.ADDR
, P.DTL_ADDR
- , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM
- , (GET_BRDT_FORMAT(P.RTPYR_BRDT, '.')) AS RTPYR_BRDT_MASK
, R.RDUCT_ID
, R.RDUCT_RSN_CD
, (CASE WHEN R.RDUCT_AMT IS NOT NULL THEN R.RDUCT_AMT
ELSE (SELECT C.FFNLG_CRDN_AMT*T.WKSN_RDUCT_RT/100 FROM TB_TASK T WHERE C.SGG_CD=T.SGG_CD AND C.TASK_SE_CD=T.TASK_SE_CD AND T.USE_YN='Y')
- END ) AS RDUCT_AMT
+ END ) AS RDUCT_AMT
FROM TB_OPNN_SBMSN OS
INNER JOIN TB_CRDN C ON (OS.CRDN_ID = C.CRDN_ID)
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
@@ -160,15 +144,6 @@
AND OS.DEL_YN = #{delYn}
-
-
- AND C.SGG_CD = #{sggCd}
-
-
- AND C.TASK_SE_CD = #{taskSeCd}
-
-
- AND C.VHRNO = #{schVhrno}
AND C.CRDN_YMD =]]> #{schCrdnYmdFrom}
@@ -176,7 +151,12 @@
AND C.CRDN_YMD #{schCrdnYmdTo}
- AND C.DEL_YN = 'N'
+
+ AND C.VHRNO = #{schVhrno}
+
+
+ AND P.RTPYR_NM = #{schRtpyrNm}
+
@@ -245,95 +225,94 @@
+ AND C.SGG_CD = #{sggCd}
+ AND C.TASK_SE_CD = #{taskSeCd}
+ AND C.DEL_YN = 'N'
- SELECT OS.OPNN_ID
- , OS.RCPT_NO
- , OS.RCPT_YMD
- , OS.RCPT_SE_CD
- , OS.OWNR_REL_CD
- , OS.STTR_NM
- , OS.STTR_BRDT
- , OS.STTR_RRNO
- , OS.STTR_ADDR
- , OS.STTR_DADDR
- , OS.STTR_ZIP
- , OS.STTR_CTTPC
- , OS.STTR_EML
- , OS.OPNN_SBMSN_CN
- , OS.OPNN_SBMSN_SE_CD
- , OS.OPNN_SBMSN_GIST
- , OS.DOC_NO
- , OS.NTFCTN_SE_CD
- , OS.PIC_RVW_OPNN
- , OS.OPNN_SBMSN_STTS_CD
- , OS.ANS_YMD
- , OS.ANS_TM
- , OS.ANS_CN
- , OS.DEL_YN
- , OS.REG_DT
- , OS.RGTR
- , OS.MDFCN_DT
- , OS.MDFR
- , OS.DEL_DT
- , OS.DLTR
- , OS.DEL_RSN
- , (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM
- , (GET_BRDT_FORMAT(OS.STTR_BRDT, '.')) AS STTR_BRDT_MASK
- , (SELECT GET_CODE_NM('FIM029', OS.RCPT_SE_CD) FROM DUAL) AS RCPT_SE_NM
- , (SELECT GET_CODE_NM('FIM032', OS.OWNR_REL_CD) FROM DUAL) AS OWNR_REL_NM
- , (SELECT GET_CODE_NM('FIM033', OS.OPNN_SBMSN_SE_CD) FROM DUAL) AS OPNN_SBMSN_SE_NM
- , (SELECT GET_CODE_NM('FIM030', OS.NTFCTN_SE_CD) FROM DUAL) AS NTFCTN_SE_NM
- , (SELECT GET_CODE_NM('FIM031', OS.OPNN_SBMSN_STTS_CD) FROM DUAL) AS OPNN_SBMSN_STTS_NM
- , (SELECT C.FFNLG_CRDN_AMT * T.WKSN_RDUCT_RT / 100
- FROM TB_TASK T
- WHERE C.SGG_CD=T.SGG_CD AND C.TASK_SE_CD=T.TASK_SE_CD AND T.USE_YN='Y') AS RDUCT_AMT
- , C.CRDN_ID
- , C.SGG_CD
- , C.TASK_SE_CD
- , C.VHRNO
- , C.CRDN_STTS_CD
- , C.CRDN_STTS_CHG_DT
+ SELECT C.CRDN_ID
+ , C.SGG_CD
+ , C.TASK_SE_CD
+ , C.CRDN_YMD
+ , C.CRDN_TM
, (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM
- , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
+ , C.VHRNO
+ , C.CRDN_STDG_NM
+ , C.CRDN_PLC
+ , C.CRDN_STTS_CD
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM
- , P.RTPYR_ID
- , P.RTPYR_NO
- , P.RTPYR_NM
- , P.RTPYR_TELNO
- , P.RTPYR_MBL_TELNO
- , P.RTPYR_EML
- , P.RTPYR_BRDT
- , P.ZIP
- , P.ADDR
- , P.DTL_ADDR
- FROM TB_OPNN_SBMSN OS
- INNER JOIN TB_CRDN C ON (OS.CRDN_ID = C.CRDN_ID)
- LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
+ , C.CRDN_STTS_CHG_DT
+ , OS.OPNN_ID
+ , OS.RCPT_NO
+ , (CONCAT(SUBSTR(OS.RCPT_NO,1,4), '-', SUBSTR(OS.RCPT_NO,5,6))) AS RCPT_NO_MASK
+ , OS.RCPT_YMD
+ , OS.RCPT_SE_CD
+ , (SELECT GET_CODE_NM('FIM029', OS.RCPT_SE_CD) FROM DUAL) AS RCPT_SE_NM
+ , OS.OWNR_REL_CD
+ , (SELECT GET_CODE_NM('FIM032', OS.OWNR_REL_CD) FROM DUAL) AS OWNR_REL_NM
+ , OS.STTR_NM
+ , OS.STTR_BRDT
+ , (SELECT GET_BRDT_FORMAT(OS.STTR_BRDT, '.') FROM DUAL) AS STTR_BRDT_MASK
+ , OS.STTR_RRNO
+ , OS.STTR_ADDR
+ , OS.STTR_DADDR
+ , OS.STTR_ZIP
+ , OS.STTR_CTTPC
+ , OS.STTR_EML
+ , OS.OPNN_SBMSN_CN
+ , OS.OPNN_SBMSN_SE_CD
+ , (SELECT GET_CODE_NM('FIM033', OS.OPNN_SBMSN_SE_CD) FROM DUAL) AS OPNN_SBMSN_SE_NM
+ , OS.OPNN_SBMSN_GIST
+ , OS.DOC_NO
+ , OS.NTFCTN_SE_CD
+ , (SELECT GET_CODE_NM('FIM030', OS.NTFCTN_SE_CD) FROM DUAL) AS NTFCTN_SE_NM
+ , OS.PIC_RVW_OPNN
+ , OS.OPNN_SBMSN_STTS_CD
+ , (SELECT GET_CODE_NM('FIM031', OS.OPNN_SBMSN_STTS_CD) FROM DUAL) AS OPNN_SBMSN_STTS_NM
+ , OS.ANS_YMD
+ , OS.ANS_TM
+ , (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM
+ , OS.ANS_CN
+ , OS.REG_DT
+ , OS.RGTR
+ , OS.MDFCN_DT
+ , OS.MDFR
+ , (SELECT C.FFNLG_CRDN_AMT*T.WKSN_RDUCT_RT/100 FROM TB_TASK T
+ WHERE C.SGG_CD=T.SGG_CD AND C.TASK_SE_CD=T.TASK_SE_CD AND T.USE_YN='Y') AS RDUCT_AMT
+ , P.RTPYR_ID
+ , P.RTPYR_NO
+ , P.RTPYR_NM
+ , P.RTPYR_TELNO
+ , P.RTPYR_MBL_TELNO
+ , P.RTPYR_EML
+ , P.RTPYR_BRDT
+ , P.ZIP
+ , P.ADDR
+ , P.DTL_ADDR
+ FROM TB_CRDN C
+ LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
+ LEFT OUTER JOIN TB_OPNN_SBMSN OS ON (C.CRDN_ID = OS.CRDN_ID AND OS.DEL_YN = 'N')
@@ -365,6 +344,8 @@
, C.CRDN_ID
, C.SGG_CD
, C.TASK_SE_CD
+ , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
+ , (SELECT GET_MASK_DATETIME(C.CRDN_YMD,'-',C.CRDN_TM,':') FROM DUAL) AS CRDN_YMD_TM_MASK
, C.VHRNO
, C.CRDN_STDG_NM
, C.CRDN_ROAD_NM
@@ -372,10 +353,8 @@
, C.FFNLG_CRDN_AMT
, C.FFNLG_AMT
, C.CRDN_STTS_CD
+ , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM
, C.CRDN_STTS_CHG_DT
- , (GET_MASK_DATETIME(C.CRDN_YMD, '-', C.CRDN_TM, ':')) AS CRDN_YMD_TM_MASK
- , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
- , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM
, DLBR_MBR_JBGD1
, DLBR_MBR_NM1
, DLBR_MBR_JBGD2
@@ -496,20 +475,19 @@
AND DEL_YN = 'N'
- /* 의견제출 대장 답변 수정(opnnSbmsnMapper.updateAnsSttsCd) */
+ /* 의견제출 대장 답변 수정(opnnSbmsnMapper.updateOpnnSbmsnAnswer) */
UPDATE TB_OPNN_SBMSN
- SET OPNN_SBMSN_GIST = #{opnnSbmsn.opnnSbmsnGist}
- , DOC_NO = #{opnnSbmsn.docNo}
- , NTFCTN_SE_CD = #{opnnSbmsn.ntfctnSeCd}
- , PIC_RVW_OPNN = #{opnnSbmsn.picRvwOpnn}
- , OPNN_SBMSN_STTS_CD = #{opnnSbmsn.opnnSbmsnSttsCd}
- , ANS_YMD = #{opnnSbmsn.ansYmd}
- , ANS_TM = #{opnnSbmsn.ansTm}
- , ANS_CN = #{opnnSbmsn.ansCn}
- , MDFCN_DT =
- , MDFR = #{opnnSbmsn.modifiedBy}
- WHERE OPNN_ID = #{opnnSbmsn.opnnId}
- AND DEL_YN = 'N'
+ SET DOC_NO = #{opnnSbmsn.docNo}
+ , NTFCTN_SE_CD = #{opnnSbmsn.ntfctnSeCd}
+ , PIC_RVW_OPNN = #{opnnSbmsn.picRvwOpnn}
+ , OPNN_SBMSN_STTS_CD= #{opnnSbmsn.opnnSbmsnSttsCd}
+ , ANS_YMD = #{opnnSbmsn.ansYmd}
+ , ANS_TM = #{opnnSbmsn.ansTm}
+ , ANS_CN = #{opnnSbmsn.ansCn}
+ , MDFCN_DT =
+ , MDFR = #{opnnSbmsn.modifiedBy}
+ WHERE OPNN_ID = #{opnnSbmsn.opnnId}
+ AND DEL_YN = 'N'
/* 의견제출 대장 삭제(opnnSbmsnMapper.deleteOpnnSbmsn) */
@@ -522,33 +500,6 @@
AND DEL_YN = 'N'
-
-
/* 단속 대장 의견제출여부 수정(opnnSbmsnMapper.updateCrdnOpnnSbmsnYn) */
UPDATE TB_CRDN
SET OPNN_SBMSN_YN= #{crdn.opnnSbmsnYn}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp
index 24033ea8..63b361a6 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp
@@ -143,8 +143,8 @@
-
-
+
+
@@ -165,8 +165,7 @@
-
-
+
@@ -273,9 +272,9 @@
-
-
-
+
+
+
@@ -331,12 +330,12 @@
$P.renderList(obj.${infoPrefix}Total);
$("#paging--${pageName}").setPagingInfo({
- list : $P.control.dataset
- , prefix : "paging--${pageName}"
- , start : obj.${infoPrefix}Start
- , totalSize : obj.${infoPrefix}Total
- , fetchSize : obj.${infoPrefix}Fetch
- , func : "pageObject['${pageName}'].control.load({index})"
+ list: $P.control.dataset
+ , prefix: "paging--${pageName}"
+ , start: obj.${infoPrefix}Start
+ , totalSize: obj.${infoPrefix}Total
+ , fetchSize: obj.${infoPrefix}Fetch
+ , func: "pageObject['${pageName}'].control.load({index})"
});
$P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
@@ -366,15 +365,15 @@
// DataTables(그리드) 전체 선택(checkbox)
if (keys.length < 1) {
- $("th input[type='checkbox']").prop("checked", false); // 체크 해제
+ $("th input[type='checkbox']").prop("checked", false); // 체크 해제
} else if (keys.length == ${infoPrefix}List.length) {
- $("th input[type='checkbox']").prop("checked", true); // 체크 설정
+ $("th input[type='checkbox']").prop("checked", true); // 체크 설정
} else {
- $("th input[type='checkbox']").prop("checked", false); // 체크 해제
+ $("th input[type='checkbox']").prop("checked", false); // 체크 해제
}
};
- // 부과제외 상세정보 dialog
+ // 상세정보 dialog
$P.control.getInfo = (params) => {
if (!params) return;
@@ -406,7 +405,7 @@
});
if (resp.saved) {
- $P.fnRefreshList(); // 자료 재조회
+ $P.fnRefreshList(); // 자료 재조회
}
}
@@ -467,7 +466,7 @@
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
$P.scrollDataList = () => {
- $P.control.tableRenderComplete = false; // dataTables 에 자료 추가 false
+ $P.control.tableRenderComplete = false; // dataTables 에 자료 추가 false
$P.control.load($P.control.query.pageNum + 1);
}
@@ -529,14 +528,14 @@
$P.control.dataset.clear();
}
- // 사용자 검색 callback
+ // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
}
- // 사용자 조회 버튼 클릭 이벤트
- $P.fnFindUser = () => {
+ // 사용자검색 버튼 클릭 이벤트
+ $P.fnGetFindUser = () => {
let params = {
openerPageName: "${pageName}"
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
@@ -584,7 +583,7 @@
$P.control.download();
}
- // 수정 버튼 클릭 이벤트
+ // 부과제외 수정 버튼 클릭 이벤트
$P.fnUpdate = (title) => {
// 부과제외 ID
let levyExclId = $P.control.dataset.getValue("LEVY_EXCL_ID");
@@ -603,24 +602,21 @@
$P.control.getInfo(params);
}
- // 삭제 사유 callback
+ // 부과제외 삭제사유 callback
$P.callbackRsn = (obj) => {
- // 선택 자료
- let selected = $P.control.dataset.getKeys("selected");
-
- if (selected.length < 1) return;
-
// 서버에 전송할 data(파라미터) 생성
let params = {};
- params[$P.control.prefixed("Ids")] = selected.join(","); // Ids
- params.sggCd = $("#sggCd--${pageName}").val(); // sggCd
- params.taskSeCd = $("input[name=taskSeCd]:checked").val(); // taskSeCd
+ let selected = $P.control.dataset.getKeys("selected");
+
+ params[$P.control.prefixed("Ids")] = selected.join(","); // IDs
+ params.sggCd = $("#sggCd--${pageName}").val(); // 시군구 코드
+ params.taskSeCd = $("input[name=taskSeCd]:checked").val(); // 업무 구분 코드
params.delRsn = obj.reason; // 삭제 사유
$P.control.remove(params);
}
- // 삭제 버튼 클릭 이벤트
+ // 부과제외 삭제 버튼 클릭 이벤트
$P.fnRemove = (title) => {
// 선택 자료
let selected = $P.control.dataset.getKeys("selected");
@@ -664,7 +660,7 @@
$("#btnReset--${pageName}").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); // 검색
$("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀
- $("#btnFindUser--${pageName}").on("click", () => $P.fnFindUser()); // 사용자 검색
+ $("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").keypress(function(e) {
@@ -695,7 +691,7 @@
$P.fnRemove($(this).attr("title"));
});
- // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
+ // DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)
fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
// DataTables 스크롤 이벤트 생성
@@ -760,7 +756,6 @@
cols.each(function() {
colsOuterHTML += this.outerHTML;
});
-
$("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML);
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp
index bc670ef6..d2e079ae 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp
@@ -117,7 +117,7 @@
if (!item) return;
// Dataset 셋팅
- $P.formFields.set($P.control,item);
+ $P.formFields.set($P.control, item);
// 업무구분에 따른 URL 변경
$P.fnSetURL(item.data.TASK_SE_CD);
// 부과제외구분에 따른 부과제외사유 설정
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp
index 759e3f4d..f6566242 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp
@@ -167,10 +167,8 @@
-
-
-
-
+
+
@@ -183,19 +181,18 @@
-
-
-
+
@@ -221,14 +218,14 @@
소유주관계
진술자명
진술자생일
- 진술자우편번호
+ 진술자우편번호
진술자주소
진술자상세주소
의견제출상태
- 의견제출분류
+ 의견제출분류
의견제출요지
- 문서번호
- 답변일자
+ 문서번호
+ 답변일시
답변내용
단속일시
차량번호
@@ -259,7 +256,7 @@
{ROW_NUM}
{TASK_SE_NM}
- {RCPT_NO}
+ {RCPT_NO_MASK}
{RCPT_YMD}
{RCPT_SE_NM}
{NTFCTN_SE_NM}
@@ -273,7 +270,7 @@
{OPNN_SBMSN_SE_NM}
{OPNN_SBMSN_GIST}
{DOC_NO}
- {ANS_YMD}
+ {ANS_YMD_TM}
{ANS_CN}
{CRDN_YMD_TM}
{VHRNO}
@@ -322,9 +319,9 @@
-
-
-
+
+
+
@@ -342,10 +339,8 @@
**************************************************************************/
$(document).ready(function() {
// pageObject
- var $P = pageObject["${pageName}"];
+ let $P = pageObject["${pageName}"];
- // URL
- $P.PrefixUrl = "/excl/excl02";
// FormFields
$P.formFields = new FimsFormFields("#frmSearch--${pageName}");
@@ -353,28 +348,28 @@
* DatasetControl
**************************************************************************/
$P.control = new DatasetControl({
- prefix : "opnn"
- , prefixName : "의견제출"
- , infoSize : "xl"
- , keymapper : info => info ? info.OPNN_ID : ""
- , dataGetter : obj => obj.opnnSbmsnList
- , appendData : true
- , formats : {
- RCPT_YMD : dateFormat
- , ANS_YMD : dateFormat
- , ANS_YMD_TM : datetimeFormat
- , CRDN_YMD_TM : datetimeFormat
- , FFNLG_CRDN_AMT : numberFormat
- , FFNLG_AMT : numberFormat
- , REG_DT : datetimeFormat
- , MDFCN_DT : datetimeFormat
+ prefix: "opnn"
+ , prefixName: "의견제출"
+ , infoSize: "xl"
+ , keymapper: info => info ? info.OPNN_ID : ""
+ , dataGetter: obj => obj.${infoPrefix}List
+ , appendData: true
+ , formats: {
+ RCPT_YMD: dateFormat
+ , ANS_YMD: dateFormat
+ , ANS_YMD_TM: datetimeFormat
+ , CRDN_YMD_TM: datetimeFormat
+ , FFNLG_CRDN_AMT: numberFormat
+ , FFNLG_AMT: numberFormat
+ , REG_DT: datetimeFormat
+ , MDFCN_DT: datetimeFormat
}
});
// $P.control 설정
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
$P.control.untilPageNum = 0; // 현재 페이지 번호
- $P.control.tableRenderComplete = false; // dataTables 에 자료 추가 완료 여부
$P.control.beforeCurrent = null;
+ $P.control.tableRenderComplete = false; // dataTables 에 자료 추가 완료 여부
/**************************************************************************
* DatasetControl 이벤트
@@ -384,15 +379,15 @@
$P.renderList(obj.${infoPrefix}Total);
$("#paging--${pageName}").setPagingInfo({
- list : $P.control.dataset
- , prefix : "paging--${pageName}"
- , start : obj.${infoPrefix}Start
- , totalSize : obj.${infoPrefix}Total
- , fetchSize : obj.${infoPrefix}Fetch
- , func : "$P.control.load({index})"
+ list: $P.control.dataset
+ , prefix: "paging--${pageName}"
+ , start: obj.${infoPrefix}Start
+ , totalSize: obj.${infoPrefix}Total
+ , fetchSize: obj.${infoPrefix}Fetch
+ , func: "$P.control.load({index})"
});
- $P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
+ $P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
};
// 현재 선택 자료 변경 이벤트
@@ -411,47 +406,36 @@
$("#tbody--${pageName} input[type='checkbox']").each(function() {
let checkbox = $(this);
-
checkbox.prop("checked", keys.includes(checkbox.val()));
});
// 삭제 버튼
- $("#btnRemoveOpnn--${pageName}").prop("disabled", keys.length < 1);
+ $("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
// DataTables(그리드) 전체 선택(checkbox)
if (keys.length < 1) {
- $("th input[type='checkbox']").prop("checked", false); // 체크 해제
+ $("th input[type='checkbox']").prop("checked", false); // 체크 해제
} else if (keys.length == ${infoPrefix}List.length) {
- $("th input[type='checkbox']").prop("checked", true); // 체크 설정
+ $("th input[type='checkbox']").prop("checked", true); // 체크 설정
} else {
- $("th input[type='checkbox']").prop("checked", false); // 체크 해제
+ $("th input[type='checkbox']").prop("checked", false); // 체크 해제
}
};
- // 수정 dialog
+ // 상세정보 dialog
$P.control.getInfo = (params) => {
if (!params) return;
- let dialogTitle = "";
-
- if (params.callPurpose == "create") {
- dialogTitle = $P.control.prefixName + " 등록";
- } else if (params.callPurpose == "update") {
- dialogTitle = $P.control.prefixName + " 수정";
- } else {
- dialogTitle = $P.control.prefixName + " 정보";
- }
-
ajax.get({
- url : $P.control.urls.getInfo
- , data : params || {}
- , success : resp => {
+ url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/020/info.do")
+ , data: params || {}
+ , success: resp => {
dialog.open({
- id : $P.control.prefixed("Dialog")
- , title : dialogTitle
- , content : resp
- , size : $P.control.infoSize
- , onClose : () => { $P.refreshList(); }
+ id: $P.control.prefixed("Dialog")
+ , title: params.title
+ , content: resp
+ , size: $P.control.infoSize
+ , onClose: () => { $P.fnRefreshList(); } // 자료 재조회
});
}
});
@@ -459,17 +443,17 @@
// 삭제 callback
$P.control.onRemove = (resp) => {
- let btnTitle = $("#btnRemoveOpnn--${pageName}").attr("title");
+ let btnTitle = $("#btnRemove--${pageName}").attr("title");
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, btnTitle);
// 메시지 출력
dialog.alert({
- content : showMessage
- , onOK : () => { }
+ content: showMessage
+ , onOK: () => { }
});
if (resp.saved) {
- $P.refreshList(); // 자료 재조회
+ $P.fnRefreshList(); // 자료 재조회
}
}
@@ -478,9 +462,9 @@
if (!params) return;
ajax.post({
- url : $P.control.urls.remove
- , data : params
- , success : resp => $P.control.onRemove(resp)
+ url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/010/remove.do")
+ , data: params || {}
+ , success: resp => $P.control.onRemove(resp)
});
}
@@ -530,103 +514,47 @@
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
$P.scrollDataList = () => {
- $P.control.tableRenderComplete = false; // dataTables 에 자료 추가 false
+ $P.control.tableRenderComplete = false; // dataTables 에 자료 추가 false
$P.control.load($P.control.query.pageNum + 1);
}
- /**************************************************************************
- * 사용자 함수(function)
- **************************************************************************/
- // callback 사용자 검색
- $P.callbackFindUser = (userId, userNm) => {
- $("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
- $("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
- }
-
- // 사용자 검색
- $P.getFindUser = () => {
- let params = {
- openerPageName : "${pageName}"
- , callbackFuncName : "pageObject['${pageName}']['callbackFindUser']"
- }
-
- ajax.get({
- url : wctx.url("/user/user02/010/main.do")
- , data : params || {}
- , success : resp => {
- dialog.open({
- id : "userDialog"
- , title : "사용자 검색"
- , content : resp
- , size : "lg"
- });
- }
- });
- }
-
- // 개별총정보 dialog
+ // DataTables에 더블 클릭시 개별총정보 dialog
$P.getTotalInfo = (crdnId) => {
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
let params = {
- callControlName : "pageObject['${pageName}'].control"
- , sggCd : $("#sggCd--${pageName}").val()
- , taskSeCd : $("input[name=taskSeCd]:checked").val()
- , crdnId : crdnId
+ callControlName: "pageObject['${pageName}'].control"
+ , sggCd: $("#sggCd--${pageName}").val()
+ , taskSeCd: $("input[name=taskSeCd]:checked").val()
+ , crdnId: crdnId
}
ajax.get({
- url : wctx.url("/" + params.taskSeCd + "/sprt/sprt02/010/main.do")
- , data : params
- , success : resp => {
+ url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/010/main.do")
+ , data: params
+ , success: resp => {
dialog.open({
- id : "totalInfoMainDialog"
- , title : "개별총정보"
- , content : resp
- , size : "xxl"
+ id: "totalInfoMainDialog"
+ , title: "개별총정보"
+ , content: resp
+ , size: "xxl"
});
}
});
}
+ /**************************************************************************
+ * 사용자 함수(function)
+ **************************************************************************/
// 검색 자료 재조회
- $P.refreshList = () => {
+ $P.fnRefreshList = () => {
$P.control.untilPageNum = $P.control.query.pageNum;
$P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum;
$P.control.load(1);
}
- // 심의 정보 Dialog
- $P.getDlbrInfo = (params) => {
- if (!params) return;
-
- ajax.get({
- url : $P.control.urls.getDlbrInfo
- , data : params || {}
- , success : resp => {
- dialog.open({
- id : $P.control.prefixed("SbmsnDialog")
- , title : $P.control.prefixName + " 심의"
- , content : resp
- , size : "lg"
- , onClose : () => { $P.refreshList; }
- });
- }
- });
- }
-
- // 사유 callback
- $P.callbackRsn = (obj) => {
- // 서버에 전송할 data(파라미터) 생성
- let params = {};
- params[$P.control.prefixed("IDs")] = selected.join(","); // IDs
- params.delRsn = obj.reason; // 삭제 사유
-
- $P.control.remove(params);
- }
-
/**************************************************************************
* 버튼 clickEvent
**************************************************************************/
@@ -639,8 +567,6 @@
// 초기 기본 설정
$P.initForm();
- // 기본 데이터 설정
- $P.initData(taskSeCd);
// 업무 구분별 설정
$P.setTask(taskSeCd);
@@ -648,12 +574,39 @@
$P.control.dataset.clear();
}
+ // 사용자검색 callback
+ $P.callbackFindUser = (userId, userNm) => {
+ $("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
+ $("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
+ }
+
+ // 사용자검색 버튼 클릭 이벤트
+ $P.fnGetFindUser = () => {
+ let params = {
+ openerPageName: "${pageName}"
+ , callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
+ }
+
+ ajax.get({
+ url : wctx.url("/user/user02/010/main.do")
+ , data : params || {}
+ , success : resp => {
+ dialog.open({
+ id : "userDialog"
+ , title : "사용자 검색"
+ , content : resp
+ , size : "lg"
+ });
+ }
+ });
+ }
+
// 검색 버튼 이벤트
$P.fnSearchList = () => {
// 검색조건
- $P.control.query = $P.formFields.get();
- $P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수 FETCH_XS = 30
- $P.control.query.delYn = "N"; // 삭제 여부
+ $P.control.query = $P.formFields.get(); // 검색 조건
+ $P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수 FETCH_XS = 30
+ $P.control.query.delYn = "N"; // 삭제 여부
$P.control.load(1);
}
@@ -662,10 +615,9 @@
$P.fnExcel = () => {
if ($P.control.dataset.empty) {
dialog.alert({
- content : "검색된 자료가 없습니다."
- , onOK : () => { }
+ content: "검색된 자료가 없습니다."
+ , onOK: () => { }
});
-
return;
}
@@ -677,75 +629,99 @@
$P.control.download();
}
- // 사용자 조회 버튼 이벤트
- $P.fnFindUser = () => {
- $P.getFindUser();
- }
-
- // 수정 버튼 클릭 이벤트
- $P.fnUpdateOpnn = (title) => {
+ // 의견제출 수정 버튼 클릭 이벤트
+ $P.fnUpdate = (title) => {
+ // 의견제출 ID
let opnnId = $P.control.dataset.getValue("OPNN_ID");
-
// 의견제출 ID 가 없다면.. return
if (typeof opnnId == "undefined" || opnnId == null || opnnId == "") return;
let params = {
- title : title
- , callPurpose : "update"
- , sggCd : $P.control.dataset.getValue("SGG_CD") // 시군구 코드
- , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
- , opnnId : opnnId // 의견제출 ID
+ title: title
+ , callPurpose: "update" // 호출용도: 수정
+ , sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
+ , taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
+ , opnnId: opnnId // 의견제출 ID
};
$P.control.getInfo(params);
}
- // 심의 버튼 클릭 이벤트
+ // 의견제출 심의 버튼 클릭 이벤트
$P.fnUpdateOpnnDlbr = (title) => {
+ // 의견제출 ID
let opnnId = $P.control.dataset.getValue("OPNN_ID");
-
// 의견제출 ID 가 없다면.. return
if (typeof opnnId == "undefined" || opnnId == null || opnnId == "") return;
let params = {
- title : title
- , callPurpose : "update"
- , sggCd : $P.control.dataset.getValue("SGG_CD") // 시군구 코드
- , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
- , opnnId : opnnId // 의견제출 ID
+ title: title
+ , callPurpose: "update" // 호출용도: 수정
+ , sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
+ , taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
+ , opnnId: opnnId // 의견제출 ID
};
- $P.getDlbrInfo(params);
+ ajax.get({
+ url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/030/info.do")
+ , data: params
+ , success: resp => {
+ dialog.open({
+ id: $P.control.prefixed("DlbrDialog")
+ , title: $P.control.prefixName + " 심의"
+ , content: resp
+ , size: "lg"
+ , onClose: () => { $P.fnRefreshList(); } // 자료 재조회
+ });
+ }
+ });
+ }
+
+ // 의견제출 삭제사유 callback
+ $P.callbackRsn = (obj) => {
+ // 서버에 전송할 data(파라미터) 생성
+ let params = {};
+ let selected = $P.control.dataset.getKeys("selected");
+
+ params[$P.control.prefixed("Ids")] = selected.join(","); // IDs
+ params.sggCd = $("#sggCd--${pageName}").val(); // 시군구 코드
+ params.taskSeCd = $("input[name=taskSeCd]:checked").val(); // 업무 구분 코드
+ params.delRsn = obj.reason; // 삭제 사유
+
+ $P.control.remove(params);
}
- // 삭제 버튼 클릭 이벤트
- $P.fnRemoveOpnn = (title) => {
+ // 의견제출 삭제 버튼 클릭 이벤트
+ $P.fnRemove = (title) => {
// 선택 자료
let selected = $P.control.dataset.getKeys("selected");
- if (selected.length < 1) return;
+ if (selected.length < 1) {
+ dialog.alert({
+ content: "선택하신 의견제출 정보가 없습니다."
+ , onOK: () => { }
+ });
+ return;
+ }
// 삭제 메세지 확인
dialog.alert({
- content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?"
- , onOK : async() => {
+ content: "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?"
+ , onOK: async() => {
// 삭제 사유 입력
- var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html"));
- var template = await resp.text();
+ let resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html"));
+ let template = await resp.text();
dialog.open({
- id : "inputDelRsnDialog",
- title: title,
- size : "lg",
- content: template,
- init : () => {
- setDialogZindex();
- },
- onOK : () => {
+ id: "inputDelRsnDialog"
+ , title: title
+ , size: "lg"
+ , content: template
+ , init: () => { setDialogZindex(); }
+ , onOK: () => {
$P.callbackRsn({ reason : $("#reason").val() });
}
});
-
}
});
}
@@ -759,7 +735,7 @@
$("#btnReset--${pageName}").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); // 검색
$("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀
- $("#btnFindUser--${pageName}").on("click", () => $P.fnFindUser()); // 사용자 검색
+ $("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").keypress(function(e) {
@@ -782,16 +758,16 @@
});
// 의견제출 수정 버튼 이벤트
- $("#btnUpdateOpnn--${pageName}").on("click", function() {
- $P.fnUpdateOpnn($(this).attr("title"));
+ $("#btnUpdate--${pageName}").on("click", function() {
+ $P.fnUpdate($(this).attr("title"));
});
// 의견제출 심의 버튼 이벤트
$("#btnUpdateOpnnDlbr--${pageName}").on("click", function() {
$P.fnUpdateOpnnDlbr($(this).attr("title"));
});
// 의견제출 삭제 버튼 이벤트
- $("#btnRemoveOpnn--${pageName}").on("click", function() {
- $P.fnRemoveOpnn($(this).attr("title"));
+ $("#btnRemove--${pageName}").on("click", function() {
+ $P.fnRemove($(this).attr("title"));
});
// DataTables width 변경 조정
@@ -821,14 +797,13 @@
// 달력 초기화
initDatepicker("frmSearch--${pageName}");
- $("#schRcptYmdFrom--${pageName}").datepicker("setDate", new Date());
- $("#schRcptYmdTo--${pageName}").datepicker("setDate", new Date());
-
// 동적 검색
$("#byOutput--${pageName}").val("동적 검색");
-
// 사용자 이름
$("#schRgtrNm--${pageName}").prop("readonly", true);
+
+ // 기본 데이터 설정(업무구분)
+ $P.initData($("input[name=taskSeCd]:checked").val());
}
// 기본 데이터 설정
@@ -844,6 +819,9 @@
// 업무 구분별 설정
$P.setTask = (taskSeCd) => {
+ // 검색 url
+ $P.control.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/010/list.do");
+
let clsForTask = taskSeCd.toLowerCase();
// 업무별 조회조건
@@ -858,17 +836,6 @@
colsOuterHTML += this.outerHTML;
});
$("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML);
-
- // URL 설정
- $P.setURL(taskSeCd);
- }
-
- // 업무구분에 따른 URL 설정
- $P.setURL = (taskSeCd) => {
- $P.control.urls.load = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/010/list.do"); // 조회
- $P.control.urls.remove = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/010/remove.do"); // 삭제
- $P.control.urls.getInfo = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/020/info.do"); // 수정
- $P.control.urls.getDlbrInfo = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/030/info.do"); // 심의
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp
index b50770c1..4f1ddf3e 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp
@@ -12,9 +12,9 @@