feat: 단속 초기 자료 편집 기능 추가

main
minuk926 2 years ago
parent 8a9a68d598
commit 20d3c9cb36

@ -11,6 +11,7 @@ import javax.servlet.jsp.tagext.TagSupport;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import kr.xit.framework.biz.cache.util.CacheServiceUtils; import kr.xit.framework.biz.cache.util.CacheServiceUtils;
import kr.xit.framework.support.util.Checks;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
@ -28,6 +29,8 @@ public class CodeRadioBoxTag extends TagSupport {
private String alt = ""; private String alt = "";
private String onclick = ""; private String onclick = "";
private String type = "";
public int doStartTag() throws JspException { public int doStartTag() throws JspException {
JspWriter out = pageContext.getOut(); JspWriter out = pageContext.getOut();
try { try {
@ -40,9 +43,27 @@ public class CodeRadioBoxTag extends TagSupport {
// paraMap.put("etc_2", this.etc_2); // paraMap.put("etc_2", this.etc_2);
// paraMap.put("etc_3", this.etc_3); // paraMap.put("etc_3", this.etc_3);
List<Map<String, Object>> list = CacheServiceUtils.getComboCodes(codeId); List<Map<String, Object>> list = CacheServiceUtils.getComboCodes(codeId, type);
int index = 0; int index = 0;
sb.append("<input id='").append(this.id+"_"+index).append("'");
sb.append(" type='radio'");
sb.append(" name='").append(this.name).append("'");
sb.append(" class='").append(this.cls).append("'");
sb.append(" onclick='").append(this.onclick).append("'");
sb.append(" value='").append("'");
if(Checks.isEmpty(this.defaultSelect)) {
sb.append(" checked='checked'");
}
sb.append(" alt='").append(this.alt).append("'/>").append("\n");
sb.append("<label for='").append(this.id+"_"+index).append("'>");
sb.append("전체");
sb.append("</label>").append("\n");
index++;
for (Map<String, Object> map : list) { for (Map<String, Object> map : list) {
sb.append("<input id='").append(this.id+"_"+index).append("'"); sb.append("<input id='").append(this.id+"_"+index).append("'");

@ -14,33 +14,35 @@ Date Author Description
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %> <%@ include file="/WEB-INF/jsp/framework/taglibs.jsp" %>
<form id="frmSearch" name="frmSearch"> <form id="frmSearch" name="frmSearch">
<div class="search"> <div class="search">
<div class="detail_02" style="display: block;"> <div class="detail_02" style="display: block;">
<fieldset class="frmSearch"> <fieldset class="frmSearch">
<legend>상세 검색</legend> <legend>상세 검색</legend>
<ul class="detailGroup_02">
<li style="display: flex"> <label class="title">시스템구분</label>
<%-- <span class="title">--%> <code:radio codeId="FIM001" id="sysCode" name="sysCode" defaultSelect="BPV" onclick="fnTab0Biz.search()" cls="radioBox" alt="시스템구분"/>
<%-- <label style="padding-right: 5px;">구분</label>--%> <br/>
<%-- </span>--%> <label class="title">단속구분</label>
<code:select codeId="FIM001" id="sysCode" name="sysCode" title="시스템구분" cls="selectBox" alt="selectBox tag"/> <code:radio type="CMM_ETC2" id="regltSeCode" name="regltSeCode" codeId="FIM002" onclick="fnTab0Biz.search()" cls="radioBox" alt="단속구분" />
<code:select type="CMM_ETC2" id="regltSeCode" name="regltSeCode" codeId="FIM002" title="단속구분코드" cls="selectBoxTotal" alt="단속구분코드" />
<!-- 데이타 확인 여부 : 차종분류코드가 있는지 여부로 판별 --> <!-- 데이타 확인 여부 : 차종분류코드가 있는지 여부로 판별 -->
<!--
<select id="cnfmYn" name="cnfmYn" title="확인여부" class="selectBox"> <select id="cnfmYn" name="cnfmYn" title="확인여부" class="selectBox">
<option value="">전체</option> <option value="">전체</option>
<option value="Y">확인</option> <option value="Y">확인</option>
<option value="N" selected>미확인</option> <option value="N" selected>미확인</option>
</select> </select>
</li> -->
<li style="display: flex">
<%-- <span class="title"><label style="padding-right: 10px;">조회일자</label></span>--%>
<%-- <span class="title"><label style="padding-right: 10px;">조회일자</label></span>--%>
<br/>
<select id="sch_date_opt" name="sch_date_opt" class="selectBox"> <select id="sch_date_opt" name="sch_date_opt" class="selectBox">
<option value="regltDe">단속일자</option> <option value="regltDe">단속일자</option>
<option value="registDt">등록일자</option> <option value="registDt">등록일자</option>
</select> </select>
</li>
<li style="display: flex">
<span class="cal-box"> <span class="cal-box">
<input id="sch_date_from" class="inputText cal" name="sch_date_from" type="text" title="시작 날짜 선택"> <input id="sch_date_from" class="inputText cal" name="sch_date_from" type="text" title="시작 날짜 선택">
<button type="button" name="sch_date_from" class="calendar"><span class="ico far fa-calendar-alt"> <button type="button" name="sch_date_from" class="calendar"><span class="ico far fa-calendar-alt">
@ -52,23 +54,19 @@ Date Author Description
<img style="width:18px;" src="${ctx}/resources/biz/content/images/common/main/calendar.png"/><em>달력</em></span> <img style="width:18px;" src="${ctx}/resources/biz/content/images/common/main/calendar.png"/><em>달력</em></span>
</button> </button>
</span> </span>
</li>
<li style="display: flex; padding-bottom:10px; padding-left: 10px;">
<%-- <span class="title">상태 : </span>--%> <br/>
<%-- <span class="title">상태 : </span>--%>
<select id="sch_opt" name="sch_opt" class="selectBox"> <select id="sch_opt" name="sch_opt" class="selectBox">
<option value="vhcleNo">차량번호</option> <option value="vhcleNo">차량번호</option>
</select> </select>
<input type="text" id="sch_word" name="sch_word" value=""> <input type="text" id="sch_word" name="sch_word" value="">
</li>
<li>
<span class="flr"> <span class="flr">
<a href="#" class="btn blue" id="btnSearch" title="연계파일등록">검색</a> <a href="#" class="btn blue" id="btnSearch" title="연계파일등록">검색</a>
<!-- <button type="button" class="btnSearch" id="btnSearch" name="btnSearch">검색</button>--> <!-- <button type="button" class="btnSearch" id="btnSearch" name="btnSearch">검색</button>-->
<a href="#" class="btn darkgray" id="btnRegist" title="연계파일등록">연계파일처리</a> <a href="#" class="btn darkgray" id="btnRegist" title="연계파일등록">연계파일처리</a>
</span> </span>
</li>
</ul>
</fieldset> </fieldset>
</div> </div>
</div> </div>
@ -177,6 +175,8 @@ Date Author Description
* event * event
**************************************************************************/ **************************************************************************/
$(() => { $(() => {
$('in').change(() => fnTab0Biz.search());
$('#btnSearch').on('click', () => fnTab0Biz.search()); $('#btnSearch').on('click', () => fnTab0Biz.search());
$('#btnRegist').on('click', () => { $('#btnRegist').on('click', () => {
@ -443,8 +443,8 @@ Date Author Description
,sch_date_from: $('#sch_date_from').val() ,sch_date_from: $('#sch_date_from').val()
,sch_date_to: $('#sch_date_to').val() ,sch_date_to: $('#sch_date_to').val()
,[$('#sch_opt').val()]: $('#sch_word').val() ,[$('#sch_opt').val()]: $('#sch_word').val()
,sysCode: $('#sysCode').val() ,sysCode: $('input:radio[name=sysCode]:checked').val()
,regltSeCode: $('#regltSeCode').val() ,regltSeCode: $('input:radio[name=regltSeCode]:checked').val()
//,cnfmYn: $('input[name=regltYn]:checked').val() //,cnfmYn: $('input[name=regltYn]:checked').val()
,cnfmYn: $('#cnfmYn').val() ,cnfmYn: $('#cnfmYn').val()
} }

@ -94,6 +94,11 @@
<required>false</required> <required>false</required>
<rtexprvalue>true</rtexprvalue> <rtexprvalue>true</rtexprvalue>
</attribute> </attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute> <attribute>
<name>etc_1</name> <name>etc_1</name>
<required>false</required> <required>false</required>

Loading…
Cancel
Save