19 package org.turro.crm.zul.sale;
21 import java.util.LinkedList;
22 import org.turro.string.Strings;
23 import org.turro.crm.db.CrmPU;
24 import org.turro.crm.entity.SaleProspect;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.util.Chars;
27 import org.turro.zkoss.input.GenericCombobox;
36 public void populateList(String value, LinkedList list,
int nRows) {
38 wc.
addClause(
"select distinct sp from SaleProspect as sp");
45 if(!Strings.isBlank(value)) {
54 list.addAll(
new CrmPU().getResultList(wc, nRows));
60 Chars.forward().spaced().toString() +
62 Chars.forward().spaced().toString() +
67 String[] s = text.split(Chars.forward().regexp().spaced().toString());
75 String[] s = text.split(Chars.forward().regexp().spaced().toString());
78 }
else if(s.length > 0) {
86 int p = text.lastIndexOf(Chars.forward().spaced().toString());
89 id = Long.valueOf(text.substring(p + 1));
91 id = Long.valueOf(text);
93 }
catch(Exception ex) {}
String getNameFromText(String text)
String getDescriptionFromText(String text)
String getTextFromObject(SaleProspect value)
void populateList(String value, LinkedList list, int nRows)
long getIdFromText(String text)
void setPrefix(String prefix)
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void addNamedValue(String name, Object value)