19 package org.turro.erp.sales;
21 import java.util.Date;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import org.turro.elephant.context.Application;
25 import org.turro.erp.db.ErpPU;
26 import org.turro.erp.entity.CustomerOrder;
27 import org.turro.erp.reference.OrderReferenceGrid;
28 import org.turro.erp.workorder.CustomerOrderWrapper;
29 import org.turro.financials.contract.ServiceStoreListbox;
30 import org.turro.financials.entity.Contract;
31 import org.turro.financials.entity.Product;
32 import org.turro.financials.model.business.CompanyWrapper;
33 import org.turro.financials.product.ProductCombobox;
34 import org.turro.zkoss.grid.CollectionGrid;
35 import org.turro.zkoss.grid.EditableCell;
36 import org.turro.zkoss.grid.EditableColumn;
37 import org.zkoss.zk.ui.HtmlBasedComponent;
38 import org.zkoss.zul.Row;
49 this.customerOrder = customerOrder;
59 this.customerOrder = customerOrder;
105 }
else if(value instanceof
Product) {
109 return super.formatCell(editableCell, value);
120 sslb.setMold(
"select");
129 return super.createEditor(editableCell);
132 private void addColumns() {
142 }
catch (ClassNotFoundException ex) {
143 Logger.getLogger(OrderReferenceGrid.class.getName()).log(Level.SEVERE,
null, ex);
static String getString(String key)
void setOrderDate(Date orderDate)
OrderReference getOrderReference()
void setOrderId(String orderId)
void setCustomerId(long customerId)
void setNewValues(CustomerOrder customerOrder)
String formatCell(EditableCell editableCell, Object value)
CustomerOrder getCustomerOrder()
HtmlBasedComponent createEditor(EditableCell editableCell)
boolean canEditRow(Row row)
boolean deleteRow(Row row)
void setCustomerOrder(CustomerOrder customerOrder)
boolean canDeleteRow(Row row)
void initiateRow(Row row, CustomerOrder value)
boolean isValid(CustomerOrder v)
static Collection< CustomerOrder > getLines(CustomerOrder customerOrder)
String getPartialDescription()
static NumberFormat getCurrencyFormatter()
void deleteObject(Object obj)
void setCollection(Collection< V > collection)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
Object getCellValue(EditableCell editableCell)