1. 상세검색 버튼 아이콘 토글 함수 추가

2. 카멜표기법->케밥표기법 변경 함수 추가
main
이범준 1 year ago
parent 8b71650c2d
commit 9f222420f7

@ -16,38 +16,49 @@ public class CrdnQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
//조회유형
private String view;
private String grid;
private String inspectionDataType;
//현재정보
private String currentUserId;
private String currentInstitute;
//ID
private String crdnId;
private String[] crdnIDs;
private String amtDcsnCdGroupId;
private String dtlAmtDcsnCdGroupId;
private String vhrno;
private String cvlcptPrcsPicNm;
//날짜
private String aplcnYmd;
private String schCvlcptRcptYmdFrom;
private String schCvlcptRcptYmdTo;
private String schRductYmdFrom;
private String schRductYmdTo;
private String schCrdnYmdFrom;
private String schCrdnYmdTo;
//from, to
private Integer schCrdnCntFrom;
private Integer schCrdnCntTo;
//코드
private String amtDcsnCd;
private String dtlAmtDcsnCd;
private String crdnInptSeCd;
private String cvlcptPrcsCd;
//포함, 제외, 특정 자료
private String schOnlySamePlace;
private String schOnlyUnpay;
private String schExclEnd;
private String schExclTimeout;
private String crdnInptSeCd;
private String cvlcptPrcsCd;
private String aplcnYmd;
private String amtDcsnCdGroupId;
private String amtDcsnCd;
private String dtlAmtDcsnCdGroupId;
private String dtlAmtDcsnCd;
//기타
private String vhrno;
private String cvlcptPrcsPicNm;
public String getView() {
return ifEmpty(view, () -> null);

@ -392,7 +392,8 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDetailSearchButton("frmSearch--${pageName}");
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);

@ -717,7 +717,8 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDetailSearchButton("frmSearch--${pageName}");
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);

@ -51,7 +51,7 @@
<!-- 데이트픽커 -->
<script src="<c:url value="/resources/lib/fims/framework/datepicker/datepicker.js?${ver}"/>"></script>
<script src="<c:url value="/resources/js/fims/framework/cmm/initDatepicker.js?${ver}"/>"></script>
<script src="<c:url value="/resources/js/fims/framework/cmm/initAfterPageLoad.js?${ver}"/>"></script>
<!-- 검색 유틸 -->
<script src="<c:url value="/resources/js/fims/framework/cmm/searchUtil.js"/>?${ver}"></script>

@ -262,3 +262,11 @@ function snakeToCamel(text){
}
return text;
}
/**
* 카멜 표기법을 케밥 표기법으로 변경한다.
* @return 치환된 문자열
*/
function camelToKebab(text){
return text.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
}

@ -14,4 +14,15 @@ function initDatepicker(elementId){
});
}
function initDetailSearchButton(elementId){
var executionArea = $("#"+elementId);
/*--------------------- 상세검색 버튼 제어 ---------------------*/
executionArea.find(".btn-open-detail").on("click", function() {
$(this).find('i').toggleClass('bx-chevron-down');
$(this).find('i').toggleClass('bx-chevron-up');
});
}
Loading…
Cancel
Save