BrightSide Workbench Full Report + Source Code
org.turro.crm.zul.menu.CrmMenu Class Reference
Inheritance diagram for org.turro.crm.zul.menu.CrmMenu:
Collaboration diagram for org.turro.crm.zul.menu.CrmMenu:

Public Member Functions

void addToMenu (ElephantMenuBar bar)
 
- Public Member Functions inherited from org.turro.menu.ElephantMenu
 ElephantMenu ()
 
 ElephantMenu (String label)
 
 ElephantMenu (String label, String image)
 
ElephantMenuBar getMenuBar ()
 
ElephantMenu getParentMenu ()
 
ElephantSubmenu getParentSubmenu ()
 
ElephantSubmenu addSubmenu ()
 
int compareTo (ElephantMenu o)
 

Static Public Member Functions

static void showCustomer (long id)
 
static void showVendor (long id)
 
static void showCampaign (Long id)
 
static void showSaleProspect (Long id)
 
static void showSaleActions (Vendor vendor, SaleProspect saleProspect)
 
static void showSaleActions (Vendor vendor, SaleProspect saleProspect, Date from, Date to)
 
static void showActivity (Vendor vendor, Customer customer, SaleProspect saleProspect)
 
- Static Public Member Functions inherited from org.turro.menu.ElephantMenu
static String makeInclude (String include)
 
static void showEntity (Object id, String attribute, String label, String include)
 
static void showEntity (Object id, String attribute, String label, String include, Map< String, Object > dynProps)
 
static void showZulFile (String label, String include)
 
static void showZulFile (String label, String include, Map< String, Object > dynProps)
 
static void showModalZulFile (String label, String source, Command command)
 
static void showModalZulFile (String label, String include, Map args, Command command)
 
static void showPopupZulFile (String label, String include)
 
static void showPopupZulFile (String label, String include, Map args)
 
static void showEntityModal (Object id, String attribute, String include, Command command)
 

Additional Inherited Members

- Protected Member Functions inherited from org.turro.menu.ElephantMenu
void addToSessionMenu (ElephantSubmenu submenu)
 
void addToToolsMenu (ElephantSubmenu submenu)
 

Detailed Description

Author
llturro

Definition at line 21 of file CrmMenu.java.

Member Function Documentation

◆ addToMenu()

void org.turro.crm.zul.menu.CrmMenu.addToMenu ( ElephantMenuBar  bar)

Reimplemented from org.turro.menu.ElephantMenu.

Definition at line 24 of file CrmMenu.java.

24  {
25  bar.addMenu("Commercial", Permission.from("sale-action","sale-prospect", "campaign", "customer", "vendor"))
26  .addSubmenu()
27  .addMenuitem("Sale actions", "appointment", "/crm/saleactions.zul", Permission.from("sale-prospect:list"))
28  .addMenuitem("Sale prospects", "sale", "/crm/saleprospects.zul", Permission.from("sale-prospect:list"))
29  .addMenuitem("Activity", "activity", "/crm/activity.zul", Permission.from("sale-prospect:list"))
30  .addMenuitem("Campaigns", "campaign", "/crm/campaigns.zul", Permission.from("campaign:list"))
31  .addMenuitem("Customers", "vendor", "/crm/customers.zul", Permission.from("customer:list"))
32  .addMenuSeparator()
33  .addMenuitem("Vendors", "vendor", "/crm/vendors.zul", Permission.from("vendor:list"))
34  .addMenuitem("Formulas", "formula", "/crm/formulas.zul", Permission.from("formula:list"))
35  .addMenuitem("Touch points", "/crm/touchpoints.zul", Permission.from("touchpoint:list"))
36  .addMenuitem("Activity sectors", "sector", "/crm/activitysectors.zul", Permission.from("activity-sector:list"))
37  .addMenuitem("Technologies", "technology", "/crm/technologies.zul", Permission.from("activity-sector:list"))
38  .addMenuSeparator()
39  .addMenuitem("New campaign", "campaign_new", (EventListener) (Event event) -> {
40  showCampaign(0L);
41  }, false, Permission.from("campaign:new"))
42  .addMenuitem("New sale prospect", "sale_new", (EventListener) (Event event) -> {
43  showSaleProspect(0L);
44  }, false, Permission.from("sale-prospect:new"))
45  .addMenuitem("New customer", "customer_new", (EventListener) (Event event) -> {
46  showCustomer(0L);
47  }, false, Permission.from("customer:new"))
48  .addMenuitem("New vendor", "vendor_new", (EventListener) (Event event) -> {
49  showVendor(0L);
50  }, false, Permission.from("vendor:new"));
51  }
static void showSaleProspect(Long id)
Definition: CrmMenu.java:65
static void showVendor(long id)
Definition: CrmMenu.java:57
static void showCampaign(Long id)
Definition: CrmMenu.java:61
static void showCustomer(long id)
Definition: CrmMenu.java:53
Here is the call graph for this function:

