use of com.autentia.tnt.businessobject.FinancialRatio in project TNTConcept by autentia.
the class FinancialRatioBean method getFinancialRatios.
/**
* Get the list of all Financial Ratios
* @return the list of all Financial Ratios
*/
public List<SelectItem> getFinancialRatios() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
if (this.getId() != null) {
search.setDifferentId(this.getId());
}
List<FinancialRatio> refs = manager.getAllEntities(search, new SortCriteria(sortColumn, sortAscending));
for (FinancialRatio ref : refs) {
ret.add(new SelectItem(ref, ref.getTitle()));
}
search.unsetDifferentId();
return ret;
}
use of com.autentia.tnt.businessobject.FinancialRatio in project TNTConcept by autentia.
the class FinancialRatioBean method getFinancialRatiosWithNull.
/**
* Get the list of all Financial Ratios
* @return the list of all Financial Ratios
*/
public List<SelectItem> getFinancialRatiosWithNull() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
if (this.getId() != null) {
search.setDifferentId(this.getId());
}
List<FinancialRatio> refs = manager.getAllEntities(search, new SortCriteria(sortColumn, sortAscending));
for (FinancialRatio ref : refs) {
ret.add(new SelectItem(ref, ref.getTitle()));
}
ret.add(0, new SelectItem("-- NINGUNO --"));
search.unsetDifferentId();
return ret;
}
Aggregations