부과제외 수정.

main
jjh 1 year ago
parent d579cf35e5
commit ff7c3549c2

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

@ -15,23 +15,31 @@ import cokr.xit.foundation.component.QueryRequest;
public class ExclQuery extends QueryRequest {
private static final long serialVersionUID = 1L;
// 필수
private String sggCd; // 시군구 코드
private String taskSeCd; // 업무 구분 코드
private String levyExclYmdFrom; // 부과 제외 시작 일자
private String levyExclYmdTo; // 부과 제외 종료 일자
// 공통
private String delYn; // 삭제 여부
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 levyExclSeCd; // 부과 제외 구분 코드
private String delYn; // 삭제 여부
// 의견제출 TB_OPNN_SBMSN
private String opnnId; // 의견 ID
private String opnnSbmsnSttsCd; // 의견 제출 상태 코드
// 단속 TB_CRDN
private String vhrno; // 차량번호
// 납부자 TB_PAYER
private String rtpyrNo; // 납부자 번호
private String rtpyrNm; // 납부자 명
private String schDateOpt; // 검색 조건 일자
private String schDateFrom; // 검색 시작 일자
private String schDateTo; // 검색 종료 일자
public String getSggCd() {
return ifEmpty(sggCd, () -> null);
@ -53,26 +61,105 @@ public class ExclQuery extends QueryRequest {
return self();
}
public String getLevyExclYmdFrom() {
return ifEmpty(levyExclYmdFrom, () -> null);
public String getDelYn() {
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) {
this.levyExclYmdFrom = levyExclYmdFrom;
public <T extends ExclQuery> T setSchDetailUserOpt(String schDetailUserOpt) {
this.schDetailUserOpt = schDetailUserOpt;
return self();
}
public String getLevyExclYmdTo() {
return ifEmpty(levyExclYmdTo, () -> null);
public String getSchDetailUserNm() {
return ifEmpty(schDetailUserNm, () -> null);
}
public <T extends ExclQuery> T setLevyExclYmdTo(String levyExclYmdTo) {
this.levyExclYmdTo = levyExclYmdTo;
public <T extends ExclQuery> T setSchDetailUserNm(String schDetailUserNm) {
this.schDetailUserNm = schDetailUserNm;
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() {
return ifEmpty(levyExclId, () -> null);
@ -94,15 +181,26 @@ public class ExclQuery extends QueryRequest {
return self();
}
public String getDelYn() {
return ifEmpty(delYn, () -> null);
public String getOpnnId() {
return ifEmpty(opnnId, () -> null);
}
public <T extends ExclQuery> T setDelYn(String delYn) {
this.delYn = delYn;
public <T extends ExclQuery> T setOpnnId(String opnnId) {
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();
}
public String getVhrno() {
return ifEmpty(vhrno, () -> null);
}
@ -133,34 +231,4 @@ public class ExclQuery extends QueryRequest {
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
*
* <p> :
* <p> : .
*
* <pre>
* ============ ============
* 2023-06-23 JoJH
* ================================
* </pre>
*/
*/
@Mapper("excl01Mapper")
public interface Excl01Mapper extends AbstractMapper {

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

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

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

@ -6,11 +6,11 @@ import javax.annotation.Resource;
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.ExclQuery;
import cokr.xit.fims.excl.dao.Excl02Mapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
/** Bean
*

@ -34,7 +34,7 @@ public class Excl01Controller extends ApplicationController {
@Resource(name="excl01Service")
protected Excl01Service excl01Service;
/** (excl/excl01/010-main)) .
/** (excl/excl01/010-main) .
* {@link #getLevyExclList(ExclQuery) } .
* @return /excl/excl01/010-main
*/
@ -42,14 +42,20 @@ public class Excl01Controller extends ApplicationController {
public ModelAndView main() {
ModelAndView mav = getLevyExclList(new ExclQuery().setPageNum(1));
// View(jsp)
mav.setViewName("fims/excl/excl01010-main");
mav.addObject("pageName", "excl01010-main");
// View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM021", "FIM054");
mav.addObject("FIM021List", commonCodes.get("FIM021"));
mav.addObject("FIM054List", commonCodes.get("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;
}
@ -68,7 +74,7 @@ public class Excl01Controller extends ApplicationController {
public ModelAndView getLevyExclList(ExclQuery 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));
// View(jsp)
mav.setViewName("/fims/excl/excl02010-main");
mav.setViewName("fims/excl/excl02010-main");
// View(jsp)에서 사용할 공통코드를 조회
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;
}
//
/** .<br />
* {@link Excl02Service#getOpnnSbmsnList(ExclQuery)}
* @param req

@ -25,60 +25,32 @@
<result property="delDt" column="DEL_DT" /> <!-- 삭제 일시 -->
<result property="dltr" column="DLTR" /> <!-- 삭제자 -->
<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>
<sql id="select">
SELECT LEVY_EXCL_ID /* 부과 제외 ID */
, CRDN_ID /* 단속 ID */
, LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */
, LEVY_EXCL_YMD /* 부과 제외 일자 */
, LEVY_EXCL_RSN_CD /* 부과 제외 사유 코드 */
, ETC_CN /* 기타 내용 */
, DEL_YN /* 삭제 여부 */
, REG_DT /* 등록 일시 */
, RGTR /* 등록자 */
, MDFCN_DT /* 수정 일시 */
, MDFR /* 수정자 */
, DEL_DT /* 삭제 일시 */
, DLTR /* 삭제자 */
, DEL_RSN /* 삭제 사유 */
FROM TB_LEVY_EXCL
SELECT A.LEVY_EXCL_ID /* 부과 제외 ID */
, A.CRDN_ID /* 단속 ID */
, A.LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */
, A.LEVY_EXCL_YMD /* 부과 제외 일자 */
, A.LEVY_EXCL_RSN_CD /* 부과 제외 사유 코드 */
, A.ETC_CN /* 기타 내용 */
, A.DEL_YN /* 삭제 여부 */
, A.REG_DT /* 등록 일시 */
, A.RGTR /* 등록자 */
, A.MDFCN_DT /* 수정 일시 */
, A.MDFR /* 수정자 */
, A.DEL_DT /* 삭제 일시 */
, A.DLTR /* 삭제자 */
, A.DEL_RSN /* 삭제 사유 */
FROM TB_LEVY_EXCL A
</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">
SELECT A.LEVY_EXCL_ID /* 부과 제외 ID */
, A.CRDN_ID /* 단속 ID */
@ -134,43 +106,67 @@
<select id="selectLevyExclList" parameterType="map" resultType="dataobject">/* 부과제외 대장 목록 조회(excl01Mapper.selectLevyExclList) */
<include refid="utility.paging-prefix" />
<include refid="selectList" />
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */
WHERE A.DEL_YN = 'N' /* 삭제 여부 */
AND C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
<choose>
<when test="schDateOpt == 'levyExclYmd'">
<if test="schDateFrom != null">
AND A.LEVY_EXCL_YMD <![CDATA[ >= ]]> #{levyExclYmdFrom}
AND A.LEVY_EXCL_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 부과 제외 일자 일자 시작 */
</if>
<if test="schDateTo != null">
AND A.LEVY_EXCL_YMD <![CDATA[ <= ]]> #{levyExclYmdTo}
AND A.LEVY_EXCL_YMD <![CDATA[ <= ]]> #{schDateTo} /* 부과 제외 일자 일자 종료 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<if test = "levyExclSeCd != null">
AND A.LEVY_EXCL_SE_CD = #{levyExclSeCd}
AND A.LEVY_EXCL_SE_CD = #{levyExclSeCd} /* 부과 제외 구분 코드 */
</if>
<if test = "delYn != null">
AND A.DEL_YN = #{delYn}
<choose>
<when test="schDetailDateOpt == 'regDt'">
<if test="schDetailDateFrom != null">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} /* 등록 일자 일자 시작 */
</if>
<if test="schDateOpt == 'regDt'">
<if test="schDateFrom != null">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom}
<if test="schDetailDateTo != null">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} /* 등록 일자 일자 종료 */
</if>
<if test="schDateTo != null">
AND SUBSTR(A.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo}
</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>
<if test = "term != null">
AND A.${by} LIKE CONCAT('%', #{term}, '%')
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schDetailUserOpt == 'rgtr'">
<if test="schDetailUserCd != null">
AND A.RGTR = #{schDetailUserCd} /* 등록자 코드 */
</if>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
</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="select" />
WHERE A.LEVY_EXCL_ID = #{levyExclId}
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
<insert id="insertLevyExcl" parameterType="map">/* 부과제외 대장 등록(excl01Mapper.insertLevyExcl) */
INSERT INTO TB_LEVY_EXCL (
INSERT
INTO TB_LEVY_EXCL (
LEVY_EXCL_ID /* 부과 제외 ID */
, CRDN_ID /* 단속 ID */
, LEVY_EXCL_SE_CD /* 부과 제외 구분 코드 */

@ -173,31 +173,32 @@
<include refid="utility.paging-prefix" />
<include refid="selectList" />
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */
WHERE A.DEL_YN = 'N' /* 삭제 여부 */
AND C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
<choose>
<when test="schDateOpt == 'rcptYmd'">
<if test="schDateFrom != null">
AND A.RCPT_YMD <![CDATA[ >= ]]> #{schDateFrom}
AND A.RCPT_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 접수 일자 시작 */
</if>
<if test="schDateTo != null">
AND A.RCPT_YMD <![CDATA[ <= ]]> #{schDateTo}
AND A.RCPT_YMD <![CDATA[ <= ]]> #{schDateTo} /* 접수 일자 종료 */
</if>
</when>
<when test="schDateOpt == 'ansYmd'">
<if test="schDateFrom != null">
AND A.ANS_YMD <![CDATA[ >= ]]> #{schDateFrom}
AND A.ANS_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 답변 일자 시작 */
</if>
<if test="schDateTo != null">
AND A.ANS_YMD <![CDATA[ <= ]]> #{schDateTo}
AND A.ANS_YMD <![CDATA[ <= ]]> #{schDateTo} /* 답변 일자 종료 */
</if>
</when>
<when test="schDateOpt == 'crdnYmd'">
<if test="schDateFrom != null">
AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom}
AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom} /* 단속 일자 시작 */
</if>
<if test="schDateTo != null">
AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo}
AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo} /* 단속 일자 종료 */
</if>
</when>
<otherwise>
@ -206,6 +207,40 @@
<if test="opnnSbmsnSttsCd != null">
AND A.OPNN_SBMSN_STTS_CD = #{opnnSbmsnSttsCd}
</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.paging-suffix" />

@ -33,7 +33,8 @@
<div class="table-responsive">
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
<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" style="width: 146.156px;">이름</th>
<th class="sorting" style="width: 195.688px;">이메일</th>

@ -3,48 +3,68 @@
<!-- 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>
<%--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="wrapper-list">
<div>
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark">초기화</button>
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화">초기화</button>
<span class="container-window-btn-right">
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색">검색</button>
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀">엑셀</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>
<!-- 업무구분 -->
<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">
<label>
<input name="taskSeCd" type="radio" value="${item.code}"
class="form-check-input" alt="업무구분"
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);">
<input type="radio" class="form-check-input" id="rdoTaskSeCd--${pageName}" name="taskSeCd" alt="업무구분"
value="${item.code}"
onchange="pageObject['${pageName}'].fnResetAndChangeBiz(this.value);"
required>
${item.value}
</label>
</c:forEach>
</span>
</div>
<div class="col-6">
<label class="form-label fw-bold form-search-title">부과제외일자</label>
<!-- 부과제외일자 -->
<div class="col-1 text-end">
<select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt">
<option value="levyExclYmd">부과제외일자</option>
</select>
</div>
<div class="col-5">
<span class="form-search-linebox">
<input type="text" id="levyExclYmdFrom--${pageName}" name="levyExclYmdFrom" class="form-control form-date"
<input type="text" class="form-control form-date" id="schDateFrom--${pageName}" name="schDateFrom"
data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~
<input type="text" id="levyExclYmdTo--${pageName}" name="levyExclYmdTo" class="form-control form-date"
data-fmt-type="day" title="종료 날짜 선택">
<input type="text" class="form-control form-date" id="schDateTo--${pageName}" name="schDateTo"
data-fmt-type="day" title="종료 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span>
</div>
<div class="col-6">
<!-- 부과제외구분 -->
<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>
<c:forEach items="${FIM021List}" var="item">
@ -52,281 +72,326 @@
</c:forEach>
</select>
</div>
<div class="col-6">
<!-- 차량번호 -->
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">차량번호</label>
<input type="text" id="vhrno--${pageName}" name="vhrno" class="form-control" />
</div>
<div class="col-6">
<div class="col-5">
<input type="text" class="form-control" id="vhrno--${pageName}" name="vhrno" />
</div>
<!-- 납부자명 -->
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">납부자명</label>
<input type="text" id="rtpyrNm--${pageName}" name="rtpyrNm" class="form-control" />
</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="text" id="byOutput--${pageName}" class="form-control" readonly value="동적 검색" />
<input type="text" id="term--${pageName}" name="term" class="form-control" />
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="text" class="form-control" 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}">
<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">
<div class="col-6">
<select id="schDateOpt--${pageName}" name="schDateOpt" class="form-select">
<option value="">선택</option>
<!-- 등록일자, 수정일자 -->
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">일자검색</label>
</div>
<div class="col-5">
<select class="form-select" id="schDetailDateOpt--${pageName}" name="schDetailDateOpt">
<option value="">조건선택</option>
<option value="regDt">등록일자</option>
<option value="mdfcnDt">수정일자</option>
</select>
<span class="form-search-linebox">
<input type="text" id="schDateFrom--${pageName}" name="schDateFrom" class="form-control form-date"
<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="종료 날짜 선택">
<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 id="crdnSttsCd--${pageName}" name="crdnSttsCd" class="form-select">
<option value="">전체</option>
<c:forEach items="${FIM010List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
<!-- 등록자명, 수정자명 -->
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">사용자검색</label>
</div>
<div class="col-5">
<select class="form-select" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
<option value="">조건선택</option>
<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">
<!-- 업무 버튼 -->
<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">
<!-- 건수, 페이지 표시 -->
<div class="d-flex flex-row justify-content-between">
<label id="crdnPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
<label id="paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="paging--${pageName}" class="pagination pagination-primary">
</ul>
</div>
</span>
</span>
</div>
<!-- / 업무 버튼 및 건수 표시 -->
<!-- 그리드 -->
<!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive"
style="overflow-x: scroll;height:400px;overflow-y: scroll;">
<table id="DataTables_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer"
aria-describedby="DataTables_Table_0_info"
>
<div id="table-responsive--${pageName}" class="table-responsive" style="overflow-x:scroll; height:400px; overflow-y:scroll;" >
<table class="datatables-ajax table table-bordered dataTable no-footer"
id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<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>
</thead>
<tbody id="exclTbody--${pageName}">
<tbody id="tbody--${pageName}">
</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>
</div>
</div>
</div><!-- /그리드 -->
</div>
<!-- / DataTables(그리드) -->
</div>
</div>
<!-- / Wrapper-list -->
</div>
</div><!-- <div class="card"> -->
</div><!-- <div class="container-xxl flex-grow-1 px-0"> -->
<!-- / Card -->
</div>
<!-- / Content -->
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div>
</div>
<!-- <div class="content-wrapper"> -->
<!-- Content wrapper -->
<!-- js -->
<script src="<c:url value="/resources/js/fims/excl/excl01.js?${ver}"/>"></script>
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
// Control 생성
var ${pageName}Control = new LevyExclControl();
// 공통코드
var FIM021 = new CommonCodes(${FIM021});
var FIM054 = new CommonCodes(${FIM054});
pageObject["${pageName}"] = {};
// script 진입
$(document).ready(function() {
var thisPO = pageObject["${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 => {
// 검색조건 초기값 셋팅
initSearch${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})"
// 이벤트
setEvent${pageName}();
});
};
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);
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 검색조건 초기값 셋팅
function initSearch${pageName}() {
// 달력 초기화
initDatepicker("frmSearch--${pageName}");
thisPO.scrollExclList = () => {
thisPO.exclControl.load(thisPO.exclControl.query.pageNum + 1);
}
$("#schDateFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
$("#schDateTo--${pageName}").datepicker("setDate", new Date());
$("#schDetailDateFrom--${pageName}").datepicker("setDate", new Date());
$("#schDetailDateTo--${pageName}").datepicker("setDate", new Date());
thisPO.renderExclList = data => {
if(!thisPO.exclControl.appendData){
$("#exclTbody--${pageName}").html("");
// 업무구분
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
}
var exclList = thisPO.exclControl.dataset;
var empty = exclList.empty;
//
function setEvent${pageName}() {
// 검색 버튼 이벤트
$("#btnSearch--${pageName}").on("click", () => searchList${pageName}());
var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : exclList.inStrings(thisPO.tbodyTemplate.found);
// 테이블 스크롤 이벤트
$("#table-responsive--${pageName}").scroll(function() {
let el = $(this);
$("#exclTbody--${pageName}").html(trs.join());
if (el.scrollTop() == 0) return;
//보안모드
if($("#securityMode--top").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
if ((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()) {
searchList${pageName}(${pageName}Control.query.pageNum + 1);
}
});
}
thisPO.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var data = formFields.get();
data.fetchSize = 30;
// 시군구 코드 임시
data.sggCd = "41480";
return data;
}
/**************************************************************************
* 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})"
});
};
// DataTables 클릭 이벤트
${pageName}Control.onCurrentChange = item => {
//
if (!item) return;
/* *******************************
* 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
let key = item.data.USER_ID;
$("#${infoPrefix}List").setCurrentRow(key);
};
thisPO.tbodyTemplate = {};
// DataTables checkbox 클릭 이벤트
${pageName}Control.onSelectionChange = selected => {
let ${infoPrefix}List = ${pageName}Control.dataset;
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
//그리드 정보 초기화
thisPO.tbodyTemplate = initGrid(thisPO.gridOptions);
$("#tbody--${pageName} input[type='checkbox']").each(function() {
let checkbox = $(this);
//달력 초기화
initDatepicker("frmSearch--${pageName}");
checkbox.prop("checked", keys.includes(checkbox.val()));
});
$('#levyExclYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date);
$('#levyExclYmdTo--${pageName}').datepicker('setDate', new Date());
// $("#btnRemove${infoPrefix}s").prop("disabled", keys.length < 1);
};
$('#schDateFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schDateTo--${pageName}').datepicker('setDate', new Date());
//
$("#term").onEnterPress(searchList${pageName}());
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
thisPO.fnResetAndChangeBiz(defaultBizValue);
/**************************************************************************
*
**************************************************************************/
// 검색조건 파라미터 가져오기
function getParams${pageName}() {
let formFields = new FimsFormFields("#frmSearch--${pageName}");
let data = formFields.get();
//스크롤 이벤트 추가
$("#table-responsive--${pageName}").scroll(function(){
var el = $(this);
if(el.scrollTop() == 0){
return;
}
if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){
thisPO.scrollExclList();
}
});
data.sggCd = "41480"; // 시군구 코드 임시
data.fetchSize = 30; // 한번에 30건씩 조회
$('#btnSearch--${pageName}').on('click', () => thisPO.searchExclList());
return data;
}
$('#btnMenualRegist--${pageName}').on('click', () => {
// 검색
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
$('#btnExtrRegist--${pageName}').on('click', () => {
${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);
}
//보안모드
if($("#securityMode--top").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
// 업무구분 변경
function fnResetAndChangeBiz(taskSeCd) {
$("tbody--${pageName}").html("");
}
});
</script>

@ -27,8 +27,8 @@
<div class="container-search">
<div class="row g-1">
<!-- 업무구분 -->
<div class="col-1">
<label class="form-label fw-bold form-search-title text-end" for="rdoTaskSeCd--${pageName}">업무구분</label>
<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">
@ -44,7 +44,7 @@
</span>
</div>
<!-- 의견제출일자 -->
<div class="col-1">
<div class="col-1 text-end">
<select class="form-select" id="schDateOpt--${pageName}" name="schDateOpt">
<option value="rcptYmd">접수일자</option>
<option value="ansYmd">답변일자</option>
@ -63,15 +63,15 @@
</span>
</div>
<!-- 진술자명 -->
<div class="col-1">
<label class="form-label fw-bold form-search-title text-end">진술자명</label>
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">진술자명</label>
</div>
<div class="col-5">
<input type="text" id="sttrNm--${pageName}" name="sttrNm" class="form-control" />
</div>
<!-- 의견제출상태 -->
<div class="col-1">
<label class="form-label fw-bold form-search-title text-end">의견제출상태</label>
<div class="col-1 text-end">
<label class="form-label fw-bold form-search-title">의견제출상태</label>
</div>
<div class="col-5">
<select id="opnnSbmsnSttsCd--${pageName}" name="opnnSbmsnSttsCd" class="form-select">
@ -82,8 +82,8 @@
</select>
</div>
<!-- 차량번호 -->
<div class="col-1">
<label class="form-label fw-bold form-search-title text-end">차량번호</label>
<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="vhrno--${pageName}" name="vhrno" />
@ -133,12 +133,12 @@
<label class="form-label fw-bold form-search-title text-end">사용자검색</label>
</div>
<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="rgtr">등록자명</option>
<option value="mdfr">수정자명</option>
</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>
@ -157,8 +157,8 @@
<!-- 건수, 페이지 표시 -->
<div class="d-flex flex-row justify-content-between">
<label id="paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="paging--${pageName}" class="pagination pagination-primary">
</ul>
<%-- <ul id="paging--${pageName}" class="pagination pagination-primary"> --%>
<!-- </ul> -->
</div>
</span>
</span>
@ -316,6 +316,7 @@
// DataTables 클릭 이벤트
${pageName}Control.onCurrentChange = item => {
//
if (!item) return;
let key = item.data.USER_ID;
@ -333,8 +334,6 @@
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);
};
@ -357,17 +356,17 @@
// 검색
function searchList${pageName}(pageNumber) {
if (!pageNumber) {
pageNumber = 1;
}
// pageNumber 값 확인
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);
}
// 테이블에 data 셋팅
// 테이블에 click, dbclick 이벤트
function renderList${pageName}() {
let ${infoPrefix}List = ${pageName}Control.dataset;
let empty = ${infoPrefix}List.empty;
@ -385,11 +384,9 @@
$("th input[type='checkbox']").prop("checked", false);
}
// 업무구분 변경
function fnResetAndChangeBiz(taskSeCd) {
$("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>

@ -10838,6 +10838,10 @@ button.list-group-item-gray.active {
border-width: 5px !important;
}
.w-px-10 {
width: 10px !important;
}
.w-px-20 {
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