◆ showActivity()

static void org.turro.crm.zul.menu.CrmMenu.showActivity ( Vendor  vendor,
Customer  customer,
SaleProspect  saleProspect 
)
static

Definition at line 82 of file CrmMenu.java.

82  {
83  HashMap<String, Object> map = new HashMap<String, Object>();
84  map.put("vendor", vendor);
85  map.put("saleProspect", saleProspect);
86  map.put("customer", customer);
87  showZulFile("Activity", "/crm/activity.zul", map);
88  }
static void showZulFile(String label, String include)
Here is the call graph for this function:

◆ showCampaign()

static void org.turro.crm.zul.menu.CrmMenu.showCampaign ( Long  id)
static

Definition at line 61 of file CrmMenu.java.

61  {
62  showEntity(id, "campaignId", "Campaign", "/crm/campaign.zul");
63  }
static void showEntity(Object id, String attribute, String label, String include)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showCustomer()

static void org.turro.crm.zul.menu.CrmMenu.showCustomer ( long  id)
static

Definition at line 53 of file CrmMenu.java.

53  {
54  showEntity(id, "customerId", "Customer", "/crm/customer.zul");
55  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showSaleActions() [1/2]

static void org.turro.crm.zul.menu.CrmMenu.showSaleActions ( Vendor  vendor,
SaleProspect  saleProspect 
)
static

Definition at line 69 of file CrmMenu.java.

69  {
70  showSaleActions(vendor, saleProspect, null, null);
71  }
static void showSaleActions(Vendor vendor, SaleProspect saleProspect)
Definition: CrmMenu.java:69
Here is the caller graph for this function:

◆ showSaleActions() [2/2]

static void org.turro.crm.zul.menu.CrmMenu.showSaleActions ( Vendor  vendor,
SaleProspect  saleProspect,
Date  from,
Date  to 
)
static

Definition at line 73 of file CrmMenu.java.

73  {
74  HashMap<String, Object> map = new HashMap<String, Object>();
75  map.put("vendor", vendor);
76  map.put("salep", saleProspect);
77  map.put("from", from);
78  map.put("to", to);
79  showZulFile("Sale actions", "/crm/saleactions.zul", map);
80  }
Here is the call graph for this function:

◆ showSaleProspect()

static void org.turro.crm.zul.menu.CrmMenu.showSaleProspect ( Long  id)
static

Definition at line 65 of file CrmMenu.java.

65  {
66  showEntity(id, "saleProspectId", "Sale prospect", "/crm/saleprospect.zul");
67  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showVendor()

static void org.turro.crm.zul.menu.CrmMenu.showVendor ( long  id)
static

Definition at line 57 of file CrmMenu.java.

57  {
58  showEntity(id, "vendorId", "Vendor", "/crm/vendor.zul");
59  }
Here is the call graph for this function:
Here is the caller graph for this function:

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