use of com.autentia.tnt.businessobject.Inventary in project TNTConcept by autentia.
the class ReportBean method getProvider.
public ArrayList<SelectItem> getProvider() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem("allItemsSelected", "-"));
List<Inventary> refs = inventoryDAO.search(new SortCriteria("provider"));
for (Inventary ref : refs) {
ret.add(new SelectItem(ref.getProvider(), ref.getProvider()));
}
ret = (ArrayList<SelectItem>) ReportUtil.removeDuplicates(ret);
return ret;
}
use of com.autentia.tnt.businessobject.Inventary in project TNTConcept by autentia.
the class ReportBean method getModels.
public ArrayList<SelectItem> getModels() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem("allItemsSelected", "-"));
List<Inventary> refs = inventoryDAO.search(new SortCriteria("model"));
for (Inventary ref : refs) {
ret.add(new SelectItem(ref.getModel(), ref.getModel()));
}
ret = (ArrayList<SelectItem>) ReportUtil.removeDuplicates(ret);
return ret;
}
use of com.autentia.tnt.businessobject.Inventary in project TNTConcept by autentia.
the class ReportBean method getTypes.
public ArrayList<SelectItem> getTypes() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem("allItemsSelected", "-"));
List<Inventary> refs = inventoryDAO.search(new SortCriteria("type"));
for (Inventary ref : refs) {
ret.add(new SelectItem(ref.getType().toString(), ref.getType().toString()));
}
ret = (ArrayList<SelectItem>) ReportUtil.removeDuplicates(ret);
return ret;
}
use of com.autentia.tnt.businessobject.Inventary in project TNTConcept by autentia.
the class ReportBean method getTrademark.
public ArrayList<SelectItem> getTrademark() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem("allItemsSelected", "-"));
List<Inventary> refs = inventoryDAO.search(new SortCriteria("trademark"));
for (Inventary ref : refs) {
ret.add(new SelectItem(ref.getTrademark(), ref.getTrademark()));
}
ret = (ArrayList<SelectItem>) ReportUtil.removeDuplicates(ret);
return ret;
}
Aggregations