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

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.SelfSummaryPlugin
 SelfSummaryPlugin ()
 
 SelfSummaryPlugin ()
 
- 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.SelfSummaryPlugin
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.SelfSummaryPlugin
static final String NAME = "SelfSummary"
 
- 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 49 of file CrmSelfSummary.java.

Member Function Documentation

◆ executePlugin()

void org.turro.crm.command.CrmSelfSummary.executePlugin ( )
protected

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

Definition at line 54 of file CrmSelfSummary.java.

54  {
55  Application app = Application.getApplication();
56  assignedSales();
57  if(!assigned.isEmpty()) {
58  GroupboxArrow gba = new GroupboxArrow() {
59  @Override
60  protected void doFillContent() {
61  }
62  };
63  Hlayout hbox = new Hlayout();
64  gba.setCaption(hbox);
65  hbox.setSclass("z-valign-middle");
66  hbox.setValign("middle");
67  hbox.appendChild(new Image(Images.getImage("sale")));
68  hbox.appendChild(LabelTypes.getSoftLabel(I_.get("Sale prospects") + ":"));
69  hbox.appendChild(LabelTypes.getPreLabel(assigned.size() + " " + I_.get("Opened")));
70  hbox.appendChild(new Space());
71  Button visit = new Button(I_.get("Sale actions"));
72  visit.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
73  @Override
74  public void onEvent(Event event) throws Exception {
75  CrmMenu.showSaleActions(null, null);
76  }
77  });
78  hbox.appendChild(visit);
79  Include report = new Include("/WEB-INF/_zul/crm/crmSummary.zul");
80  report.setDynamicProperty("assigned", assigned);
81  gba.appendChild(report);
82  gba.setOpen(false);
83  addResult("crm", gba);
84  }
85  }
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: