발송반송 - 계고장 발송 대상 추가.

main
jjh 1 year ago
parent 3711ca2ced
commit 05c97540a0

@ -114,7 +114,6 @@ public class Excl01Bean extends AbstractComponent {
} else if (levyExcl.getLevyExclSeCd().equals("5")) {
// 단속 상태 코드가 부과(51) 보다 작다면, 전액감액 등록 할 수 없다. 종료.. 전액감액 등록은 부과이후...
if (infoCrdnLevyExcl.number("CRDN_STTS_CD").intValue() < 51) {
// 예외를 발생시켜서 오류메세지를 보내고 DB Rollback
retMessage = "[F] 작업 중 오류가 발생하였습니다.<br>현재 자료의 단속 상태가 " + infoCrdnLevyExcl.string("CRDN_STTS_NM") + " 상태 입니다.";
return retMessage;
}
@ -122,7 +121,6 @@ public class Excl01Bean extends AbstractComponent {
// 단속 민원(TB_CRDN_CVLCPT) 민원 처리 확인
if (!infoCrdnLevyExcl.string("CVLCPT_LINK_ID").equals("")) {
if (infoCrdnLevyExcl.string("CVLCPT_PRCS_CD").equals("00")) {
// 예외를 발생시켜서 오류메세지를 보내고 DB Rollback
retMessage = "[F] 작업 중 단속 민원 자료가 처리 되지 않았습니다.<br>단속 민원 업무를 먼저 처리 하시기 바랍니다.<br>";
return retMessage;
}

@ -17,6 +17,7 @@ public class SndbQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
// ID
private String[] crdnIDs; // 단속 IDs
private String crdnId; // 단속 ID
private String[] sndngIDs; // 발송 IDs
private String sndngId; // 발송 ID
@ -24,10 +25,34 @@ public class SndbQuery extends CmmnQuery {
private String sndngDtlId; // 발송 상세 ID
private String[] svbtcIDs; // 공시송달 IDs
private String svbtcId; // 공시송달 ID
// 검색 조건
private String schLevyExclYmdFrom; // 부과제외_부과제외 일자 시작
private String schLevyExclYmdTo; // 부과제외_부과제외 일자 종료
private String schLevyExclSeCd; // 부과제외_부과제외 구분 코드
private String schVhrno; // 단속(TB_CRDN)_차량번호
private String schCrdnYmdFrom; // 단속(TB_CRDN)_단속 일자 시작
private String schCrdnYmdTo; // 단속(TB_CRDN)_단속 일자 종료
private String schRtpyrNm; // 납부자(TB_PAYER)_납부자 명
// 동적 검색 조건
private String levyExclSeCd; // 부과제외_부과 제외 구분 코드
private String levyExclSeNm; // 부과제외_부과 제외 구분 명
private String vhrno; // 단속(TB_CRDN)_차량번호
private String rtpyrNm; // 납부자(TB_PAYER)_납부자 명
// ETC
private String callPurpose; // 자료 조회시 호출용도. (view 조회, create 등록, update 수정, refresh 재조회)
private String delYn; // 삭제 여부
private String delRsn; // 삭제 사유
private String crdnDelYn; // 단속 삭제 여부
public String[] getCrdnIDs() {
return ifEmpty(crdnIDs, () -> null);
}
public <T extends SndbQuery> T setCrdnIDs(String... crdnIDs) {
this.crdnIDs = crdnIDs;
return self();
}
public String getCrdnId() {
return ifEmpty(crdnId, () -> null);
@ -99,6 +124,118 @@ public class SndbQuery extends CmmnQuery {
return self();
}
public String getSchLevyExclYmdFrom() {
return ifEmpty(schLevyExclYmdFrom, () -> null);
}
public <T extends SndbQuery> T setSchLevyExclYmdFrom(String schLevyExclYmdFrom) {
this.schLevyExclYmdFrom = schLevyExclYmdFrom;
return self();
}
public String getSchLevyExclYmdTo() {
return ifEmpty(schLevyExclYmdTo, () -> null);
}
public <T extends SndbQuery> T setSchLevyExclYmdTo(String schLevyExclYmdTo) {
this.schLevyExclYmdTo = schLevyExclYmdTo;
return self();
}
public String getSchLevyExclSeCd() {
return ifEmpty(schLevyExclSeCd, () -> null);
}
public <T extends SndbQuery> T setSchLevyExclSeCd(String schLevyExclSeCd) {
this.schLevyExclSeCd = schLevyExclSeCd;
return self();
}
public String getSchVhrno() {
return ifEmpty(schVhrno, () -> null);
}
public <T extends SndbQuery> T setSchVhrno(String schVhrno) {
this.schVhrno = schVhrno;
return self();
}
public String getSchRtpyrNm() {
return ifEmpty(schRtpyrNm, () -> null);
}
public <T extends SndbQuery> T setSchRtpyrNm(String schRtpyrNm) {
this.schRtpyrNm = schRtpyrNm;
return self();
}
public String getSchCrdnYmdFrom() {
return ifEmpty(schCrdnYmdFrom, () -> null);
}
public <T extends SndbQuery> T setSchCrdnYmdFrom(String schCrdnYmdFrom) {
this.schCrdnYmdFrom = schCrdnYmdFrom;
return self();
}
public String getSchCrdnYmdTo() {
return ifEmpty(schCrdnYmdTo, () -> null);
}
public <T extends SndbQuery> T setSchCrdnYmdTo(String schCrdnYmdTo) {
this.schCrdnYmdTo = schCrdnYmdTo;
return self();
}
// 동적 검색 조건 ///////////////////////////////////////////////////////////////
public String getLevyExclSeNm() {
return ifEmpty(levyExclSeNm, () -> null);
}
public <T extends SndbQuery> T setLevyExclSeNm(String levyExclSeNm) {
this.levyExclSeNm = levyExclSeNm;
return self();
}
public String getVhrno() {
return ifEmpty(vhrno, () -> null);
}
public <T extends SndbQuery> T setVhrno(String vhrno) {
this.vhrno = vhrno;
return self();
}
public String getRtpyrNm() {
return ifEmpty(rtpyrNm, () -> null);
}
public <T extends SndbQuery> T setRtpyrNm(String rtpyrNm) {
this.rtpyrNm = rtpyrNm;
return self();
}
public String getLevyExclSeCd() {
return ifEmpty(levyExclSeCd, () -> null);
}
public <T extends SndbQuery> T setLevyExclSeCd(String levyExclSeCd) {
this.levyExclSeCd = levyExclSeCd;
return self();
}
// 동적 검색 조건 ///////////////////////////////////////////////////////////////
// ETC /////////////////////////////////////////////////////////////////////
public String getCallPurpose() {
return ifEmpty(callPurpose, () -> null);
@ -129,5 +266,16 @@ public class SndbQuery extends CmmnQuery {
return self();
}
public String getCrdnDelYn() {
return ifEmpty(crdnDelYn, () -> null);
}
public <T extends SndbQuery> T setCrdnDelYn(String crdnDelYn) {
this.crdnDelYn = crdnDelYn;
return self();
}
// ETC /////////////////////////////////////////////////////////////////////
}

@ -25,6 +25,75 @@ import cokr.xit.fims.sndb.SndbQuery;
@Mapper("sndngMapper")
public interface SndngMapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectWrngSndngTrgtList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectWrngSndngTrgts(SndbQuery req);
/** .<br />
* @param req
* @return
*/
List<DataObject> selectWrngSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectWrngSndngs(SndbQuery req);
/** .<br />
* @param req
* @return
*/
List<DataObject> selectAdvntceSndngTrgtList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectAdvntceSndngTrgts(SndbQuery req);
/** .<br />
* @param req
* @return
*/
List<DataObject> selectAdvntceSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectAdvntceSndngs(SndbQuery req);
/** .<br />
* @param req
* @return
*/
List<DataObject> selectNhtSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectNhtSndngs(SndbQuery req);
/** .<br />
* @param req
* @return

@ -20,6 +20,76 @@ import cokr.xit.foundation.data.DataObject;
*/
public interface Sndb01Service {
/** .
* @param req
* @return
*/
List<DataObject> getWrngSndngTrgtList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getWrngSndngTrgts(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getWrngSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getWrngSndngs(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getAdvntceSndngTrgtList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getAdvntceSndngTrgts(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getAdvntceSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getAdvntceSndngs(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getNhtSndngList(SndbQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getNhtSndngs(SndbQuery req);
/** .
* @param req
* @return

@ -37,6 +37,104 @@ public class Sndb01Bean extends AbstractComponent {
@Resource(name = "svbtcMapper")
private SvbtcMapper svbtcMapper;
/** .
* @param req
* @return
*/
public List<DataObject> getWrngSndngTrgtList(SndbQuery req) {
return sndngMapper.selectWrngSndngTrgtList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getWrngSndngTrgts(SndbQuery req) {
return sndngMapper.selectWrngSndngTrgts(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getWrngSndngList(SndbQuery req) {
return sndngMapper.selectWrngSndngList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getWrngSndngs(SndbQuery req) {
return sndngMapper.selectWrngSndngs(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getAdvntceSndngTrgtList(SndbQuery req) {
return sndngMapper.selectAdvntceSndngTrgtList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getAdvntceSndngTrgts(SndbQuery req) {
return sndngMapper.selectAdvntceSndngTrgts(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getAdvntceSndngList(SndbQuery req) {
return sndngMapper.selectAdvntceSndngList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getAdvntceSndngs(SndbQuery req) {
return sndngMapper.selectAdvntceSndngs(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getNhtSndngList(SndbQuery req) {
return sndngMapper.selectNhtSndngList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getNhtSndngs(SndbQuery req) {
return sndngMapper.selectNhtSndngs(req);
}
/** .
* @param req
* @return

@ -31,6 +31,64 @@ public class Sndb01ServiceBean extends AbstractServiceBean implements Sndb01Serv
@Resource(name = "sndb01Bean")
private Sndb01Bean sndb01Bean;
@Override
public List<DataObject> getWrngSndngTrgtList(SndbQuery req) {
return sndb01Bean.getWrngSndngTrgtList(req);
}
@Override
public List<DataObject> getWrngSndngTrgts(SndbQuery req) {
return sndb01Bean.getWrngSndngTrgts(req);
}
@Override
public List<DataObject> getWrngSndngList(SndbQuery req) {
return sndb01Bean.getWrngSndngList(req);
}
@Override
public List<DataObject> getWrngSndngs(SndbQuery req) {
return sndb01Bean.getWrngSndngs(req);
}
@Override
public List<DataObject> getAdvntceSndngTrgtList(SndbQuery req) {
return sndb01Bean.getAdvntceSndngTrgtList(req);
}
@Override
public List<DataObject> getAdvntceSndngTrgts(SndbQuery req) {
return sndb01Bean.getAdvntceSndngTrgts(req);
}
@Override
public List<DataObject> getAdvntceSndngList(SndbQuery req) {
return sndb01Bean.getAdvntceSndngList(req);
}
@Override
public List<DataObject> getAdvntceSndngs(SndbQuery req) {
return sndb01Bean.getAdvntceSndngs(req);
}
@Override
public List<DataObject> getNhtSndngList(SndbQuery req) {
return sndb01Bean.getNhtSndngList(req);
}
@Override
public List<DataObject> getNhtSndngs(SndbQuery req) {
return sndb01Bean.getNhtSndngs(req);
}
@Override
public List<DataObject> getSndngList(SndbQuery req) {
return sndb01Bean.getSndngList(req);

@ -29,6 +29,23 @@ import cokr.xit.fims.sndb.service.Sndb01Service;
*/
public class Sndb01Controller extends ApplicationController {
public static final String CLASS_URL = "/sndb/sndb01";
public class METHOD_URL {
public static final String
warningSendingTargetMain = "/010/main.do" // 계도장 발송 대상 메인 화면
, getWrngSndngTrgtList = "/010/list.do" // 계도장 발송 대상 목록 조회
, warningSendingMain = "/020/main.do" // 계도장 발송 현황 메인 화면
, getWrngSndngList = "/020/list.do" // 계도장 발송 현황 목록 조회
, advanceNoticeSendingTargetMain = "/030/main.do" // 사전통보 발송 대상 메인 화면
, getAdvntceSndngTrgtList = "/030/list.do" // 사전통보 발송 대상 목록 조회
, advanceNoticeSendingMain = "/040/main.do" // 사전통보 발송 현황 메인 화면
, getAdvntceSndngList = "/040/list.do" // 사전통보 발송 현황 목록 조회
, noticeSheetSendingMain = "/060/main.do" // 고지서 발송 현황 메인 화면
, getNhtSndngList = "/060/list.do" // 고지서 발송 현황 목록 조회
;
}
/**발송 대장 서비스*/
@Resource(name = "sndb01Service")
private Sndb01Service sndb01Service;
@ -41,30 +58,174 @@ public class Sndb01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01010-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM004", "FIM005", "FIM006", "FIM054", "FIM061", "FIM064");
addCodes(commonCodes, mav, "FIM004", "FIM005", "FIM006", "FIM061", "FIM064");
return mav.addObject("pageName", "sndb01010") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix
.addObject("FIM004List", commonCodes.get("FIM004")) // 주정차위반 내역 코드(VLTN_ID)
.addObject("FIM005List", commonCodes.get("FIM005")) // 전용차로위반 내역 코드(VLTN_ID)
.addObject("FIM006List", commonCodes.get("FIM006")) // 장애인주차위반 내역 코드(VLTN_ID)
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
.addObject("FIM061List", commonCodes.get("FIM061")) // 전기차 충전구역 및 충전방해 위반 코드(VLTN_ID)
.addObject("FIM064List", commonCodes.get("FIM064")) // 화물자동차 밤샘주차 위반 코드(VLTN_ID)
;
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "sndngList": [ ]
* "sndngStart":
* "sndngFetch":
* "sndngTotal":
* }</code></pre>
*/
public ModelAndView getWrngSndngTrgtList(SndbQuery req) {
List<?> result = sndb01Service.getWrngSndngTrgtList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "wrngSndngTrgt");
}
/** (sndb/sndb01/020-main) .
* {@link #getSndngList(SndbQuery) } .
* @return /sndb/sndb01/020-main
*/
public ModelAndView warningSendingStatusMain() {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01010-main");
public ModelAndView warningSendingMain() {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01020-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
return mav.addObject("pageName", "sndb01010") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
return mav.addObject("pageName", "sndb01020") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
;
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "sndngList": [ ]
* "sndngStart":
* "sndngFetch":
* "sndngTotal":
* }</code></pre>
*/
public ModelAndView getWrngSndngList(SndbQuery req) {
List<?> result = sndb01Service.getWrngSndngList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng");
}
/** (sndb/sndb01/030-main) .
* {@link #getSndngList(SndbQuery) } .
* @return /sndb/sndb01/030-main
*/
public ModelAndView advanceNoticeSendingTargetMain() {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01030-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
return mav.addObject("pageName", "sndb01030") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
;
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "sndngList": [ ]
* "sndngStart":
* "sndngFetch":
* "sndngTotal":
* }</code></pre>
*/
public ModelAndView getAdvntceSndngTrgtList(SndbQuery req) {
List<?> result = sndb01Service.getAdvntceSndngTrgtList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng");
}
/** (sndb/sndb01/040-main) .
* {@link #getSndngList(SndbQuery) } .
* @return /sndb/sndb01/040-main
*/
public ModelAndView advanceNoticeSendingMain() {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01040-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
return mav.addObject("pageName", "sndb01040") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
;
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "sndngList": [ ]
* "sndngStart":
* "sndngFetch":
* "sndngTotal":
* }</code></pre>
*/
public ModelAndView getAdvntceSndngList(SndbQuery req) {
List<?> result = sndb01Service.getAdvntceSndngList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng");
}
/** (sndb/sndb01/060-main) .
* {@link #getSndngList(SndbQuery) } .
* @return /sndb/sndb01/060-main
*/
public ModelAndView noticeSheetSendingMain() {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01060-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
return mav.addObject("pageName", "sndb01060") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
;
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "sndngList": [ ]
* "sndngStart":
* "sndngFetch":
* "sndngTotal":
* }</code></pre>
*/
public ModelAndView getNhtSndngList(SndbQuery req) {
List<?> result = sndb01Service.getNhtSndngList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "sndng");
}
/** .<br />
* {@link SndngService#getSndngList(SndngQuery)}
* @param req
@ -193,6 +354,9 @@ public class Sndb01Controller extends ApplicationController {
.addObject("saved", saved);
}
/** (fims/sndb/sndb01120-main) .
* {@link #getSvbtcList(SndbQuery) } .
* @return /svbtc/svbtc-main

@ -1,6 +1,5 @@
package cokr.xit.fims.task.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@ -167,14 +166,14 @@ public class CmnController {
}
@Controller
@RequestMapping(name = "부과제외 관리", value = "/excl/excl01")
@RequestMapping(name = "부과제외 관리", value = Excl01Controller.CLASS_URL)
class Excl01Controller extends cokr.xit.fims.excl.web.Excl01Controller {
/** .
* @return fims/excl/excl01010-main
*/
@Override
@RequestMapping(name = "부과제외 관리 메인", value = "/010/main.do")
@RequestMapping(name = "부과제외 관리 메인", value = METHOD_URL.levyExclusionMain)
public ModelAndView levyExclusionMain() {
return super.levyExclusionMain();
}
@ -182,14 +181,14 @@ public class CmnController {
}
@Controller
@RequestMapping(name = "의견제출 관리", value = "/excl/excl02")
@RequestMapping(name = "의견제출 관리", value = Excl02Controller.CLASS_URL)
class Excl02Controller extends cokr.xit.fims.excl.web.Excl02Controller {
/** .
* @return fims/excl/excl02010-main
*/
@Override
@RequestMapping(name = "의견제출 관리 메인", value = "/010/main.do")
@RequestMapping(name = "의견제출 관리 메인", value = METHOD_URL.opinionSubmissionMain)
public ModelAndView opinionSubmissionMain() {
return super.opinionSubmissionMain();
}
@ -197,14 +196,14 @@ public class CmnController {
}
@Controller
@RequestMapping(name = "단속 재등록 관리", value = "/excl/excl03")
@RequestMapping(name = "단속 재등록 관리", value = Excl03Controller.CLASS_URL)
class Excl03Controller extends cokr.xit.fims.excl.web.Excl03Controller {
/** .
* @return fims/excl/excl03010-main
*/
@Override
@RequestMapping(name = "단속 재등록 관리 메인", value = "/010/main.do")
@RequestMapping(name = "단속 재등록 관리 메인", value = METHOD_URL.crackdownReRegistrationMain)
public ModelAndView crackdownReRegistrationMain() {
return super.crackdownReRegistrationMain();
}
@ -227,14 +226,14 @@ public class CmnController {
}
@Controller
@RequestMapping(name = "발송 관리", value = "/sndb/sndb01")
@RequestMapping(name = "발송 관리", value = Sndb01Controller.CLASS_URL)
class Sndb01Controller extends cokr.xit.fims.sndb.web.Sndb01Controller {
/** .
* @return fims/sndb/sndb01010-main
*/
@Override
@RequestMapping(name = "계도장 발송 대상 자료", value = "/010/main.do")
@RequestMapping(name = "계도장 발송 대상 자료", value = METHOD_URL.warningSendingTargetMain)
public ModelAndView warningSendingTargetMain() {
return super.warningSendingTargetMain();
}
@ -243,9 +242,36 @@ public class CmnController {
* @return fims/sndb/sndb01020-main
*/
@Override
@RequestMapping(name = "계도장 발송 현황", value = "/020/main.do")
public ModelAndView warningSendingStatusMain() {
return super.warningSendingStatusMain();
@RequestMapping(name = "계도장 발송 현황", value = METHOD_URL.warningSendingMain)
public ModelAndView warningSendingMain() {
return super.warningSendingMain();
}
/** .
* @return fims/sndb/sndb01030-main
*/
@Override
@RequestMapping(name = "사전 통보 발송 대상 자료", value = METHOD_URL.advanceNoticeSendingTargetMain)
public ModelAndView advanceNoticeSendingTargetMain() {
return super.advanceNoticeSendingTargetMain();
}
/** .
* @return fims/sndb/sndb01040-main
*/
@Override
@RequestMapping(name = "사전 통보 발송 현황", value = METHOD_URL.advanceNoticeSendingMain)
public ModelAndView advanceNoticeSendingMain() {
return super.advanceNoticeSendingMain();
}
/** .
* @return fims/sndb/sndb01060-main
*/
@Override
@RequestMapping(name = "고지서 발송 현황", value = METHOD_URL.noticeSheetSendingMain)
public ModelAndView noticeSheetSendingMain() {
return super.noticeSheetSendingMain();
}
}

@ -19,6 +19,7 @@ import cokr.xit.fims.levy.LevyQuery;
import cokr.xit.fims.levy.Rduct;
import cokr.xit.fims.payer.Payer;
import cokr.xit.fims.payer.PayerQuery;
import cokr.xit.fims.sndb.SndbQuery;
import cokr.xit.fims.sprt.CvlcptDscsnCn;
import cokr.xit.fims.sprt.SprtQuery;
@ -481,6 +482,42 @@ public class DpvController {
}
@Controller
@RequestMapping(name="장애인과태료업무 발송, 반송 관리", value=CLASS_URL+Sndb01Controller.CLASS_URL)
class Sndb01Controller extends cokr.xit.fims.sndb.web.Sndb01Controller {
@Override
@RequestMapping(name="장애인과태료업무 계고장 발송 대상 목록 조회", value=METHOD_URL.getWrngSndngTrgtList)
public ModelAndView getWrngSndngTrgtList(SndbQuery req) {
return super.getWrngSndngTrgtList(req);
}
@Override
@RequestMapping(name="장애인과태료업무 계고장 발송 현황 목록 조회", value=METHOD_URL.getWrngSndngList)
public ModelAndView getWrngSndngList(SndbQuery req) {
return super.getWrngSndngList(req);
}
@Override
@RequestMapping(name="장애인과태료업무 사전통보 발송 대상 목록 조회", value=METHOD_URL.getAdvntceSndngTrgtList)
public ModelAndView getAdvntceSndngTrgtList(SndbQuery req) {
return super.getAdvntceSndngTrgtList(req);
}
@Override
@RequestMapping(name="장애인과태료업무 사전통보 발송 현황 목록 조회", value=METHOD_URL.getAdvntceSndngList)
public ModelAndView getAdvntceSndngList(SndbQuery req) {
return super.getAdvntceSndngList(req);
}
@Override
@RequestMapping(name="장애인과태료업무 고지서 발송 현황 목록 조회", value=METHOD_URL.getNhtSndngList)
public ModelAndView getNhtSndngList(SndbQuery req) {
return super.getNhtSndngList(req);
}
}
@Controller
@RequestMapping(name="장애인과태료업무 업무지원_통합조회", value=CLASS_URL+"/sprt/sprt01")
class Sprt01Controller extends cokr.xit.fims.sprt.web.Sprt01Controller {}

@ -109,6 +109,174 @@
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
</resultMap>
<sql id="selectWrngSndngTrgt">
SELECT C.CRDN_ID /* 단속 ID */
, C.SGG_CD /* 시군구 코드 */
, C.TASK_SE_CD /* 업무 구분 코드 */
, C.CRDN_REG_SE_CD /* 단속 등록 구분 코드 */
, (SELECT FN_GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM /* 단속 등록 구분 명 */
, C.CRDN_INPT_SE_CD /* 단속 입력 구분 코드 */
, (SELECT FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM /* 단속 입력 구분 명 */
, C.CRDN_YMD /* 단속 일자 */
, C.CRDN_TM /* 단속 시각 */
, (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM /* 단속 일시 */
, 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 FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */
, CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, CC.CVLCPT_RCPT_YMD /* 민원 접수 일자 */
, CC.CVLCPT_APLY_NO /* 민원 신청 번호 */
, CC.CVLCPT_RCPT_NO /* 민원 접수 번호 */
, CC.CVLCPT_PRCS_CD /* 민원 처리 코드 */
, CC.CVLCPT_PRCS_CMPTN_DT /* 민원 처리 완료 일시 */
, CC.CVLCPT_TRSM_CD /* 민원 전송 코드 */
, CC.CVLCPT_TRSM_DT /* 민원 전송 일시 */
, P.RTPYR_ID /* 납부자 ID */
, P.RTPYR_SE_CD /* 납부자 구분 코드 */
, (SELECT FN_GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM /* 납부자 구분 명 */
, P.RTPYR_NO /* 납부자 번호 */
, P.RTPYR_NM /* 납부자 명 */
, P.RTPYR_BRDT /* 납부자 생년월일 */
, (SELECT FN_GET_BRDT_FORMAT(P.RTPYR_BRDT, '.') FROM DUAL) AS RTPYR_BRDT_FORMAT /* 납부자 생년월일 */
, P.ZIP /* 우편번호 */
, P.ADDR /* 주소 */
, P.DTL_ADDR /* 상세 주소 */
, LE.LEVY_EXCL_ID /* 부과제외 ID */
, LE.LEVY_EXCL_YMD /* 부과제외 일자 */
, LE.LEVY_EXCL_SE_CD /* 부과제외 구분 코드 */
, (SELECT FN_GET_CODE_NM('FIM021', LE.LEVY_EXCL_SE_CD) FROM DUAL) AS LEVY_EXCL_SE_NM /* 부과 제외 구분 명 */
, LE.LEVY_EXCL_RSN_CD /* 부과제외 사유 코드 */
, (SELECT FN_GET_CODE_NM('FIM022', LE.LEVY_EXCL_RSN_CD) FROM DUAL) AS LEVY_EXCL_RSN_NM /* 부과 제외 사유 명 */
, LE.ETC_CN /* 기타 내용 */
FROM TB_CRDN C
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
</sql>
<select id="selectWrngSndngTrgtList" parameterType="map" resultType="dataobject">/* 계도장 발송 대상 목록 조회(sndngMapper.selectWrngSndngTrgtList) */
<include refid="utility.paging-prefix" />
<include refid="selectWrngSndngTrgt" />
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
AND C.DEL_YN = #{crdnDelYn} /* 삭제 여부 */
<if test="schLevyExclYmdFrom != null">
AND LE.LEVY_EXCL_YMD <![CDATA[ >= ]]> #{schLevyExclYmdFrom} /* 부과제외 일자 시작 */
</if>
<if test="schLevyExclYmdTo != null">
AND LE.LEVY_EXCL_YMD <![CDATA[ <= ]]> #{schLevyExclYmdTo} /* 부과제외 일자 종료 */
</if>
<if test="schCrdnYmdFrom != null">
AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} /* 단속 일자 시작 */
</if>
<if test="schCrdnYmdTo != null">
AND C.CRDN_YMD <![CDATA[ <= ]]> #{schCrdnYmdTo} /* 단속 일자 종료 */
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} /* 차량번호 */
</if>
<if test="schRtpyrNm != null">
AND P.RTPYR_NM = #{schRtpyrNm} /* 납부자 명 */
</if>
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} /* 등록 일자 시작 */
</if>
<if test="schRegDateTo != null">
AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} /* 등록 일자 종료 */
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} /* 수정 일자 시작 */
</if>
<if test="schRegDateTo != null">
AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} /* 수정 일자 종료 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schDetailUserOpt == 'rgtr'">
<if test="schDetailUserCd != null">
AND C.RGTR = #{schDetailUserCd} /* 등록자 코드 */
</if>
</when>
<when test="schDetailUserOpt == 'mdfr'">
<if test="schDetailUserCd != null">
AND C.MDFR = #{schDetailUserCd} /* 수정자 코드 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<if test="by != null and by != '' and term != null">
<choose>
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
<include refid="dynamicSearch.start" />
<choose>
<when test="by == 'levyExclYmd'"> LE.LEVY_EXCL_YMD </when>
<when test="by == 'levyExclRsnNm'"> LE.LEVY_EXCL_RSN_CD </when>
<when test="by == 'etcCn'"> LE.ETC_CN </when>
<when test="by == 'crdnYmd'"> C.CRDN_YMD </when>
<when test="by == 'vhrno'"> C.VHRNO </when>
<when test="by == 'crdnStdgNm'"> C.CRDN_STDG_NM </when>
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
<when test="by == 'crdnSttsNm'"> C.CRDN_STTS_CD </when>
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
</choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when>
<otherwise>
</otherwise>
</choose>
</if>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
<select id="selectWrngSndngTrgts" parameterType="map" resultType="dataobject">/* 계도장 발송 대상 객체 가져오기(sndngMapper.selectWrngSndngTrgts) */
<include refid="selectWrngSndngTrgt" />
<where>
<if test="crdnIDs != null">
AND C.CRDN_ID IN (
<foreach collection="crdnIDs" item="crdnId" separator=","> #{crdnId} </foreach>
)
</if>
<if test="crdnId != null">
AND C.CRDN_ID = #{crdnId} /* 단속 ID */
</if>
<if test="levyExclIDs != null">
AND LE.LEVY_EXCL_ID IN (
<foreach collection="levyExclIDs" item="levyExclId" separator=","> #{levyExclId} </foreach>
)
</if>
<if test="levyExclId != null">
AND LE.LEVY_EXCL_ID = #{levyExclId} /* 부과 제외 ID */
</if>
<choose>
<when test="crdnDelYn != null">
AND C.DEL_YN = #{crdnDelYn} /* 삭제 여부 */
</when>
<otherwise>
AND C.DEL_YN = 'N' /* 삭제 여부 */
</otherwise>
</choose>
</where>
<include refid="utility.orderBy" />
</select>
<sql id="selectSndng">
SELECT SNDNG_ID /* 발송 ID */
, SGG_CD /* 시군구 코드 */

@ -324,15 +324,6 @@
${pageName}Control.onCurrentChange = item => {
if (!item) return;
// 계고는 수정하지 않는다..
let levyExclSeCd = item.data.LEVY_EXCL_SE_CD;
if (levyExclSeCd == "2") {
$("#btnUpdate--${pageName}").prop("disabled", true);
} else {
$("#btnUpdate--${pageName}").prop("disabled", false);
}
let key = item.data.LEVY_EXCL_ID;
$("#tbody--${pageName}").setCurrentRow(key);
@ -570,12 +561,6 @@
if (levyExclId == undefined || levyExclId == "") {
return;
}
// 계고는 수정하지 않는다..
if (levyExclSeCd == "2") {
dialog.alert("계고 정보는 수정할 수 없습니다.");
return;
}
let params = {
callPurpose : "update"

@ -0,0 +1,557 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- inner page html -->
<div class="content-wrapper">
<!-- Content -->
<div class="container-xxl flex-grow-1 px-0">
<c:set var="prefixName" scope="request">계고장 발송대상</c:set>
<!-- Page Body -->
<div class="card">
<div class="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();">
초기화
</button>
<span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
검색
</button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
엑셀
</button>
</span>
</div>
<!-- / 상단 버튼 -->
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<!-- 메인 조건 -->
<div class="container-search">
<div class="row g-1">
<!-- 업무구분 -->
<div class="col-12">
<label class="form-label fw-bold form-search-title">업무구분</label>
<span class="form-search-linebox">
<c:forEach items="${FIM054List}" var="item">
<label>
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
${item.value}
</label>
</c:forEach>
</span>
</div>
<!-- 계고일자 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title">계고일자</label>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schLevyExclYmdFrom--${pageName}" name="schLevyExclYmdFrom"
data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schLevyExclYmdTo--${pageName}" name="schLevyExclYmdTo"
data-fmt-type="day" title="종료 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<!-- 위반내역 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title">위반내역</label>
<select class="form-select" id="schVltnId--${pageName}" name="schVltnId">
<option value="">전체</option>
<c:forEach items="${FIM004List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</div>
<!-- 단속일자 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title">단속일자</label>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schCrdnYmdTo--${pageName}" name="schCrdnYmdTo"
data-fmt-type="day" title="종료 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<!-- 차량번호 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title">차량번호</label>
<input type="text" class="form-control w-px-150" id="schVhrno--${pageName}" name="schVhrno" />
</div>
<!-- 납부자명 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title">납부자명</label>
<input type="text" class="form-control w-px-150" id="schRtpyrNm--${pageName}" name="schRtpyrNm" />
</div>
<!-- 동적검색 -->
<div class="col-6">
<input type="hidden" id="by--${pageName}" name="by" />
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" />
<!-- 상세 검색조건 버튼 -->
<span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
<i class="bx bx-chevron-down"></i>
상세검색
</button>
</span>
</div>
</div>
</div>
<!-- / 메인 조건 -->
<!-- 상세 조건 -->
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
<div class="row g-1">
<!-- 등록일자 -->
<div class="col-6">
<select class="form-select" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
<option value="regDt">등록일자</option>
<option value="mdfcnDt">수정일자</option>
</select>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schRegDateFrom--${pageName}" name="schRegDateFrom"
data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schRegDateTo--${pageName}" name="schRegDateTo"
data-fmt-type="day" title="종료 날짜 선택">
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<!-- 등록자명, 수정자명 -->
<div class="col-6">
<select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
<option value="rgtr">등록자명</option>
<option value="mdfr">수정자명</option>
</select>
<input type="text" class="form-control" id="schDetailUserNm--${pageName}" name="schDetailUserNm" />
</div>
</div>
</div>
<!-- / 상세 조건 -->
</form>
<!-- / 검색 조건 영역 -->
<!-- 업무 버튼 및 건수 표시 -->
<div>
<span class="container-page-btn">
<!-- 건수, 페이지 표시 -->
<div class="d-flex flex-row justify-content-between">
<label class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></label>
<ul class="pagination pagination-primary" id="paging--${pageName}">
</ul>
</div>
<span class="container-window-btn-right">
<!-- 업무 버튼 -->
<button type="button" class="btn btn-primary" id="btnCreateWrng--${pageName}" title="계고장 발송 등록" onclick="fnCreateWrng${pageName}();">
계고장 발송 등록
</button>
<button type="button" class="btn btn-primary" id="btnUpdate--${pageName}" title="계고 수정" onclick="fnUpdate${pageName}();">
계고 수정
</button>
</span>
</span>
</div>
<!-- / 업무 버튼 및 건수 표시 -->
<!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive" id="table-responsive--${pageName}" style="overflow-x:scroll; height:480px; overflow-y:scroll;" >
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th class="cmn" style="width: 72px;">NO.</th>
<th class="cmn" style="width: 56px;">
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
</th>
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">계고일자</th>
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('LEVY_EXCL_RSN_NM', this.innerText, 'codeValue', 'FIM022');">계고사유</th>
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">단속금액</th>
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'ymd', '');">납부자생일</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
<th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn" style="width: 180px;">수정일시</th>
<th class="cmn" style="width: 140px;">수정사용자</th>
<th class="cmn dummy-th"></th>
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{LEVY_EXCL_ID}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center">
<input type="checkbox" class="form-check-input" value="{LEVY_EXCL_ID}" onchange="${pageName}Control.select('{LEVY_EXCL_ID}', this.checked);">
</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_YMD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_RSN_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT_FORMAT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
<td class="cmn dummy-td"></td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd">
<td valign="top" colspan="19" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<!-- / DataTables(그리드) -->
</div>
</div> <!-- <div class="wrapper-list"> -->
</div> <!-- <div class="card"> -->
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div>
</div>
<!-- / inner page html <div class="content-wrapper"> -->
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
// URL
var ${pageName}PrefixUrl = "/sndb/sndb01";
// 공통 코드
var FIM004 = new CommonCodes(${FIM004}, true);
var FIM005 = new CommonCodes(${FIM005}, true);
var FIM006 = new CommonCodes(${FIM006}, true);
var FIM061 = new CommonCodes(${FIM061}, true);
var FIM064 = new CommonCodes(${FIM064}, true);
/**************************************************************************
* DatasetControl
**************************************************************************/
var ${pageName}Control = new DatasetControl({
prefix : "wrngSndngTrgt"
, prefixName : "계고장 발송대상"
, infoSize : "lg"
, keymapper : info => info ? info.LEVY_EXCL_ID : ""
, dataGetter : obj => obj.wrngSndngTrgtList
, appendData : true
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
, formats : {
LEVY_EXCL_YMD : dateFormat
, CRDN_YMD_TM : datetimeFormat
, REG_DT : datetimeFormat
, MDFCN_DT : datetimeFormat
}
});
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
${pageName}Control.onDatasetChange = obj => {
renderList${pageName}();
$("#paging--${pageName}").setPagingInfo({
list : ${pageName}Control.dataset
, prefix : "paging--${pageName}"
, start : obj.${infoPrefix}Start
, totalSize : obj.${infoPrefix}Total
, fetchSize : obj.${infoPrefix}Fetch
, func : "${pageName}Control.load({index})"
});
${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
};
// 현재 선택 자료 변경 이벤트
${pageName}Control.onCurrentChange = item => {
if (!item) return;
let key = item.data.LEVY_EXCL_ID;
$("#tbody--${pageName}").setCurrentRow(key);
};
// 선택(체크) 변경 이벤트
${pageName}Control.onSelectionChange = selected => {
let ${infoPrefix}List = ${pageName}Control.dataset;
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
$("#tbody--${pageName} input[type='checkbox']").each(function() {
let checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val()));
});
$("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
};
// 개별총정보 dialog
${pageName}Control.getInfo = (crdnId) => {
if (crdnId == undefined || crdnId == null || crdnId == "") {
return;
}
let params = {
callControlName : "${pageName}Control"
, crdnId : crdnId
}
ajax.get({
url : ${pageName}Control.urls.getInfo
, data : params || {}
, success : resp => {
dialog.open({
id : "totalInfoMainDialog"
, title : "개별총정보"
, content : resp
, size : "xxl"
, init : () => { }
, onClose : () => { }
});
}
});
}
/**************************************************************************
*
**************************************************************************/
// DataTables에 click, dbclick 이벤트
renderList${pageName} = () => {
let ${infoPrefix}List = ${pageName}Control.dataset;
let empty = ${infoPrefix}List.empty;
let trs = empty ?
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
${infoPrefix}List.inStrings(
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
(str, dataItem) => str
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("LEVY_EXCL_ID") + "');")
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
);
$("#tbody--${pageName}").html(trs.join());
$("th input[type='checkbox']").prop("checked", false);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
// 업무구분 변경
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
initForm${pageName}();
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/list.do"); // 조회
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
// 업무에 따른 위반 내용
let vltnIdCode = [];
if (taskSeCd == "PVS") { // 주정차 위반
vltnIdCode = FIM004.list();
} else if (taskSeCd == "BPV") { // 전용차로 위반
vltnIdCode = FIM005.list();
} else if (taskSeCd == "DPV") { // 장애인 전용
vltnIdCode = FIM006.list();
} else if (taskSeCd == "ECA") { // 전기차 주차 위반
vltnIdCode = FIM061.list();
} else if (taskSeCd == "TPV") { // 밤샘 주차 위반
vltnIdCode = FIM064.list();
} else {
return;
}
$("#schVltnId--${pageName}").empty(); // 항목 초기화
$(vltnIdCode).each(function(index, item) {
$("#schVltnId--${pageName}").append("<option value='" + vltnIdCode[index].code +"'>" + vltnIdCode[index].value + "</option>");
})
}
// 검색 조건 파라미터 가져오기
fnGetParams${pageName} = () => {
let formFields = new FimsFormFields("#frmSearch--${pageName}");
let formData = formFields.get();
formData.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수
// 나중에 삭제
formData.sggCd = "41480"; // 시군구 코드 임시
return formData;
}
// 수정 dialog -> callback 추가
${pageName}Info = (params) => {
ajax.get({
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do?openerPageName=${pageName}")
, data : params || {}
, success : resp => {
dialog.open({
id : ${pageName}Control.prefixed("Dialog")
, title : ${pageName}Control.prefixName + " 정보"
, content : resp
, size : ${pageName}Control.infoSize
, init : () => { }
, onClose : () => { ${pageName}Control.load(${pageName}Control.query.pageNum); } // callback
});
}
});
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 화면 초기값 셋팅
initForm${pageName} = () => {
// 달력 초기화
initDatepicker("frmSearch--${pageName}");
$("#schLevyExclYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-30).date);
$("#schLevyExclYmdTo--${pageName}").datepicker("setDate", new Date());
${pageName}Control.dataset.clear();
}
// 이벤트
setEvent${pageName} = () => {
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
$("#frmSearch--${pageName}").find(".form-date").each(function() {
$(this).on("input", function() {
let value = this.value.replaceAll("-", "");
if (value.length > 7) {
this.value = value.substring(0, 4) + "-" + value.substring(4, 6) + "-" + value.substring(6);
} else if(value.length > 5) {
this.value = value.substring(0, 4) + "-" + value.substring(4);
}
});
});
// DataTables width 변경 조정
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
// DataTables 스크롤 이벤트
$("#table-responsive--${pageName}").scroll(function() {
let el = $(this);
if (el.scrollTop() == 0) {
return;
}
if (!${pageName}Control.tableRenderComplete) {
return;
}
let itemsCnt = ${pageName}Control.dataset._items.length;
let totCnt = ${pageName}Control.dataset.getValue("TOT_CNT"); // let totCnt = ${pageName}Control.dataset.getCurrent("item").data.TOT_CNT;
if (itemsCnt >= totCnt) {
return;
}
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
${pageName}Control.tableRenderComplete = false; // dataTables 에 자료 추가 완료
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
}
});
}
/**************************************************************************
* 버튼 clickEvent
**************************************************************************/
// 초기화
fnReset${pageName} = () => {
let taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
fnResetAndChangeBiz${pageName}(taskSeCd);
}
// 검색
fnSearchList${pageName} = () => {
// 검색조건
${pageName}Control.query = fnGetParams${pageName}();
${pageName}Control.query.delYn = "N"; // 삭제 여부
${pageName}Control.query.crdnDelYn = "N"; // 단속 대장 삭제 여부
${pageName}Control.load();
}
// 엑셀
fnExcel${pageName} = () => {
}
// 계고장 발송 등록
fnCreateWrng${pageName} = () => {
}
// 계고 수정
fnUpdate${pageName} = () => {
let levyExclId = ${pageName}Control.dataset.getValue("LEVY_EXCL_ID");
// 부과제외ID 가 없다면.. return
if (levyExclId == undefined || levyExclId == "") {
return;
}
let params = {
callPurpose : "update"
, sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드
, taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
, levyExclId : levyExclId
};
${pageName}Info(params);
}
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// 이벤트 설정
setEvent${pageName}();
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
// 업무구분 및 화면 초기 설정
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
fnResetAndChangeBiz${pageName}(defaultBizValue);
});
</script>

@ -201,8 +201,8 @@
<tr id="theadTr--${pageName}${pageDataName4}">
<th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn" style="width: 100px;">우편번호</th>
<th class="cmn" style="width: 360px;">전체주소</th>
<th class="cmn" style="width: 100px;">우편번호</th>
<th class="cmn dummy-th"></th>
</tr>
</thead>
@ -212,8 +212,8 @@
<tr data-key="{CHG_HSTRY_ID}">
<td class="cmn text-center" onclick="{onclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}">{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}">{ZIP}</td>
<td class="cmn text-start" onclick="{onclick}">{WHOL_ADDR}</td>
<td class="cmn text-center" onclick="{onclick}">{ZIP}</td>
<td class="cmn dummy-td"></td>
</tr>
</template>
@ -383,15 +383,6 @@
// 부과제외 선택 자료 변경 이벤트
${pageName}${pageDataName2}Control.onCurrentChange = item => {
${pageName}${pageDataName2}Fields.set(item);
// 계고는 수정하지 않는다..
let levyExclSeCd = item.data.LEVY_EXCL_SE_CD;
if (levyExclSeCd == "2") {
$("#btnUpdateLevyExcl--${pageName}").prop("disabled", true);
} else {
$("#btnUpdateLevyExcl--${pageName}").prop("disabled", false);
}
}
// 부과제외 dialog

Loading…
Cancel
Save