コード例 #1
0
  public void init() {
    String firstVisitStr = (String) getReqParamMap().get("firstVisit");
    if (!ERegUtility.isEmptyString(firstVisitStr) && firstVisitStr.equals("true")) {
      this.clearSrcs();

      String callerWindow = (String) getReqParamMap().get("callerWindow");
      if (!ERegUtility.isEmptyString(callerWindow) && callerWindow.equals("stnSrch")) {
        this.setCallerWindow(callerWindow);
        this.setSrcCnty(this.getSearchContext().getDefaultSrcCnty());
      }

      this.getSearchContext().clear();
    }
  }
コード例 #2
0
 public Integer getRowIndex() {
   if (!ERegUtility.isEmptyString(this.getIndex())) {
     this.setRowIndex(new Integer(this.getIndex()));
   } else {
     this.setRowIndex(new Integer(-1));
   }
   return rowIndex;
 }
コード例 #3
0
  public void searchSource() {
    StnWtrSrceSrchDTO dto = new StnWtrSrceSrchDTO();
    if (this.getSrcCnty() != null && this.getSrcCnty().longValue() != 0) {
      dto.setCntyId(this.getSrcCnty());
    }
    if (this.getSrcCtgryCd() != null && this.getSrcCtgryCd().longValue() != 0) {
      dto.setSrceGrpCd(this.getSrcCtgryCd());
    }
    dto.setSrceTpCd(this.getSrc());
    dto.setOffclSrce(this.isOffclSrce());
    if (!ERegUtility.isEmptyString(this.getSrcKeyWrd())) {
      dto.setSrceKeyNm(this.getSrcKeyWrd());
    }

    this.setSourceList(SearchService.getSearchService().getStnWtrSrce(dto));
    if ((this.getSourceList() == null) || (this.getSourceList().size() == 0)) {
      this.addMessage("No Results Found.", FacesMessage.SEVERITY_WARN);
    }
  }
コード例 #4
0
 public void updateIndexSrcDtl() {
   if (!ERegUtility.isEmptyString(this.getIndex())) {
     this.clearSlctSrc();
     this.slctdSrc();
   }
 }