18 package org.turro.financials.contract;
20 import java.util.logging.Level;
21 import java.util.logging.Logger;
22 import org.turro.elephant.context.ElephantContext;
23 import org.turro.financials.document.DocumentDefinitionListbox;
24 import org.turro.financials.entity.Contract;
25 import org.turro.financials.entity.DocumentDefinition;
26 import org.turro.financials.entity.RelatedContractStore;
27 import org.turro.financials.model.document.DocumentDefinitionWrapper;
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.zk.ui.ext.AfterCompose;
34 import org.zkoss.zul.Row;
59 this.contract = contract;
101 sl.setMold(
"select");
104 return super.createEditor(editableCell);
116 return ((
Contract) value).getName();
120 return super.formatCell(editableCell, value);
123 private void addColumns() {
125 addColumn(
I_.
get(
"Document model"), org.turro.financials.entity.DocumentDefinition.class,
126 "documentDefinition",
null, 0,
false,
false).setWidth(
"40%");
127 addColumn(
I_.
get(
"Store"), org.turro.financials.entity.Contract.class,
128 "store",
null, 0,
false,
false).setWidth(
"40%");
130 "allowed",
null, 0,
false,
false).setWidth(
"20%");
131 }
catch (ClassNotFoundException ex) {
ContractDefinition getContractDefinition()
Set< RelatedContractStore > getRelatedContractStores()
Collection< Contract > getRelatedStores(Contract contract)
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)