예제 #1
0
  // 管理 查询
  public String manageKbDiseaseFull() {
    log.info("exec action method:manageKbDiseaseFull");

    //      分页查询
    if (pageNo <= 0) {
      pageNo = 1;
    }
    page.setTotalCount(kbDiseaseService.countKbDiseaseRow());
    if (page.getTotalpage() < pageNo) {
      pageNo = page.getTotalpage();
    }
    page.setPageNo(pageNo);

    if (page.getTotalCount() != 0) {
      kbDiseaseFullList = kbDiseaseService.selectKbDiseaseFullByConditionAndPage("", page);
    }

    kbkeshiList = kbkeshiService.selectKbkeshiByCondition("");

    System.out.println("kbkeshiList:" + kbkeshiList.size());
    if (kbkeshiList == null) {
      kbkeshiList = new ArrayList<Kbkeshi>();
    }
    if (kbDiseaseFullList == null) {
      kbDiseaseFullList = new ArrayList<KbDiseaseFull>();
    }
    //      for(int i = 0; i < computerhomeworkFullList.size(); i++){
    //      	System.out.println("id=");
    //      }
    if (callType != null && callType.equals("ajaxType")) {
      return "success2";
    } else {
      return "success1";
    }
  }
예제 #2
0
  public String toAddKbDiseasePage() {
    log.info(logprefix + "toAddKbDisease");

    kbkeshiList = kbkeshiService.selectKbkeshiByCondition("");
    if (kbkeshiList == null) {
      kbkeshiList = new ArrayList<Kbkeshi>();
    }

    return SUCCESS;
  }