Ejemplo n.º 1
0
  public CustomerAction() throws Exception {
    // TODO Auto-generated constructor stub
    this.partner = new Partner();
    this.partner.setPartnerCode(BaseAction.sesPartnerCode());

    this.Initialisasi();

    if (this.pagenumber == 0) {
      this.pagenumber = 1;
    }
  }
Ejemplo n.º 2
0
  private String WhereCond() {
    final StringBuilder wherecond = new StringBuilder();
    wherecond.append(" partnercode = '" + BaseAction.sesPartnerCode() + "'");
    if ((this.getSearchvalue() != null)
        && !this.getSearchcriteria().equals("")
        && !this.getSearchcriteria().equals("0")) {
      wherecond.append(" and ");

      if (this.getSearchvalue().contains("%")) {

        wherecond.append(this.getSearchcriteria() + " like '" + this.getSearchvalue() + "' ");
      } else {
        wherecond.append(this.getSearchcriteria() + " = '" + this.getSearchvalue() + "' ");
      }
    }
    return wherecond.toString();
  }