18 package org.turro.erp.purchase;
20 import org.turro.elephant.context.Application;
21 import org.turro.erp.db.ErpPU;
22 import org.turro.erp.entity.OrderItem;
23 import org.turro.financials.contract.ProviderCombobox;
24 import org.turro.financials.db.FinancialsPU;
25 import org.turro.financials.entity.Contract;
26 import org.turro.financials.product.MovementButton;
27 import org.turro.zkoss.input.ExpressionInput;
28 import org.turro.zkoss.input.Percentbox;
29 import org.zkoss.zk.ui.event.Event;
30 import org.zkoss.zk.ui.util.GenericForwardComposer;
31 import org.zkoss.zul.*;
37 public class OrderEdit extends GenericForwardComposer {
40 private Window oiForm;
41 private Textbox description, docnumber;
42 private Datebox docdate, delivery;
46 private Row provrow, costrow, dedicrow;
47 private Label reslabel, resvalue;
57 costrow.setVisible(
true);
63 provrow.setVisible(
false);
65 dedicrow.setVisible(
true);
66 movbutton.setVisible(
false);
68 costrow.setVisible(
true);
73 provrow.setVisible(
false);
74 dedicrow.setVisible(
false);
75 movbutton.setVisible(
false);
77 costrow.setVisible(
true);
83 provrow.setVisible(
true);
84 dedicrow.setVisible(
false);
85 movbutton.setVisible(
true);
87 costrow.setVisible(
true);
112 new ErpPU().saveObject(orderItem);
122 costrow.setVisible(ctc !=
null);
static String getString(String key)
void setProvider(Contract provider)
HumanResource getHumanResource()
void setDocumentDate(Date documentDate)
void setDescription(String description)
void setCost(double cost)
void setDocumentNumber(String documentNumber)
void setDelivery(Date delivery)
void setUnits(double units)
RequiredUsage getRequiredUsage()
boolean isProviderFixed()
void setDedication(double dedication)
String getDocumentNumber()
void onChange $pgprovider()