// 为模块“付汇到付款”查询付汇管理单据
  private String listFuHuiForPayment(HttpServletRequest request, HttpServletResponse response) {
    String resultPage = "/beijing/finance/FuHui2Payment_list.jsp";
    try {
      int curPage = 1;
      try {
        curPage = Integer.parseInt(request.getParameter(Constant.PARA_CURPAGE));
      } catch (Exception ex) {
        curPage = 1;
      }

      // 日期区间查询
      // 获取查询条件
      String colName = "minTime,maxTime,CustomerID,MandatorID,CurrencyID,ReceiverID,PaymentStatus";
      HashMap<String, String> colhm = GlobalFunc.getHashMap4ChooseInfo(request, colName, 1);

      // 获取权限和用户设置
      String menuID = "43";
      int pageRows = GlobalFunc.getSettingAndRight(menuID, request, colhm);

      // 获取数量明细信息
      ArrayList<HashMap<String, String>> Temp_List =
          payMoneyManager.listFuHuiForPayment(pageRows, curPage, colhm);

      request.setAttribute(Constant.PARA_LIST, Temp_List); // 返回查询结果给页面
      request.setAttribute("colhm", colhm); // 返回查询条件和页面信息给页面

      // 获取查询界面的下拉框
      request.setAttribute("ReceiverList", GlobalFunction.getAllReceivers(""));
      request.setAttribute("MandatorList", GlobalFunction.getAllCustomers());
      request.setAttribute("CustomerList", GlobalFunction.getAllCustomers());
      request.setAttribute("CurrencyList", GlobalFunction.getAllCurrency("0"));

    } catch (Exception e) {
      GlobalFunc.printErrorInfo(
          getClass().getName(), request.getParameter("action"), GlobalFunc.getUserName(request));
      e.printStackTrace();
      request.setAttribute(Constant.ERROR_EXCEPTION, e.getMessage().toString());
      resultPage = Constant.ERROR_PAGE;
    }

    return resultPage;
  }
  // 添加核销单据之前准备数据
  @SuppressWarnings("unused")
  private String toAddOrderForFuHui(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    String resultPage = "/beijing/finance/customerPayMoney_edit.jsp";
    try {
      int page = 1;
      try {
        page = Integer.parseInt(request.getParameter(Constant.PARA_CURPAGE));
      } catch (Exception ex) {
        page = 1;
      }

      // 根据ID获得付汇信息
      HashMap<String, String> orderHM = payMoneyManager.getFuHuiInfo(request.getParameter("ID"));
      String CurrencyID = orderHM.get("CurrencyID").toString();
      String MandatorID = orderHM.get("MandatorID").toString();
      String CustomerID = orderHM.get("CustomerID").toString();
      String BrandID = "";

      if (request.getParameter("BrandID") != null && request.getParameter("BrandID").length() > 0) {
        BrandID = request.getParameter("BrandID");
      }

      HttpSession session = request.getSession(true);
      String strids = request.getParameter("strids");

      session.removeAttribute("PayMoneyIDS");
      session.setAttribute("PayMoneyIDS", strids);

      double chooseMoney = 0.0;

      if (request.getParameter("chooseMoney") != null
          && request.getParameter("chooseMoney").toString().length() > 0) {
        chooseMoney = Double.parseDouble(request.getParameter("chooseMoney"));
      }

      double remainMoney = payMoneyManager.getFuHuiRemainMoney(orderHM, chooseMoney);
      remainMoney = PBMeth.round(remainMoney, 2);

      // 获得用户选择的接收单Id,传回页面
      String orderIds = "";
      if (request.getParameter("orderIds") != null
          && request.getParameter("orderIds").length() > 0) {
        orderIds = request.getParameter("orderIds");
      }

      // chooseMoney = Double.parseDouble(orderHM.get("Money").toString()) - remainMoney;

      // 获得用户设置的每页显示行数
      String UserID = GlobalFunc.getUserID(request);
      int pageRows = Integer.parseInt(GlobalFunc.getUserPerPageNum(request));

      // 根据付汇单信息获得可添加成核销的接收单数量
      int totalRows =
          payMoneyManager.getAddToPayReceiveOrderTotalRows(
              MandatorID, CustomerID, CurrencyID, BrandID, "");
      // 根据总数据量和每页显示行数得到总页数
      int totalPage = PageManager.getTotalPages(totalRows, pageRows);
      // 获得可添加的接收单List
      ArrayList<?> Temp_List =
          payMoneyManager.getForFuHuiReceiveOrder(
              page, pageRows, MandatorID, CustomerID, CurrencyID, BrandID, "");

      request.setAttribute(Constant.PARA_LIST, Temp_List);
      request.setAttribute("BorderHeight", GlobalFunc.getBorderHeight(request));
      request.setAttribute("remainMoney", String.valueOf(remainMoney));
      request.setAttribute("chooseMoney", String.valueOf(chooseMoney));
      request.setAttribute("orderIds", orderIds);
      request.setAttribute("OrderHM", orderHM);
      request.setAttribute("BrandID", BrandID);

      request.setAttribute(Constant.PARA_CURPAGE, page);
      request.setAttribute(Constant.PARA_TOTALROWS, totalRows);
      request.setAttribute(Constant.PARA_TOTALPAGE, totalPage);
      request.setAttribute("BrandList", GlobalFunction.getAllBJJieSuanBrand("0"));

    } catch (ACDException e) {
      request.setAttribute(Constant.ERROR_EXCEPTION, e);
      resultPage = Constant.ERROR_JSP;
    } catch (Exception e) {
      e.printStackTrace();
    }

    return resultPage;
  }