/** * 功能描述:交流主题列表 <br> * 输入: <br> * 输出: <br> * 创建日期:Aug 27, 2008 */ public String ExchangeSubjectsList() { List<ExchangeSubjects> tem = exchangeSubServ.getAll(); List<ExchangeSubjects> list = new ArrayList<ExchangeSubjects>(); for (ExchangeSubjects exchangeSubjects : tem) { exchangeSubjects.setName(CharacterTrans.trans8859_1ToGBK(exchangeSubjects.getName())); exchangeSubjects.setStartTime( CharacterTrans.trans8859_1ToGBK(exchangeSubjects.getStartTime())); exchangeSubjects.setEndTime(CharacterTrans.trans8859_1ToGBK(exchangeSubjects.getEndTime())); exchangeSubjects.setState(exchangeSubjects.getState()); exchangeSubjects.setDescription( CharacterTrans.trans8859_1ToGBK(exchangeSubjects.getDescription())); exchangeSubjects.setRemark(CharacterTrans.trans8859_1ToGBK(exchangeSubjects.getRemark())); list.add(exchangeSubjects); } this.setExchangeSubIter(list.iterator()); return SUCCESS; }
@Override public String execute() throws Exception { // 验证用户是否登录 if (!this.isUserLogin()) return NOLOGIN; if (!this.valideUserPrivilege("期刊管理")) return NOTPRIVILEGE; Journal journal = jourServ.get(getId()); journal.setName(CharacterTrans.trans8859_1ToGBK(journal.getName())); journal.setIssueTime(CharacterTrans.trans8859_1ToGBK(journal.getIssueTime())); journal.setRoll(CharacterTrans.trans8859_1ToGBK(journal.getRoll())); journal.setIssue(CharacterTrans.trans8859_1ToGBK(journal.getIssue())); journal.setImage(CharacterTrans.trans8859_1ToGBK(journal.getImage())); journal.setAuditTime(CharacterTrans.trans8859_1ToGBK(journal.getAuditTime())); journal.setDisauditTime(CharacterTrans.trans8859_1ToGBK(journal.getDisauditTime())); journal.setEditor(CharacterTrans.trans8859_1ToGBK(journal.getEditor())); journal.setEditTime(CharacterTrans.trans8859_1ToGBK(journal.getEditTime())); journal.setAuditor(CharacterTrans.trans8859_1ToGBK(journal.getAuditor())); journal.setSequence(journal.getSequence()); journal.setWebState(journal.getWebState()); this.setJournal(journal); return super.execute(); }