// 删除AA202表中记录,条件是:id=选择的id 除AA203表中记录,条件是:变更清册id=选择的id
  public ActionForward remove(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    ActionMessages messages = null;
    try {
      IdAF idaf = (IdAF) form;
      SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
      String ip = securityInfo.getUserInfo().getUserIp();
      String name = securityInfo.getUserInfo().getUsername();
      String id = idaf.getId().toString();
      IChgslarybaseBS chgslarybaseBS =
          (IChgslarybaseBS)
              BSUtils.getBusinessService("chgslarybaseBS", this, mapping.getModuleConfig());
      chgslarybaseBS.deleteAllChgPaymentTailMaintain(new Integer(id), ip, name, securityInfo);
      messages = new ActionMessages();
      messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("删除成功!", false));
      saveErrors(request, messages);
    } catch (BusinessException e) {
      messages = new ActionMessages();
      messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(e.getMessage(), false));
      saveErrors(request, messages);
      return mapping.findForward("chgslarybaseTbShowAC.do");
    }

    return mapping.findForward("chgslarybaseTbShowAC.do");
  }
  public ActionForward deluse(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    saveToken(request);
    ActionMessages messages = null;
    try {
      Pagination pagination = (Pagination) request.getSession().getAttribute(PAGINATION_KEY);
      IdAF idaf = (IdAF) form;
      String id = idaf.getId().toString();

      SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
      String ip = securityInfo.getUserInfo().getUserIp();
      String name = securityInfo.getUserInfo().getUsername();
      pagination.getQueryCriterions().put("id", id);

      pagination.getQueryCriterions().put("ip", ip);
      pagination.getQueryCriterions().put("name", name);

      IChgslarybaseBS chgslarybaseBS =
          (IChgslarybaseBS)
              BSUtils.getBusinessService("chgslarybaseBS", this, mapping.getModuleConfig());

      if (chgslarybaseBS.deluseChgPaymentSalaryBaseMaintain(pagination)) {
        messages = new ActionMessages();
        messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("撤消启用成功!", false));
        saveErrors(request, messages);
      }
    } catch (BusinessException e) {
      messages = new ActionMessages();
      messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(e.getMessage(), false));
      saveErrors(request, messages);
      return mapping.findForward("chgslarybaseTbShowAC.do");
    }

    return mapping.findForward("chgslarybaseTbShowAC.do");
  }
Ejemplo n.º 3
0
 /**
  * 修改划款帐号
  *
  * @param contractId 合同编号
  * @param newLoanKouAcc 新扣款帐号
  * @param oldBankAcc 旧扣款帐号
  * @param securityInfo 权限
  * @throws Exception
  * @author wsh
  */
 public void modifyGiveAccInfo(
     String contractId,
     String oldSellerPayBank,
     String oldPayBankAcc,
     String newSellerPayBank,
     String newPayBankAcc,
     String houseType,
     SecurityInfo securityInfo)
     throws Exception, BusinessException {
   // TODO Auto-generated method stub
   try {
     Houses house = housesDAO.queryById(contractId);
     if ("01".equals(houseType)) {
       house.setDeveloperPaybank(newSellerPayBank);
       house.setDeveloperPaybankAAcc(newPayBankAcc);
     } else {
       house.setBargainorPaybank(newSellerPayBank);
       house.setBargainorPaybankAcc(newPayBankAcc);
     }
     GiveAcc giveAcc = new GiveAcc();
     giveAcc.setContractId(contractId);
     giveAcc.setModifyDate(securityInfo.getUserInfo().getPlbizDate());
     giveAcc.setNewPokeBank(newSellerPayBank);
     giveAcc.setNewPokeBankAcc(newPayBankAcc);
     giveAcc.setOldPokeBank(oldSellerPayBank);
     giveAcc.setOldPokeBankAcc(oldPayBankAcc);
     giveAcc.setOprator(securityInfo.getUserName());
     giveAcc.setOpTime(new Date());
     giveAccDAO.insert(giveAcc);
     PlOperateLog plOperateLog = new PlOperateLog();
     // 插入日志PL021
     plOperateLog.setContractId(contractId);
     plOperateLog.setOpSys(new BigDecimal(BusiLogConst.OP_SYSTEM_TYPE_LOAN + ""));
     plOperateLog.setOpModel(String.valueOf(BusiLogConst.PL_OP_LOANAPPL_GATHERINGACC_DO));
     plOperateLog.setOpButton(String.valueOf(BusiLogConst.BIZLOG_ACTION_ADD));
     plOperateLog.setOpBizId(new BigDecimal(giveAcc.getPokeBankModifyId().toString()));
     plOperateLog.setOpIp(securityInfo.getUserIp());
     plOperateLog.setOpTime(new Date());
     plOperateLog.setOperator(securityInfo.getUserName());
     plOperateLogDAO.insert(plOperateLog);
   } catch (Exception e) {
     // TODO: handle exception
     e.printStackTrace();
   }
 }
