Search in sources :

Example 1 with Inventary

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;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) SelectItem(javax.faces.model.SelectItem) ArrayList(java.util.ArrayList) Inventary(com.autentia.tnt.businessobject.Inventary)

Example 2 with Inventary

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;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) SelectItem(javax.faces.model.SelectItem) ArrayList(java.util.ArrayList) Inventary(com.autentia.tnt.businessobject.Inventary)

Example 3 with Inventary

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;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) SelectItem(javax.faces.model.SelectItem) ArrayList(java.util.ArrayList) Inventary(com.autentia.tnt.businessobject.Inventary)

Example 4 with Inventary

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;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) SelectItem(javax.faces.model.SelectItem) ArrayList(java.util.ArrayList) Inventary(com.autentia.tnt.businessobject.Inventary)

Aggregations

Inventary (com.autentia.tnt.businessobject.Inventary)4 SortCriteria (com.autentia.tnt.dao.SortCriteria)4 ArrayList (java.util.ArrayList)4 SelectItem (javax.faces.model.SelectItem)4