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

Public Member Functions

void onUser (Event event)
 
void onOK ()
 
void onSave ()
 
void onCancel ()
 

Detailed Description

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

Definition at line 36 of file OrderGroupEdit.java.

Member Function Documentation

◆ onCancel()

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

Definition at line 70 of file OrderGroupEdit.java.

70  {
71  draftcoGroupForm.detach();
72  }

◆ onOK()

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

Definition at line 51 of file OrderGroupEdit.java.

51  {
52  onSave();
53  }
Here is the call graph for this function:

◆ onSave()

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

Definition at line 55 of file OrderGroupEdit.java.

55  {
56  Dao dao = new ErpPU();
57  for(Object o : orderItemSummary.orders) {
58  OrderItem oi = (OrderItem) o;
59  oi.setDocumentDate(docdate.getValue());
60  oi.setDocumentNumber(docnumber.getValue());
61  oi.setSent(sent.isChecked());
62  if(oi.isSent() && oi.getDocumentDate() == null) {
63  oi.setDocumentDate(new Date());
64  }
65  dao.saveObject(oi);
66  }
67  draftcoGroupForm.detach();
68  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onUser()

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

Definition at line 44 of file OrderGroupEdit.java.

44  {
45  orderItemSummary = (OrderItemModel.OrderItemSummary) event.getData();
46  docdate.setValue(orderItemSummary.getOrder(0).getDocumentDate());
47  docnumber.setValue(orderItemSummary.getOrder(0).getDocumentNumber());
48  sent.setChecked(orderItemSummary.getOrder(0).isSent());
49  }

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