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

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

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

@ -51,7 +51,7 @@
<!-- 데이트픽커 --> <!-- 데이트픽커 -->
<script src="<c:url value="/resources/lib/fims/framework/datepicker/datepicker.js?${ver}"/>"></script> <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> <script src="<c:url value="/resources/js/fims/framework/cmm/searchUtil.js"/>?${ver}"></script>

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

@ -15,3 +15,14 @@ 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