Exemple #1
0
 /**
  * 功能描述:为formBean赋初值
  *
  * @param dataCount
  * @param formBean
  */
 public void setFormBean(DataCount dataCount, DefaultForm formBean)
     throws DBException, LogicException {
   if (dataCount != null) {
     formBean.setNewFriend(dataCount.getNewFriend().toString());
     formBean.setNewSalutation(dataCount.getNewSalutation().toString());
     formBean.setNewShortMessage(dataCount.getNewShortMessage().toString());
     formBean.setNewTeacherAppraise(dataCount.getNewTeacherAppraise().toString());
   }
 }
Exemple #2
0
  /**
   * Function: 固定�要实现的方法
   *
   * <p>Produce Describe: 获得Form Object
   *
   * @return
   * @throws SysException
   * @throws DBException
   * @throws LogicException
   */
  @Override
  protected String doExecute() throws SysException, DBException, LogicException {

    String methodName = "doExecute";
    logger.startMethod(methodName);

    // 设置Form Util
    DefaultFormUtil frUtil = new DefaultFormUtil(fr);

    // 从Session获得公共信息
    UserCommonInfo cinfo = getCommonInfo();

    // ------- 画面的参数设置开始 -------
    // TODO

    // ------- 画面的参数设置结束 -------

    String doAction = fr.getDoAction();
    String pageId = fr.getPageID();
    UserCommonInfo userInfo = super.getCommonInfo();
    if (userInfo == null) {
      return "login";
    }
    if (!(userInfo.getObjectTableName()).equals(SystemConstant.BABY_INFO_TABLE_NAME)) {
      return "userNotExit";
    }
    // 判定pageID的值
    if ("Default".equals(pageId)) {
      // ------- 本画面的Action处理开始 -------
      // 根据doAction的值、处理
      // TODO

      // ------- 本画面的Action处理结束 -------
    } else {
      // ------- 从其他页面到本页面的Action处理开始 -------
      // TODO

      // ------- 从其他页面到本页面的Action处理结束  -------
      logger.endMethod(methodName);
      return SUCCESS;
    }

    logger.endMethod(methodName);
    return SUCCESS;
  }