BrightSide Workbench Full Report + Source Code
org.turro.financials.document.DocumentGrid Class Reference
Inheritance diagram for org.turro.financials.document.DocumentGrid:
Collaboration diagram for org.turro.financials.document.DocumentGrid:

Public Member Functions

DocumentFilter getFilter ()
 
void setFilterGrid (DocumentFilterGrid filterGrid)
 
void reload ()
 
void sendDocumentsToParticipants ()
 
void sendDocumentsToCurrent ()
 
void afterCompose ()
 
- Public Member Functions inherited from org.turro.zkoss.grid.PagingGrid
void setColumns (int columns)
 
void setColumns (String hflexs)
 
void refine ()
 
boolean isDefaultBehavior ()
 
void setDefaultBehavior (boolean defaultBehavior)
 
String getRefineValue ()
 
void setRefineValue (String value)
 
int getMaxResults ()
 
void setMaxResults (int maxResults)
 
String getPagingMold ()
 
void setPagingMold (String pagingMold)
 
int getRowCount ()
 
void setRowCount (int rows)
 
void setHeadersVisible (boolean value)
 
boolean isHeadersVisible ()
 
String getVarColumns ()
 
void setVarColumns (String varColumns)
 
Collection< String > getVarColumnsList (String defaultCols)
 
void addDetailColumn ()
 
void addDetailColumn (HtmlBasedComponent caption)
 
void openDetails ()
 
boolean isEmpty ()
 
void clearColumns ()
 
void clearRows ()
 
void clearEmptyGroups ()
 
Columns getColumns (boolean create)
 
Rows getRows (boolean create)
 
Foot getFoot (boolean create)
 
Foot createFoot ()
 
void exportToPdf ()
 

Detailed Description

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

Definition at line 38 of file DocumentGrid.java.

Member Function Documentation

◆ afterCompose()

void org.turro.financials.document.DocumentGrid.afterCompose ( )

Definition at line 85 of file DocumentGrid.java.

85  {
86  addColumns();
87  }

◆ getFilter()

DocumentFilter org.turro.financials.document.DocumentGrid.getFilter ( )

Definition at line 43 of file DocumentGrid.java.

43  {
44  return filter;
45  }

◆ reload()

void org.turro.financials.document.DocumentGrid.reload ( )

Definition at line 51 of file DocumentGrid.java.

51  {
52  if(getRows() != null) {
53  getRows().detach();
54  }
55  addRows();
56  }
Rows getRows(boolean create)
Here is the call graph for this function:

◆ sendDocumentsToCurrent()

void org.turro.financials.document.DocumentGrid.sendDocumentsToCurrent ( )

Definition at line 71 of file DocumentGrid.java.

71  {
72  Dao dao = new FinancialsPU();
73  ListModelList<Long> model = (ListModelList) getModel();
74  model.forEach(id -> {
75  Document doc = dao.find(Document.class, id);
76  DocumentReport dr = new DocumentReport();
77  dr.setDocument(doc);
78  dr.setSendToCurrent(true);
79  dr.setAskBeforeSend(false);
80  dr.doPrint();
81  });
82  }
Here is the call graph for this function:

◆ sendDocumentsToParticipants()

void org.turro.financials.document.DocumentGrid.sendDocumentsToParticipants ( )

Definition at line 58 of file DocumentGrid.java.

58  {
59  Dao dao = new FinancialsPU();
60  ListModelList<Long> model = (ListModelList) getModel();
61  model.forEach(id -> {
62  Document doc = dao.find(Document.class, id);
63  DocumentReport dr = new DocumentReport();
64  dr.setDocument(doc);
65  dr.setSendToParticipants(true);
66  dr.setAskBeforeSend(false);
67  dr.doPrint();
68  });
69  }
Here is the call graph for this function:

◆ setFilterGrid()

void org.turro.financials.document.DocumentGrid.setFilterGrid ( DocumentFilterGrid  filterGrid)

Definition at line 47 of file DocumentGrid.java.

47  {
48  this.filterGrid = filterGrid;
49  }

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