Example #1
0
  /**
   * 执行修缮申请的查询处理
   *
   * @param mapping
   * @param form
   * @param request
   * @param response
   * @return
   * @throws Exception
   */
  public ActionForward querySquareList(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    String power = request.getParameter("power");
    if (!RemedyPowerConstant.LIST_POWER.equals(power)
        && !RemedyPowerConstant.SQUARE_LIST_POWER.equals(power)) {
      if (!CheckPower.checkPower(request.getSession(), power)) {
        return mapping.findForward("powererror");
      }
    }
    super.setPageReset(request);
    logger(RemedyBaseAction.class);

    initRemedyBaseBo();
    logger.info(remedyBaseBo.getClass().getName() + "...................");
    String condition = remedyBaseBo.compositeCondition(request, form);
    List list = remedyBaseBo.queryList(condition);

    request.getSession().setAttribute("APPLY_LIST", list);
    request.getSession().setAttribute("POWER", power);

    return mapping.findForward("list_square_remedy_apply");
  }
Example #2
0
  /**
   * 执行修缮申请的查询处理
   *
   * @param mapping
   * @param form
   * @param request
   * @param response
   * @return
   * @throws Exception
   */
  public ActionForward queryList(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    super.setPageReset(request);
    logger(RemedyBaseAction.class);

    initRemedyBaseBo();
    logger.info(remedyBaseBo.getClass().getName() + "...................");
    String condition = remedyBaseBo.compositeCondition(request, form);
    List list = remedyBaseBo.queryList(condition);

    request.getSession().setAttribute("APPLY_LIST", list);
    return mapping.findForward("list_remedy_apply");
  }
  /**
   * 执行材料微调列表页面
   *
   * @param mapping
   * @param form
   * @param request
   * @param response
   * @return
   * @throws Exception
   */
  public ActionForward queryList(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    if (!CheckPower.checkPower(request.getSession(), RemedyPowerConstant.ADJUST_POWER)) {
      return mapping.findForward("powererror");
    }
    logger(RemedyMaterialAction.class);
    super.setPageReset(request);

    RemedyMaterialManager bo = new RemedyMaterialManager();
    String condition = bo.compositeCondition(request, form);
    List list = bo.queryList(condition);

    request.getSession().setAttribute("MATERIAL_LIST", list);
    return mapping.findForward("list_remedy_material");
  }