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; }