コード例 #1
0
ファイル: HQPayToASCAction.java プロジェクト: a4m/newsisAP
  /**
   * 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;
  }
コード例 #2
0
ファイル: HQPayToASCAction.java プロジェクト: a4m/newsisAP
 /**
  * Operation of HQ pay to ASC
  *
  * @param request HttpServletRequest
  * @param form ActionForm
  * @return String Return operation result
  */
 public String submit(HttpServletRequest request, ActionForm form) {
   String forward = "resultMessage";
   try {
     HttpSession session = request.getSession();
     Long chargeStaffId = (Long) session.getAttribute("userId");
     String chks = (String) request.getParameter("id");
     String remark = request.getParameter("remark");
     // HQPayToASCBO hqb = new HQPayToASCBO();
     int tag = hqPayToASCBO.hqPayToASC(chks, chargeStaffId, remark);
     request.setAttribute("tag", tag + "");
     request.setAttribute("businessFlag", "hqPayToASC");
   } catch (VersionException ve) {
     forward = "versionErr";
   } catch (Exception e) {
     e.printStackTrace();
   }
   return forward;
 }