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

Protected Member Functions

void executePlugin ()
 
- Protected Member Functions inherited from org.turro.plugin.command.SummaryPlugin
void addToResult (Object data)
 
abstract void executePlugin (Context context) throws Exception
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.plugin.command.CustomerSummaryPlugin
 CustomerSummaryPlugin ()
 
 CustomerSummaryPlugin ()
 
- Public Member Functions inherited from org.turro.plugin.command.SummaryPlugin
 SummaryPlugin (String name)
 
String getName ()
 
boolean stopPropagating ()
 
void execute ()
 
 SummaryPlugin (String name)
 
String getName ()
 
boolean stopsPropagating ()
 
void setParams (Object params)
 
Object execute (Context context)
 
- Public Member Functions inherited from org.turro.action.DefaultPlugin
void setContext (Map< String, Object > params, Map< String, Object > results)
 
Object getParam (String key)
 
boolean itsMe (String name)
 
Object addResult (String key, Object value)
 
- Static Public Member Functions inherited from org.turro.plugin.command.CustomerSummaryPlugin
static Collection< Object > getSummaryFor (IContact contact)
 
static Collection< Object > getSummaryFor (Application app, IContact contact)
 
- Static Public Member Functions inherited from org.turro.plugin.command.SummaryPlugin
static Collection< Object > getSummaryFor (IContact contact, String name)
 
static Collection< Object > getSummaryFor (Application app, IContact contact, String name)
 
- Static Public Attributes inherited from org.turro.plugin.command.CustomerSummaryPlugin
static final String NAME = "CustomerSummary"
 
- Protected Attributes inherited from org.turro.plugin.command.SummaryPlugin
String name
 
IContact contact
 
Collection< Object > result
 
- Protected Attributes inherited from org.turro.action.DefaultPlugin
Map< String, Object > params
 
Map< String, Object > results
 

Detailed Description

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

Definition at line 45 of file ErpCustomerSummary.java.

Member Function Documentation

◆ executePlugin()

void org.turro.erp.command.ErpCustomerSummary.executePlugin ( )
protected

Reimplemented from org.turro.plugin.command.SummaryPlugin.

Definition at line 50 of file ErpCustomerSummary.java.

50  {
51  Application app = Application.getApplication();
52  activeWorkOrders();
53  if(!active.isEmpty()) {
54  GroupboxArrow gba = new GroupboxArrow() {
55  @Override
56  protected void doFillContent() {
57  }
58  };
59  Hlayout hbox = new Hlayout();
60  gba.setCaption(hbox);
61  hbox.setSclass("z-valign-middle");
62  hbox.setValign("middle");
63  hbox.appendChild(new Image(Images.getImage("workorder")));
64  hbox.appendChild(LabelTypes.getSoftLabel(Application.getString("lWorkOrders") + ":"));
65  hbox.appendChild(LabelTypes.getPreLabel(active.size() + ""));
66  Include report = new Include("/WEB-INF/_zul/erp/sales/customerSummary.zul");
67  report.setDynamicProperty("active", active);
68  gba.appendChild(report);
69  gba.setOpen(false);
70  addResult("erp", gba);
71  }
72  }
Object addResult(String key, Object value)
Here is the call graph for this function:

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