/** * 功能描述:交流主题添加 <br> * 输入: <br> * 输出: <br> * 创建日期:Aug 27, 2008 */ public String ExchangeSubjectsAdd() { ExchangeSubjects exchageSub = getExchageSub(); exchageSub.setName(CharacterTrans.transGB2312ToTo8859_1(getExchageSub().getName())); exchageSub.setStartTime(CharacterTrans.transGB2312ToTo8859_1(getExchageSub().getStartTime())); exchageSub.setEndTime(CharacterTrans.transGB2312ToTo8859_1(getExchageSub().getEndTime())); exchageSub.setState(getExchageSub().getState()); exchageSub.setDescription( CharacterTrans.transGB2312ToTo8859_1(getExchageSub().getDescription())); exchageSub.setRemark(CharacterTrans.transGB2312ToTo8859_1(getExchageSub().getRemark())); exchangeSubServ.save(exchageSub); return SUCCESS; }
/** * 功能描述:交流主题列表 <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; }