Package com.sfpay.histran.base

Examples of com.sfpay.histran.base.Page


    map.put("pan", histran.getPan());

    map.put("start", (nowPage - 1) * pageSize);
    map.put("pageSize", 20);

    Page page = new Page(nowPage, histranDao.queryCount(map), pageSize, histranDao.queryList(map));

    return page;
  }
View Full Code Here


      histran.setTxnAmt(1);
    } else {
      histran.setTxnAmt(0);
    }

    Page page = histranService.query(histran, currentPage, txnAmt1, txnAmt2);
    if (logger.isDebugEnabled()) {
      // 获取参数的方式,通过增加方法的参数来自动将数据封装到对象中。
      logger.debug(histran.toString());
      logger.debug(page.toString());
    }

    histran.setTxnDate(txnDate);
    histran.setSettleDate(settleDate);

    request.setAttribute("page", page);
    request.setAttribute("histran", histran);
    if (txnAmt1 != 0) {
      request.setAttribute("txnAmt1", txnAmt1);
    }
    if (txnAmt2 != 0) {
      request.setAttribute("txnAmt2", txnAmt2);
    }
    request.setAttribute("currentPage", currentPage);
    request.setAttribute("totalSize", page.getTotalSize());
    request.setAttribute("pageSize", page.getPageSize());
    request.setAttribute("totalPageCount", page.getTotalPageCount());
    return "histran/index";
  }
View Full Code Here

TOP

Related Classes of com.sfpay.histran.base.Page

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.