Пример #1
0
  /**
   * Query of HQ pay to ASC
   *
   * @param request HttpServletRequest
   * @param form ActionForm
   * @return String Return page of HQ pay to ASC
   */
  public String list(HttpServletRequest request, ActionForm form) {
    String forward = "HQPayToASCList";

    try {
      HttpSession session = request.getSession();
      // ArrayList orgList = (ArrayList)session.getAttribute("sessionRCHQStation");
      Integer orgType = (Integer) session.getAttribute("orgType");
      Long userId = (Long) session.getAttribute("userId");
      ASCBalanceConfirmForm cf = (ASCBalanceConfirmForm) form;
      // cf.setOrgs(Operate.arrayListToString(orgList));
      if (orgType.intValue() == 2 || orgType.intValue() == 3 || orgType.intValue() == 6) {
        cf.setOrgs("");
        cf.setCreateBy(userId);
      } else {
        Long orgCode = (Long) session.getAttribute("orgCode");
        cf.setOrgs(orgCode.toString());
        cf.setCreateBy(userId);
      }
      // HQPayToASCBO ubo = new HQPayToASCBO();
      request.setAttribute("QueryList", hqPayToASCBO.list(cf));
    } catch (Exception e) {
      e.printStackTrace();
    }
    return forward;
  }