19 package org.turro.erp.reference;
21 import org.turro.command.Command;
22 import org.turro.command.Context;
23 import org.turro.elephant.context.Application;
24 import org.turro.erp.entity.CustomerOrder;
25 import org.turro.erp.entity.OrderReference;
26 import org.turro.erp.sales.PendingCustomerOrderListbox;
27 import org.turro.zkoss.dialog.SelectionDialog;
28 import org.turro.zkoss.input.ExpressionInput;
29 import org.turro.zul.frame.Framework;
30 import org.zkoss.zk.ui.event.Event;
31 import org.zkoss.zk.ui.util.GenericForwardComposer;
32 import org.zkoss.zul.Checkbox;
33 import org.zkoss.zul.Datebox;
34 import org.zkoss.zul.Textbox;
35 import org.zkoss.zul.Window;
43 private Object object;
44 private Window orderForm;
47 private Textbox orderId, customerCode, description;
48 private Datebox orderDate, control, delivery;
50 private Checkbox wantBudget;
53 object =
event.getData();
58 if(customerOrder ==
null) {
60 customerOrder.
initFrom(orderReference);
79 pcolb.setMultiple(
false);
80 pcolb.setCheckmark(
false);
88 "80%",
"80%",
new Command() {
90 public Object execute(Context context) {
static String getString(String key)
void setOrderDate(Date orderDate)
void setPrice(double price)
void setControlDate(Date controlDate)
void setWantBudget(boolean wantBudget)
void initFrom(OrderReference orderReference)
void setDescription(String description)
void setOrderId(String orderId)
void setDelivery(Date delivery)
void setCustomerCode(String customerCode)
void setQuantity(double quantity)
CustomerOrder getCustomerOrder()
void setCustomerOrder(CustomerOrder customerOrder)
void setContract(Contract contract)
static Framework getCurrent()