public ModelAndView getRRDetail(HttpServletRequest request, HttpServletResponse response)
      throws ParseException {
    HashMap<String, Object> json = new HashMap<String, Object>();

    ReceiveReportDao rrDao = DaoFactory.createReceiveReportDao();

    List<Map<String, Object>> rows;
    if (request.getParameter("isRevise") == null) {
      rows = rrDao.getReceivingDetailForAccounting(request.getParameter("rrCode"));
    } else {
      rows = rrDao.getReceivingDetailForAccounting(request.getParameter("rrCode"), 1);
    }
    json.put("rows", rows);

    return new ModelAndView("jsonView", json);
  }
  public ModelAndView getRR(HttpServletRequest request, HttpServletResponse response)
      throws ParseException {
    HashMap<String, Object> json = new HashMap<String, Object>();

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    List<HashMap<String, Object>> rows = new ArrayList<HashMap<String, Object>>();

    ReceiveReportDao rrDao = DaoFactory.createReceiveReportDao();
    List<ReceiveReport> rrList =
        rrDao.findByDatePeriod(
            sdf.parse(request.getParameter("dateFrom")), sdf.parse(request.getParameter("dateTo")));
    for (ReceiveReport rr : rrList) {
      HashMap<String, Object> row = MapperNonFishReceiveReportAccounting.parseToHashMap(rr);
      rows.add(row);
    }
    json.put("rows", rows);

    return new ModelAndView("jsonView", json);
  }