BrightSide Workbench Full Report + Source Code
org.turro.erp.workorder.wizard.ProductPanel Class Reference
Inheritance diagram for org.turro.erp.workorder.wizard.ProductPanel:
Collaboration diagram for org.turro.erp.workorder.wizard.ProductPanel:

Public Member Functions

boolean doEnter ()
 
boolean doLeave (boolean forwards)
 
- Public Member Functions inherited from org.turro.zkoss.wizard.WizardPanelComposer
Object getObjectValue ()
 
void setObjectValue (Object objectValue)
 
boolean doFinish ()
 
boolean doCancel ()
 
void setShouldSkip (boolean shouldSkip)
 
void setFinalSplash (boolean finalSplash)
 
void setAllowPrior (boolean allowPrior)
 
void setAllowNext (boolean allowNext)
 
void setAllowFinish (boolean allowFinish)
 
void setAllowCancel (boolean allowCancel)
 
boolean isShouldSkip ()
 
boolean isFinalSplash ()
 
boolean isAllowPrior ()
 
boolean isAllowNext ()
 
boolean isAllowFinish ()
 
boolean isAllowCancel ()
 

Detailed Description

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

Definition at line 31 of file ProductPanel.java.

Member Function Documentation

◆ doEnter()

boolean org.turro.erp.workorder.wizard.ProductPanel.doEnter ( )

Reimplemented from org.turro.zkoss.wizard.WizardPanelComposer.

Definition at line 38 of file ProductPanel.java.

38  {
39  WorkOrder workOrder = (WorkOrder) getObjectValue();
40  description.setValue(workOrder.getDescription());
41  supervised.setObjectValue(workOrder.getSupervised());
42  product.setProductId(workOrder.getProductId());
43  return true;
44  }
Here is the call graph for this function:

◆ doLeave()

boolean org.turro.erp.workorder.wizard.ProductPanel.doLeave ( boolean  forwards)

Reimplemented from org.turro.zkoss.wizard.WizardPanelComposer.

Definition at line 47 of file ProductPanel.java.

47  {
48  WorkOrder workOrder = (WorkOrder) getObjectValue();
49  workOrder.setDescription(description.getValue());
50  workOrder.setDraft(true);
51  workOrder.setContract(null);
52  workOrder.setSupervised(supervised.getObjectValue());
53  workOrder.setProduct(product.getObjectValue());
54  return !forwards || (workOrder.getProductId() > 0);
55  }
Here is the call graph for this function:

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