Example #1
0
  public String findByCombination(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    Users user = (Users) request.getSession().getAttribute("sessionUser");
    List<Store> storeList = inventoryWarningService.findAllStoresByUid(user.getUId());
    request.setAttribute("storeList", storeList);

    String storeName = request.getParameter("hp_store");
    String beginTime = request.getParameter("beginTime");
    String endTime = request.getParameter("endTime");

    request.setAttribute("storeName", storeName);
    request.setAttribute("beginTime", beginTime);
    request.setAttribute("endTime", endTime);

    int pc = getPc(request);
    String url = getUrl(request);

    PageBean<Sale> pb = null;
    pb = rjjlService.findByCombination(storeName, beginTime, endTime, user.getUId(), pc);

    pb.setUrl(url);
    request.setAttribute("pb", pb);

    return "f:/pages/sales/rjjl.jsp";
  }
Example #2
0
  public String initLoad(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    Users user = (Users) request.getSession().getAttribute("sessionUser");
    List<Store> storeList = inventoryWarningService.findAllStoresByUid(user.getUId());
    request.setAttribute("storeList", storeList);

    int pc = getPc(request);
    String url = getUrl(request);

    PageBean<Sale> pb = rjjlService.findAllSalesByUid(user.getUId(), pc);
    pb.setUrl(url);
    request.setAttribute("pb", pb);

    return "f:/pages/sales/rjjl.jsp";
  }