コード例 #1
0
  /**
   * <br>
   * Created on: 2013-11-12 下午03:39:25
   */
  private void setSpendingList() {
    String vcNote = "賬單列表";
    TbResourceRote rote = getRoteByNote(vcNote, true);

    if (DataTools.isEmpty(rote)) {
      rote = new TbResourceRote();
      rote.setVcNote(vcNote);
    }

    vcNote = DateTools.getParseDateToStr(DateTools.getCurrentDate(), DateTools.YYYY_MM);

    TbResourceRote subRote = getRoteByNote(vcNote, false);
    if (DataTools.isEmpty(subRote)) {
      subRote = new TbResourceRote();
      subRote.setVcNote(vcNote);
    }

    String vcRotePage = getVcRotePage();
    subRote.setVcNote(vcNote);
    subRote.setVcRotePage(vcRotePage);
    subRote.setTbResourceRote(rote);

    addResourceRote(subRote);
  }
コード例 #2
0
 /**
  * <br>
  * Created on: 2013-11-12 下午02:58:56
  *
  * @return
  */
 private String getVcRotePage() {
   return "/system/spendingList.jsp?intYear="
       + DateTools.getYear()
       + "&intMonth="
       + DateTools.getMonth();
 }