@SuppressWarnings("unchecked")
  @Override
  public String execute() {
    try {
      String username = (String) ActionContext.getContext().getSession().get("LOGINUSERNAME");
      String password = (String) ActionContext.getContext().getSession().get("LOGINPASSWORD");
      if (username == null || password == null) {
        return LOGIN;
      }

      ActionContext.getContext().getSession().put("SMGKSTATUSDICT", StatusConstants.SmgStatusDict);
      Integer selectStatus = StatusConstants.ZHUCEWEIYAZHENG;
      if (regStatus != null) {
        selectStatus = regStatus;
      }
      logger.debug("selectStatus:" + selectStatus);

      int total = 0;
      if (selectStatus != 0) {
        total = smgkInfoService.getSmgkInfoTotal(selectStatus);
      } else {
        total = smgkInfoService.getSmgkInfoTotal();
      }
      int page = 1;
      if (num != null) {
        page = num.intValue();
      }
      pu = new PaginationUtil(total, page, SmgkConstants.PAGE_MAX_RESULT);
      if (selectStatus != 0) {
        pageList =
            smgkInfoService.findSmgkInfoByPage(
                selectStatus, pu.getStartRecord(), SmgkConstants.PAGE_MAX_RESULT);
      } else {
        pageList =
            smgkInfoService.findSmgkInfoByPage(pu.getStartRecord(), SmgkConstants.PAGE_MAX_RESULT);
      }
      if (pageList != null) {
        for (SmgkInfo info : pageList) {
          if (info.getCityID() != null) {
            CityInfo ci = cityInfoService.getCityInfo(info.getCityID());
            if (ci != null) {
              cityList.add("" + ci.getName());
            } else {
              cityList.add("");
            }
          } else {
            cityList.add("");
          }

          if (info.getNation() != null) {
            nationList.add("" + NationsConstants.nationDict.get(info.getNation()));
          } else {
            nationList.add("");
          }
          if (info.getEducation() != null) {
            educationList.add("" + EducationConstants.educationDict.get(info.getEducation()));
          } else {
            educationList.add("");
          }

          if (info.getProvince() != null) {
            provinceList.add("" + ProvinceConstants.provinceDict.get(info.getProvince()));
          } else {
            provinceList.add("");
          }
        }
      }
    } catch (Exception e) {
      logger.error("" + e.getMessage(), e.getCause());
    }

    return SUCCESS;
  }
  public String detail() throws Exception {
    if (smgkID == null) {
      this.addActionError("编号为空!");
      return ERROR;
    }
    String username = (String) ActionContext.getContext().getSession().get("LOGINUSERNAME");
    String password = (String) ActionContext.getContext().getSession().get("LOGINPASSWORD");
    try {
      if (username == null || password == null) {
        return LOGIN;
      }
      SmgkInfo smgkInfo = smgkInfoService.getSmgkInfo(smgkID);
      if (smgkInfo != null && smgkInfo.getRegStatus() != null) {
        ActionContext.getContext().put("SMGKINFO", smgkInfo);
        ActionContext.getContext()
            .put("REGSTATUS", StatusConstants.SmgStatusDict.get(smgkInfo.getRegStatus()));
      }

      CityInfo cInfo = cityInfoService.getCityInfo(smgkInfo.getCityID());
      if (cInfo != null && cInfo.getName() != null) {
        ActionContext.getContext().put("NAME", cInfo.getName());
      }
      if (smgkInfo.getStatus() != null) {
        ActionContext.getContext()
            .put("STATUS", StatusConstants.StatusDict.get(smgkInfo.getStatus()));
      }
      if (smgkInfo.getProvince() != null) {
        ActionContext.getContext()
            .put("PROVINCE", ProvinceConstants.provinceDict.get(smgkInfo.getProvince()));
      }
      if (smgkInfo.getNation() != null) {
        ActionContext.getContext()
            .put("NATION", NationsConstants.nationDict.get(smgkInfo.getNation()));
      }
      if (smgkInfo.getFileType() != null) {
        ActionContext.getContext()
            .put("TYPE", QuestionTypeConstants.AuthTypeDict.get(smgkInfo.getFileType()));
      }
      if (smgkInfo.getAuthStatus() != null) {
        ActionContext.getContext()
            .put("AUTHSTATUS", StatusConstants.AuStatusDict.get(smgkInfo.getAuthStatus()));
      }
      if (smgkInfo.getEducation() != null) {
        ActionContext.getContext()
            .put("EDUCATION", EducationConstants.educationDict.get(smgkInfo.getEducation()));
      }
    } catch (Exception e) {
      logger.error(e.getMessage(), e.getCause());
    }

    return SUCCESS;
  }