동적 검색 수정(표지정보미확인자료,과태료감경자료)

main
이범준 1 year ago
parent 115b5daf01
commit b793ea0199

@ -79,9 +79,9 @@ public class Crdn06Controller extends ApplicationController {
mav.setViewName("fims/crdn/crdn06040-main"); mav.setViewName("fims/crdn/crdn06040-main");
mav.addObject("pageName","crdn06040-main"); mav.addObject("pageName","crdn06040-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM010", "FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM010", "FIM019", "FIM054");
mav.addObject("FIM054List", commonCodes.get("FIM054")); mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM010"); addCodes(commonCodes, mav, "FIM010", "FIM019");
return mav; return mav;
} }

@ -373,26 +373,17 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
AND C.CRDN_STTS_CD = '21' AND C.CRDN_STTS_CD = '21'
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose> <choose>
<when test="by == 'crdnInptSeCd'"> <when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
AND FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) LIKE CONCAT('%', #{term}, '%') <include refid="dynamicSearch.start" />
</when> <choose>
<when test="by == 'crdnYmd'"> <when test="by == 'crdnInptSeCd'">C.CRDN_INPT_SE_CD</when>
AND C.CRDN_YMD = REPLACE(#{term},'-','') <when test="by == 'crdnYmd'">C.CRDN_YMD</when>
</when> <when test="by == 'vhrno'">C.VHRNO</when>
<when test="by == 'vhrno'"> <when test="by == 'crdnStdgNm'">C.CRDN_STDG_NM</when>
AND C.VHRNO LIKE CONCAT('%', #{term}, '%') <when test="by == 'atchFileCnt'">C.ATCH_FILE_CNT</when>
</when> <when test="by == 'crdnSn'">C.CRDN_SN</when>
<when test="by == 'crdnStdgNm'"> </choose>
AND C.CRDN_STDG_NM LIKE CONCAT('%', #{term}, '%') <include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when>
<when test="by == 'aplcntCrdnNm'">
</when>
<when test="by == 'atchFileCnt'">
AND C.ATCH_FILE_CNT = #{term}
</when>
<when test="by == 'crdnSn'">
AND C.CRDN_SN = #{term}
</when> </when>
<otherwise> <otherwise>
</otherwise> </otherwise>
@ -439,26 +430,18 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
AND C.TASK_SE_CD = #{taskSeCd} AND C.TASK_SE_CD = #{taskSeCd}
<if test="by != null and by != '' and term != null"> <if test="by != null and by != '' and term != null">
<choose> <choose>
<when test="by == 'rductYmd'"> <when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
AND SUBSTR(RD.REG_DT,1,8) = REPLACE(#{term},'-','') <include refid="dynamicSearch.start" />
</when> <choose>
<when test="by == 'rductRsnCd'"> <when test="by == 'rductYmd'">RD.REG_DT</when>
AND FN_GET_CODE_NM('FIM019', RD.RDUCT_RSN_CD) LIKE CONCAT('%', #{term}, '%') <when test="by == 'rductRsnCd'">RD.RDUCT_RSN_CD</when>
</when> <when test="by == 'crdnYmd'">C.CRDN_YMD</when>
<when test="by == 'crdnYmd'"> <when test="by == 'vhrno'">C.VHRNO</when>
AND C.CRDN_YMD = REPLACE(#{term},'-','') <when test="by == 'rductAmt'">RD.RDUCT_AMT</when>
</when> <when test="by == 'rductEtcCn'">RD.ETC_CN</when>
<when test="by == 'vhrno'"> <when test="by == 'crdnSttsCd'">C.CRDN_STTS_CD</when>
AND C.VHRNO = REPLACE(#{term},'-','') </choose>
</when> <include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
<when test="by == 'rductAmt'">
AND RD.RDUCT_AMT = REPLACE(#{term},',','')
</when>
<when test="by == 'rductEtcCn'">
AND RD.ETC_CN LIKE CONCAT('%', #{term}, '%')
</when>
<when test="by == 'crdnSttsCd'">
AND FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) LIKE CONCAT('%', #{term}, '%')
</when> </when>
<otherwise> <otherwise>
</otherwise> </otherwise>

@ -63,14 +63,14 @@
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}"> data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th width="80">No.</th> <th width="80">No.</th>
<th width="80" onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText);">자료출처</th> <th width="80" onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText,'codeValue','FIM003');">자료출처</th>
<th width="80" onclick="searchFromGridTitle('CRDN_YMD','위반일자');">위반일시</th> <th width="80" onclick="searchFromGridTitle('CRDN_YMD','위반일자','ymd','');">위반일시</th>
<th width="80" onclick="searchFromGridTitle('VHRNO',this.innerText);">차량번호</th> <th width="80" onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');">차량번호</th>
<th width="80" onclick="searchFromGridTitle('CRDN_STDG_NM',this.innerText);">법정동</th> <th width="80" onclick="searchFromGridTitle('CRDN_STDG_NM',this.innerText,'match','perfect');">법정동</th>
<th width="80" onclick="searchFromGridTitle('APLCNT_CRDN_NM',this.innerText);">신고/단속자</th> <th width="80" onclick="searchFromGridTitle('APLCNT_CRDN_NM',this.innerText,'','');">신고/단속자</th>
<th width="80" class="text-orange">잔액</th> <th width="80" class="text-orange">잔액</th>
<th width="80" onclick="searchFromGridTitle('ATCH_FILE_CNT',this.innerText);">사진건수</th> <th width="80" onclick="searchFromGridTitle('ATCH_FILE_CNT',this.innerText,'match','perfect');">사진건수</th>
<th width="80" onclick="searchFromGridTitle('CRDN_SN',this.innerText);">발행번호</th> <th width="80" onclick="searchFromGridTitle('CRDN_SN',this.innerText,'match','perfect');">발행번호</th>
</tr> </tr>
</thead> </thead>
<tbody id="crdnTbody--${pageName}"> <tbody id="crdnTbody--${pageName}">

@ -76,14 +76,14 @@
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}"> data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th width="80">No.</th> <th width="80">No.</th>
<th width="80" onclick="searchFromGridTitle('RDUCT_YMD',this.innerText);">감액일자</th> <th width="80" onclick="searchFromGridTitle('RDUCT_YMD',this.innerText,'ymd','');">감액일자</th>
<th width="80" onclick="searchFromGridTitle('RDUCT_RSN_CD',this.innerText);">감액사유</th> <th width="80" onclick="searchFromGridTitle('RDUCT_RSN_CD',this.innerText,'codeValue','FIM019');">감액사유</th>
<th width="80" onclick="searchFromGridTitle('CRDN_YMD','위반일자');">접수(위반)일시</th> <th width="80" onclick="searchFromGridTitle('CRDN_YMD','접수(위반)일자','ymd','');">접수(위반)일시</th>
<th width="80" onclick="searchFromGridTitle('VHRNO',this.innerText);">차량번호</th> <th width="80" onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');">차량번호</th>
<th width="80" onclick="searchFromGridTitle('RDUCT_AMT',this.innerText);">감액금액</th> <th width="80" onclick="searchFromGridTitle('RDUCT_AMT',this.innerText,'match','perfect');">감액금액</th>
<th width="80" class="text-orange">잔액</th> <th width="80" class="text-orange">잔액</th>
<th width="80" onclick="searchFromGridTitle('RDUCT_ETC_CN',this.innerText);">감액특기사항</th> <th width="80" onclick="searchFromGridTitle('RDUCT_ETC_CN',this.innerText,'match','part');">감액특기사항</th>
<th width="80" onclick="searchFromGridTitle('CRDN_STTS_CD',this.innerText);">처리상태</th> <th width="80" onclick="searchFromGridTitle('CRDN_STTS_CD',this.innerText,'codeValue','FIM010');">처리상태</th>
</tr> </tr>
</thead> </thead>
<tbody id="crdnTbody--${pageName}"></tbody> <tbody id="crdnTbody--${pageName}"></tbody>
@ -127,7 +127,7 @@
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
var FIM010 = new CommonCodes(${FIM010}); var FIM010 = new CommonCodes(${FIM010});
var FIM019 = new CommonCodes(${FIM019});
pageObject["${pageName}"] = {}; pageObject["${pageName}"] = {};
@ -142,6 +142,7 @@ $(document).ready(function(){
$P.crdnControl = new DatasetControl({ $P.crdnControl = new DatasetControl({
prefix:"crdn", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" }, prefix:"crdn", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "" },
formats: { formats: {
RDUCT_RSN_CD : FIM019,
RDUCT_YMD : dateFormat, RDUCT_YMD : dateFormat,
CRDN_YMD_TM : datetimeFormat, CRDN_YMD_TM : datetimeFormat,
RDUCT_AMT : numberFormat, RDUCT_AMT : numberFormat,

Loading…
Cancel
Save