BrightSide Workbench Full Report + Source Code
org.turro.financials.cart.FollowUps Class Reference

Static Public Member Functions

static List< FollowUpnotPrepared (IContact contact)
 
static List< FollowUpnotDelivered (IContact contact)
 
static long countNotPrepared (IContact contact)
 
static long countNotDelivered (IContact contact)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file FollowUps.java.

Member Function Documentation

◆ countNotDelivered()

static long org.turro.financials.cart.FollowUps.countNotDelivered ( IContact  contact)
static

Definition at line 71 of file FollowUps.java.

71  {
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());
79  }
80  return (long) dao.getSingleResultOrNull(wc);
81  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ countNotPrepared()

static long org.turro.financials.cart.FollowUps.countNotPrepared ( IContact  contact)
static

Definition at line 59 of file FollowUps.java.

59  {
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());
67  }
68  return (long) dao.getSingleResultOrNull(wc);
69  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ notDelivered()

static List<FollowUp> org.turro.financials.cart.FollowUps.notDelivered ( IContact  contact)
static

Definition at line 47 of file FollowUps.java.

47  {
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());
55  }
56  return dao.getResultList(wc);
57  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ notPrepared()

static List<FollowUp> org.turro.financials.cart.FollowUps.notPrepared ( IContact  contact)
static

Definition at line 35 of file FollowUps.java.

35  {
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());
43  }
44  return dao.getResultList(wc);
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: