CS #4787 엑셀 다운로드 완료

This commit is contained in:
hehihoho3@gmail.com 2024-12-30 15:47:49 +09:00
parent 0730ff998d
commit 34f154a3a8

View File

@ -261,6 +261,15 @@ function fnSearch(pageNo){
}
//이전 월 구하기
function prevMonth(month) {
var d = new Date();
var monthOfYear = d.getMonth();
d.setMonth(monthOfYear - month);
return getDateStr(d);
}
function fnExcelDownLoad(pageType, tabType){
var form = document.searchForm;
@ -282,7 +291,7 @@ function fnExcelDownLoad(pageType, tabType){
else {
if ($("#startDate").val() < prevMonth(3)) {
alert("최근 3개월까지만 다운로드 가능합니다.")
// return false;
return false;
}
}