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

Public Member Functions

void onSelect $vendor ()
 
void onSelect $customer ()
 
void onChange $type ()
 
void onSelect $saleProspect ()
 
void onChange $begin ()
 
void onChange $end ()
 
void doAfterCompose (Component comp) throws Exception
 

Detailed Description

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

Definition at line 50 of file ActivityComposer.java.

Member Function Documentation

◆ $begin()

void onChange org.turro.crm.zul.activity.ActivityComposer.$begin ( )

Definition at line 82 of file ActivityComposer.java.

82  {
83  activity.setBegin(begin.getValue());
84  reload();
85  }
Here is the call graph for this function:

◆ $customer()

void onSelect org.turro.crm.zul.activity.ActivityComposer.$customer ( )

Definition at line 67 of file ActivityComposer.java.

67  {
68  activity.setCustomer(customer.getObjectValue());
69  reload();
70  }
Here is the call graph for this function:

◆ $end()

void onChange org.turro.crm.zul.activity.ActivityComposer.$end ( )

Definition at line 87 of file ActivityComposer.java.

87  {
88  activity.setEnd(end.getValue());
89  reload();
90  }
Here is the call graph for this function:

◆ $saleProspect()

void onSelect org.turro.crm.zul.activity.ActivityComposer.$saleProspect ( )

Definition at line 77 of file ActivityComposer.java.

77  {
78  activity.setSaleProspect(saleProspect.getObjectValue());
79  reload();
80  }
void setSaleProspect(SaleProspect saleProspect)
Here is the call graph for this function:

◆ $type()

void onChange org.turro.crm.zul.activity.ActivityComposer.$type ( )

Definition at line 72 of file ActivityComposer.java.

72  {
73  activity.setTypes(type.getTypes());
74  reload();
75  }
void setTypes(Collection< String > types)
Here is the call graph for this function:

◆ $vendor()

void onSelect org.turro.crm.zul.activity.ActivityComposer.$vendor ( )

Definition at line 61 of file ActivityComposer.java.

61  {
62  activity.setVendor(vendor.getObjectValue());
63  inactivity.setVendor(activity.getVendor());
64  reload();
65  }
Here is the call graph for this function:

◆ doAfterCompose()

void org.turro.crm.zul.activity.ActivityComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 93 of file ActivityComposer.java.

93  {
94  super.doAfterCompose(comp);
95  begin.setValue(new CheckDate().addMonths(-2).getDate());
96  activity.setBegin(begin.getValue());
97  Vendor v = null;
98  if(!Application.getApplication().isInRole("sale-prospect:all")) {
99  v = VendorUtil.getCurrent();
100  vendor.setDisabled(true);
101  } else {
102  v = (Vendor) Executions.getCurrent().getAttribute("vendor");
103  }
104  if(v != null) {
105  vendor.setObjectValue(v);
106  activity.setVendor(v);
107  inactivity.setVendor(v);
108  }
109  Customer c = (Customer) Executions.getCurrent().getAttribute("customer");
110  if(c != null) {
111  customer.setObjectValue(c);
112  activity.setCustomer(c);
113  }
114  SaleProspect sp = (SaleProspect) Executions.getCurrent().getAttribute("saleProspect");
115  if(sp != null) {
116  saleProspect.setObjectValue(sp);
117  activity.setSaleProspect(sp);
118  }
119  reload();
120  }
Here is the call graph for this function:

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