From 7be996a4199c1dcb1ccbfbc6b6f21de1f719fe39 Mon Sep 17 00:00:00 2001 From: jjh Date: Fri, 3 Nov 2023 15:30:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=A0=84=ED=86=B5=EC=A7=80=20?= =?UTF-8?q?=EB=B0=9C=EC=86=A1=EB=8C=80=EC=83=81=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=EC=8B=9C=20=EB=82=A9=EA=B8=B0=EC=9D=BC=EC=9E=90=20=EC=88=98?= =?UTF-8?q?=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/cmmn/TaskInfoQuery.java | 2 - .../cokr/xit/fims/cmmn/VltnInfoQuery.java | 2 - .../fims/cmmn/service/TaskInfoService.java | 8 +- .../service/bean/TaskInfoServiceBean.java | 5 + .../xit/fims/cmmn/web/TaskInfoController.java | 3 +- .../xit/fims/sndb/web/Sndb01Controller.java | 16 ++- .../sql/mapper/fims/excl/crdnReReg-mapper.xml | 1 + .../sql/mapper/fims/excl/levyExcl-mapper.xml | 2 + .../sql/mapper/fims/excl/opnnSbmsn-mapper.xml | 2 + .../sql/mapper/fims/sndb/sndng-mapper.xml | 7 +- .../WEB-INF/jsp/fims/excl/excl01010-main.jsp | 18 +-- .../WEB-INF/jsp/fims/excl/excl02010-main.jsp | 17 +-- .../WEB-INF/jsp/fims/excl/excl03010-main.jsp | 15 ++- .../WEB-INF/jsp/fims/sndb/sndb01020-info.jsp | 14 +-- .../WEB-INF/jsp/fims/sndb/sndb01060-info.jsp | 105 +++++++++++------- 15 files changed, 132 insertions(+), 85 deletions(-) diff --git a/src/main/java/cokr/xit/fims/cmmn/TaskInfoQuery.java b/src/main/java/cokr/xit/fims/cmmn/TaskInfoQuery.java index 51532089..fc2e4ade 100644 --- a/src/main/java/cokr/xit/fims/cmmn/TaskInfoQuery.java +++ b/src/main/java/cokr/xit/fims/cmmn/TaskInfoQuery.java @@ -1,7 +1,5 @@ package cokr.xit.fims.cmmn; -import cokr.xit.foundation.component.QueryRequest; - /**업무 정보 정보 조회 요청 * *

상세 설명: diff --git a/src/main/java/cokr/xit/fims/cmmn/VltnInfoQuery.java b/src/main/java/cokr/xit/fims/cmmn/VltnInfoQuery.java index 21dd382a..f3ca3096 100644 --- a/src/main/java/cokr/xit/fims/cmmn/VltnInfoQuery.java +++ b/src/main/java/cokr/xit/fims/cmmn/VltnInfoQuery.java @@ -1,7 +1,5 @@ package cokr.xit.fims.cmmn; -import cokr.xit.foundation.component.QueryRequest; - /**위반 정보 정보 조회 요청 * *

상세 설명: diff --git a/src/main/java/cokr/xit/fims/cmmn/service/TaskInfoService.java b/src/main/java/cokr/xit/fims/cmmn/service/TaskInfoService.java index 13fd1037..f4cf09b6 100644 --- a/src/main/java/cokr/xit/fims/cmmn/service/TaskInfoService.java +++ b/src/main/java/cokr/xit/fims/cmmn/service/TaskInfoService.java @@ -13,7 +13,7 @@ import cokr.xit.fims.cmmn.TaskInfoQuery; * *

  * ============ 변경 이력 ============
- * 2023-10-24	mjkhan 최초 작성
+ * 2023-10-24	JoJH 최초 작성
  * ================================
  * 
*/ @@ -31,6 +31,12 @@ public interface TaskInfoService { */ List getTaskInfos(TaskInfoQuery req); + /**지정한 조건에 따라 업무 정보 객체를 반환한다. + * @param sndngDtlId 발송 상세 ID + * @return 발송상세 미배달 정보 + */ + DataObject getTaskInfo(TaskInfoQuery req); + /**업무 정보 정보를 등록한다. * @param taskInfo 업무 정보 * @return 저장 여부 diff --git a/src/main/java/cokr/xit/fims/cmmn/service/bean/TaskInfoServiceBean.java b/src/main/java/cokr/xit/fims/cmmn/service/bean/TaskInfoServiceBean.java index ab51a350..bdc04166 100644 --- a/src/main/java/cokr/xit/fims/cmmn/service/bean/TaskInfoServiceBean.java +++ b/src/main/java/cokr/xit/fims/cmmn/service/bean/TaskInfoServiceBean.java @@ -40,6 +40,11 @@ public class TaskInfoServiceBean extends AbstractServiceBean implements TaskInfo return taskInfoBean.getTaskInfos(req); } + @Override + public DataObject getTaskInfo(TaskInfoQuery req) { + return taskInfoBean.getTaskInfo(req); + } + @Override public boolean create(TaskInfo taskInfo) { return taskInfoBean.create(taskInfo); diff --git a/src/main/java/cokr/xit/fims/cmmn/web/TaskInfoController.java b/src/main/java/cokr/xit/fims/cmmn/web/TaskInfoController.java index 97c130d6..5f315930 100644 --- a/src/main/java/cokr/xit/fims/cmmn/web/TaskInfoController.java +++ b/src/main/java/cokr/xit/fims/cmmn/web/TaskInfoController.java @@ -27,7 +27,7 @@ import cokr.xit.fims.cmmn.service.TaskInfoService; @RequestMapping(name = "업무 정보", value = "/taskInfo") public class TaskInfoController extends AbstractController { - /**업무 정보 서비스*/ + /** 업무 정보 서비스 */ @Resource(name = "taskInfoService") private TaskInfoService taskInfoService; @@ -56,6 +56,7 @@ public class TaskInfoController extends AbstractController { @RequestMapping(name = "업무 정보 조회", value = "/list.do") public ModelAndView getTaskInfoList(TaskInfoQuery req) { List result = taskInfoService.getTaskInfoList(setFetchSize(req)); + return setCollectionInfo(new ModelAndView("jsonView"), result, "taskInfo"); } diff --git a/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java b/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java index a0c0b888..6233de99 100644 --- a/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java +++ b/src/main/java/cokr/xit/fims/sndb/web/Sndb01Controller.java @@ -11,6 +11,8 @@ import cokr.xit.base.code.CommonCode; import cokr.xit.base.user.ManagedUser; import cokr.xit.base.user.service.UserService; import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.cmmn.TaskInfoQuery; +import cokr.xit.fims.cmmn.service.TaskInfoService; import cokr.xit.fims.sndb.SndbQuery; import cokr.xit.fims.sndb.Sndng; import cokr.xit.fims.sndb.SndngDtl; @@ -55,7 +57,7 @@ public class Sndb01Controller extends ApplicationController { ; } - /**발송 대장 서비스*/ + /** 발송 대장 서비스 */ @Resource(name = "sndngService") private SndngService sndngService; @@ -63,6 +65,10 @@ public class Sndb01Controller extends ApplicationController { @Resource(name="userService") protected UserService userService; + /** 업무 정보 서비스 */ + @Resource(name = "taskInfoService") + private TaskInfoService taskInfoService; + /**계도장 발송 대상 자료 메인화면(sndb/sndb01/010-main)을 연다. * 조건없는 {@link #getSndngList(SndbQuery) 발송 대장 조회 결과}를 포함시킨다. * @return /sndb/sndb01/010-main @@ -125,6 +131,7 @@ public class Sndb01Controller extends ApplicationController { .addObject("sggCd", req.getSggCd()) .addObject("taskSeCd", req.getTaskSeCd()) .addObject("sndngSeCd", req.getSndngSeCd()) // 발송 구분 코드 + .addObject("vltnCd", req.getVltnCd()) // 위반 코드 .addObject("wrngSndngTrgts", json ? wrngSndngTrgts : toJson(wrngSndngTrgts)) // 계도장 발송 대상 정보 ; } @@ -242,6 +249,10 @@ public class Sndb01Controller extends ApplicationController { public ModelAndView getAdvntceSndngTrgts(SndbQuery req) { List advntceSndngTrgs = sndngService.getAdvntceSndngTrgts(req); + DataObject taskInfo = taskInfoService.getTaskInfo(new TaskInfoQuery().setSggCd(req.getSggCd()) + .setTaskSeCd(req.getTaskSeCd())); + int advntceDaycnt = taskInfo.number("ADVNTCE_DAYCNT").intValue(); + boolean json = jsonResponse(); ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/sndb/sndb01060-info"); @@ -251,6 +262,7 @@ public class Sndb01Controller extends ApplicationController { .addObject("taskSeCd", req.getTaskSeCd()) .addObject("sndngSeCd", req.getSndngSeCd()) // 발송 구분 코드 .addObject("vltnCd", req.getVltnCd()) // 위반 코드 + .addObject("advntceDaycnt", advntceDaycnt) // 사전통지 일수 .addObject("advntceSndngTrgs", json ? advntceSndngTrgs : toJson(advntceSndngTrgs)) // 사전통지 발송 대상 정보 ; } @@ -356,8 +368,6 @@ public class Sndb01Controller extends ApplicationController { .addObject("retMessage", retMessage); } - - /**반송등록 (sndb/sndb01/220-info)을 연다. * @param sndngId 발송 ID * @return fims/sndb/sndb01220-info 또는 jsonView diff --git a/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml b/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml index f390e98c..bc2bb5e5 100644 --- a/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml @@ -41,6 +41,7 @@ , CRR.DEL_RSN , C.SGG_CD , C.TASK_SE_CD + , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM , C.CRDN_INPT_SE_CD , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM , C.CRDN_YMD 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 b2ef19d8..4882d98c 100644 --- a/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/levyExcl-mapper.xml @@ -51,6 +51,7 @@ , 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 , C.CRDN_REG_SE_CD , (SELECT GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM , C.CRDN_INPT_SE_CD @@ -238,6 +239,7 @@ SELECT 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 , C.CRDN_REG_SE_CD , C.CRDN_INPT_SE_CD , C.CRDN_YMD 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 9db6dcd2..e836116f 100644 --- a/src/main/resources/sql/mapper/fims/excl/opnnSbmsn-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/opnnSbmsn-mapper.xml @@ -96,6 +96,7 @@ , 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 , C.CRDN_INPT_SE_CD , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM , C.CRDN_YMD @@ -245,6 +246,7 @@ SELECT 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 , C.CRDN_REG_SE_CD , C.CRDN_YMD , C.CRDN_TM diff --git a/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml b/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml index 905a1812..f4a975da 100644 --- a/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml @@ -164,9 +164,6 @@ , CC.CVLCPT_PRCS_CD , (SELECT GET_CODE_NM('FIM017', CC.CVLCPT_PRCS_CD) FROM DUAL) AS CVLCPT_PRCS_NM , CC.CVLCPT_PRCS_CMPTN_DT - , CC.CVLCPT_TRSM_CD - , (SELECT GET_CODE_NM('FIM018', CC.CVLCPT_TRSM_CD) FROM DUAL) AS CVLCPT_TRSM_NM - , CC.CVLCPT_TRSM_DT , P.RTPYR_ID , P.RTPYR_SE_CD , (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM @@ -347,6 +344,7 @@ , C.SGG_CD , C.TASK_SE_CD + , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM , C.CRDN_INPT_SE_CD , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM , C.CRDN_YMD @@ -396,9 +394,6 @@ , CC.CVLCPT_PRCS_CD , (SELECT GET_CODE_NM('FIM017', CC.CVLCPT_PRCS_CD) FROM DUAL) AS CVLCPT_PRCS_NM , CC.CVLCPT_PRCS_CMPTN_DT - , CC.CVLCPT_TRSM_CD - , (SELECT GET_CODE_NM('FIM018', CC.CVLCPT_TRSM_CD) FROM DUAL) AS CVLCPT_TRSM_NM - , CC.CVLCPT_TRSM_DT , P.RTPYR_ID , P.RTPYR_NO , P.RTPYR_NM 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 1ac1a915..376883f6 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 @@ -198,12 +198,14 @@ - 부과제외일자 - 부과제외구분 + 업무구분 + 부과제외일자 + 부과제외구분 부과제외사유 기타내용 - 민원접수번호 - 민원접수일자 + 민원신청번호 + 민원접수번호 + 민원접수일자 단속일시 차량번호 법정동 @@ -227,10 +229,12 @@ + {TASK_SE_NM} {LEVY_EXCL_YMD} {LEVY_EXCL_SE_NM} - {LEVY_EXCL_RSN_NM} + {LEVY_EXCL_RSN_NM} {ETC_CN} + {CVLCPT_APLY_NO} {CVLCPT_RCPT_NO} {CVLCPT_RCPT_YMD} {CRDN_YMD_TM} @@ -238,7 +242,7 @@ {CRDN_STDG_NM} {CRDN_PLC} {FFNLG_AMT} - {CRDN_STTS_NM} + {CRDN_STTS_NM} {RTPYR_NM} {RTPYR_BRDT} {REG_DT} @@ -250,7 +254,7 @@ 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 0b2cd8ef..e413b4eb 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 @@ -201,10 +201,11 @@ - 접수일자 - 접수번호 - 접수구분 - 통보구분 + 업무구분 + 접수일자 + 접수번호 + 접수구분 + 통보구분 진술자명 의견제출상태 의견제출분류 @@ -218,7 +219,7 @@ 답변일자 답변내용 납부자명 - 납부자생일 + 납부자생일 등록일시 등록사용자 수정일시 @@ -234,6 +235,7 @@ + {TASK_SE_NM} {RCPT_YMD} {RCPT_NO} {RCPT_SE_NM} @@ -246,7 +248,7 @@ {VHRNO} {CRDN_PLC} {FFNLG_AMT} - {CRDN_STTS_NM} + {CRDN_STTS_NM} {DOC_NO} {ANS_YMD} {ANS_CN} @@ -261,7 +263,7 @@ @@ -307,6 +309,7 @@ , ANS_YMD_TM : datetimeFormat , CRDN_YMD_TM : datetimeFormat , FFNLG_CRDN_AMT : numberFormat + , FFNLG_AMT : numberFormat , REG_DT : datetimeFormat , MDFCN_DT : datetimeFormat } diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp index 2703e385..ce15c4ee 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp @@ -162,14 +162,15 @@ - 재등록일자 - 단속등록구분 + 업무구분 + 재등록일자 + 단속등록구분 기타내용 단속일시 차량번호 법정동 단속장소 - 과태료금액 + 단속금액 처리상태 등록일시 등록사용자 @@ -184,6 +185,7 @@ + {TASK_SE_NM} {RE_REG_YMD} {CRDN_REG_SE_NM} {ETC_CN} @@ -191,8 +193,8 @@ {VHRNO} {CRDN_STDG_NM} {CRDN_PLC} - {FFNLG_AMT} - {CRDN_STTS_NM} + {FFNLG_CRDN_AMT} + {CRDN_STTS_NM} {REG_DT} {RGTR_NM} @@ -200,7 +202,7 @@ @@ -244,6 +246,7 @@ RE_REG_YMD : dateFormat , CRDN_YMD_TM : datetimeFormat , FFNLG_CRDN_AMT : numberFormat + , FFNLG_AMT : numberFormat , REG_DT : datetimeFormat } }); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp index d4ecb3d1..9bd8b3d5 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01020-info.jsp @@ -13,6 +13,7 @@ +
@@ -200,11 +201,11 @@ ${pageName}Control.onCurrentChange = item => { if (!item) return; - ${pageName}Control.urls.getInfo = wctx.url("/" + item.data.TASK_SE_CD + "/sprt/sprt02/010/main.do"); // 개별총정보 - let key = item.data.CRDN_ID; $("#tbody--${pageName}").setCurrentRow(key); + + ${pageName}Control.urls.getInfo = wctx.url("/" + item.data.TASK_SE_CD + "/sprt/sprt02/010/main.do"); // 개별총정보 }; // 선택(체크) 변경 이벤트 @@ -270,10 +271,8 @@ info.resndYn = "N"; // 재발송 여부 info.delYn = "N"; // 삭제 여부 - let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/createSndng.do"); - ajax.post({ - url : createUrl + url : wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/createSndng.do") , data : info , success : resp => ${pageName}Control.onSave(resp) }); @@ -332,9 +331,7 @@ $("#sndngYmd--${pageName}").datepicker("setDate", new Date()); $("#dudtYmd--${pageName}").datepicker("setDate", new Date()); - let sndngSeCd = $("#sndngSeCd--${pageName}").val(); - - if (sndngSeCd == "10") { + if ($("#sndngSeCd--${pageName}").val() == "01") { $("#dudtYmd--${pageName}").val(""); $("#dudtYmd--${pageName}").prop("disabled", true); $("#divDudtYmd--${pageName}").hide(); @@ -374,6 +371,7 @@ $("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드 $("#taskSeCd--${pageName}").val("${taskSeCd}"); // 업무 구분 코드 $("#sndngSeCd--${pageName}").val("${sndngSeCd}"); // 발송 구분 코드 + $("#vltnCd--${pageName}").val("${vltnCd}"); // 위반 코드 // 보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp index 3aef2e98..7cc8dafe 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01060-info.jsp @@ -90,6 +90,7 @@ 법정동 단속장소 과태료금액 + 사전통지금액 처리상태 납부자명 납부자생일 @@ -119,7 +120,8 @@ {CRDN_STDG_NM} {CRDN_PLC} {FFNLG_AMT} - {CRDN_STTS_NM} + {ADVNTCE_AMT} + {CRDN_STTS_NM} {RTPYR_NM} {RTPYR_BRDT} {ZIP} @@ -134,7 +136,7 @@ @@ -167,15 +169,13 @@ , dataGetter : obj => obj.sndngTrgtsList , appendData : true , tableRenderComplete : false // dataTables 에 자료 추가 완료 여부 - , urls : { - getInfo : wctx.url("/sprt/sprt02/010/main.do") // 개별총정보 - } , formats : { TNOCS : numberFormat , GRAMT : numberFormat , CVLCPT_RCPT_YMD : dateFormat , CRDN_YMD_TM : datetimeFormat , FFNLG_AMT : numberFormat + , ADVNTCE_AMT : numberFormat , REG_DT : datetimeFormat , MDFCN_DT : datetimeFormat } @@ -200,6 +200,8 @@ let key = item.data.CRDN_ID; $("#tbody--${pageName}").setCurrentRow(key); + + ${pageName}Control.urls.getInfo = wctx.url("/" + item.data.TASK_SE_CD + "/sprt/sprt02/010/main.do"); // 개별총정보 }; // 선택(체크) 변경 이벤트 @@ -216,7 +218,28 @@ // 개별총정보 dialog ${pageName}Control.getInfo = (crdnId) => { - return; + if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") { + return; + } + + let params = { + callControlName : "${pageName}Control" + , viewPurpose : "readonly" + , crdnId : crdnId + } + + ajax.get({ + url : ${pageName}Control.urls.getInfo + , data : params + , success : resp => { + dialog.open({ + id : "totalInfoMainDialog" + , title : "개별총정보" + , content : resp + , size : "xxl" + }); + } + }); } // 저장 callback @@ -241,14 +264,11 @@ if (selected.length < 1) return; info.crdnIDs = selected.join(","); // 단속 IDs - info.sndngSeCd = "02"; // 발송 구분 코드 - 02 사전통지 info.resndYn = "N"; // 재발송 여부 info.delYn = "N"; // 삭제 여부 - let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/createSndng.do"); - ajax.post({ - url : createUrl + url : wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/createSndng.do") , data : info , success : resp => ${pageName}Control.onSave(resp) }); @@ -281,28 +301,6 @@ /************************************************************************** * 초기 셋팅 **************************************************************************/ - // 화면 초기값 셋팅 - initForm${pageName} = () => { - // 달력 초기화 - initDatepicker("frmEdit--${pageName}"); - $("#sndngYmd--${pageName}").datepicker("setDate", new Date()); - $("#dudtYmd--${pageName}").datepicker("setDate", new Date()); - - let sndngSeCd = "${sndngSeCd}"; - - if (sndngSeCd == "10") { - $("#dudtYmd--${pageName}").val(""); - $("#dudtYmd--${pageName}").prop("disabled", true); - $("#divDudtYmd--${pageName}").hide(); - } else { - $("#dudtYmd--${pageName}").datepicker("setDate", new Date()); - $("#dudtYmd--${pageName}").prop("disabled", false); - $("#divDudtYmd--${pageName}").show(); - } - - ${pageName}Control.urls.getInfo = wctx.url("/" + ${pageName}Control.dataset.getValue("TASK_SE_CD") + "/sprt/sprt02/010/main.do"); // 개별총정보 - } - // 이벤트 setEvent${pageName} = () => { // form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용 @@ -322,6 +320,27 @@ $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); } + // 화면 초기값 셋팅 + setForm${pageName} = () => { + // 달력 초기화 + initDatepicker("frmEdit--${pageName}"); + + $("#sndngYmd--${pageName}").datepicker("setDate", new Date()); + if ($("#sndngSeCd--${pageName}").val() == "01") { // 계고장 + $("#dudtYmd--${pageName}").val(""); + $("#dudtYmd--${pageName}").prop("disabled", true); + $("#divDudtYmd--${pageName}").hide(); + } else if ($("#sndngSeCd--${pageName}").val() == "02") { // 사전통지 - 사전통지 일수(ADVNTCE_DAYCNT) + $("#dudtYmd--${pageName}").datepicker("setDate", DateUtil.getDateDay(${advntceDaycnt}).date); + $("#dudtYmd--${pageName}").prop("disabled", false); + $("#divDudtYmd--${pageName}").show(); + } else { + $("#dudtYmd--${pageName}").datepicker("setDate", new Date()); + $("#dudtYmd--${pageName}").prop("disabled", false); + $("#divDudtYmd--${pageName}").show(); + } + } + /************************************************************************** * 버튼 clickEvent **************************************************************************/ @@ -347,24 +366,26 @@ * script 진입 **************************************************************************/ $(document).ready(function() { + // 기본 데이터 + $("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드 + $("#taskSeCd--${pageName}").val("${taskSeCd}"); // 업무 구분 코드 + $("#sndngSeCd--${pageName}").val("${sndngSeCd}"); // 발송 구분 코드 + $("#vltnCd--${pageName}").val("${vltnCd}"); // 위반 코드 + + // 보안모드 + fn_securityModeToggle($("#securityMode--top").is(":checked")); + // 이벤트 설정 setEvent${pageName}(); // 화면 초기 설정 - initForm${pageName}(); - - // 보안모드 - fn_securityModeToggle($("#securityMode--top").is(":checked")); + setForm${pageName}(); // Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가 ${pageName}Control.addData(${advntceSndngTrgs}); - $("#sggCd--${pageName}").val(${pageName}Control.dataset.getValue("SGG_CD")); // 시군구 코드 - $("#taskSeCd--${pageName}").val(${pageName}Control.dataset.getValue("TASK_SE_CD")); // 업무 구분 코드 - $("#sndngSeCd--${pageName}").val("${sndngSeCd}"); // 발송 구분 코드 - $("#vltnCd--${pageName}").val("${vltnCd}"); // 위반 코드 - $("#tnocs--${pageName}").val(${pageName}Control.dataset.getValue("TNOCS")); // 총건수 - $("#gramt--${pageName}").val(${pageName}Control.dataset.getValue("GRAMT")); // 총금액 + $("#tnocs--${pageName}").val(${pageName}Control.dataset.getValue("TNOCS")); // 총건수 + $("#gramt--${pageName}").val(${pageName}Control.dataset.getValue("GRAMT")); // 총금액 });