- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 41 of file PortfolioSet.java.
◆ addDocument()
Definition at line 72 of file PortfolioSet.java.
73 PortfolioItem item = getItem(document);
75 item =
new PortfolioItem(document);
78 if(workflow.getAncestor().getId() == document.getDocumentDefinition().getId()) {
79 item.addForward(workflow);
81 item.addBackward(workflow);
◆ checkGroup()
void org.turro.financials.portfolio.PortfolioSet.checkGroup |
( |
Grid |
grid, |
|
|
Document |
document |
|
) |
| |
Definition at line 85 of file PortfolioSet.java.
86 if((lastContract == 0 || lastContract != document.getContract().getId()) ||
87 (lastDocDef == 0 || lastDocDef != document.getDocumentDefinition().getId())) {
88 lastContract = document.getContract().getId();
89 lastDocDef = document.getDocumentDefinition().getId();
90 Group group =
new GroupExtended(
91 document.getContract().getFullDescription() +
93 document.getDocumentDefinition().getName());
95 grid.getRows().appendChild(group);
◆ getDocuments()
Collection<Document> org.turro.financials.portfolio.PortfolioSet.getDocuments |
( |
| ) |
|
Definition at line 50 of file PortfolioSet.java.
51 ArrayList<Document> docs =
new ArrayList<Document>();
52 for(PortfolioItem item :
this) {
53 docs.add(item.getDocument());
◆ load()
Definition at line 58 of file PortfolioSet.java.
62 Dao dao =
new FinancialsPU();
63 IAcceptances acceptances = Plugins.loadImplementation(IAcceptances.class);
64 WhereClause wc = createCriteria(mode, values);
65 for(Object[] o : (List<Object[]>) dao.getResultList(wc)) {
66 if(acceptances.getStatusFor(FinancialsPU.getObjectPath(o[0])).isPass()) {
67 addDocument((Document) o[0], (DocumentWorkflow) o[1]);
void addDocument(Document document, DocumentWorkflow workflow)
◆ setDocumentDefinition()
void org.turro.financials.portfolio.PortfolioSet.setDocumentDefinition |
( |
DocumentDefinition |
documentDefinition | ) |
|
Definition at line 46 of file PortfolioSet.java.
47 this.documentDefinition = documentDefinition;
The documentation for this class was generated from the following file: