Exemplo n.º 1
0
  /**
   * 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;
  }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 /**
  * Approval node of transportation fee apply
  *
  * @param request HttpServletRequest
  * @param form ActionForm
  * @return String Return forward url
  */
 public String transfeeCheck(HttpServletRequest request, ActionForm form) {
   String forward = "resultMessage";
   try {
     Long userid =
         ((CommonSearch) SpringContextUtil.getBean("commonSearch"))
             .findUserIdByUserName(request.getRemoteUser());
     // TransfeeApplyBo wabo = new TransfeeApplyBo();
     switch (transfeeApplyBo.transfeeCheck((WorkFlowCheckForm) form, userid)) {
       case 1:
         request.setAttribute("tag", "1");
         request.setAttribute("businessFlag", "transfeeCheck");
         break;
       case -2:
         request.setAttribute("tag", "-1"); // 流程不存在或已经被处理
         request.setAttribute("businessFlag", "Check12");
         break;
       case -1:
         request.setAttribute("tag", "-1");
         request.setAttribute("businessFlag", "transfeeCheck");
         break;
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
   return forward;
 }