◆ InactiveProspects()
org.turro.crm.search.InactiveProspects.InactiveProspects |
( |
| ) |
|
◆ createCriteria()
Definition at line 42 of file InactiveProspects.java.
43 WhereClause wc =
new WhereClause();
44 wc.addClause(
"select distinct salep from SaleProspect as salep");
45 if(!Application.getApplication().isInRole(
"sale-prospect:all")) {
46 vendor = vendor ==
null ? VendorUtil.getCurrent() : vendor;
48 wc.addClause(
"where 1=2");
53 wc.addClause(
"left join salep.vendorProspects vendorp");
54 wc.addClause(
"left join salep.customer.ownedBy vendoro");
55 wc.addClause(
"where (vendorp.vendor = :vendorlimp");
56 wc.addClause(
"or vendoro.vendor = :vendorlimo)");
57 wc.addNamedValue(
"vendorlimp", vendor);
58 wc.addNamedValue(
"vendorlimo", vendor);
60 wc.addClause(
"where 1=1");
62 wc.addClause(
"and salep.stage <> :close_won");
63 wc.addNamedValue(
"close_won", ProspectStage.CLOSED_WON);
64 wc.addClause(
"and salep.stage <> :close_lost");
65 wc.addNamedValue(
"close_lost", ProspectStage.CLOSED_LOST);
66 wc.addClause(
"and not exists (");
67 wc.addClause(
"select sa from SaleAction sa");
68 wc.addClause(
"where sa.vendorProspect.saleProspect = salep");
69 wc.addClause(
"and sa.status = 0");
71 wc.addClause(
"order by salep.prospectDate");
◆ getObjectValues()
java.util.List<SaleProspect> org.turro.crm.search.InactiveProspects.getObjectValues |
( |
Vendor |
vendor | ) |
|
The documentation for this class was generated from the following file: