[사용자] 결제관리 > 요금 결제내역 ==> 이번년도 버튼 넣어주세요
This commit is contained in:
parent
5fc8420d15
commit
04f56b42f9
@ -399,6 +399,7 @@ function getMberGrdChk() {
|
||||
<span class="dateEtc">~</span>
|
||||
<input type="text" class="endDate inp calendar" title="검색 종료일" id="endDate" name="endDate" value="<c:out value="${searchVO.endDate}" />" data-datecontrol="true">
|
||||
</div>
|
||||
<button type="button" onclick="fn_G_getCurrYearDateRange('startDate','endDate'); return false;" class="btnType btnType19">이번년도</button>
|
||||
<button type="button" onclick="setCalVal(lastfulstday,'startDate');setCalVal( lastfuledday,'endDate'); return false;" class="btnType btnType19">전월</button>
|
||||
<button type="button" onclick="setCalVal(thisfulstlday,'startDate');setCalVal( thisfuledtlday,'endDate'); return false;" class="btnType btnType19">당월</button>
|
||||
<button type="button" onclick="linkPage(1); return false;" class="btnType btnType6">조회</button>
|
||||
|
||||
@ -57,3 +57,24 @@ function fn_G_cmndataValueChk(startId, endId, chkMonth) {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 이번년도 시작날짜와 종료날짜 구하기
|
||||
* @param {String} a 값 입력할 search start input ID
|
||||
* @param {String} b 값 입력할 search start input ID
|
||||
* @returns {String} a ID value 해당년도/01/01
|
||||
* {String} b ID value 해당년도/12/31
|
||||
*/
|
||||
function fn_G_getCurrYearDateRange(startId, endId) {
|
||||
|
||||
// 현재 년도 구하기
|
||||
var currentYear = new Date().getFullYear();
|
||||
|
||||
// 현재 년도를 기준으로 시작일과 종료일 설정
|
||||
var startOfYear = currentYear + '/01/01';
|
||||
var endOfYear = currentYear + '/12/31';
|
||||
|
||||
$('#'+startId).val(startOfYear);
|
||||
$('#'+endId).val(endOfYear);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user