부과제외 수정.

main
jjh 1 year ago
parent d579cf35e5
commit ff7c3549c2

@ -5,10 +5,16 @@ import java.lang.String;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
/** /**
* *
* @author JoJH * <p> : , .
*/ *
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
@Getter @Getter
@Setter @Setter
public class Excl extends AbstractEntity { public class Excl extends AbstractEntity {
@ -19,11 +25,6 @@ public class Excl extends AbstractEntity {
*/ */
private String levyExclId; private String levyExclId;
/**
* ID
*/
// private String crdnId;
/** /**
* *
*/ */
@ -101,11 +102,6 @@ public class Excl extends AbstractEntity {
*/ */
private String opnnId; private String opnnId;
/**
* ID
*/
// private String crdnId;
/** /**
* *
*/ */
@ -232,9 +228,14 @@ public class Excl extends AbstractEntity {
private String ansCn; private String ansCn;
/** /**
* *
*/ */
private String ansDt; private String ansYmd;
/**
*
*/
private String ansTm;
/** /**
* *
@ -308,11 +309,6 @@ public class Excl extends AbstractEntity {
*/ */
private String crdnSeNm; private String crdnSeNm;
/**
* ID
*/
// private String rtpyrId;
/** /**
* *
*/ */
@ -767,11 +763,6 @@ public class Excl extends AbstractEntity {
*/ */
private String cvlcptLinkId; private String cvlcptLinkId;
/**
* ID
*/
// private String crdnId;
/** /**
* *
*/ */

@ -15,23 +15,31 @@ import cokr.xit.foundation.component.QueryRequest;
public class ExclQuery extends QueryRequest { public class ExclQuery extends QueryRequest {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
// 필수
private String sggCd; // 시군구 코드 private String sggCd; // 시군구 코드
private String taskSeCd; // 업무 구분 코드 private String taskSeCd; // 업무 구분 코드
// 공통
private String levyExclYmdFrom; // 부과 제외 시작 일자 private String delYn; // 삭제 여부
private String levyExclYmdTo; // 부과 제외 종료 일자 private String schDateOpt; // 검색 일자 구분
private String schDateFrom; // 검색 일자 시작
private String schDateTo; // 검색 일자 종료
private String schDetailDateOpt; // 상세 검색 일자 구분
private String schDetailDateFrom; // 상세 검색 일자 시작
private String schDetailDateTo; // 상세 검색 일자 종료
private String schDetailUserOpt; // 상세 검색 사용자 구분
private String schDetailUserNm; // 상세 검색 사용자 명
private String schDetailUserCd; // 상세 검색 사용자 코드
// 부과제외 TB_LEVY_EXCL
private String levyExclId; // 부과 제외 ID private String levyExclId; // 부과 제외 ID
private String levyExclSeCd; // 부과 제외 구분 코드 private String levyExclSeCd; // 부과 제외 구분 코드
// 의견제출 TB_OPNN_SBMSN
private String opnnId; // 의견 ID
private String opnnSbmsnSttsCd; // 의견 제출 상태 코드
private String delYn; // 삭제 여부 // 단속 TB_CRDN
private String vhrno; // 차량번호 private String vhrno; // 차량번호
// 납부자 TB_PAYER
private String rtpyrNo; // 납부자 번호 private String rtpyrNo; // 납부자 번호
private String rtpyrNm; // 납부자 명 private String rtpyrNm; // 납부자 명
private String schDateOpt; // 검색 조건 일자
private String schDateFrom; // 검색 시작 일자
private String schDateTo; // 검색 종료 일자
public String getSggCd() { public String getSggCd() {
return ifEmpty(sggCd, () -> null); return ifEmpty(sggCd, () -> null);
@ -53,26 +61,105 @@ public class ExclQuery extends QueryRequest {
return self(); return self();
} }
public String getLevyExclYmdFrom() { public String getDelYn() {
return ifEmpty(levyExclYmdFrom, () -> null); return ifEmpty(delYn, () -> null);
}
public <T extends ExclQuery> T setDelYn(String delYn) {
this.delYn = delYn;
return self();
}
public String getSchDateOpt() {
return ifEmpty(schDateOpt, () -> null);
}
public <T extends ExclQuery> T setSchDateOpt(String schDateOpt) {
this.schDateOpt = schDateOpt;
return self();
}
public String getSchDateFrom() {
return ifEmpty(schDateFrom, () -> null);
}
public <T extends ExclQuery> T setSchDateFrom(String schDateFrom) {
this.schDateFrom = schDateFrom;
return self();
}
public String getSchDateTo() {
return ifEmpty(schDateTo, () -> null);
}
public <T extends ExclQuery> T setSchDateTo(String schDateTo) {
this.schDateTo = schDateTo;
return self();
}
public String getSchDetailDateOpt() {
return ifEmpty(schDetailDateOpt, () -> null);
}
public <T extends ExclQuery> T setSchDetailDateOpt(String schDetailDateOpt) {
this.schDetailDateOpt = schDetailDateOpt;
return self();
}
public String getSchDetailDateFrom() {
return ifEmpty(schDetailDateFrom, () -> null);
}
public <T extends ExclQuery> T setSchDetailDateFrom(String schDetailDateFrom) {
this.schDetailDateFrom = schDetailDateFrom;
return self();
}
public String getSchDetailDateTo() {
return ifEmpty(schDetailDateTo, () -> null);
}
public <T extends ExclQuery> T setSchDetailDateTo(String schDetailDateTo) {
this.schDetailDateTo = schDetailDateTo;
return self();
}
public String getSchDetailUserOpt() {
return ifEmpty(schDetailUserOpt, () -> null);
} }
public <T extends ExclQuery> T setLevyExclYmdFrom(String levyExclYmdFrom) { public <T extends ExclQuery> T setSchDetailUserOpt(String schDetailUserOpt) {
this.levyExclYmdFrom = levyExclYmdFrom; this.schDetailUserOpt = schDetailUserOpt;
return self(); return self();
} }
public String getLevyExclYmdTo() { public String getSchDetailUserNm() {
return ifEmpty(levyExclYmdTo, () -> null); return ifEmpty(schDetailUserNm, () -> null);
} }
public <T extends ExclQuery> T setLevyExclYmdTo(String levyExclYmdTo) { public <T extends ExclQuery> T setSchDetailUserNm(String schDetailUserNm) {
this.levyExclYmdTo = levyExclYmdTo; this.schDetailUserNm = schDetailUserNm;
return self(); return self();
} }
public String getSchDetailUserCd() {
return ifEmpty(schDetailUserCd, () -> null);
}
public <T extends ExclQuery> T setSchDetailUserCd(String schDetailUserCd) {
this.schDetailUserCd = schDetailUserCd;
return self();
}
public String getLevyExclId() { public String getLevyExclId() {
return ifEmpty(levyExclId, () -> null); return ifEmpty(levyExclId, () -> null);
@ -94,15 +181,26 @@ public class ExclQuery extends QueryRequest {
return self(); return self();
} }
public String getDelYn() { public String getOpnnId() {
return ifEmpty(delYn, () -> null); return ifEmpty(opnnId, () -> null);
} }
public <T extends ExclQuery> T setDelYn(String delYn) { public <T extends ExclQuery> T setOpnnId(String opnnId) {
this.delYn = delYn; this.opnnId = opnnId;
return self();
}
public String getOpnnSbmsnSttsCd() {
return ifEmpty(opnnSbmsnSttsCd, () -> null);
}
public <T extends ExclQuery> T setOpnnSbmsnSttsCd(String opnnSbmsnSttsCd) {
this.opnnSbmsnSttsCd = opnnSbmsnSttsCd;
return self(); return self();
} }
public String getVhrno() { public String getVhrno() {
return ifEmpty(vhrno, () -> null); return ifEmpty(vhrno, () -> null);
} }
@ -133,34 +231,4 @@ public class ExclQuery extends QueryRequest {
return self(); return self();
} }
public String getSchDateOpt() {
return ifEmpty(schDateOpt, () -> null);
}
public <T extends ExclQuery> T setSchDateOpt(String schDateOpt) {
this.schDateOpt = schDateOpt;
return self();
}
public String getSchDateFrom() {
return ifEmpty(schDateFrom, () -> null);
}
public <T extends ExclQuery> T setSchDateFrom(String schDateFrom) {
this.schDateFrom = schDateFrom;
return self();
}
public String getSchDateTo() {
return ifEmpty(schDateTo, () -> null);
}
public <T extends ExclQuery> T setSchDateTo(String schDateTo) {
this.schDateTo = schDateTo;
return self();
}
} }

@ -12,14 +12,14 @@ import cokr.xit.foundation.data.DataObject;
/** DAO /** DAO
* *
* <p> : * <p> : .
* *
* <pre> * <pre>
* ============ ============ * ============ ============
* 2023-06-23 JoJH * 2023-06-23 JoJH
* ================================ * ================================
* </pre> * </pre>
*/ */
@Mapper("excl01Mapper") @Mapper("excl01Mapper")
public interface Excl01Mapper extends AbstractMapper { public interface Excl01Mapper extends AbstractMapper {

@ -58,4 +58,3 @@ public interface Excl01Service {
boolean remove(Excl excl); boolean remove(Excl excl);
} }

@ -14,14 +14,14 @@ import cokr.xit.foundation.data.DataObject;
/** Bean /** Bean
* *
* <p> : * <p> : DAO(Excl01Mapper)
* *
* <pre> * <pre>
* ============ ============ * ============ ============
* 2023-06-23 JoJH * 2023-06-23 JoJH
* ================================ * ================================
* </pre> * </pre>
*/ */
@Component("excl01Bean") @Component("excl01Bean")
public class Excl01Bean extends AbstractComponent { public class Excl01Bean extends AbstractComponent {

@ -14,7 +14,7 @@ import cokr.xit.foundation.data.DataObject;
/** . /** .
* *
* <p> : * <p> :
* *
* <pre> * <pre>
* ============ ============ * ============ ============

@ -6,11 +6,11 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.excl.Excl; import cokr.xit.fims.excl.Excl;
import cokr.xit.fims.excl.ExclQuery; import cokr.xit.fims.excl.ExclQuery;
import cokr.xit.fims.excl.dao.Excl02Mapper; import cokr.xit.fims.excl.dao.Excl02Mapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
/** Bean /** Bean
* *

@ -34,7 +34,7 @@ public class Excl01Controller extends ApplicationController {
@Resource(name="excl01Service") @Resource(name="excl01Service")
protected Excl01Service excl01Service; protected Excl01Service excl01Service;
/** (excl/excl01/010-main)) . /** (excl/excl01/010-main) .
* {@link #getLevyExclList(ExclQuery) } . * {@link #getLevyExclList(ExclQuery) } .
* @return /excl/excl01/010-main * @return /excl/excl01/010-main
*/ */
@ -42,14 +42,20 @@ public class Excl01Controller extends ApplicationController {
public ModelAndView main() { public ModelAndView main() {
ModelAndView mav = getLevyExclList(new ExclQuery().setPageNum(1)); ModelAndView mav = getLevyExclList(new ExclQuery().setPageNum(1));
// View(jsp)
mav.setViewName("fims/excl/excl01010-main"); mav.setViewName("fims/excl/excl01010-main");
mav.addObject("pageName", "excl01010-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM021", "FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM021", "FIM054");
mav.addObject("FIM021List", commonCodes.get("FIM021")); mav.addObject("FIM021List", commonCodes.get("FIM021"));
mav.addObject("FIM054List", commonCodes.get("FIM054")); mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM021", "FIM054"); addCodes(commonCodes, mav, "FIM021", "FIM054");
// View(jsp)에서 사용할 id 뒤에 붙일 suffix
mav.addObject("pageName", "excl01010");
// return mav.addObject("levyExclList", toJson(mav.getModel().get("levyExclList")));
return mav; return mav;
} }
@ -68,7 +74,7 @@ public class Excl01Controller extends ApplicationController {
public ModelAndView getLevyExclList(ExclQuery req) { public ModelAndView getLevyExclList(ExclQuery req) {
List<?> result = excl01Service.getLevyExclList(setFetchSize(req)); List<?> result = excl01Service.getLevyExclList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "excl"); return setCollectionInfo(new ModelAndView("jsonView"), result, "levyExcl");
} }
/** . /** .

@ -43,7 +43,7 @@ public class Excl02Controller extends ApplicationController {
ModelAndView mav = getOpnnSbmsnList(new ExclQuery().setPageNum(1)); ModelAndView mav = getOpnnSbmsnList(new ExclQuery().setPageNum(1));
// View(jsp) // View(jsp)
mav.setViewName("/fims/excl/excl02010-main"); mav.setViewName("fims/excl/excl02010-main");
// View(jsp)에서 사용할 공통코드를 조회 // View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM031", "FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM031", "FIM054");
@ -58,7 +58,7 @@ public class Excl02Controller extends ApplicationController {
// return mav.addObject("opnnSbmsnList", toJson(mav.getModel().get("opnnSbmsnList"))); // return mav.addObject("opnnSbmsnList", toJson(mav.getModel().get("opnnSbmsnList")));
return mav; return mav;
} }
//
/** .<br /> /** .<br />
* {@link Excl02Service#getOpnnSbmsnList(ExclQuery)} * {@link Excl02Service#getOpnnSbmsnList(ExclQuery)}
* @param req * @param req

@ -25,60 +25,32 @@
<result property="delDt" column="DEL_DT" /> <!-- 삭제 일시 --> <result property="delDt" column="DEL_DT" /> <!-- 삭제 일시 -->
<result property="dltr" column="DLTR" /> <!-- 삭제자 --> <result property="dltr" column="DLTR" /> <!-- 삭제자 -->
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 --> <result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
<!-- TB_CRDN 단속 대장 C -->
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
<result property="taskSeNm" column="TASK_SE_NM" /> <!-- 업무 구분 명 -->
<result property="crdnSeCd" column="CRDN_SE_CD" /> <!-- 단속 구분 코드 -->
<result property="crdnSeNm" column="CRDN_SE_NM" /> <!-- 단속 구분 명 -->
<result property="crdnYmdTm" column="CRDN_YMD_TM" /> <!-- 단속 일시 -->
<result property="vhrno" column="VHRNO" /> <!-- 차량번호 -->
<result property="crdnPlc" column="CRDN_PLC" /> <!-- 단속 장소 -->
<result property="dtlCrdnPlc" column="DTL_CRDN_PLC" /> <!-- 상세 단속 장소 -->
<result property="crdnSpareaCd" column="CRDN_SPAREA_CD" /> <!-- 단속 특별구역 코드 -->
<result property="crdnSpareaNm" column="CRDN_SPAREA_NM" /> <!-- 단속 특별구역 명 -->
<result property="advntceBgngYmd" column="ADVNTCE_BGNG_YMD" /> <!-- 사전통지 시작 일자 -->
<result property="advntceDudtYmd" column="ADVNTCE_DUDT_YMD" /> <!-- 사전통지 납기 일자 -->
<result property="crdnSttsCd" column="CRDN_STTS_CD" /> <!-- 단속 상태 코드 -->
<result property="crdnSttsNm" column="CRDN_STTS_NM" /> <!-- 단속 상태 명 -->
<!-- TB_PAYER 납부자 대장 D -->
<result property="rtpyrId" column="RTPYR_ID" /> <!-- 납부자 ID -->
<result property="rtpyrSeCd" column="RTPYR_SE_CD" /> <!-- 납부자 구분 코드 -->
<result property="rtpyrSeNm" column="RTPYR_SE_NM" /> <!-- 납부자 구분 명 -->
<result property="rtpyrNo" column="RTPYR_NO" /> <!-- 납부자 번호 -->
<result property="rtpyrNm" column="RTPYR_NM" /> <!-- 납부자 명 -->
<result property="rtpyrBrdt" column="RTPYR_BRDT" /> <!-- 납부자 생년월일 -->
<result property="rtpyrBrdtFormat" column="RTPYR_BRDT_FORMAT" /> <!-- 납부자 생년월일_형식 -->
<result property="zip" column="ZIP" /> <!-- 우편번호 -->
<result property="addr" column="ADDR" /> <!-- 주소 -->
<result property="dtlAddr" column="DTL_ADDR" /> <!-- 상세 주소 -->
<!-- TB_CRDN_CVLCPT 단속 민원 대장 E -->
<result property="cvlcptLinkId" column="CVLCPT_LINK_ID" /> <!-- 민원 연계 ID -->
<result property="cvlcptRcptYmd" column="CVLCPT_RCPT_YMD" /> <!-- 민원 접수 일자 -->
<result property="cvlcptAplyNo" column="CVLCPT_APLY_NO" /> <!-- 민원 신청 번호 -->
<result property="cvlcptRcptNo" column="CVLCPT_RCPT_NO" /> <!-- 민원 접수 번호 -->
<result property="cvlcptAplcntNm" column="CVLCPT_APLCNT_NM" /> <!-- 민원 신청인 명 -->
<result property="cvlcptPrcsPicNm" column="CVLCPT_PRCS_PIC_NM" /> <!-- 민원 처리 담당자 명 -->
</resultMap> </resultMap>
<sql id="select"> <sql id="select">
SELECT LEVY_EXCL_ID /* 부과 제외 ID */ SELECT A.LEVY_EXCL_ID /* 부과 제외 ID */
, CRDN_ID /* 단속 ID */ , A.CRDN_ID /* 단속 ID */
, LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */ , A.LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */
, LEVY_EXCL_YMD /* 부과 제외 일자 */ , A.LEVY_EXCL_YMD /* 부과 제외 일자 */
, LEVY_EXCL_RSN_CD /* 부과 제외 사유 코드 */ , A.LEVY_EXCL_RSN_CD /* 부과 제외 사유 코드 */
, ETC_CN /* 기타 내용 */ , A.ETC_CN /* 기타 내용 */
, DEL_YN /* 삭제 여부 */ , A.DEL_YN /* 삭제 여부 */
, REG_DT /* 등록 일시 */ , A.REG_DT /* 등록 일시 */
, RGTR /* 등록자 */ , A.RGTR /* 등록자 */
, MDFCN_DT /* 수정 일시 */ , A.MDFCN_DT /* 수정 일시 */
, MDFR /* 수정자 */ , A.MDFR /* 수정자 */
, DEL_DT /* 삭제 일시 */ , A.DEL_DT /* 삭제 일시 */
, DLTR /* 삭제자 */ , A.DLTR /* 삭제자 */
, DEL_RSN /* 삭제 사유 */ , A.DEL_RSN /* 삭제 사유 */
FROM TB_LEVY_EXCL FROM TB_LEVY_EXCL A
</sql> </sql>
<select id="selectLevyExcls" parameterType="map" resultMap="levyExclRow">/* 부과제외 대장 객체 가져오기(excl01Mapper.selectLevyExcls) */
<include refid="select" />
WHERE A.LEVY_EXCL_ID = #{levyExclId} /* 부과 제외 ID */
<include refid="utility.orderBy" />
</select>
<sql id="selectList"> <sql id="selectList">
SELECT A.LEVY_EXCL_ID /* 부과 제외 ID */ SELECT A.LEVY_EXCL_ID /* 부과 제외 ID */
, A.CRDN_ID /* 단속 ID */ , A.CRDN_ID /* 단속 ID */
@ -132,45 +104,69 @@
</sql> </sql>
<select id="selectLevyExclList" parameterType="map" resultType="dataobject">/* 부과제외 대장 목록 조회(excl01Mapper.selectLevyExclList) */ <select id="selectLevyExclList" parameterType="map" resultType="dataobject">/* 부과제외 대장 목록 조회(excl01Mapper.selectLevyExclList) */
<include refid="utility.paging-prefix" /> <include refid="utility.paging-prefix" />
<include refid="selectList" /> <include refid="selectList" />
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */
WHERE A.DEL_YN = 'N' /* 삭제 여부 */
AND C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */ AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
<if test="schDateFrom != null"> <choose>
AND A.LEVY_EXCL_YMD <![CDATA[ >= ]]> #{levyExclYmdFrom} <when test="schDateOpt == 'levyExclYmd'">
</if> <if test="schDateFrom != null">
<if test="schDateTo != null"> AND A.LEVY_EXCL_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 부과 제외 일자 일자 시작 */
AND A.LEVY_EXCL_YMD <![CDATA[ <= ]]> #{levyExclYmdTo} </if>
</if> <if test="schDateTo != null">
<if test = "levyExclSeCd != null"> AND A.LEVY_EXCL_YMD <![CDATA[ <= ]]> #{schDateTo} /* 부과 제외 일자 일자 종료 */
AND A.LEVY_EXCL_SE_CD = #{levyExclSeCd} </if>
</if> </when>
<if test = "delYn != null"> <otherwise>
AND A.DEL_YN = #{delYn} </otherwise>
</choose>
<if test = "levyExclSeCd != null">
AND A.LEVY_EXCL_SE_CD = #{levyExclSeCd} /* 부과 제외 구분 코드 */
</if> </if>
<if test="schDateOpt == 'regDt'"> <choose>
<if test="schDateFrom != null"> <when test="schDetailDateOpt == 'regDt'">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} <if test="schDetailDateFrom != null">
</if> AND SUBSTR(A.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} /* 등록 일자 일자 시작 */
<if test="schDateTo != null"> </if>
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} <if test="schDetailDateTo != null">
</if> AND SUBSTR(A.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} /* 등록 일자 일자 종료 */
</if> </if>
<if test = "term != null"> </when>
AND A.${by} LIKE CONCAT('%', #{term}, '%') <when test="schDetailDateOpt == 'mdfcnDt'">
</if> <if test="schDetailDateFrom != null">
<include refid="utility.orderBy" /> AND SUBSTR(A.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} /* 수정 일자 일자 시작 */
<include refid="utility.paging-suffix" /> </if>
</select> <if test="schDetailDateTo != null">
AND SUBSTR(A.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} /* 수정 일자 일자 종료 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schDetailUserOpt == 'rgtr'">
<if test="schDetailUserCd != null">
AND A.RGTR = #{schDetailUserCd} /* 등록자 코드 */
</if>
</when>
<when test="schDetailUserOpt == 'mdfr'">
<if test="schDetailUserCd != null">
AND A.MDFR = #{schDetailUserCd} /* 수정자 코드 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<select id="selectLevyExcls" parameterType="map" resultMap="levyExclRow">/* 부과제외 대장 객체 가져오기(excl01Mapper.selectLevyExcls) */ <include refid="utility.orderBy" />
<include refid="select" /> <include refid="utility.paging-suffix" />
WHERE A.LEVY_EXCL_ID = #{levyExclId}
<include refid="utility.orderBy" />
</select> </select>
<insert id="insertLevyExcl" parameterType="map">/* 부과제외 대장 등록(excl01Mapper.insertLevyExcl) */ <insert id="insertLevyExcl" parameterType="map">/* 부과제외 대장 등록(excl01Mapper.insertLevyExcl) */
INSERT INTO TB_LEVY_EXCL ( INSERT
INTO TB_LEVY_EXCL (
LEVY_EXCL_ID /* 부과 제외 ID */ LEVY_EXCL_ID /* 부과 제외 ID */
, CRDN_ID /* 단속 ID */ , CRDN_ID /* 단속 ID */
, LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */ , LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */
@ -185,7 +181,7 @@
, DEL_DT /* 삭제 일시 */ , DEL_DT /* 삭제 일시 */
, DLTR /* 삭제자 */ , DLTR /* 삭제자 */
, DEL_RSN /* 삭제 사유 */ , DEL_RSN /* 삭제 사유 */
) )
VALUES ( VALUES (
#{levyExclId} /* 부과 제외 ID */ #{levyExclId} /* 부과 제외 ID */
, #{crdnId} /* 단속 ID */ , #{crdnId} /* 단속 ID */
@ -201,7 +197,7 @@
, #{delDt} /* 삭제 일시 */ , #{delDt} /* 삭제 일시 */
, #{dltr} /* 삭제자 */ , #{dltr} /* 삭제자 */
, #{delRsn} /* 삭제 사유 */ , #{delRsn} /* 삭제 사유 */
) )
</insert> </insert>
<update id="updateLevyExcl" parameterType="map">/* 부과제외 대장 수정(excl01Mapper.updateLevyExcl) */ <update id="updateLevyExcl" parameterType="map">/* 부과제외 대장 수정(excl01Mapper.updateLevyExcl) */

@ -95,9 +95,9 @@
</sql> </sql>
<select id="selectOpnnSbmsns" parameterType="map" resultMap="opnnSbmsnRow">/* 의견제출 대장 객체 가져오기(opnnSbmsnMapper.selectOpnnSbmsns) */ <select id="selectOpnnSbmsns" parameterType="map" resultMap="opnnSbmsnRow">/* 의견제출 대장 객체 가져오기(opnnSbmsnMapper.selectOpnnSbmsns) */
<include refid="select" /> <include refid="select" />
WHERE A.OPNN_ID = #{opnnId} /* 의견 ID */ WHERE A.OPNN_ID = #{opnnId} /* 의견 ID */
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
</select> </select>
<sql id="selectList"> <sql id="selectList">
@ -170,34 +170,35 @@
</sql> </sql>
<select id="selectOpnnSbmsnList" parameterType="map" resultType="dataobject">/* 의견제출 대장 목록 조회(opnnSbmsnMapper.selectOpnnSbmsnList) */ <select id="selectOpnnSbmsnList" parameterType="map" resultType="dataobject">/* 의견제출 대장 목록 조회(opnnSbmsnMapper.selectOpnnSbmsnList) */
<include refid="utility.paging-prefix" /> <include refid="utility.paging-prefix" />
<include refid="selectList" /> <include refid="selectList" />
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */ WHERE A.DEL_YN = 'N' /* 삭제 여부 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */ AND C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
<choose> <choose>
<when test="schDateOpt == 'rcptYmd'"> <when test="schDateOpt == 'rcptYmd'">
<if test="schDateFrom != null"> <if test="schDateFrom != null">
AND A.RCPT_YMD <![CDATA[ >= ]]> #{schDateFrom} AND A.RCPT_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 접수 일자 시작 */
</if> </if>
<if test="schDateTo != null"> <if test="schDateTo != null">
AND A.RCPT_YMD <![CDATA[ <= ]]> #{schDateTo} AND A.RCPT_YMD <![CDATA[ <= ]]> #{schDateTo} /* 접수 일자 종료 */
</if> </if>
</when> </when>
<when test="schDateOpt == 'ansYmd'"> <when test="schDateOpt == 'ansYmd'">
<if test="schDateFrom != null"> <if test="schDateFrom != null">
AND A.ANS_YMD <![CDATA[ >= ]]> #{schDateFrom} AND A.ANS_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 답변 일자 시작 */
</if> </if>
<if test="schDateTo != null"> <if test="schDateTo != null">
AND A.ANS_YMD <![CDATA[ <= ]]> #{schDateTo} AND A.ANS_YMD <![CDATA[ <= ]]> #{schDateTo} /* 답변 일자 종료 */
</if> </if>
</when> </when>
<when test="schDateOpt == 'crdnYmd'"> <when test="schDateOpt == 'crdnYmd'">
<if test="schDateFrom != null"> <if test="schDateFrom != null">
AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom} AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 단속 일자 시작 */
</if> </if>
<if test="schDateTo != null"> <if test="schDateTo != null">
AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo} AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo} /* 단속 일자 종료 */
</if> </if>
</when> </when>
<otherwise> <otherwise>
@ -206,9 +207,43 @@
<if test="opnnSbmsnSttsCd != null"> <if test="opnnSbmsnSttsCd != null">
AND A.OPNN_SBMSN_STTS_CD = #{opnnSbmsnSttsCd} AND A.OPNN_SBMSN_STTS_CD = #{opnnSbmsnSttsCd}
</if> </if>
<choose>
<when test="schDetailDateOpt == 'regDt'">
<if test="schDetailDateFrom != null">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} /* 등록 일자 일자 시작 */
</if>
<if test="schDetailDateTo != null">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} /* 등록 일자 일자 종료 */
</if>
</when>
<when test="schDetailDateOpt == 'mdfcnDt'">
<if test="schDetailDateFrom != null">
AND SUBSTR(A.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} /* 수정 일자 일자 시작 */
</if>
<if test="schDetailDateTo != null">
AND SUBSTR(A.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} /* 수정 일자 일자 종료 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schDetailUserOpt == 'rgtr'">
<if test="schDetailUserCd != null">
AND A.RGTR = #{schDetailUserCd} /* 등록자 코드 */
</if>
</when>
<when test="schDetailUserOpt == 'mdfr'">
<if test="schDetailUserCd != null">
AND A.MDFR = #{schDetailUserCd} /* 수정자 코드 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
<include refid="utility.paging-suffix" /> <include refid="utility.paging-suffix" />
</select> </select>
<insert id="insertOpnnSbmsn" parameterType="map">/* 의견제출 대장 등록(opnnSbmsnMapper.insertOpnnSbmsn) */ <insert id="insertOpnnSbmsn" parameterType="map">/* 의견제출 대장 등록(opnnSbmsnMapper.insertOpnnSbmsn) */

@ -33,7 +33,8 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info"> <table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
<thead> <thead>
<tr><th tabindex="0" style="width: 158.828px; text-align:center;"><input onchange="${infoPrefix}Control.select(this.checked);" type="checkbox" class="form-check-input"></th> <tr><th tabindex="0" style="width: 158.828px; text-align:center;">
<input onchange="${infoPrefix}Control.select(this.checked);" type="checkbox" class="form-check-input"></th>
<th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">계정</th> <th class="sorting sorting_asc" aria-sort="ascending" style="width: 223.719px;">계정</th>
<th class="sorting" style="width: 146.156px;">이름</th> <th class="sorting" style="width: 146.156px;">이름</th>
<th class="sorting" style="width: 195.688px;">이메일</th> <th class="sorting" style="width: 195.688px;">이메일</th>

@ -3,330 +3,395 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container-xxl flex-grow-1 px-0">
<c:set var="prefixName" scope="request">부과제외 자료 조회</c:set> <%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%>
<c:set var="prefixName" scope="request">부과제외</c:set>
<!-- Page Body -->
<div class="card"> <div class="card">
<div class="wrapper-list"> <div class="wrapper-list">
<div> <div>
<div class="container-page-btn"> <!-- 상단 버튼 -->
<button type="button" class="btn btn-outline-dark">초기화</button> <div class="container-page-btn">
<span class="container-window-btn-right"> <button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button> <span class="container-window-btn-right">
</span> <button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
</div> <button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀">엑셀</button>
</span>
<form id="frmSearch--${pageName}" name="frmSearch"> </div>
<div class="container-search"> <!-- / 상단 버튼 -->
<div class="row g-1">
<div class="col-12"> <!-- 검색 조건 영역 -->
<label class="form-label fw-bold form-search-title">업무구분</label> <form id="frmSearch--${pageName}" name="frmSearch">
<span class="form-search-linebox"> <!-- 메인 조건 -->
<div class="container-search">
<div class="row g-1">
<!-- 업무구분 -->
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title" for="rdoTaskSeCd--${pageName}">업무구분</label>
</div>
<div class="col-11">
<span class="form-search-linebox">
<c:forEach items="${FIM054List}" var="item"> <c:forEach items="${FIM054List}" var="item">
<label> <label>
<input name="taskSeCd" type="radio" value="${item.code}" <input type="radio" class="form-check-input" id="rdoTaskSeCd--${pageName}" name="taskSeCd" alt="업무구분"
class="form-check-input" alt="업무구분" value="${item.code}"
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);"> onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);"
required>
${item.value} ${item.value}
</label> </label>
</c:forEach> </c:forEach>
</span> </span>
</div> </div>
<div class="col-6"> <!-- 부과제외일자 -->
<label class="form-label fw-bold form-search-title">부과제외일자</label> <div class="col-1 text-end">
<span class="form-search-linebox"> <select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt">
<input type="text" id="levyExclYmdFrom--${pageName}" name="levyExclYmdFrom" class="form-control form-date" <option value="levyExclYmd">부과제외일자</option>
data-fmt-type="day" title="시작 날짜 선택" /> </select>
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> </div>
~ <div class="col-5">
<input type="text" id="levyExclYmdTo--${pageName}" name="levyExclYmdTo" class="form-control form-date" <span class="form-search-linebox">
data-fmt-type="day" title="종료 날짜 선택"> <input type="text" class="form-control form-date" id="schDateFrom--${pageName}" name="schDateFrom"
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> data-fmt-type="day" title="시작 날짜 선택" />
</span> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</div> ~
<div class="col-6"> <input type="text" class="form-control form-date" id="schDateTo--${pageName}" name="schDateTo"
<label class="form-label fw-bold form-search-title">부과제외구분</label> data-fmt-type="day" title="종료 날짜 선택" />
<select id="levyExclSeCd--${pageName}" name="levyExclSeCd" class="form-select"> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<!-- 부과제외구분 -->
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">부과제외구분</label>
</div>
<div class="col-5">
<select id="levyExclSeCd--${pageName}" name="levyExclSeCd" class="form-select">
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${FIM021List}" var="item"> <c:forEach items="${FIM021List}" var="item">
<option value="${item.code}">${item.value}</option> <option value="${item.code}">${item.value}</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
<div class="col-6"> <!-- 차량번호 -->
<label class="form-label fw-bold form-search-title">차량번호</label> <div class="col-1 text-end">
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" /> <label class="form-label fw-bold form-search-title">차량번호</label>
</div> </div>
<div class="col-6"> <div class="col-5">
<label class="form-label fw-bold form-search-title">납부자명</label> <input type="text" class="form-control" id="vhrno--${pageName}" name="vhrno" />
<input type="text" id="rtpyrNm--${pageName}" name="rtpyrNm" class="form-control" /> </div>
</div> <!-- 납부자명 -->
<div class="col-12"> <div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">납부자명</label>
</div>
<div class="col-5">
<input type="text" class="form-control" id="rtpyrNm--${pageName}" name="rtpyrNm" />
</div>
<!-- 동적검색 -->
<div class="col-12">
<input type="hidden" id="by--${pageName}" name="by" /> <input type="hidden" id="by--${pageName}" name="by" />
<input type="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" /> <input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="text" id="term--${pageName}" name="term" class="form-control" /> <input type="text" class="form-control" id="term--${pageName}" name="term" />
<span class="flr"> <!-- 상세 검색조건 버튼 -->
<button type="button" class="btn btn-open-detail" <span class="flr">
data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}"> <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세조회조건 상세검색조건
</button> </button>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <!-- / 메인 조건 -->
<div class="row">
<div class="col-6"> <!-- 상세 조건 -->
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select"> <div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
<option value="">선택</option> <div class="row">
<option value="regDt">등록일자</option> <!-- 등록일자, 수정일자 -->
<option value="mdfcnDt">수정일자</option> <div class="col-1 text-end">
</select> <label class="form-label fw-bold form-search-title">일자검색</label>
<span class="form-search-linebox"> </div>
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom" class="form-control form-date" <div class="col-5">
data-fmt-type="day" title="시작 날짜 선택" /> <select class="form-select" id="schDetailDateOpt--${pageName}" name="schDetailDateOpt">
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <option value="">조건선택</option>
<option value="regDt">등록일자</option>
<option value="mdfcnDt">수정일자</option>
</select>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schDetailDateFrom--${pageName}" name="schDetailDateFrom"
data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~ ~
<input type="text" id="schDateTo--${pageName}" name="schDateTo" class="form-control form-date" <input type="text" class="form-control form-date" id="schDetailDateTo--${pageName}" name="schDetailDateTo"
data-fmt-type="day" title="종료 날짜 선택"> data-fmt-type="day" title="종료 날짜 선택">
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span> </span>
</div> </div>
<div class="col-6"> <!-- 등록자명, 수정자명 -->
<label class="form-label fw-bold form-search-title">자료상태</label> <div class="col-1 text-end">
<select id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select"> <label class="form-label fw-bold form-search-title">사용자검색</label>
<option value="">전체</option> </div>
<c:forEach items="${FIM010List}" var="item"> <div class="col-5">
<option value="${item.code}">${item.value}</option> <select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
</c:forEach> <option value="">조건선택</option>
</select> <option value="rgtr">등록자명</option>
</div> <option value="mdfr">수정자명</option>
</div> </select>
</div> <input type="text" class="form-control" id="schDetailUserNm--${pageName}" name="schDetailUserNm" />
</div>
</div>
</div>
<!-- / 상세 조건 -->
</form> </form>
<div> <!-- / 검색 조건 영역 -->
<span class="container-page-btn">
<a href="#" class="btn btn-blue" id="" title="업무처리1">업무 처리1</a> <!-- 업무 버튼 및 건수 표시 -->
<a href="#" class="btn btn-blue" id="" title="업무처리2">업무 처리2</a> <div>
<span class="container-page-btn">
<!-- 업무 버튼 -->
<a href="#" class="btn btn-blue" id="" title="업무처리1">업무 처리1</a>
<a href="#" class="btn btn-blue" id="" title="업무처리2">업무 처리2</a>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<div class="d-flex flex-row justify-content-between"> <!-- 건수, 페이지 표시 -->
<label id="crdnPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label> <div class="d-flex flex-row justify-content-between">
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary"> <label id="paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
</ul> <ul id="paging--${pageName}" class="pagination pagination-primary">
</ul>
</div> </div>
</span> </span>
</span> </span>
</div> </div>
<!-- / 업무 버튼 및 건수 표시 -->
<!-- 그리드 -->
<div class="card-datatable text-nowrap"> <!-- DataTables(그리드) -->
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div class="card-datatable text-nowrap">
<div id="table-responsive--${pageName}" class="table-responsive" <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
style="overflow-x: scroll;height:400px;overflow-y: scroll;"> <div id="table-responsive--${pageName}" class="table-responsive" style="overflow-x:scroll; height:400px; overflow-y:scroll;" >
<table id="DataTables_Table_0--${pageName}" <table class="datatables-ajax table table-bordered dataTable no-footer"
class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
aria-describedby="DataTables_Table_0_info"
>
<thead> <thead>
<tr id="exclTheadTr--${pageName}"> <tr id="theadTr--${pageName}" style="text-align:center;">
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 24px;">NO.</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 24px;">
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">부과제외일자</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">부과제외구분명</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">부과제외사유</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">기타내용</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">민원접수번호</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">민원접수일자</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">민원신청인명</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">차량번호</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">위반일시</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">위반장소</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">납부자명</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">처리상태명</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록일시</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">등록자</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">수정일시</th>
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 120px;">수정자</th>
</tr> </tr>
</thead> </thead>
<tbody id="exclTbody--${pageName}"> <tbody id="tbody--${pageName}">
</tbody> </tbody>
<template id="${infoPrefix}Row">
<tr data-key="{LEVY_EXCL_ID}">
<td style="text-align:center;" {onclick} {ondblclick}>{ROW_NUM}</td>
<td style="text-align:center;">
<input value="{LEVY_EXCL_ID}" onchange="${pageName}Control.select('{LEVY_EXCL_ID}', this.checked);" type="checkbox" class="form-check-input">
</td>
<td style="text-align:center;" {onclick} {ondblclick}>{LEVY_EXCL_YMD}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{LEVY_EXCL_SE_NM}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{LEVY_EXCL_RSN_NM}</td>
<td style="text-align:left;" {onclick} {ondblclick}>{ETC_CN}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{CVLCPT_RCPT_NO}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{CVLCPT_RCPT_YMD}</td>
<td style="text-align:left;" {onclick} {ondblclick}>{CVLCPT_APLCNT_NM}</td>
<td style="text-align:left;" {onclick} {ondblclick}>{VHRNO}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_YMD_TM}</td>
<td style="text-align:left;" {onclick} {ondblclick}>{CRDN_PLC}</td>
<td style="text-align:left;" {onclick} {ondblclick}>{RTPYR_NM}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{CRDN_STTS_NM}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{REG_DT}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{RGTR}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{MDFCN_DT}</td>
<td style="text-align:center;" {onclick} {ondblclick}>{MDFR}</td>
</tr>
</template>
<template id="${infoPrefix}NotFound">
<tr class="odd">
<td valign="top" colspan="14" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table> </table>
</div> </div>
</div> </div>
</div><!-- /그리드 --> </div>
<!-- / DataTables(그리드) -->
</div> </div>
</div> </div>
</div><!-- <div class="card"> --> <!-- / Wrapper-list -->
</div><!-- <div class="container-xxl flex-grow-1 px-0"> --> </div>
<!-- / Card -->
</div>
<!-- / Content -->
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" /> <jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
</div> </div>
<!-- <div class="content-wrapper"> --> <!-- Content wrapper -->
<!-- js -->
<script src="<c:url value="/resources/js/fims/excl/excl01.js?${ver}"/>"></script>
<script> <script>
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
// Control 생성
var ${pageName}Control = new LevyExclControl();
// 공통코드
var FIM021 = new CommonCodes(${FIM021}); var FIM021 = new CommonCodes(${FIM021});
var FIM054 = new CommonCodes(${FIM054}); var FIM054 = new CommonCodes(${FIM054});
pageObject["${pageName}"] = {}; // script 진입
$(document).ready(function() { $(document).ready(function() {
var thisPO = pageObject["${pageName}"]; // 검색조건 초기값 셋팅
initSearch${pageName}();
thisPO.exclControl = new DatasetControl({
prefix:"excl",
prefixName:"부과제외",
infoSize:"xl",
urls : {
load : "",
getInfo : ""
},
formats: {
LEVY_EXCL_YMD : dateFormat
, CVLCPT_RCPT_YMD : dateFormat
, CRDN_YMD_TM : datetimeFormat
, REG_DT : datetimeFormat
, MDFCN_DT : datetimeFormat
},
keymapper:info => info ? info.LEVY_EXCL_ID : "",
dataGetter:obj => obj.exclList,
appendData:true
});
thisPO.exclControl.onDatasetChange = obj => { // 이벤트
setEvent${pageName}();
var prefix = obj.infoPrefix; });
thisPO.renderExclList(obj);
$("#exclPaging--${pageName}").setPagingInfo({
list: thisPO.exclControl.dataset,
prefix: "exclPaging--${pageName}",
start: obj[prefix+"Start"],
totalSize: obj[prefix+"Total"],
fetchSize: obj[prefix+"Fetch"],
func: "pageObject['${pageName}'].exclControl.load({index})"
});
};
thisPO.fnResetAndChangeBiz = taskSeCd => {
$("#exclTbody--${pageName}").html("");
thisPO.exclControl.urls.load = wctx.url("/excl/excl01/010/list.do");
thisPO.exclControl.urls.getInfo = wctx.url("/sprt/sprt01/020/info.do");
}
thisPO.searchExclList = () => {
thisPO.exclControl.query = thisPO.getParams();
$("#exclTbody--${pageName}").html("");
thisPO.exclControl.load(1);
}
thisPO.scrollExclList = () => {
thisPO.exclControl.load(thisPO.exclControl.query.pageNum + 1);
}
thisPO.renderExclList = data => {
if(!thisPO.exclControl.appendData){
$("#exclTbody--${pageName}").html("");
}
var exclList = thisPO.exclControl.dataset;
var empty = exclList.empty;
var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : exclList.inStrings(thisPO.tbodyTemplate.found);
$("#exclTbody--${pageName}").html(trs.join());
//보안모드
if($("#securityMode--top").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
}
thisPO.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var data = formFields.get();
data.fetchSize = 30;
// 시군구 코드 임시
data.sggCd = "41480";
return data;
}
/* *******************************
* Grid
******************************* */
thisPO.gridColumns = [
, { header: '부과제외ID', name: 'LEVY_EXCL_ID', hidden: true }
, { header: '단속ID', name: 'CRDN_ID', hidden: true }
, { header: '부과제외구분명', name: 'LEVY_EXCL_SE_NM', width: 80, className: 'text-center' }
, { header: '부과제외일자', name: 'LEVY_EXCL_YMD', width: 80, className: 'text-center' }
, { header: '부과제외사유코드', name: 'LEVY_EXCL_RSN_NM', width: 80, className: 'text-center' }
, { header: '기타내용', name: 'ETC_CN', width: 80, className: 'text-left' }
, { header: '민원접수번호', name: 'CVLCPT_RCPT_NO', width: 150, className: 'text-center' }
, { header: '민원접수일자', name: 'CVLCPT_RCPT_YMD', width: 80, className: 'text-center' }
, { header: '민원신청인명', name: 'CVLCPT_APLCNT_NM', width: 80, className: 'text-left' }
, { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-left' }
, { header: '단속구분', name: 'CRDN_SE_NM', width: 100, className: 'text-center' }
, { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }
, { header: '위반장소', name: 'CRDN_PLC', width: 150, className: 'text-left' }
, { header: '납부자명', name: 'RTPYR_NM', width: 110, className: 'text-left privacy' }
, { header: '납부자생일', name: 'RTPYR_BRDT_FORMAT', width: 110, className: 'text-center' }
, { header: '처리상태명', name: 'CRDN_STTS_NM', width: 80, className: 'text-center' }
, { header: '등록일시', name: 'REG_DT', width: 150, className: 'text-center' }
, { header: '등록자', name: 'RGTR', width: 80, className: 'text-center' }
, { header: '수정일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }
, { header: '수정자', name: 'MDFR', width: 80, className: 'text-center' }
];
thisPO.gridOptions = {
by : 'by--${pageName}',
byOutput : 'byOutput--${pageName}',
theadTr: 'exclTheadTr--${pageName}',
rowHeader: 'No.',
trDataKey: '"LEVY_EXCL_ID"',
infoPrefix: "excl",
prefixName : "부과제외",
clickEvent : "pageObject['${pageName}'].exclControl.setCurrent('{LEVY_EXCL_ID}')",
dblClickEvent : "pageObject['${pageName}'].exclControl.getInfo({})",
columns: thisPO.gridColumns
};
thisPO.tbodyTemplate = {};
//그리드 정보 초기화
thisPO.tbodyTemplate = initGrid(thisPO.gridOptions);
//달력 초기화
initDatepicker("frmSearch--${pageName}");
$('#levyExclYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); /**************************************************************************
$('#levyExclYmdTo--${pageName}').datepicker('setDate', new Date()); * 초기 셋팅
**************************************************************************/
// 검색조건 초기값 셋팅
function initSearch${pageName}() {
// 달력 초기화
initDatepicker("frmSearch--${pageName}");
$('#schDateFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); $("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
$('#schDateTo--${pageName}').datepicker('setDate', new Date()); $("#schDateTo--${pageName}").datepicker("setDate", new Date());
$("#schDetailDateFrom--${pageName}").datepicker("setDate", new Date());
$("#schDetailDateTo--${pageName}").datepicker("setDate", new Date());
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); // 업무구분
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true); $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
thisPO.fnResetAndChangeBiz(defaultBizValue); }
//스크롤 이벤트 추가 //
$("#table-responsive--${pageName}").scroll(function(){ function setEvent${pageName}() {
var el = $(this); // 검색 버튼 이벤트
if(el.scrollTop() == 0){ $("#btnSearch--${pageName}").on("click", () => searchList${pageName}());
return;
}
if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){
thisPO.scrollExclList();
}
});
$('#btnSearch--${pageName}').on('click', () => thisPO.searchExclList()); // 테이블 스크롤 이벤트
$("#table-responsive--${pageName}").scroll(function() {
let el = $(this);
$('#btnMenualRegist--${pageName}').on('click', () => { if (el.scrollTop() == 0) return;
if ((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()) {
searchList${pageName}(${pageName}Control.query.pageNum + 1);
}
}); });
}
/**************************************************************************
* Event
**************************************************************************/
// Dataset 변경
${pageName}Control.onDatasetChange = obj => {
renderList${pageName}();
$("#paging--${pageName}").setPaging({
list : ${pageName}Control.dataset
// , prefix : ${pageName}Control.prefix
, prefix : "paging--${pageName}"
, start : obj.${infoPrefix}Start
, totalSize : obj.${infoPrefix}Total
, fetchSize : obj.${infoPrefix}Fetch
, func : "${pageName}Control.load({index})"
});
};
$('#btnExtrRegist--${pageName}').on('click', () => { // DataTables 클릭 이벤트
${pageName}Control.onCurrentChange = item => {
//
if (!item) return;
}); let key = item.data.USER_ID;
$("#${infoPrefix}List").setCurrentRow(key);
};
// DataTables checkbox 클릭 이벤트
${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${infoPrefix}s").prop("disabled", keys.length < 1);
};
//
$("#term").onEnterPress(searchList${pageName}());
/**************************************************************************
*
**************************************************************************/
// 검색조건 파라미터 가져오기
function getParams${pageName}() {
let formFields = new FimsFormFields("#frmSearch--${pageName}");
let data = formFields.get();
data.sggCd = "41480"; // 시군구 코드 임시
data.fetchSize = 30; // 한번에 30건씩 조회
return data;
}
// 검색
function searchList${pageName}(pageNumber) {
// pageNumber 값 확인
if (!pageNumber) pageNumber = 1;
${pageName}Control.query = getParams${pageName}(); // 검색조건
${pageName}Control.query.orderBy = "LEVY_EXCL_ID"; // 정렬
${pageName}Control.urls.load = wctx.url("/excl/excl01/010/list.do"); // url
${pageName}Control.load(pageNumber);
}
// 테이블에 click, dbclick 이벤트
function renderList${pageName}() {
let ${infoPrefix}List = ${pageName}Control.dataset;
let empty = ${infoPrefix}List.empty;
let trs = empty ?
[document.getElementById("${infoPrefix}NotFound").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
${infoPrefix}List.inStrings(
document.getElementById("${infoPrefix}Row").innerHTML, <%-- from template#${infoPrefix}Row --%>
(str, dataItem) => str
.replace(/{onclick}/gi, 'onclick="${pageName}Control.setCurrent(\'' + dataItem.getValue("{LEVY_EXCL_ID}") + '\');"')
.replace(/{ondblclick}/gi, 'ondblclick="${pageName}Control.getInfo(\'' + dataItem.getValue("{LEVY_EXCL_ID}") + '\')"')
);
$("#tbody--${pageName}").html(trs.join());
$("th input[type='checkbox']").prop("checked", false);
}
// 업무구분 변경
function fnResetAndChangeBiz(taskSeCd) {
$("tbody--${pageName}").html("");
}
//보안모드
if($("#securityMode--top").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
});
</script> </script>

@ -27,8 +27,8 @@
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<!-- 업무구분 --> <!-- 업무구분 -->
<div class="col-1"> <div class="col-1 text-end">
<label class="form-label fw-bold form-search-title text-end" for="rdoTaskSeCd--${pageName}">업무구분</label> <label class="form-label fw-bold form-search-title" for="rdoTaskSeCd--${pageName}">업무구분</label>
</div> </div>
<div class="col-11"> <div class="col-11">
<span class="form-search-linebox"> <span class="form-search-linebox">
@ -44,7 +44,7 @@
</span> </span>
</div> </div>
<!-- 의견제출일자 --> <!-- 의견제출일자 -->
<div class="col-1"> <div class="col-1 text-end">
<select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt"> <select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt">
<option value="rcptYmd">접수일자</option> <option value="rcptYmd">접수일자</option>
<option value="ansYmd">답변일자</option> <option value="ansYmd">답변일자</option>
@ -63,15 +63,15 @@
</span> </span>
</div> </div>
<!-- 진술자명 --> <!-- 진술자명 -->
<div class="col-1"> <div class="col-1 text-end">
<label class="form-label fw-bold form-search-title text-end">진술자명</label> <label class="form-label fw-bold form-search-title">진술자명</label>
</div> </div>
<div class="col-5"> <div class="col-5">
<input type="text" id="sttrNm--${pageName}" name="sttrNm" class="form-control" /> <input type="text" id="sttrNm--${pageName}" name="sttrNm" class="form-control" />
</div> </div>
<!-- 의견제출상태 --> <!-- 의견제출상태 -->
<div class="col-1"> <div class="col-1 text-end">
<label class="form-label fw-bold form-search-title text-end">의견제출상태</label> <label class="form-label fw-bold form-search-title">의견제출상태</label>
</div> </div>
<div class="col-5"> <div class="col-5">
<select id="opnnSbmsnSttsCd--${pageName}" name="opnnSbmsnSttsCd" class="form-select"> <select id="opnnSbmsnSttsCd--${pageName}" name="opnnSbmsnSttsCd" class="form-select">
@ -82,8 +82,8 @@
</select> </select>
</div> </div>
<!-- 차량번호 --> <!-- 차량번호 -->
<div class="col-1"> <div class="col-1 text-end">
<label class="form-label fw-bold form-search-title text-end">차량번호</label> <label class="form-label fw-bold form-search-title">차량번호</label>
</div> </div>
<div class="col-5"> <div class="col-5">
<input type="text" class="form-control" id="vhrno--${pageName}" name="vhrno" /> <input type="text" class="form-control" id="vhrno--${pageName}" name="vhrno" />
@ -133,12 +133,12 @@
<label class="form-label fw-bold form-search-title text-end">사용자검색</label> <label class="form-label fw-bold form-search-title text-end">사용자검색</label>
</div> </div>
<div class="col-5"> <div class="col-5">
<select class="form-select" id="schUserOpt--${pageName}" name="schUserOpt"> <select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
<option value="">조건선택</option> <option value="">조건선택</option>
<option value="rgtr">등록자명</option> <option value="rgtr">등록자명</option>
<option value="mdfr">수정자명</option> <option value="mdfr">수정자명</option>
</select> </select>
<input type="text" class="form-control" id="userNm--${pageName}" name="userNm" /> <input type="text" class="form-control" id="schDetailuserNm--${pageName}" name="schDetailuserNm" />
</div> </div>
</div> </div>
</div> </div>
@ -157,8 +157,8 @@
<!-- 건수, 페이지 표시 --> <!-- 건수, 페이지 표시 -->
<div class="d-flex flex-row justify-content-between"> <div class="d-flex flex-row justify-content-between">
<label id="paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label> <label id="paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="paging--${pageName}" class="pagination pagination-primary"> <%-- <ul id="paging--${pageName}" class="pagination pagination-primary"> --%>
</ul> <!-- </ul> -->
</div> </div>
</span> </span>
</span> </span>
@ -316,6 +316,7 @@
// DataTables 클릭 이벤트 // DataTables 클릭 이벤트
${pageName}Control.onCurrentChange = item => { ${pageName}Control.onCurrentChange = item => {
//
if (!item) return; if (!item) return;
let key = item.data.USER_ID; let key = item.data.USER_ID;
@ -333,8 +334,6 @@
checkbox.prop("checked", keys.includes(checkbox.val())); checkbox.prop("checked", keys.includes(checkbox.val()));
}); });
${pageName}Control.urls.load = wctx.url("/excl/excl02/020/info.do");
// $("#btnRemove${infoPrefix}s").prop("disabled", keys.length < 1); // $("#btnRemove${infoPrefix}s").prop("disabled", keys.length < 1);
}; };
@ -357,17 +356,17 @@
// 검색 // 검색
function searchList${pageName}(pageNumber) { function searchList${pageName}(pageNumber) {
if (!pageNumber) { // pageNumber 값 확인
pageNumber = 1; if (!pageNumber) pageNumber = 1;
}
${pageName}Control.query = getParams${pageName}(); ${pageName}Control.query = getParams${pageName}(); // 검색조건
${pageName}Control.query.orderBy = "OPNN_ID"; // 정렬
${pageName}Control.urls.load = wctx.url("/excl/excl02/010/list.do"); // url
${pageName}Control.urls.load = wctx.url("/excl/excl02/010/list.do");
${pageName}Control.load(pageNumber); ${pageName}Control.load(pageNumber);
} }
// 테이블에 data 셋팅 // 테이블에 click, dbclick 이벤트
function renderList${pageName}() { function renderList${pageName}() {
let ${infoPrefix}List = ${pageName}Control.dataset; let ${infoPrefix}List = ${pageName}Control.dataset;
let empty = ${infoPrefix}List.empty; let empty = ${infoPrefix}List.empty;
@ -385,11 +384,9 @@
$("th input[type='checkbox']").prop("checked", false); $("th input[type='checkbox']").prop("checked", false);
} }
// 업무구분 변경
function fnResetAndChangeBiz(taskSeCd) { function fnResetAndChangeBiz(taskSeCd) {
$("tbody--${pageName}").html(""); $("tbody--${pageName}").html("");
// ${pageName}Control.load = wctx.url("/crdn/crdn06/010/"+ taskSeCd +"/list.do");
// ${pageName}Control.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do");
} }
</script> </script>

@ -10838,6 +10838,10 @@ button.list-group-item-gray.active {
border-width: 5px !important; border-width: 5px !important;
} }
.w-px-10 {
width: 10px !important;
}
.w-px-20 { .w-px-20 {
width: 20px !important; width: 20px !important;
} }

@ -0,0 +1,21 @@
class LevyExclControl extends DatasetControl {
constructor(conf) {
super(conf || {
prefix : "levyExcl"
, prefixName : "부과제외"
, infoSize : "xl"
, keymapper : info => info ? info.LEVY_EXCL_ID : ""
, dataGetter : obj => obj.levyExclList
, appendData : true
, formats : {
LEVY_EXCL_YMD : dateFormat
, CRDN_YMD_TM : datetimeFormat
, CVLCPT_RCPT_YMD : dateFormat
, REG_DT : datetimeFormat
, MDFCN_DT : datetimeFormat
}
});
}
}
Loading…
Cancel
Save