관리자 통계관리 > 일/월 매출액 화면 수정
사용자 발송결과, 예약문자관리 발송일자 표시 수정 - 30분 지연된 경우에도 발송시간은 30분 더해진 시간이 아닌 원래 보내려했던 시간으로 표시되도록 변경(관리자에서는 30분 지연된 시간으로 표시됨)
This commit is contained in:
parent
d3232e2ceb
commit
8be39a2e40
@ -207,6 +207,7 @@ public class MjonPayVO extends ComDefaultVO{
|
||||
private String amtCellSum; //휴대폰 결제 금액
|
||||
private String amtBankSum; //즉시이체 결제 금액
|
||||
private String amtVbankSum; //전용계좌 결제 금액
|
||||
private String amtAfterPaySum; //전용계좌 결제 금액
|
||||
private String amtRefundSum; //환불 금액
|
||||
private String amtTotSum; //결제 금액 총액
|
||||
|
||||
@ -215,6 +216,7 @@ public class MjonPayVO extends ComDefaultVO{
|
||||
private String amtCellSumTot; //전체 휴대폰 결제 금액
|
||||
private String amtBankSumTot; //전체 즉시이체 결제 금액
|
||||
private String amtVbankSumTot; //전체 전용계좌 결제 금액
|
||||
private String amtAfterPaySumTot; //전체 전용계좌 결제 금액
|
||||
private String amtRefundSumTot; //환불 금액
|
||||
private String amtTotSumTot; //전체 결제 금액 총액
|
||||
|
||||
@ -223,6 +225,7 @@ public class MjonPayVO extends ComDefaultVO{
|
||||
private String amtCellCnt; //휴대폰 결제 수
|
||||
private String amtBankCnt; //즉시이체 결제 수
|
||||
private String amtVbankCnt; //전용계좌 결제 수
|
||||
private String amtAfterPayCnt; //전용계좌 결제 수
|
||||
private String amtRefundCnt; //환불 수
|
||||
private String amtTotCnt; //결제 수 총수
|
||||
|
||||
@ -1708,6 +1711,30 @@ public class MjonPayVO extends ComDefaultVO{
|
||||
public void setTrdNo(String trdNo) {
|
||||
this.trdNo = trdNo;
|
||||
}
|
||||
|
||||
public String getAmtAfterPaySum() {
|
||||
return amtAfterPaySum;
|
||||
}
|
||||
|
||||
public void setAmtAfterPaySum(String amtAfterPaySum) {
|
||||
this.amtAfterPaySum = amtAfterPaySum;
|
||||
}
|
||||
|
||||
public String getAmtAfterPaySumTot() {
|
||||
return amtAfterPaySumTot;
|
||||
}
|
||||
|
||||
public void setAmtAfterPaySumTot(String amtAfterPaySumTot) {
|
||||
this.amtAfterPaySumTot = amtAfterPaySumTot;
|
||||
}
|
||||
|
||||
public String getAmtAfterPayCnt() {
|
||||
return amtAfterPayCnt;
|
||||
}
|
||||
|
||||
public void setAmtAfterPayCnt(String amtAfterPayCnt) {
|
||||
this.amtAfterPayCnt = amtAfterPayCnt;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -5352,7 +5352,7 @@ public class MjonPayController {
|
||||
|
||||
if("".equals(mjonPayVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
mjonPayVO.setSearchSortCnd("regDate");
|
||||
mjonPayVO.setSearchSortOrd("desc");
|
||||
mjonPayVO.setSearchSortOrd("asc");
|
||||
}
|
||||
|
||||
List<MjonPayVO> resultList = mjonPayService.selectPayDayChart(mjonPayVO);
|
||||
@ -5363,7 +5363,7 @@ public class MjonPayController {
|
||||
mjonPayVO.setRecordCountPerPage(10000);
|
||||
if("".equals(mjonPayVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
mjonPayVO.setSearchSortCnd("regDate");
|
||||
mjonPayVO.setSearchSortOrd("desc");
|
||||
mjonPayVO.setSearchSortOrd("asc");
|
||||
}
|
||||
|
||||
List<MjonPayVO> resultList2 = mjonPayService.selectPayDayChart(mjonPayVO);
|
||||
@ -5373,6 +5373,7 @@ public class MjonPayController {
|
||||
long amtCellSumTot = 0; //전체 휴대폰 결제 금액
|
||||
long amtBankSumTot = 0; //전체 즉시이체 결제 금액
|
||||
long amtVbankSumTot = 0; //전체 전용계좌 결제 금액
|
||||
long amtAfterPaySumTot = 0; //전체 전용계좌 결제 금액
|
||||
long amtRefundSumTot = 0; //전체 환불 금액
|
||||
long amtTotSumTot = 0; //전체 결제 금액 총액
|
||||
|
||||
@ -5382,6 +5383,7 @@ public class MjonPayController {
|
||||
amtCellSumTot += Long.parseLong(item.getAmtCellSum());
|
||||
amtBankSumTot += Long.parseLong(item.getAmtBankSum());
|
||||
amtVbankSumTot += Long.parseLong(item.getAmtVbankSum());
|
||||
amtAfterPaySumTot += Long.parseLong(item.getAmtAfterPaySum());
|
||||
amtRefundSumTot += Long.parseLong(item.getAmtRefundSum());
|
||||
amtTotSumTot += Long.parseLong(item.getAmtTotSum());
|
||||
}
|
||||
@ -5391,6 +5393,7 @@ public class MjonPayController {
|
||||
mjonPayVO.setAmtCellSumTot(amtCellSumTot + "");
|
||||
mjonPayVO.setAmtBankSumTot(amtBankSumTot + "");
|
||||
mjonPayVO.setAmtVbankSumTot(amtVbankSumTot + "");
|
||||
mjonPayVO.setAmtAfterPaySumTot(amtAfterPaySumTot + "");
|
||||
mjonPayVO.setAmtRefundSumTot(amtRefundSumTot + "");
|
||||
mjonPayVO.setAmtTotSumTot(amtTotSumTot + "");
|
||||
|
||||
@ -5402,8 +5405,217 @@ public class MjonPayController {
|
||||
|
||||
return "/uss/ion/pay/PayDayChart";
|
||||
}
|
||||
|
||||
/*
|
||||
* 일별 매출 통계 엑셀 다운로드
|
||||
*
|
||||
* */
|
||||
@RequestMapping(value= {"/uss/ion/pay/payDayChartExcelDownload.do"})
|
||||
public void payDayChartExcelDownload( MjonPayVO mjonPayVO,
|
||||
HttpServletRequest request,
|
||||
HttpServletResponse response ,
|
||||
ModelMap model) throws Exception {
|
||||
|
||||
mjonPayVO.setRecordCountPerPage(mjonPayVO.getPageUnit());
|
||||
mjonPayVO.setFirstIndex(0);
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
||||
mjonPayVO.setSiteId(loginVO.getSiteId());
|
||||
}
|
||||
// 메모리에 100개의 행을 유지합니다. 행의 수가 넘으면 디스크에 적습니다.
|
||||
SXSSFWorkbook wb = new SXSSFWorkbook(100);
|
||||
CellStyle style = wb.createCellStyle();
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN); //테두리 두껍게
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
Font font = wb.createFont();
|
||||
font.setBoldweight(Font.BOLDWEIGHT_BOLD); //글씨 bold
|
||||
|
||||
Cell cell = null;
|
||||
Row row = null;
|
||||
|
||||
String fileName ="일별 매출 통계";
|
||||
|
||||
String sheetTitle = "";
|
||||
try{
|
||||
List<MjonPayVO> resultList = mjonPayService.selectPayDayChart(mjonPayVO);
|
||||
{ //화면 리스트
|
||||
sheetTitle = "일별 매출 통계" ; //제목
|
||||
Sheet sheet = wb.createSheet(sheetTitle);
|
||||
row = sheet.createRow(0);
|
||||
|
||||
cell = row.createCell(0);
|
||||
cell.setCellValue("결제일");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(1);
|
||||
cell.setCellValue("신용카드");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(2);
|
||||
cell.setCellValue("휴대폰");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(3);
|
||||
cell.setCellValue("즉시이체");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(4);
|
||||
cell.setCellValue("전용계좌");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(5);
|
||||
cell.setCellValue("간편결제");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(6);
|
||||
cell.setCellValue("후불결제");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(7);
|
||||
cell.setCellValue("환불");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(8);
|
||||
cell.setCellValue("합계(VAT포함)");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
long amtCardSumTot = 0; //전체 신용카드 결제 금액
|
||||
long amtCellSumTot = 0; //전체 휴대폰 결제 금액
|
||||
long amtBankSumTot = 0; //전체 즉시이체 결제 금액
|
||||
long amtVbankSumTot = 0; //전체 전용계좌 결제 금액
|
||||
long amtSpaySumTot = 0; //전체 간편결제 결제 금액
|
||||
long amtAfterPaySumTot = 0; //전체 후불결제 금액
|
||||
long amtRefundSumTot = 0; //전체 환불 금액
|
||||
long amtTotSumTot = 0; //전체 결제 금액 총액
|
||||
|
||||
for(int i=0; i < resultList.size(); i++){
|
||||
row = sheet.createRow(i+1);
|
||||
for(int j=0 ; j < 9 ; j++) {
|
||||
cell = row.createCell(j);
|
||||
cell.setCellStyle(style);
|
||||
|
||||
String regDate = (resultList.get(i)).getRegDate();
|
||||
String amtCardSum = (resultList.get(i)).getAmtCardSum();
|
||||
String amtCellSum = (resultList.get(i)).getAmtCellSum();
|
||||
String amtBankSum = (resultList.get(i)).getAmtBankSum();
|
||||
String amtVbankSum = (resultList.get(i)).getAmtVbankSum();
|
||||
String amtSpaySum = (resultList.get(i)).getAmtSpaySum();
|
||||
String amtAfterPaySum = (resultList.get(i)).getAmtAfterPaySum();
|
||||
String amtRefundSum = (resultList.get(i)).getAmtRefundSum();
|
||||
String amtTotSum = (resultList.get(i)).getAmtTotSum();
|
||||
|
||||
if(j==0) cell.setCellValue(regDate); //결제월
|
||||
if(j==1) {
|
||||
cell.setCellValue(amtCardSum); //신용카드
|
||||
amtCardSumTot += Long.parseLong(amtCardSum);
|
||||
}
|
||||
if(j==2) {
|
||||
cell.setCellValue(amtCellSum); //휴대폰
|
||||
amtCellSumTot += Long.parseLong(amtCellSum);
|
||||
}
|
||||
if(j==3) {
|
||||
cell.setCellValue(amtBankSum); //즉시이체
|
||||
amtBankSumTot += Long.parseLong(amtBankSum);
|
||||
}
|
||||
if(j==4) {
|
||||
cell.setCellValue(amtVbankSum); //전용계좌
|
||||
amtVbankSumTot += Long.parseLong(amtVbankSum);
|
||||
}
|
||||
if(j==5) {
|
||||
cell.setCellValue(amtSpaySum); //간편결제
|
||||
amtSpaySumTot += Long.parseLong(amtSpaySum);
|
||||
}
|
||||
if(j==6) {
|
||||
cell.setCellValue(amtAfterPaySum); //후불결제
|
||||
amtAfterPaySumTot += Long.parseLong(amtAfterPaySum);
|
||||
}
|
||||
if(j==7) {
|
||||
cell.setCellValue(amtRefundSum); //환불
|
||||
amtRefundSumTot += Long.parseLong(amtRefundSum);
|
||||
}
|
||||
if(j==8) {
|
||||
cell.setCellValue(amtTotSum); //합계(VAT포함)
|
||||
amtTotSumTot += Long.parseLong(amtTotSum);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//전체 합계 행 추가
|
||||
row = sheet.createRow(resultList.size()+1);
|
||||
cell = row.createCell(0);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue("합계"); //결제월
|
||||
|
||||
cell = row.createCell(1);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtCardSumTot); //신용카드
|
||||
|
||||
cell = row.createCell(2);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtCellSumTot); //휴대폰
|
||||
|
||||
cell = row.createCell(3);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtBankSumTot); //즉시이체
|
||||
|
||||
cell = row.createCell(4);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtVbankSumTot); //전용계좌
|
||||
|
||||
cell = row.createCell(5);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtSpaySumTot); //간편결제
|
||||
|
||||
cell = row.createCell(6);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtAfterPaySumTot); //후불결제
|
||||
|
||||
cell = row.createCell(7);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtRefundSumTot); //환불
|
||||
|
||||
cell = row.createCell(8);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtTotSumTot); //합계(VAT포함)
|
||||
|
||||
}
|
||||
response.setHeader("Set-Cookie", "fileDownload=true; path=/");
|
||||
SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ( "yyyy_MM_dd_HH_mm_ss", Locale.KOREA );
|
||||
Date currentTime = new Date ();
|
||||
String mTime = mSimpleDateFormat.format ( currentTime );
|
||||
fileName = fileName+"("+mTime+")";
|
||||
|
||||
response.setHeader("Content-Disposition", String.format("attachment; filename=\""+new String((fileName).getBytes("KSC5601"),"8859_1")+".xlsx"));
|
||||
wb.write(response.getOutputStream());
|
||||
|
||||
}catch(Exception e) {
|
||||
response.setHeader("Set-Cookie", "fileDownload=false; path=/");
|
||||
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||
response.setHeader("Content-Type","text/html; charset=utf-8");
|
||||
OutputStream out = null;
|
||||
try {
|
||||
out = response.getOutputStream();
|
||||
byte[] data = new String("fail..").getBytes();
|
||||
out.write(data, 0, data.length);
|
||||
} catch(Exception ignore) {
|
||||
ignore.printStackTrace();
|
||||
} finally {
|
||||
if(out != null) try { out.close(); } catch(Exception ignore) {}
|
||||
if(wb != null) try { wb.dispose(); wb.close(); } catch(Exception ignore) {}
|
||||
}
|
||||
}finally {
|
||||
// 디스크 적었던 임시파일을 제거합니다.
|
||||
wb.dispose();
|
||||
try { wb.close(); } catch(Exception ignore) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 월별 결제 통계
|
||||
* 월별 매출 통계
|
||||
* @param searchVO
|
||||
* @param model
|
||||
* @return "/uss/ion/pay/payDayChart"
|
||||
@ -5434,7 +5646,7 @@ public class MjonPayController {
|
||||
}
|
||||
if("".equals(mjonPayVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
||||
mjonPayVO.setSearchSortCnd("regDate");
|
||||
mjonPayVO.setSearchSortOrd("desc");
|
||||
mjonPayVO.setSearchSortOrd("asc");
|
||||
}
|
||||
|
||||
mjonPayVO.setFirstIndex(0);
|
||||
@ -5447,6 +5659,7 @@ public class MjonPayController {
|
||||
long amtCellSumTot = 0; //전체 휴대폰 결제 금액
|
||||
long amtBankSumTot = 0; //전체 즉시이체 결제 금액
|
||||
long amtVbankSumTot = 0; //전체 전용계좌 결제 금액
|
||||
long amtAfterPaySumTot = 0; //전체 후불결제 금액
|
||||
long amtRefundSumTot = 0; //전체 환불 금액
|
||||
long amtTotSumTot = 0; //전체 결제 금액 총액
|
||||
|
||||
@ -5456,6 +5669,7 @@ public class MjonPayController {
|
||||
amtCellSumTot += Long.parseLong(item.getAmtCellSum());
|
||||
amtBankSumTot += Long.parseLong(item.getAmtBankSum());
|
||||
amtVbankSumTot += Long.parseLong(item.getAmtVbankSum());
|
||||
amtAfterPaySumTot += Long.parseLong(item.getAmtAfterPaySum());
|
||||
amtRefundSumTot += Long.parseLong(item.getAmtRefundSum());
|
||||
amtTotSumTot += Long.parseLong(item.getAmtTotSum());
|
||||
}
|
||||
@ -5465,6 +5679,7 @@ public class MjonPayController {
|
||||
mjonPayVO.setAmtCellSumTot(amtCellSumTot + "");
|
||||
mjonPayVO.setAmtBankSumTot(amtBankSumTot + "");
|
||||
mjonPayVO.setAmtVbankSumTot(amtVbankSumTot + "");
|
||||
mjonPayVO.setAmtAfterPaySumTot(amtAfterPaySumTot + "");
|
||||
mjonPayVO.setAmtRefundSumTot(amtRefundSumTot + "");
|
||||
mjonPayVO.setAmtTotSumTot(amtTotSumTot + "");
|
||||
|
||||
@ -5478,6 +5693,214 @@ public class MjonPayController {
|
||||
return "/uss/ion/pay/PayMonthChart";
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 월별 매출 통계 엑셀 다운로드
|
||||
*
|
||||
* */
|
||||
@RequestMapping(value= {"/uss/ion/pay/payMonthChartExcelDownload.do"})
|
||||
public void payMonthChartExcelDownload( MjonPayVO mjonPayVO,
|
||||
HttpServletRequest request,
|
||||
HttpServletResponse response ,
|
||||
ModelMap model) throws Exception {
|
||||
|
||||
mjonPayVO.setRecordCountPerPage(mjonPayVO.getPageUnit());
|
||||
mjonPayVO.setFirstIndex(0);
|
||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||
if(null != loginVO && !"super".equals(loginVO.getSiteId())){
|
||||
mjonPayVO.setSiteId(loginVO.getSiteId());
|
||||
}
|
||||
// 메모리에 100개의 행을 유지합니다. 행의 수가 넘으면 디스크에 적습니다.
|
||||
SXSSFWorkbook wb = new SXSSFWorkbook(100);
|
||||
CellStyle style = wb.createCellStyle();
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN); //테두리 두껍게
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
Font font = wb.createFont();
|
||||
font.setBoldweight(Font.BOLDWEIGHT_BOLD); //글씨 bold
|
||||
|
||||
Cell cell = null;
|
||||
Row row = null;
|
||||
|
||||
String fileName ="월별 매출 통계";
|
||||
|
||||
String sheetTitle = "";
|
||||
try{
|
||||
List<MjonPayVO> resultList = mjonPayService.selectPayMonthChart(mjonPayVO);
|
||||
{ //화면 리스트
|
||||
sheetTitle = "월별 매출 통계" ; //제목
|
||||
Sheet sheet = wb.createSheet(sheetTitle);
|
||||
row = sheet.createRow(0);
|
||||
|
||||
cell = row.createCell(0);
|
||||
cell.setCellValue("결제월");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(1);
|
||||
cell.setCellValue("신용카드");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(2);
|
||||
cell.setCellValue("휴대폰");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(3);
|
||||
cell.setCellValue("즉시이체");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(4);
|
||||
cell.setCellValue("전용계좌");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(5);
|
||||
cell.setCellValue("간편결제");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(6);
|
||||
cell.setCellValue("후불결제");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(7);
|
||||
cell.setCellValue("환불");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
cell = row.createCell(8);
|
||||
cell.setCellValue("합계(VAT포함)");
|
||||
cell.setCellStyle(style);
|
||||
|
||||
long amtCardSumTot = 0; //전체 신용카드 결제 금액
|
||||
long amtCellSumTot = 0; //전체 휴대폰 결제 금액
|
||||
long amtBankSumTot = 0; //전체 즉시이체 결제 금액
|
||||
long amtVbankSumTot = 0; //전체 전용계좌 결제 금액
|
||||
long amtSpaySumTot = 0; //전체 간편결제 결제 금액
|
||||
long amtAfterPaySumTot = 0; //전체 후불결제 금액
|
||||
long amtRefundSumTot = 0; //전체 환불 금액
|
||||
long amtTotSumTot = 0; //전체 결제 금액 총액
|
||||
|
||||
for(int i=0; i < resultList.size(); i++){
|
||||
row = sheet.createRow(i+1);
|
||||
for(int j=0 ; j < 9 ; j++) {
|
||||
cell = row.createCell(j);
|
||||
cell.setCellStyle(style);
|
||||
|
||||
String regDate = (resultList.get(i)).getRegDate();
|
||||
String amtCardSum = (resultList.get(i)).getAmtCardSum();
|
||||
String amtCellSum = (resultList.get(i)).getAmtCellSum();
|
||||
String amtBankSum = (resultList.get(i)).getAmtBankSum();
|
||||
String amtVbankSum = (resultList.get(i)).getAmtVbankSum();
|
||||
String amtSpaySum = (resultList.get(i)).getAmtSpaySum();
|
||||
String amtAfterPaySum = (resultList.get(i)).getAmtAfterPaySum();
|
||||
String amtRefundSum = (resultList.get(i)).getAmtRefundSum();
|
||||
String amtTotSum = (resultList.get(i)).getAmtTotSum();
|
||||
|
||||
if(j==0) cell.setCellValue(regDate); //결제월
|
||||
if(j==1) {
|
||||
cell.setCellValue(amtCardSum); //신용카드
|
||||
amtCardSumTot += Long.parseLong(amtCardSum);
|
||||
}
|
||||
if(j==2) {
|
||||
cell.setCellValue(amtCellSum); //휴대폰
|
||||
amtCellSumTot += Long.parseLong(amtCellSum);
|
||||
}
|
||||
if(j==3) {
|
||||
cell.setCellValue(amtBankSum); //즉시이체
|
||||
amtBankSumTot += Long.parseLong(amtBankSum);
|
||||
}
|
||||
if(j==4) {
|
||||
cell.setCellValue(amtVbankSum); //전용계좌
|
||||
amtVbankSumTot += Long.parseLong(amtVbankSum);
|
||||
}
|
||||
if(j==5) {
|
||||
cell.setCellValue(amtSpaySum); //간편결제
|
||||
amtSpaySumTot += Long.parseLong(amtSpaySum);
|
||||
}
|
||||
if(j==6) {
|
||||
cell.setCellValue(amtAfterPaySum); //후불결제
|
||||
amtAfterPaySumTot += Long.parseLong(amtAfterPaySum);
|
||||
}
|
||||
if(j==7) {
|
||||
cell.setCellValue(amtRefundSum); //환불
|
||||
amtRefundSumTot += Long.parseLong(amtRefundSum);
|
||||
}
|
||||
if(j==8) {
|
||||
cell.setCellValue(amtTotSum); //합계(VAT포함)
|
||||
amtTotSumTot += Long.parseLong(amtTotSum);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//총합계 행 추가
|
||||
row = sheet.createRow(resultList.size()+1);
|
||||
cell = row.createCell(0);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue("합계"); //결제월
|
||||
|
||||
cell = row.createCell(1);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtCardSumTot); //신용카드
|
||||
|
||||
cell = row.createCell(2);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtCellSumTot); //휴대폰
|
||||
|
||||
cell = row.createCell(3);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtBankSumTot); //즉시이체
|
||||
|
||||
cell = row.createCell(4);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtVbankSumTot); //전용계좌
|
||||
|
||||
cell = row.createCell(5);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtSpaySumTot); //간편결제
|
||||
|
||||
cell = row.createCell(6);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtAfterPaySumTot); //후불결제
|
||||
|
||||
cell = row.createCell(7);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtRefundSumTot); //환불
|
||||
|
||||
cell = row.createCell(8);
|
||||
cell.setCellStyle(style);
|
||||
cell.setCellValue(amtTotSumTot); //합계(VAT포함)
|
||||
|
||||
}
|
||||
response.setHeader("Set-Cookie", "fileDownload=true; path=/");
|
||||
SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ( "yyyy_MM_dd_HH_mm_ss", Locale.KOREA );
|
||||
Date currentTime = new Date ();
|
||||
String mTime = mSimpleDateFormat.format ( currentTime );
|
||||
fileName = fileName+"("+mTime+")";
|
||||
|
||||
response.setHeader("Content-Disposition", String.format("attachment; filename=\""+new String((fileName).getBytes("KSC5601"),"8859_1")+".xlsx"));
|
||||
wb.write(response.getOutputStream());
|
||||
|
||||
}catch(Exception e) {
|
||||
response.setHeader("Set-Cookie", "fileDownload=false; path=/");
|
||||
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||
response.setHeader("Content-Type","text/html; charset=utf-8");
|
||||
OutputStream out = null;
|
||||
try {
|
||||
out = response.getOutputStream();
|
||||
byte[] data = new String("fail..").getBytes();
|
||||
out.write(data, 0, data.length);
|
||||
} catch(Exception ignore) {
|
||||
ignore.printStackTrace();
|
||||
} finally {
|
||||
if(out != null) try { out.close(); } catch(Exception ignore) {}
|
||||
if(wb != null) try { wb.dispose(); wb.close(); } catch(Exception ignore) {}
|
||||
}
|
||||
}finally {
|
||||
// 디스크 적었던 임시파일을 제거합니다.
|
||||
wb.dispose();
|
||||
try { wb.close(); } catch(Exception ignore) {}
|
||||
}
|
||||
}
|
||||
|
||||
/* @RequestMapping(value= {"/web/main/vacTest.do"})
|
||||
public void vacTest() throws Exception {
|
||||
|
||||
|
||||
@ -1651,7 +1651,9 @@
|
||||
ROUND(IFNULL(S6.AMT, 0)) AS amtRefundSum,
|
||||
IFNULL(S6.CNT, 0) AS amtRefundCnt,
|
||||
ROUND(IFNULL(S7.AMT, 0)) AS amtSpaySum,
|
||||
IFNULL(S7.CNT, 0) AS amtSpayCnt
|
||||
IFNULL(S7.CNT, 0) AS amtSpayCnt,
|
||||
ROUND(IFNULL(S8.AMT, 0)) AS amtAfterPaySum,
|
||||
IFNULL(S8.CNT, 0) AS amtAfterPayCnt
|
||||
FROM (SELECT DATE_FORMAT(t1.REG_DATE, '%Y-%m-%d') AS REG_DATE ,
|
||||
SUM(t1.AMT) AS AMT,
|
||||
COUNT(0) AS CNT,
|
||||
@ -1768,6 +1770,23 @@
|
||||
)
|
||||
S7
|
||||
ON S7.REG_DATE = S1.REG_DATE
|
||||
LEFT JOIN
|
||||
( SELECT DATE_FORMAT(t8.REG_DATE, '%Y-%m-%d') AS REG_DATE ,
|
||||
SUM(t8.AMT) AS AMT,
|
||||
COUNT(0) AS CNT
|
||||
FROM MJ_PG t8
|
||||
WHERE t8.PG_STATUS = 1
|
||||
AND t8.pay_method ='AFTERPAY'
|
||||
<isNotEmpty property="ntceBgnde">
|
||||
AND <![CDATA[ DATE_FORMAT(t8.REG_DATE, '%Y-%m-%d') >= #ntceBgnde# ]]>
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="ntceEndde">
|
||||
AND <![CDATA[ DATE_FORMAT(t8.REG_DATE, '%Y-%m-%d') <= #ntceEndde# ]]>
|
||||
</isNotEmpty>
|
||||
GROUP BY DATE_FORMAT(t8.REG_DATE, '%Y-%m-%d')
|
||||
)
|
||||
S8
|
||||
ON S8.REG_DATE = S1.REG_DATE
|
||||
ORDER BY 1=1
|
||||
<isNotEmpty property="searchSortCnd">
|
||||
,$searchSortCnd$
|
||||
@ -1790,7 +1809,8 @@
|
||||
ROUND(IFNULL(S4.AMT, 0)) AS amtBankSum,
|
||||
ROUND(IFNULL(S5.AMT, 0)) AS amtVbankSum,
|
||||
ROUND(IFNULL(S6.AMT, 0)) AS amtRefundSum,
|
||||
ROUND(IFNULL(S7.AMT, 0)) AS amtSpaySum
|
||||
ROUND(IFNULL(S7.AMT, 0)) AS amtSpaySum,
|
||||
ROUND(IFNULL(S8.AMT, 0)) AS amtAfterPaySum
|
||||
FROM (SELECT DATE_FORMAT(t1.REG_DATE, '%Y-%m') AS REG_DATE ,
|
||||
SUM(t1.AMT) AS AMT,
|
||||
t1.moid AS MOID
|
||||
@ -1879,6 +1899,19 @@
|
||||
)
|
||||
S7
|
||||
ON S7.REG_DATE = S1.REG_DATE
|
||||
LEFT JOIN
|
||||
( SELECT DATE_FORMAT(t8.REG_DATE, '%Y-%m') AS REG_DATE ,
|
||||
SUM(t8.AMT) AS AMT
|
||||
FROM MJ_PG t8
|
||||
WHERE t8.PG_STATUS = 1
|
||||
AND t8.pay_method ='AFTERPAY'
|
||||
<isNotEmpty property="ntceBgnde">
|
||||
AND <![CDATA[ DATE_FORMAT(t8.REG_DATE, '%Y') = #ntceBgnde# ]]>
|
||||
</isNotEmpty>
|
||||
GROUP BY DATE_FORMAT(t8.REG_DATE, '%Y-%m')
|
||||
)
|
||||
S8
|
||||
ON S8.REG_DATE = S1.REG_DATE
|
||||
ORDER BY 1=1
|
||||
<isNotEmpty property="searchSortCnd">
|
||||
,$searchSortCnd$
|
||||
|
||||
@ -105,6 +105,44 @@ function fnSetCalMonth(val) {
|
||||
form.ntceEnddeYYYMMDD.value = year + "-" + month + "-" + date;
|
||||
|
||||
}
|
||||
|
||||
function fnGoPayList(payType, payDate){
|
||||
|
||||
var form = document.payParamForm;
|
||||
form.searchCondition2.value = payType;
|
||||
form.searchStartDate.value= payDate;
|
||||
form.searchEndDate.value= payDate;
|
||||
|
||||
form.action="<c:url value='/uss/ion/pay/PayList.do'/>";
|
||||
form.submit();
|
||||
|
||||
}
|
||||
|
||||
function fnGoPayRefundList(refundType, refundDate){
|
||||
|
||||
var form = document.payRefParamForm;
|
||||
|
||||
form.searchCondition2.value = refundType;
|
||||
form.searchStartDate.value= refundDate;
|
||||
form.searchEndDate.value= refundDate;
|
||||
|
||||
form.action="<c:url value='/uss/ion/pay/RefundList.do'/>";
|
||||
form.submit();
|
||||
|
||||
}
|
||||
|
||||
function payDayExcelDownload(){
|
||||
|
||||
var form = document.payExcelDwnForm;
|
||||
|
||||
$('#excelNtceBgnde').val($('#ntceBgndeYYYMMDD').val()) ;
|
||||
$('#excelNtceEndde').val($('#ntceEnddeYYYMMDD').val()) ;
|
||||
|
||||
form.action="<c:url value='/uss/ion/pay/payDayChartExcelDownload.do'/>";
|
||||
form.submit();
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.calBtn {
|
||||
@ -169,34 +207,28 @@ function fnSetCalMonth(val) {
|
||||
</div>
|
||||
<div class="listTop">
|
||||
<p class="tType5">총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건</p>
|
||||
<div style="float: right;">
|
||||
카드 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCardSumTot}" pattern="#,###" /></span>원,
|
||||
휴대폰 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCellSumTot}" pattern="#,###" /></span>원,
|
||||
이체 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtBankSumTot}" pattern="#,###" /></span>원,
|
||||
전용 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtVbankSumTot}" pattern="#,###" /></span>원,
|
||||
간편 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtSpaySumTot}" pattern="#,###" /></span>원,
|
||||
환불 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtRefundSumTot}" pattern="#,###" /></span>원,
|
||||
합계 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtTotSumTot}" pattern="#,###" /></span>원
|
||||
<%--
|
||||
|
||||
<select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);" style="height: 30px !important; min-width: 40px !important;">
|
||||
|
||||
<div class="rightWrap">
|
||||
<p style="vertical-align: bottom; margin-right:10px; margin-bottom:4px;"> (단위 : 원)</p>
|
||||
<input type="button" class="excelBtn" onclick="javascript:payDayExcelDownload();" style="cursor: pointer;" />
|
||||
<select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);">
|
||||
<option value='10' <c:if test="${searchVO.pageUnit == '10' or searchVO.pageUnit == ''}">selected</c:if>>10줄</option>
|
||||
<option value='20' <c:if test="${searchVO.pageUnit == '20'}">selected</c:if>>20줄</option>
|
||||
<option value='30' <c:if test="${searchVO.pageUnit == '30'}">selected</c:if>>30줄</option>
|
||||
<option value='50' <c:if test="${searchVO.pageUnit == '50'}">selected</c:if>>50줄</option>
|
||||
<option value='100' <c:if test="${searchVO.pageUnit == '100'}">selected</c:if>>100줄</option>
|
||||
</select>
|
||||
--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableWrap">
|
||||
<table class="tbType1">
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 13%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -207,6 +239,7 @@ function fnSetCalMonth(val) {
|
||||
<th>즉시이체<input type="button" class="sort sortBtn" id="sort_amtBankSum"></th>
|
||||
<th>전용계좌<input type="button" class="sort sortBtn" id="sort_amtVbankSum"></th>
|
||||
<th>간편결제<input type="button" class="sort sortBtn" id="sort_amtSpaySum"></th>
|
||||
<th>후불결제<input type="button" class="sort sortBtn" id="sort_amtAfterPaySum"></th>
|
||||
<th>환불<input type="button" class="sort sortBtn" id="sort_amtRefundSum"></th>
|
||||
<th>합계(VAT 포함)<input type="button" class="sort sortBtn" id="sort_amtTotSum"></th>
|
||||
</tr>
|
||||
@ -215,7 +248,7 @@ function fnSetCalMonth(val) {
|
||||
<c:forEach var="result" items="${resultList}" varStatus="status">
|
||||
<tr>
|
||||
<td><c:out value="${result.regDate}"/></td>
|
||||
<td>
|
||||
<td <c:if test="${result.amtCardCnt > 0}"> onclick="fnGoPayList('CARD', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtCardSum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtCardCnt > 0}">
|
||||
@ -223,7 +256,7 @@ function fnSetCalMonth(val) {
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<td <c:if test="${result.amtCellCnt > 0}"> onclick="fnGoPayList('CELLPHONE', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtCellSum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtCellCnt > 0}">
|
||||
@ -231,7 +264,7 @@ function fnSetCalMonth(val) {
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<td <c:if test="${result.amtBankCnt > 0}"> onclick="fnGoPayList('BANK', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtBankSum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtBankCnt > 0}">
|
||||
@ -239,7 +272,7 @@ function fnSetCalMonth(val) {
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<td <c:if test="${result.amtVbankCnt > 0}"> onclick="fnGoPayList('VBANK', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtVbankSum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtVbankCnt > 0}">
|
||||
@ -247,7 +280,7 @@ function fnSetCalMonth(val) {
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<td <c:if test="${result.amtSpayCnt > 0}"> onclick="fnGoPayList('SPAY', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtSpaySum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtSpayCnt > 0}">
|
||||
@ -255,7 +288,15 @@ function fnSetCalMonth(val) {
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>
|
||||
<td <c:if test="${result.amtAfterPayCnt > 0}"> onclick="fnGoPayList('AFTERPAY', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtAfterPaySum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtAfterPayCnt > 0}">
|
||||
(<fmt:formatNumber value="${result.amtAfterPayCnt}" pattern="#,###" />)
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td <c:if test="${result.amtRefundCnt > 0}"> onclick="fnGoPayRefundList('1', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtRefundSum}" pattern="#,###" />
|
||||
<c:choose>
|
||||
<c:when test="${result.amtRefundCnt > 0}">
|
||||
@ -273,8 +314,38 @@ function fnSetCalMonth(val) {
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td>
|
||||
합 계
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCardSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCellSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtBankSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtVbankSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtSpaySumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtAfterPaySumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtRefundSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtTotSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<c:if test="${empty resultList}">
|
||||
<tr><td colspan="8"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
<tr><td colspan="9"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -294,5 +365,27 @@ function fnSetCalMonth(val) {
|
||||
</div>
|
||||
</form>
|
||||
</compress:html>
|
||||
|
||||
<form id="payParamForm" name="payParamForm" method="post">
|
||||
<input type="hidden" id="searchCondition2" name="searchCondition2" value=""/><!-- 결제방식 -->
|
||||
<input type="hidden" id="searchCondition3" name="searchCondition3" value="1"/><!-- 결제상태 : 결제완료 -->
|
||||
<input type="hidden" id="searchStartDate" name="searchStartDate" value=""/><!-- 결제검색 시작일자 -->
|
||||
<input type="hidden" id="searchEndDate" name="searchEndDate" value=""/><!-- 결제검색 종료일자 -->
|
||||
<input type="hidden" id="baseMenuNo" name="baseMenuNo" value="4520000"/><!-- 결제상세 메뉴 번호 -->
|
||||
</form>
|
||||
|
||||
<form id="payRefParamForm" name="payRefParamForm" method="post">
|
||||
<input type="hidden" id="searchCondition2" name="searchCondition2" value=""/><!-- 구분방식 -->
|
||||
<input type="hidden" id="searchRefundStatus" name="searchRefundStatus" value="3"/><!-- 처리상태 : 처리완료 -->
|
||||
<input type="hidden" id="searchStartDate" name="searchStartDate" value=""/><!-- 환불검색 시작일자 -->
|
||||
<input type="hidden" id="searchEndDate" name="searchEndDate" value=""/><!-- 환불검색 종료일자 -->
|
||||
<input type="hidden" id="baseMenuNo" name="baseMenuNo" value="4550000"/><!-- 결제상세 메뉴 번호 -->
|
||||
</form>
|
||||
|
||||
<form id="payExcelDwnForm" name="payExcelDwnForm" method="post">
|
||||
<input type="hidden" name="ntceBgnde" id="excelNtceBgnde" value="<c:out value="${searchVO.ntceBgnde}" />">
|
||||
<input type="hidden" name="ntceEndde" id="excelNtceEndde" value="<c:out value="${searchVO.ntceEndde}" />">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -58,6 +58,80 @@ $(document).ready(function(){
|
||||
$('#ntceBgnde').val($('#searchYear option:selected').val());
|
||||
listForm.submit();
|
||||
}
|
||||
|
||||
function fnGoPayList(payType, payDate){
|
||||
var form = document.payParamForm;
|
||||
|
||||
//월의 시작/마지막일 받아오기
|
||||
var FLDate = getFLDate(payDate);
|
||||
|
||||
form.searchCondition2.value = payType;
|
||||
form.searchStartDate.value= FLDate[0];
|
||||
form.searchEndDate.value= FLDate[1];
|
||||
|
||||
console.log(form.searchCondition2.value);
|
||||
|
||||
form.action="<c:url value='/uss/ion/pay/PayList.do'/>";
|
||||
form.submit();
|
||||
|
||||
}
|
||||
|
||||
function fnGoPayRefundList(refundType, refundDate){
|
||||
|
||||
var form = document.payRefParamForm;
|
||||
|
||||
//월의 시작/마지막일 받아오기
|
||||
var FLDate = getFLDate(refundDate);
|
||||
|
||||
form.searchCondition2.value = refundType;
|
||||
form.searchStartDate.value= FLDate[0];
|
||||
form.searchEndDate.value= FLDate[1];
|
||||
|
||||
form.action="<c:url value='/uss/ion/pay/RefundList.do'/>";
|
||||
form.submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function payMonthExcelDownload(){
|
||||
|
||||
var frm = document.payExcelDwnForm;
|
||||
$('#excelNtceBgnde').val($('#searchYear option:selected').val());
|
||||
frm.action = "<c:url value='/uss/ion/pay/payMonthChartExcelDownload.do'/>";
|
||||
frm.submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
//날짜 월의 첫번째 날짜와 마지막 날짜 생성하기
|
||||
function getFLDate(date){
|
||||
|
||||
var splitDate = [];
|
||||
splitDate = date.split("-");
|
||||
|
||||
var year = splitDate[0];
|
||||
var month = Number(splitDate[1]-1);
|
||||
|
||||
//해당월의 첫째날 구하기
|
||||
var firstDate = new Date(year, Number(month), 1);
|
||||
|
||||
//해당 월의 마지막날 구하기
|
||||
var lastDate = new Date(year, Number(month)+1, 0);
|
||||
|
||||
//날짜 포맷 변환하기
|
||||
var fDate = firstDate.getFullYear() +
|
||||
"-" + ((firstDate.getMonth() + 1) > 9 ? (firstDate.getMonth() + 1).toString() : "0" + (firstDate.getMonth() + 1)) +
|
||||
"-" + (firstDate.getDate() > 9 ? firstDate.getDate().toString() : "0" + firstDate.getDate().toString());
|
||||
var lDate = lastDate.getFullYear() +
|
||||
"-" + ((lastDate.getMonth() + 1) > 9 ? (lastDate.getMonth() + 1).toString() : "0" + (lastDate.getMonth() + 1)) +
|
||||
"-" + (lastDate.getDate() > 9 ? lastDate.getDate().toString() : "0" + lastDate.getDate().toString());
|
||||
|
||||
var rtnDate = [];
|
||||
rtnDate[0] = fDate;
|
||||
rtnDate[1] = lDate;
|
||||
return rtnDate;
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
@ -117,14 +191,14 @@ $(document).ready(function(){
|
||||
<div class="listTop">
|
||||
<p class="tType5">총 <span class="tType4 c_456ded fwBold"><fmt:formatNumber value="${paginationInfo.totalRecordCount}" pattern="#,###" /></span>건</p>
|
||||
|
||||
<div style="float: right;">
|
||||
카드 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCardSumTot}" pattern="#,###" /></span>원,
|
||||
휴대폰 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCellSumTot}" pattern="#,###" /></span>원,
|
||||
이체 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtBankSumTot}" pattern="#,###" /></span>원,
|
||||
전용 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtVbankSumTot}" pattern="#,###" /></span>원,
|
||||
간편 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtSpaySumTot}" pattern="#,###" /></span>원,
|
||||
환불 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtRefundSumTot}" pattern="#,###" /></span>원,
|
||||
합계 : <span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtTotSumTot}" pattern="#,###" /></span>원
|
||||
<div class="rightWrap">
|
||||
<p style="vertical-align: bottom; margin-right:10px; margin-bottom:4px;"> (단위 : 원)</p>
|
||||
<input type="button" class="excelBtn" onclick="javascript:payMonthExcelDownload();" style="cursor: pointer;" />
|
||||
<%-- <select name="pageUnit" id="pageUnit" class="select" title="검색조건선택" onchange="linkPage(1);">
|
||||
<option value='10' <c:if test="${searchVO.pageUnit == '10' or searchVO.pageUnit == ''}">selected</c:if>>10줄</option>
|
||||
<option value='50' <c:if test="${searchVO.pageUnit == '50'}">selected</c:if>>50줄</option>
|
||||
<option value='100' <c:if test="${searchVO.pageUnit == '100'}">selected</c:if>>100줄</option>
|
||||
</select> --%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -133,12 +207,13 @@ $(document).ready(function(){
|
||||
<table class="tbType1">
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 12.5%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 11%">
|
||||
<col style="width: 13%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
@ -149,6 +224,7 @@ $(document).ready(function(){
|
||||
<th>즉시이체<input type="button" class="sort sortBtn" id="sort_amtBankSum"></th>
|
||||
<th>전용계좌<input type="button" class="sort sortBtn" id="sort_amtVbankSum"></th>
|
||||
<th>간편결제<input type="button" class="sort sortBtn" id="sort_amtSpaySum"></th>
|
||||
<th>후불결제<input type="button" class="sort sortBtn" id="sort_amtAfterPaySum"></th>
|
||||
<th>환불<input type="button" class="sort sortBtn" id="sort_amtRefundSum"></th>
|
||||
<th>합계(VAT 포함)<input type="button" class="sort sortBtn" id="sort_amtTotSum"></th>
|
||||
</tr>
|
||||
@ -156,13 +232,30 @@ $(document).ready(function(){
|
||||
<tbody>
|
||||
<c:forEach var="result" items="${resultList}" varStatus="status">
|
||||
<tr>
|
||||
<td><c:out value="${result.regDate}"/></td>
|
||||
<td><fmt:formatNumber value="${result.amtCardSum}" pattern="#,###" /></td>
|
||||
<td><fmt:formatNumber value="${result.amtCellSum}" pattern="#,###" /></td>
|
||||
<td><fmt:formatNumber value="${result.amtBankSum}" pattern="#,###" /></td>
|
||||
<td><fmt:formatNumber value="${result.amtVbankSum}" pattern="#,###" /></td>
|
||||
<td><fmt:formatNumber value="${result.amtSpaySum}" pattern="#,###" /></td>
|
||||
<td><fmt:formatNumber value="${result.amtRefundSum}" pattern="#,###" /></td>
|
||||
<td>
|
||||
<c:out value="${result.regDate}"/>
|
||||
</td>
|
||||
<td <c:if test="${result.amtCardSum > 0}"> onclick="fnGoPayList('CARD', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtCardSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td <c:if test="${result.amtCellSum > 0}"> onclick="fnGoPayList('CELLPHONE', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtCellSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td <c:if test="${result.amtBankSum > 0}"> onclick="fnGoPayList('BANK', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtBankSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td <c:if test="${result.amtVbankSum > 0}"> onclick="fnGoPayList('VBANK', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtVbankSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td <c:if test="${result.amtSpaySum > 0}"> onclick="fnGoPayList('SPAY', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtSpaySum}" pattern="#,###" />
|
||||
</td>
|
||||
<td <c:if test="${result.amtAfterPaySum > 0}"> onclick="fnGoPayList('AFTERPAY', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtAfterPaySum}" pattern="#,###" />
|
||||
</td>
|
||||
<td <c:if test="${result.amtRefundSum >= 0}"> onclick="fnGoPayRefundList('1', '<c:out value="${result.regDate}"/>');" style="cursor:pointer;" </c:if> >
|
||||
<fmt:formatNumber value="${result.amtRefundSum}" pattern="#,###" />
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${result.amtTotSum > 0}">
|
||||
@ -175,8 +268,37 @@ $(document).ready(function(){
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td>
|
||||
합 계
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCardSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtCellSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtBankSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtVbankSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtSpaySumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtAfterPaySumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtRefundSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tType5 c_456ded"><fmt:formatNumber value="${mjonPayVO.amtTotSumTot}" pattern="#,###" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${empty resultList}">
|
||||
<tr><td colspan="8"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
<tr><td colspan="9"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -185,5 +307,25 @@ $(document).ready(function(){
|
||||
</div>
|
||||
</form>
|
||||
</compress:html>
|
||||
<form id="payParamForm" name="payParamForm" method="post">
|
||||
<input type="hidden" id="searchCondition2" name="searchCondition2" value=""/><!-- 결제방식 -->
|
||||
<input type="hidden" id="searchCondition3" name="searchCondition3" value="1"/><!-- 결제상태 : 결제완료 -->
|
||||
<input type="hidden" id="searchStartDate" name="searchStartDate" value=""/><!-- 결제검색 시작일자 -->
|
||||
<input type="hidden" id="searchEndDate" name="searchEndDate" value=""/><!-- 결제검색 종료일자 -->
|
||||
<input type="hidden" id="baseMenuNo" name="baseMenuNo" value="4520000"/><!-- 결제상세 메뉴 번호 -->
|
||||
</form>
|
||||
|
||||
<form id="payRefParamForm" name="payRefParamForm" method="post">
|
||||
<input type="hidden" id="searchCondition2" name="searchCondition2" value=""/><!-- 구분방식 -->
|
||||
<input type="hidden" id="searchRefundStatus" name="searchRefundStatus" value="3"/><!-- 처리상태 : 처리완료 -->
|
||||
<input type="hidden" id="searchStartDate" name="searchStartDate" value=""/><!-- 환불검색 시작일자 -->
|
||||
<input type="hidden" id="searchEndDate" name="searchEndDate" value=""/><!-- 환불검색 종료일자 -->
|
||||
<input type="hidden" id="baseMenuNo" name="baseMenuNo" value="4550000"/><!-- 결제상세 메뉴 번호 -->
|
||||
</form>
|
||||
|
||||
<form id="payExcelDwnForm" name="payExcelDwnForm" method="post">
|
||||
<input type="hidden" name="ntceBgnde" id="excelNtceBgnde" value="<c:out value="${searchVO.ntceBgnde}" />">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -163,12 +163,12 @@ function fnSelectMber(mberId) {
|
||||
</select>
|
||||
<input type="hidden" name="cal_url" id="cal_url" value="/sym/cmm/EgovNormalCalPopup.do">
|
||||
<div class="calendar_box" onclick="javascript:fn_egov_NormalCalendar(document.forms.listForm, document.forms.listForm.searchStartDate);">
|
||||
<input style="width:auto;min-width: 83px;" type="text" class="date_format" name="searchStartDate" id="searchStartDate" size="4" maxlength="4" readonly="" value="<c:out value='${searchVO.searchStartDate}'/>">
|
||||
<input style="width:auto;min-width: 83px;" type="text" class="date_format" name="searchStartDate" id="searchStartDate" size="4" maxlength="4" readonly="" value="<c:out value='${RefundVO.searchStartDate}'/>">
|
||||
<input type="button" class="calBtn">
|
||||
</div>
|
||||
<span class="line">~</span>
|
||||
<div class="calendar_box" onclick="javascript:fn_egov_NormalCalendar(document.forms.listForm, document.forms.listForm.searchEndDate);">
|
||||
<input style="width:auto;min-width: 83px;" type="text" class="date_format" name="searchEndDate" id="searchEndDate" size="4" maxlength="4" readonly="" value="<c:out value='${searchVO.searchEndDate}'/>">
|
||||
<input style="width:auto;min-width: 83px;" type="text" class="date_format" name="searchEndDate" id="searchEndDate" size="4" maxlength="4" readonly="" value="<c:out value='${RefundVO.searchEndDate}'/>">
|
||||
<input type="button" class="calBtn">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user