Ejemplo n.º 4
0
  /**
   * Method execute
   *
   * @param mapping
   * @param form
   * @param request
   * @param response
   * @return ActionForward
   */
  public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) {

    ParticularglTaAF particularglTaAF =
        (ParticularglTaAF) request.getSession().getAttribute("toprinttcparticularglTaAF");

    SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
    String opertname = securityInfo.getRealName();
    ILoanDocNumDesignBS loanDocNumDesignBS =
        (ILoanDocNumDesignBS)
            BSUtils.getBusinessService(
                "sysloanloanDocNumDesignBS", this, mapping.getModuleConfig());
    String userName = "";
    try {
      String name = loanDocNumDesignBS.getNamePara();

      if (name.equals("1")) {
        userName = securityInfo.getUserName();
      } else {
        userName = securityInfo.getRealName();
      }

    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    String time = securityInfo.getUserInfo().getPlbizDate();
    request.setAttribute("opertname", userName);
    request.setAttribute("time", time);
    request.setAttribute("particularglTaAF", particularglTaAF);
    request.getSession().setAttribute("toprinttcparticularglTaAF", null);

    return mapping.findForward("particulargl_tc_print");
  }
Ejemplo n.º 5
0
  public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    response.setContentType("text/html;charset=UTF-8");
    response.setHeader("Cache-Control", "no-cache");
    ActionMessages messages = null;
    SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo");
    try {
      String id = (String) request.getParameter("id"); // 转出单位ID
      ItranoutBS tranoutBS =
          (ItranoutBS) BSUtils.getBusinessService("tranoutBS", this, mapping.getModuleConfig());

      Org org = null;
      String name = "";
      BigDecimal monthIncome = new BigDecimal(0.00);
      boolean b = false;
      boolean c = false;
      String f = "";
      String str = "";
      String yg = "";
      String yg_a = "";
      if (id != null && !id.equals("")) {
        org = tranoutBS.fingOrgInfo(id, securityInfo);

        if (org != null) {
          yg = tranoutBS.FindAA103_DayTime(org.getOrgInfo().getCollectionBankId());
          if (securityInfo.getUserInfo().getBizDate().equals(yg)) {
            yg_a = "a";
          } else {
            yg_a = "b";
          }
          name = org.getOrgInfo().getName();
          b = tranoutBS.findAdjustWrongFAccountByOrgid(org.getId().toString(), securityInfo);
          c = tranoutBS.check(org.getId().toString());
          if (b) {
            str = "此单位存在未记账的错账调整业务!";
          }
          if (c) {
            f = "提示";
          }
        }
        String text = null;
        String paginationKey = getPaginationKey();
        Pagination pagination = (Pagination) request.getSession().getAttribute(paginationKey);
        pagination.getQueryCriterions().put("id", id);
        pagination.getQueryCriterions().put("name", name);
        pagination.getQueryCriterions().put("monthIncome", monthIncome);

        if (name == null || name.equals("") || name.length() < 1) name = "";

        text =
            "displays('"
                + id
                + "','"
                + name
                + "','"
                + monthIncome
                + "','"
                + str
                + "','"
                + f
                + "','"
                + yg_a
                + "')";
        response.getWriter().write(text);
        response.getWriter().close();
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
    return null;
  }