- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file FollowUps.java.
◆ countNotDelivered()
static long org.turro.financials.cart.FollowUps.countNotDelivered |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 71 of file FollowUps.java.
72 Dao dao =
new FinancialsPU();
73 WhereClause wc =
new WhereClause();
74 wc.addClause(
"select count(fu) from FollowUp as fu");
75 wc.addClause(
"where deliveredDate is null and preparedDate is not null");
76 if(!Application.getApplication().isInRole(
"finan-contract:delete")) {
77 wc.addClause(
"and deliverId = :contactId");
78 wc.addNamedValue(
"contactId", contact.getId());
80 return (
long) dao.getSingleResultOrNull(wc);
◆ countNotPrepared()
static long org.turro.financials.cart.FollowUps.countNotPrepared |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 59 of file FollowUps.java.
60 Dao dao =
new FinancialsPU();
61 WhereClause wc =
new WhereClause();
62 wc.addClause(
"select count(fu) from FollowUp as fu");
63 wc.addClause(
"where preparedDate is null");
64 if(!Application.getApplication().isInRole(
"finan-contract:delete")) {
65 wc.addClause(
"and prepareId = :contactId");
66 wc.addNamedValue(
"contactId", contact.getId());
68 return (
long) dao.getSingleResultOrNull(wc);
◆ notDelivered()
static List<FollowUp> org.turro.financials.cart.FollowUps.notDelivered |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 47 of file FollowUps.java.
48 Dao dao =
new FinancialsPU();
49 WhereClause wc =
new WhereClause();
50 wc.addClause(
"select fu from FollowUp as fu");
51 wc.addClause(
"where deliveredDate is null and preparedDate is not null");
52 if(!Application.getApplication().isInRole(
"finan-contract:delete")) {
53 wc.addClause(
"and deliverId = :contactId");
54 wc.addNamedValue(
"contactId", contact.getId());
56 return dao.getResultList(wc);
◆ notPrepared()
static List<FollowUp> org.turro.financials.cart.FollowUps.notPrepared |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 35 of file FollowUps.java.
36 Dao dao =
new FinancialsPU();
37 WhereClause wc =
new WhereClause();
38 wc.addClause(
"select fu from FollowUp as fu");
39 wc.addClause(
"where preparedDate is null");
40 if(!Application.getApplication().isInRole(
"finan-contract:delete")) {
41 wc.addClause(
"and prepareId = :contactId");
42 wc.addNamedValue(
"contactId", contact.getId());
44 return dao.getResultList(wc);
The documentation for this class was generated from the following file: