19 package org.turro.crm.zul.vendor;
21 import org.turro.crm.db.CrmPU;
22 import org.turro.crm.entity.Formula;
23 import org.turro.crm.entity.FormulaType;
24 import org.turro.i18n.I_;
25 import org.turro.jpa.grid.JpaGrid;
26 import org.turro.zkoss.grid.EditableCell;
27 import org.turro.zkoss.label.LabelExtended;
28 import org.zkoss.zk.ui.HtmlBasedComponent;
29 import org.zkoss.zul.Row;
39 "select formula from Formula as formula " +
40 "order by formula.name",
true);
46 if(value ==
null) value =
new Formula();
60 cdc.setMold(
"select");
61 if(value !=
null) cdc.setObjectValue((
FormulaType) value);
64 return super.createEditor(editableCell);
73 return super.createRenderer(editableCell);
77 addColumn(
I_.
get(
"Name"), String.class,
"name",
null, 0,
false,
false);
78 addColumn(
I_.
get(
"Formula"), String.class,
"formula",
null, 0,
false,
false);
static String get(String msg)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
Object getCellValue(EditableCell editableCell)
LabelExtended setEnum(Enum e)