/**
  * 功能:通过安排id号进行信息删除<br>
  *
  * @return actin deleteInfoByID
  */
 public String deleteInfoByID() {
   FTeacherNumber = (String) session.get("FUserNumber");
   jfptTabZiwoanpai = ownArrangementManager.findZiwoanpaiByID(FId);
   ownArrangementManager.deleteZiwoanpai(jfptTabZiwoanpai);
   listInfo = ownArrangementManager.findZiwoanpaiByUserNumber(FTeacherNumber);
   return "deleteInfoByID";
 }
  /**
   * 功能:添加相关的安排信息<br>
   *
   * @return action addInfo
   */
  public String addInfo() { // FBeiZhu  FUserNumber FTitle FDataTime
    FTeacherNumber = (String) session.get("FUserNumber");
    JfptTabZiwoanpai jfptTabZiwoanpai1 = new JfptTabZiwoanpai();
    jfptTabZiwoanpai1.setFBeiZhu(FBeiZhu);
    jfptTabZiwoanpai1.setFTitle(FTitle);
    jfptTabZiwoanpai1.setFDataTime(new Date());

    mhqxTabUser = ownArrangementManager.findUserByID(FTeacherNumber);
    jfptTabZiwoanpai1.setMhqxTabUser(mhqxTabUser);

    ownArrangementManager.addZiwoanpai(jfptTabZiwoanpai1);
    listInfo = ownArrangementManager.findZiwoanpaiByUserNumber(FTeacherNumber);
    return "addInfo";
  }
  /**
   * 功能:根据个人编号查找相关的自我安排信息,并进行分页处理<br>
   *
   * @return action findAllInfo
   */
  public String findAllInfo() {
    FTeacherNumber = (String) session.get("FUserNumber");
    listInfo = ownArrangementManager.findZiwoanpaiByUserNumber(FTeacherNumber);

    int pages = 5;
    int listlength = listInfo.size();
    if (listlength == 0) return "findAllInfo";
    if (listlength % pages == 0) {
      this.lastPage = listlength / pages;
    } else {
      this.lastPage = listlength / pages + 1;
    }
    if (this.p < 1) this.p = 1;
    if (this.p > this.lastPage) this.p = this.lastPage;
    int startIndex = (this.p - 1) * pages;
    int endIndex = startIndex + pages;
    if (endIndex >= listlength) endIndex = listlength;
    listInfo = listInfo.subList(startIndex, endIndex);

    return "findAllInfo";
  }
 /**
  * 功能:根据安排id号查找详细信息<br>
  *
  * @return action findInfoDetailByID
  */
 public String findInfoDetailByID() {
   jfptTabZiwoanpai = ownArrangementManager.findZiwoanpaiByID(FId);
   return "findAllInfoDetail";
 }