/**
   * 功能描述:交流主题添加 <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>
   * 创建日期:Jun 27, 2008
   */
  public String JourEdit() throws IOException {
    Journal journal = getJournal();

    journal.setName(CharacterTrans.transGB2312ToTo8859_1(getJournal().getName()));
    journal.setIssueTime(CharacterTrans.transGB2312ToTo8859_1(getJournal().getIssueTime()));
    journal.setRoll(CharacterTrans.transGB2312ToTo8859_1(getJournal().getRoll()));
    journal.setIssue(CharacterTrans.transGB2312ToTo8859_1(getJournal().getIssue()));
    // *******************
    System.out.println(context.getRealPath(getSavePath()));
    com.sun.jmx.snmp.Timestamp tm = new com.sun.jmx.snmp.Timestamp();
    String newName;
    if (getUploadFileName().lastIndexOf(".") == (-1)) {
      newName = tm.getDateTime() + "";
    } else {
      newName =
          tm.getDateTime() + getUploadFileName().substring(getUploadFileName().lastIndexOf("."));
    }
    FileOutputStream fos =
        new FileOutputStream(context.getRealPath(getSavePath()) + "\\" + newName);

    FileInputStream fis = new FileInputStream(getUpload());
    byte[] buffer = new byte[1024];
    int len = 0;
    while ((len = fis.read(buffer)) > 0) {
      fos.write(buffer, 0, len);
    }

    // ***********
    journal.setImage(context.getRealPath(getSavePath()) + "\\" + newName);

    journal.setAuditTime(CharacterTrans.transGB2312ToTo8859_1(getJournal().getAuditTime()));
    journal.setDisauditTime(CharacterTrans.transGB2312ToTo8859_1(getJournal().getDisauditTime()));
    journal.setEditor(CharacterTrans.transGB2312ToTo8859_1(getJournal().getEditor()));
    Timestamp tp = new Timestamp(System.currentTimeMillis());
    journal.setEditTime(DoFormatTime(tp));
    journal.setAuditor(CharacterTrans.transGB2312ToTo8859_1(getJournal().getAuditor()));
    journal.setSequence(getJournal().getSequence());
    journal.setWebState(getJournal().getWebState());

    jourServ.save(journal);
    return SUCCESS;
  }