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

Public Member Functions

void setWorkOrder (WorkOrder workOrder)
 
void setOrderReference (OrderReference orderReference)
 
void setTask (Task task)
 
- Public Member Functions inherited from org.turro.hierarchy.HierarchyGrid
void setCollection (Collection< Hierarchical > items, int showBreakdownLevel)
 
- 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 ()
 

Protected Member Functions

void refreshValue (Row row, Hierarchical value)
 
- Protected Member Functions inherited from org.turro.hierarchy.HierarchyGrid
void addRows ()
 
void refreshRows ()
 
Hlayout getNameLayout (final Hierarchical value)
 
String getBreakdownImage (Hierarchical value)
 
void changeBreakdownState (Hierarchical value)
 
boolean isShowBreakdown (Hierarchical value)
 
boolean isVisible (Hierarchical value)
 

Detailed Description

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

Definition at line 44 of file EntityCloneGrid.java.

Member Function Documentation

◆ refreshValue()

void org.turro.erp.clone.EntityCloneGrid.refreshValue ( Row  row,
Hierarchical  value 
)
protected

Reimplemented from org.turro.hierarchy.HierarchyGrid.

Definition at line 68 of file EntityCloneGrid.java.

68  {
69  Hlayout nameLayout = getNameLayout(value);
70  if(value instanceof WorkOrderClone) {
71  WorkOrder wo = ((WorkOrderClone) value).getEntity();
72  nameLayout.appendChild(new Image(Images.getImage("workorder")));
73  nameLayout.appendChild(new Label(wo.getDescription()));
74  } else if(value instanceof OrderReferenceClone) {
75  OrderReference or = ((OrderReferenceClone) value).getEntity();
76  nameLayout.appendChild(new Image(Images.getImage("reference")));
77  nameLayout.appendChild(new Label(or.getSomeDescription()));
78  } else if(value instanceof TaskClone) {
79  Task t = ((TaskClone) value).getEntity();
80  nameLayout.appendChild(new Image(Images.getImage("task")));
81  nameLayout.appendChild(new Label(t.getName()));
82  } else if(value instanceof RequiredUsageClone) {
83  RequiredUsage ru = ((RequiredUsageClone) value).getEntity();
84  nameLayout.appendChild(new Image(Images.getImage(ru.getType())));
85  nameLayout.appendChild(new Label(ru.isHumanResourceType() ? ru.getHumanResourceAptitude().getName() : ru.getName()));
86  if(ru.hasResource()) {
87  nameLayout.appendChild(new Space());
88  nameLayout.appendChild(new Image(Images.getImage("resource")));
89  nameLayout.appendChild(new Label(ru.getResource().getName()));
90  }
91  } else if(value instanceof PredecessorClone) {
92  Predecessor p = ((PredecessorClone) value).getEntity();
93  nameLayout.appendChild(new Image(Images.getImage(p.getType().toString())));
94  nameLayout.appendChild(LabelTypes.getSoftLabel(Application.getString(p.getType().toString())));
95  nameLayout.appendChild(new Label(p.getPredecessor().getName()));
96  }
97  row.appendChild(nameLayout);
98  }
Hlayout getNameLayout(final Hierarchical value)
Here is the call graph for this function:

◆ setOrderReference()

void org.turro.erp.clone.EntityCloneGrid.setOrderReference ( OrderReference  orderReference)

Definition at line 53 of file EntityCloneGrid.java.

53  {
54  OrderReferenceClone orc = new OrderReferenceClone(orderReference, new ClonedEntitySet());
55  ArrayList<Hierarchical> list = new ArrayList<Hierarchical>();
56  list.add(orc);
57  setCollection(list, 0);
58  }
void setCollection(Collection< Hierarchical > items, int showBreakdownLevel)
Here is the call graph for this function:

◆ setTask()

void org.turro.erp.clone.EntityCloneGrid.setTask ( Task  task)

Definition at line 60 of file EntityCloneGrid.java.

60  {
61  TaskClone tc = new TaskClone(task, new ClonedEntitySet());
62  ArrayList<Hierarchical> list = new ArrayList<Hierarchical>();
63  list.add(tc);
64  setCollection(list, 0);
65  }
Here is the call graph for this function:

◆ setWorkOrder()

void org.turro.erp.clone.EntityCloneGrid.setWorkOrder ( WorkOrder  workOrder)

Definition at line 46 of file EntityCloneGrid.java.

46  {
47  WorkOrderClone woc = new WorkOrderClone(workOrder, new ClonedEntitySet());
48  ArrayList<Hierarchical> list = new ArrayList<Hierarchical>();
49  list.add(woc);
50  setCollection(list, 0);
51  }
Here is the call graph for this function:

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