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

Public Member Functions

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

Detailed Description

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

Definition at line 41 of file reference/CustomerOrderEdit.java.

Member Function Documentation

◆ onCancel()

void org.turro.erp.reference.CustomerOrderEdit.onCancel ( )

Definition at line 123 of file reference/CustomerOrderEdit.java.

123  {
124  orderForm.detach();
125  }

◆ onImport()

void org.turro.erp.reference.CustomerOrderEdit.onImport ( )

Definition at line 77 of file reference/CustomerOrderEdit.java.

77  {
78  final PendingCustomerOrderListbox pcolb = new PendingCustomerOrderListbox();
79  pcolb.setMultiple(false);
80  pcolb.setCheckmark(false);
81  pcolb.setSelectFirst(false);
82  pcolb.setContract(orderReference.getWorkOrder().getContract());
83 
84  SelectionDialog.getComponent(
85  Framework.getCurrent().getPage(),
86  Application.getString("lCustomerOrders"),
87  pcolb,
88  "80%", "80%", new Command() {
89  @Override
90  public Object execute(Context context) {
91  if(pcolb != null) {
92  customerOrder = pcolb.getObjectValue();
93  orderReference.setCustomerOrder(customerOrder);
94  orderId.setValue(customerOrder.getOrderId());
95  orderDate.setValue(customerOrder.getOrderDate());
96  customerCode.setValue(customerOrder.getCustomerCode());
97  description.setValue(customerOrder.getDescription());
98  control.setValue(customerOrder.getControlDate());
99  delivery.setValue(customerOrder.getDelivery());
100  quantity.setValue(customerOrder.getQuantity());
101  price.setValue(customerOrder.getPrice());
102  wantBudget.setChecked(customerOrder.isWantBudget());
103  }
104  return null;
105  }
106  });
107  }
void setCustomerOrder(CustomerOrder customerOrder)
Here is the call graph for this function:

◆ onOK()

void org.turro.erp.reference.CustomerOrderEdit.onOK ( )

Definition at line 73 of file reference/CustomerOrderEdit.java.

Here is the call graph for this function:

◆ onSave()

void org.turro.erp.reference.CustomerOrderEdit.onSave ( )

Definition at line 109 of file reference/CustomerOrderEdit.java.

109  {
110  customerOrder.setControlDate(control.getValue());
111  customerOrder.setDelivery(delivery.getValue());
112  customerOrder.setCustomerCode(customerCode.getValue());
113  customerOrder.setDescription(description.getValue());
114  customerOrder.setOrderDate(orderDate.getValue());
115  customerOrder.setOrderId(orderId.getValue());
116  customerOrder.setQuantity(((Number) quantity.getNumber()).doubleValue());
117  customerOrder.setPrice(((Number) price.getNumber()).doubleValue());
118  customerOrder.setWantBudget(wantBudget.isChecked());
119  orderReference.setCustomerOrder(customerOrder);
120  orderForm.detach();
121  }
void setControlDate(Date controlDate)
void setWantBudget(boolean wantBudget)
void setDescription(String description)
void setCustomerCode(String customerCode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onUser()

void org.turro.erp.reference.CustomerOrderEdit.onUser ( Event  event)

Definition at line 52 of file reference/CustomerOrderEdit.java.

52  {
53  object = event.getData();
54  if(object instanceof OrderReference) {
55  orderReference = (OrderReference) object;
56  customerOrder = orderReference.getCustomerOrder();
57  }
58  if(customerOrder == null) {
59  customerOrder = new CustomerOrder();
60  customerOrder.initFrom(orderReference);
61  }
62  orderId.setValue(customerOrder.getOrderId());
63  orderDate.setValue(customerOrder.getOrderDate());
64  customerCode.setValue(customerOrder.getCustomerCode());
65  description.setValue(customerOrder.getDescription());
66  control.setValue(customerOrder.getControlDate());
67  delivery.setValue(customerOrder.getDelivery());
68  quantity.setValue(customerOrder.getQuantity());
69  price.setValue(customerOrder.getPrice());
70  wantBudget.setChecked(customerOrder.isWantBudget());
71  }
void initFrom(OrderReference orderReference)
Here is the call graph for this function:

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