18 package org.turro.financials.assets;
20 import java.util.Date;
21 import java.util.logging.Level;
22 import java.util.logging.Logger;
23 import org.turro.elephant.context.ElephantContext;
24 import org.turro.financials.entity.FixedAsset;
25 import org.turro.financials.entity.FixedAssetDepreciation;
26 import org.turro.i18n.I_;
27 import org.turro.zkoss.grid.CollectionGrid;
28 import org.zkoss.zk.ui.ext.AfterCompose;
29 import org.zkoss.zul.Row;
54 this.fixedAsset = fixedAsset;
83 private void addColumns() {
86 "depreciationDate",
null, 0,
true,
false).setWidth(
"150px");
88 "perCent",
null, 2,
false,
false).setWidth(
"100px");
90 "comment",
null, 0,
false,
false).setWidth(
"400px");
91 }
catch (ClassNotFoundException ex) {
92 Logger.getLogger(
DepreciationsGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
void setFixedAsset(FixedAsset fixedAsset)
FixedAsset getFixedAsset()
boolean deleteRow(Row row)
void initiateRow(Row row, FixedAssetDepreciation value)
boolean isValid(FixedAssetDepreciation v)
DepreciationsGrid(FixedAsset fixedAsset)
void setFixedAsset(FixedAsset fixedAsset)
Set< FixedAssetDepreciation > getDepreciations()
static String get(String msg)
void setCollection(Collection< V > collection)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)