19 package org.turro.crm.zul.sale;
21 import org.turro.crm.entity.Campaign;
22 import org.turro.crm.entity.CampaignVendor;
23 import org.turro.crm.entity.Formula;
24 import org.turro.crm.entity.FormulaType;
25 import org.turro.crm.entity.Vendor;
26 import org.turro.crm.zul.vendor.FormulaListbox;
27 import org.turro.crm.zul.vendor.VendorCombobox;
28 import org.turro.i18n.I_;
29 import org.turro.jpa.entity.EntityCollections;
30 import org.turro.zkoss.grid.CollectionGrid;
31 import org.turro.zkoss.grid.EditableCell;
32 import org.zkoss.zk.ui.HtmlBasedComponent;
33 import org.zkoss.zul.Row;
48 this.campaign = campaign;
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() {
void setCampaign(Campaign campaign)
Set< CampaignVendor > getCampaignVendors()
String formatCell(EditableCell editableCell, Object value)
boolean deleteRow(Row row)
boolean isValid(CampaignVendor v)
void setCampaign(Campaign campaign)
HtmlBasedComponent createEditor(EditableCell editableCell)
void initiateRow(Row row, CampaignVendor value)
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)