コード例 #1
0
ファイル: TransfeeApplyAction.java プロジェクト: a4m/newsisAP
  /**
   * Display transportation fee apply approval page,display different pages by different approval
   * nodes
   *
   * @param request HttpServletRequest
   * @param form ActionForm
   * @return String Return forward url
   */
  public String popupInit(HttpServletRequest request, ActionForm form) {
    String forward = "";
    try {
      WBIOperate wbiopt = new WBIOperate();
      forward = wbiopt.getInputURIByAIID(request.getParameter("aiid")); // 取得该点对应的input项目的值
      System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=forward:" + forward);
      // TransfeeApplyBo tfabBo = new TransfeeApplyBo();
      String transfeeid = request.getParameter("transfeeid");
      request.setAttribute("transfeeApply", transfeeApplyBo.popupCheck(transfeeid));
      ArrayList al = wbiopt.getActiveRoleAndUser(request.getParameter("aiid"));
      String transferid = request.getParameter("transfeeid");
      request.setAttribute("roles", al);
      request.setAttribute("aiid", request.getParameter("aiid"));
      request.setAttribute("attacheds", transfeeApplyBo.getTransfeeAttachedList(transferid));

      request.setAttribute(
          "questionList",
          ((CommonSearch) SpringContextUtil.getBean("commonSearch"))
              .getQuestionsByFormID(transfeeid, (Long) al.get(0), "B"));
      // WorkFlowSearchBo wfsbo = new WorkFlowSearchBo();
      request.setAttribute("workFlowCheckInfo", workFlowSearchBo.viewCheck(transfeeid, "B"));
    } catch (Exception e) {
      e.printStackTrace();
    }
    return forward;
  }
コード例 #2
0
ファイル: TransfeeApplyAction.java プロジェクト: a4m/newsisAP
 public String arcPopupView(HttpServletRequest request, ActionForm form) {
   String forward = "transfeeCheckView";
   try {
     // modified by xt
     // System.out.println("=======================TransferApplyAction popupView");
     // TransfeeApplyBo wabo = new TransfeeApplyBo();
     String transfeeid = request.getParameter("transfeeid");
     request.setAttribute("transfeeApply", transfeeApplyBo.popupCheck(transfeeid));
     request.setAttribute("attacheds", transfeeApplyBo.getArcTransfeeAttachedList(transfeeid));
   } catch (Exception e) {
     e.printStackTrace();
   }
   return forward;
 }