Exemplo n.º 1
0
  /*
   * (non-Javadoc)
   *
   * @see com.sxit.common.action.AbstractAction#go()
   */
  @Override
  protected String go() throws Exception {
    BasicSetService setservice = (BasicSetService) this.getBean("basicSetService");
    GuardService service = (GuardService) this.getBean("guardService");

    setservice.getAllSets();
    try {
      if (isdelete == 0)
        if (service.isExistMobile(mobile)) isok = "4";
        else {
          setservice.setFocusMobile(
              mobile, this.getLoginUser().getUserid(), this.getLoginUser().getUsername(), true);
          isok = "1";
        }
      else {

        StringTokenizer st = new StringTokenizer(mobile, ",");
        while (st.hasMoreTokens()) {
          String mobile1 = st.nextToken();
          _LOG.debug("mobile1:::" + mobile1);
          setservice.setFocusMobile(
              mobile1, this.getLoginUser().getUserid(), this.getLoginUser().getUsername(), false);
        }
        isok = "1";
      }

    } catch (Exception e) {
      isok = "2";
      _LOG.error("保障号码设置错误", e);
    }
    return SUCCESS;
  }
Exemplo n.º 2
0
  /*
   * (non-Javadoc)
   *
   * @see com.sxit.common.action.AbstractAction#go()
   */
  @Override
  protected String go() throws Exception {
    GuardService service = (GuardService) this.getBean("guardService");

    this.page = service.getFocusMobiles(mobile, pageNo, pageSize);
    return SUCCESS;
  }