BrightSide Workbench Full Report + Source Code
org.turro.erp.reference.BudgetGrid Class Reference
Inheritance diagram for org.turro.erp.reference.BudgetGrid:
Collaboration diagram for org.turro.erp.reference.BudgetGrid:

Public Member Functions

void setWorkOrder (WorkOrder workOrder)
 
void setBudget (Object selnumber)
 
void refresh ()
 
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 47 of file BudgetGrid.java.

Member Function Documentation

◆ afterCompose()

void org.turro.erp.reference.BudgetGrid.afterCompose ( )

Definition at line 81 of file BudgetGrid.java.

81  {
82  addColumns();
83  addRows();
84  }

◆ refresh()

void org.turro.erp.reference.BudgetGrid.refresh ( )

Definition at line 75 of file BudgetGrid.java.

75  {
76  addColumns();
77  addRows();
78  }
Here is the caller graph for this function:

◆ setBudget()

void org.turro.erp.reference.BudgetGrid.setBudget ( Object  selnumber)

Definition at line 56 of file BudgetGrid.java.

56  {
57  Long select = (Long) selnumber;
58  if(select == -1) {
59  deleteBudget();
60  } else if(select == 0) {
61  this.number = workOrder.getNextBudgetNumber();
62  for(OrderReference or : workOrder.getOrderReferences()) {
63  if(!or.isEmpty()) {
64  Budget b = new Budget();
65  b.initFrom(or, this.number);
66  or.getBudgets().add(b);
67  }
68  }
69  } else {
70  this.number = select;
71  }
72  refresh();
73  }
Set< OrderReference > getOrderReferences()
Definition: WorkOrder.java:124
Here is the call graph for this function:

◆ setWorkOrder()

void org.turro.erp.reference.BudgetGrid.setWorkOrder ( WorkOrder  workOrder)

Definition at line 52 of file BudgetGrid.java.

52  {
53  this.workOrder = workOrder;
54  }

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