단속 > 단속 등록&열람: 진행단계 코드 검색 조건 및 UI 추가

dev
박성영 4 months ago
parent 37a324423d
commit 3158f8af7a

@ -74,6 +74,14 @@ public class CrdnRegistAndViewController {
.build();
model.addAttribute("dsclMthdCdList", commonCodeService.selectCodeDetailList(dsclMthdCdSearchVO));
//진행단계 코드 조회
CmmnCodeSearchVO crdnPrcsSttsCdSearchVO = CmmnCodeSearchVO.builder()
.searchCdGroupId("CRDN_PRCS_STTS_CD")
.sortColumn("SORT_ORDR")
.sortAscending(true)
.build();
model.addAttribute("crdnPrcsSttsCdList", commonCodeService.selectCodeDetailList(crdnPrcsSttsCdSearchVO));
return "crdn/crndRegistAndView/list" + TilesConstants.BASE;
}

@ -158,5 +158,8 @@ public class CrdnRegistAndViewVO extends PagingVO {
/** 검색 조건 - 조사원 */
private String schExmnr;
/** 검색 조건 - 진행단계 코드 */
private String schCrdnPrcsSttsCd;
}

@ -62,6 +62,9 @@
<if test="schExmnr != null and schExmnr != ''">
AND c.EXMNR LIKE CONCAT('%', #{schExmnr}, '%')
</if>
<if test="schCrdnPrcsSttsCd != null and schCrdnPrcsSttsCd != ''">
AND c.CRDN_PRCS_STTS_CD = #{schCrdnPrcsSttsCd}
</if>
ORDER BY c.CRDN_YR DESC, c.CRDN_NO DESC
<if test="pagingYn == 'Y'">
limit #{startIndex}, #{perPage} /* 서버사이드 페이징 처리 */
@ -89,6 +92,9 @@
<if test="schExmnr != null and schExmnr != ''">
AND c.EXMNR LIKE CONCAT('%', #{schExmnr}, '%')
</if>
<if test="schCrdnPrcsSttsCd != null and schCrdnPrcsSttsCd != ''">
AND c.CRDN_PRCS_STTS_CD = #{schCrdnPrcsSttsCd}
</if>
</select>
<!-- 단속 단건 조회 -->
@ -170,8 +176,7 @@
CRDN_PRCS_YMD,
REG_DT,
RGTR,
DEL_YN,
STDG_EMD_CD
DEL_YN
) VALUES (
#{crdnYr},
LPAD(NEXTVAL(seq_crdn_no_${crdnYr}), 6, '0'),
@ -200,8 +205,7 @@
REPLACE(#{crdnPrcsYmd}, '-', ''),
NOW(),
#{rgtr},
'N',
'102'
'N'
)
</insert>

@ -51,6 +51,17 @@
<li>
<input type="text" id="schExmnr" name="schExmnr" maxlength="50" class="input" style="width: 150px;" autocomplete="off"/>
</li>
<li class="th">진행단계</li>
<li>
<select id="schCrdnPrcsSttsCd" name="schCrdnPrcsSttsCd" class="input" style="width: 120px;">
<option value="">전체</option>
<c:forEach var="code" items="${crdnPrcsSttsCdList}">
<option value="${code.cdId}" <c:if test="${param.schCrdnPrcsSttsCd eq code.cdId}">selected</c:if>>
${code.cdNm}
</option>
</c:forEach>
</select>
</li>
</ul>
<ul class="rig2">
<li><button type="button" id="search_btn" class="newbtnss bg1">검색</button></li>
@ -101,12 +112,14 @@
var schRgnSeCd = $.trim(nvl($("#schRgnSeCd").val(), ""));
var schDsclMthdCd = $.trim(nvl($("#schDsclMthdCd").val(), ""));
var schExmnr = $.trim(nvl($("#schExmnr").val(), ""));
var schCrdnPrcsSttsCd = $.trim(nvl($("#schCrdnPrcsSttsCd").val(), ""));
SEARCH_COND.schCrdnYr = schCrdnYr;
SEARCH_COND.schCrdnNo = schCrdnNo;
SEARCH_COND.schRgnSeCd = schRgnSeCd;
SEARCH_COND.schDsclMthdCd = schDsclMthdCd;
SEARCH_COND.schExmnr = schExmnr;
SEARCH_COND.schCrdnPrcsSttsCd = schCrdnPrcsSttsCd;
};
/**
@ -217,6 +230,12 @@
return e.value === 'Y' ? '재부과' : '일반';
}
},
{
header: '진행단계',
name: 'crdnPrcsSttsCdNm',
align: 'center',
width: 100
},
{
header: '등록일시',
name: 'regDt',

Loading…
Cancel
Save