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

Public Member Functions

void doAfterCompose (Component comp) throws Exception
 
void onClick $save ()
 
void onClick $delete ()
 
void onChange $customer ()
 
void onChange $orderId ()
 
void onChange $orderDate ()
 

Detailed Description

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

Definition at line 37 of file sales/CustomerOrderEdit.java.

Member Function Documentation

◆ $customer()

void onChange org.turro.erp.sales.CustomerOrderEdit.$customer ( )

Definition at line 79 of file sales/CustomerOrderEdit.java.

79  {
80  updateLines();
81  updateButtons();
82  }

◆ $delete()

void onClick org.turro.erp.sales.CustomerOrderEdit.$delete ( )

Definition at line 71 of file sales/CustomerOrderEdit.java.

71  {
72  Dao dao = new ErpPU();
73  for(CustomerOrder co : lines.getValues()) {
74  dao.deleteObject(co);
75  }
76  Framework.getCurrent().closeSelected();
77  }
Here is the call graph for this function:

◆ $orderDate()

void onChange org.turro.erp.sales.CustomerOrderEdit.$orderDate ( )

Definition at line 89 of file sales/CustomerOrderEdit.java.

89  {
90  updateLines();
91  updateButtons();
92  }

◆ $orderId()

void onChange org.turro.erp.sales.CustomerOrderEdit.$orderId ( )

Definition at line 84 of file sales/CustomerOrderEdit.java.

84  {
85  updateLines();
86  updateButtons();
87  }

◆ $save()

void onClick org.turro.erp.sales.CustomerOrderEdit.$save ( )

Definition at line 60 of file sales/CustomerOrderEdit.java.

60  {
61  Dao dao = new ErpPU();
62  for(CustomerOrder co : lines.getValues()) {
63  co.setCustomer(customer.getObjectValue());
64  co.setOrderId(orderId.getValue());
65  co.setOrderDate(orderDate.getValue());
66  dao.saveObject(co);
67  }
68  Framework.getCurrent().closeSelected();
69  }
Here is the call graph for this function:

◆ doAfterCompose()

void org.turro.erp.sales.CustomerOrderEdit.doAfterCompose ( Component  comp) throws Exception

Definition at line 46 of file sales/CustomerOrderEdit.java.

46  {
47  super.doAfterCompose(comp);
48  CustomerOrder customerOrder = lines.getCustomerOrder();
49  customer.setObjectValue(customerOrder.getCustomer());
50  orderId.setValue(customerOrder.getOrderId());
51  orderDate.setValue(customerOrder.getOrderDate());
52  if(customerOrder.getCustomerId() > 0) {
53  customer.setReadonly(true);
54  orderId.setReadonly(true);
55  orderDate.setReadonly(true);
56  }
57  updateButtons();
58  }
Here is the call graph for this function:

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