예제 #1
0
  // 为模块“付汇到付款”查询付汇管理单据
  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;
  }
예제 #2
0
  // 付汇单据生成付款申请单
  private String createFKCode(HttpServletRequest request, HttpServletResponse response) {
    String resultPage = "/ss/bj?disclass=Pay&action=listFuHuiForPayment";
    try {
      String strIDs = request.getParameter("strID");

      String UserID = GlobalFunc.getUserID(request);
      String DeptID = GlobalFunc.getDeptID(request);

      int iresult = payMoneyManager.createFKCode(strIDs, UserID, DeptID);
      if (iresult == 2) {
        request.setAttribute(Constant.ERROR_EXCEPTION, "生成失败!");
        resultPage = Constant.ERROR_PAGE;
      }

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

    return resultPage;
  }