19 package org.turro.crm.zul.sale;
21 import org.turro.crm.entity.*;
22 import org.turro.crm.zul.vendor.FormulaListbox;
23 import org.turro.crm.zul.vendor.VendorCombobox;
24 import org.turro.i18n.I_;
25 import org.turro.jpa.entity.EntityCollections;
26 import org.turro.zkoss.grid.CollectionGrid;
27 import org.turro.zkoss.grid.EditableCell;
28 import org.zkoss.zk.ui.HtmlBasedComponent;
29 import org.zkoss.zul.Row;
44 this.saleProspect = saleProspect;
86 cdc.setMold(
"select");
93 cdc.setMold(
"select");
97 return super.createEditor(editableCell);
103 return value !=
null ? ((
Vendor) value).getName() :
null;
105 return value !=
null ? ((
Formula) value).getName() :
null;
107 return value !=
null ? ((
Formula) value).getName() :
null;
109 return super.formatCell(editableCell, value);
112 private void addColumns() {
Set< VendorProspect > getVendorProspects()
Set< SaleAction > getSaleActions()
void setSaleProspect(SaleProspect saleProspect)
void setSaleProspect(SaleProspect saleProspect)
boolean isValid(VendorProspect v)
boolean deleteRow(Row row)
void initiateRow(Row row, VendorProspect value)
String formatCell(EditableCell editableCell, Object value)
HtmlBasedComponent createEditor(EditableCell editableCell)
static String get(String msg)
static EntityCollections entities(Collection values)
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)