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;
@ -27,7 +28,9 @@ public class CodeRadioBoxTag extends TagSupport {
private String cls = ""; private String cls = "";
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("'");
@ -53,7 +74,7 @@ public class CodeRadioBoxTag extends TagSupport {
sb.append(" value='").append(map.get("code")).append("'"); sb.append(" value='").append(map.get("code")).append("'");
sb.append( isDefaultSelect((String) map.get("code"))); sb.append( isDefaultSelect((String) map.get("code")));
sb.append(" alt='").append(this.alt).append("'/>").append("\n"); sb.append(" alt='").append(this.alt).append("'/>").append("\n");
sb.append("<label for='").append(this.id+"_"+index).append("'>"); sb.append("<label for='").append(this.id+"_"+index).append("'>");
sb.append(map.get("code_nm")); sb.append(map.get("code_nm"));
sb.append("</label>").append("\n"); sb.append("</label>").append("\n");

@ -14,61 +14,59 @@ 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"> <!--
<option value="">전체</option> <select id="cnfmYn" name="cnfmYn" title="확인여부" class="selectBox">
<option value="Y">확인</option> <option value="">전체</option>
<option value="N" selected>미확인</option> <option value="Y">확인</option>
</select> <option value="N" selected>미확인</option>
</li> </select>
<li style="display: flex"> -->
<%-- <span class="title"><label style="padding-right: 10px;">조회일자</label></span>--%>
<select id="sch_date_opt" name="sch_date_opt" class="selectBox">
<option value="regltDe">단속일자</option> <%-- <span class="title"><label style="padding-right: 10px;">조회일자</label></span>--%>
<option value="registDt">등록일자</option> <br/>
</select> <select id="sch_date_opt" name="sch_date_opt" class="selectBox">
</li> <option value="regltDe">단속일자</option>
<li style="display: flex"> <option value="registDt">등록일자</option>
<span class="cal-box"> </select>
<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">
<img style="width:18px;" src="${ctx}/resources/biz/content/images/common/main/calendar.png"/><em>달력</em></span>
</button>
~
<input id="sch_date_to" class="inputText cal" name="sch_date_to" type="text" title="종료 날짜 선택" placeholder="날짜를 선택하세요">
<button type="button" name="sch_date_to" class="calendar"><span class="ico far fa-calendar-alt">
<img style="width:18px;" src="${ctx}/resources/biz/content/images/common/main/calendar.png"/><em>달력</em></span>
</button>
</span>
</li>
<li style="display: flex; padding-bottom:10px; padding-left: 10px;">
<%-- <span class="title">상태 : </span>--%> <span class="cal-box">
<select id="sch_opt" name="sch_opt" class="selectBox"> <input id="sch_date_from" class="inputText cal" name="sch_date_from" type="text" title="시작 날짜 선택">
<option value="vhcleNo">차량번호</option> <button type="button" name="sch_date_from" class="calendar"><span class="ico far fa-calendar-alt">
</select> <img style="width:18px;" src="${ctx}/resources/biz/content/images/common/main/calendar.png"/><em>달력</em></span>
<input type="text" id="sch_word" name="sch_word" value=""> </button>
</li> ~
<li> <input id="sch_date_to" class="inputText cal" name="sch_date_to" type="text" title="종료 날짜 선택" placeholder="날짜를 선택하세요">
<span class="flr"> <button type="button" name="sch_date_to" class="calendar"><span class="ico far fa-calendar-alt">
<a href="#" class="btn blue" id="btnSearch" title="연계파일등록">검색</a> <img style="width:18px;" src="${ctx}/resources/biz/content/images/common/main/calendar.png"/><em>달력</em></span>
<!-- <button type="button" class="btnSearch" id="btnSearch" name="btnSearch">검색</button>--> </button>
<a href="#" class="btn darkgray" id="btnRegist" title="연계파일등록">연계파일처리</a> </span>
</span>
</li>
</ul> <br/>
<%-- <span class="title">상태 : </span>--%>
<select id="sch_opt" name="sch_opt" class="selectBox">
<option value="vhcleNo">차량번호</option>
</select>
<input type="text" id="sch_word" name="sch_word" value="">
<span class="flr">
<a href="#" class="btn blue" id="btnSearch" title="연계파일등록">검색</a>
<!-- <button type="button" class="btnSearch" id="btnSearch" name="btnSearch">검색</button>-->
<a href="#" class="btn darkgray" id="btnRegist" title="연계파일등록">연계파일처리</a>
</span>
</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