BrightSide Workbench Full Report + Source Code
org.turro.erp.purchase.ReceiptEdit Class Reference
Inheritance diagram for org.turro.erp.purchase.ReceiptEdit:
Collaboration diagram for org.turro.erp.purchase.ReceiptEdit:

Public Member Functions

void onUser (Event event)
 
void onOK ()
 
void onSave ()
 
void onCancel ()
 
void onChange $start ()
 
void onChange $time ()
 

Detailed Description

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

Definition at line 32 of file ReceiptEdit.java.

Member Function Documentation

◆ $start()

void onChange org.turro.erp.purchase.ReceiptEdit.$start ( )

Definition at line 103 of file ReceiptEdit.java.

103  {
104  time.setValue(start.getValue());
105  }

◆ $time()

void onChange org.turro.erp.purchase.ReceiptEdit.$time ( )

Definition at line 107 of file ReceiptEdit.java.

107  {
108  start.setValue(time.getValue());
109  }

◆ onCancel()

void org.turro.erp.purchase.ReceiptEdit.onCancel ( )

Definition at line 99 of file ReceiptEdit.java.

99  {
100  riForm.detach();
101  }

◆ onOK()

void org.turro.erp.purchase.ReceiptEdit.onOK ( )

Definition at line 79 of file ReceiptEdit.java.

79  {
80  onSave();
81  }
Here is the call graph for this function:

◆ onSave()

void org.turro.erp.purchase.ReceiptEdit.onSave ( )

Definition at line 83 of file ReceiptEdit.java.

83  {
84  receiptItem.setDocumentNumber(docnumber.getValue());
85  receiptItem.setDocumentDate(docdate.getValue());
86  receiptItem.setDescription(description.getValue());
87  receiptItem.setStartWorking(time.getValue());
88  receiptItem.setCost(((Number) cost.getNumber()).doubleValue());
89  receiptItem.setTax(((Number) tax.getNumber()).doubleValue());
90  receiptItem.setUnits(((Number) units.getNumber()).doubleValue());
91  if(receiptItem.getHumanResource() != null) {
92  receiptItem.setDedication(dedication.getValue());
93  } else {
94  receiptItem.setDedication(1.0d);
95  }
96  riForm.detach();
97  }
void setDedication(double dedication)
void setDescription(String description)
void setDocumentNumber(String documentNumber)
void setStartWorking(Date startWorking)
void setDocumentDate(Date documentDate)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onUser()

void org.turro.erp.purchase.ReceiptEdit.onUser ( Event  event)

Definition at line 44 of file ReceiptEdit.java.

44  {
45  receiptItem = (ReceiptItem) event.getData();
46  description.setValue(receiptItem.getDescription());
47  start.setValue(receiptItem.getStartWorking());
48  time.setValue(receiptItem.getStartWorking());
49  cost.setValue(receiptItem.getCost());
50  tax.setValue(receiptItem.getTax());
51  units.setValue(receiptItem.getUnits());
52  dedication.setValue(receiptItem.getDedication());
53  costrow.setVisible(true);
54  if(receiptItem.getHumanResource() != null) {
55  reslabel.setValue(Application.getString("lHumanResource"));
56  resvalue.setValue(receiptItem.getHumanResource().getName());
57  startworkrow.setVisible(true);
58  dedicrow.setVisible(true);
59  if(!receiptItem.getHumanResource().isInternal()) {
60  costrow.setVisible(true);
61  }
62  } else if(receiptItem.getResource() != null) {
63  reslabel.setValue(Application.getString("lResource"));
64  resvalue.setValue(receiptItem.getResource().getName());
65  startworkrow.setVisible(true);
66  dedicrow.setVisible(false);
67  if(!receiptItem.getResource().isInternal()) {
68  costrow.setVisible(true);
69  }
70  } else {
71  reslabel.setValue(Application.getString("lProduct"));
72  resvalue.setValue(receiptItem.getIProduct().getProductName());
73  startworkrow.setVisible(false);
74  dedicrow.setVisible(false);
75  costrow.setVisible(true);
76  }
77  }
Here is the call graph for this function:

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