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

Public Member Functions

void onSelect $vendor ()
 
void onSelect $saleps ()
 
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 38 of file SaleActionComposer.java.

Member Function Documentation

◆ $saleps()

void onSelect org.turro.crm.zul.sale.SaleActionComposer.$saleps ( )

Definition at line 51 of file SaleActionComposer.java.

51  {
52  SaleProspect sp = saleps.getObjectValue();
53  actions.setSaleProspect(sp);
54  actions.setFrom((Date) Executions.getCurrent().getAttribute("from"));
55  actions.setTo((Date) Executions.getCurrent().getAttribute("to"));
56  actions.refresh();
57  if(sp != null) {
58  if(sp.getCustomer() != null) {
59  customer.setIContact(sp.getCustomer().getIContact());
60  } else {
61  customer.setIContact(null);
62  }
63  customer.setImage(Images.getImage("customer"));
64  description.setValue(sp.getDescription());
65  } else {
66  customer.setIContact(null);
67  description.setValue(null);
68  }
69  }
final void setIContact(IContact icontact)
void setSaleProspect(SaleProspect saleProspect)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ $vendor()

void onSelect org.turro.crm.zul.sale.SaleActionComposer.$vendor ( )

Definition at line 46 of file SaleActionComposer.java.

46  {
47  saleps.setVendor(vendor.getObjectValue());
48  saleps.setObjectValue(null);
49  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ doAfterCompose()

void org.turro.crm.zul.sale.SaleActionComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 72 of file SaleActionComposer.java.

72  {
73  super.doAfterCompose(comp);
74  saleps.setAllowNull(true);
75  Vendor v = (Vendor) Executions.getCurrent().getAttribute("vendor");
76  if(v == null) {
77  vendor.setSelectSelf(true);
78  } else {
79  vendor.setObjectValue(v);
80  }
81  onSelect$vendor();
82  vendor.setReadonly(!Application.getApplication().isInRole("sale-action:all"));
83  SaleProspect sp = (SaleProspect) Executions.getCurrent().getAttribute("salep");
84  saleps.setObjectValue(sp);
85  onSelect$saleps();
86  }
void setSelectSelf(boolean selectSelf)
Here is the call graph for this function:

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