use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class PeriodicalAccountEntryBean method getTypes.
/**
* Get the list of all types
* @return the list of all types
*/
public List<SelectItem> getTypes() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
List<AccountEntryType> refs = AccountEntryTypeManager.getDefault().getAllEntities(null, new SortCriteria("name"));
for (AccountEntryType ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
ret.add(0, new SelectItem(""));
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class BillBean method getBillRegimes.
public List<SelectItem> getBillRegimes() {
List<BillRegime> refs = BillRegimeManager.getDefault().getAllEntities(new SortCriteria("id"));
BillType billType = bill.getBillType();
ArrayList<SelectItem> ret = new ArrayList<>();
for (BillRegime ref : refs) {
if (ref.getAssociatedBillType().equals(billType)) {
ret.add(new SelectItem(ref, ref.getCode() + " - " + ref.getName()));
}
}
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class BillBean method getOrganizations.
/**
* Get the list of all organizations
*
* @return the list of all organizations
*/
public List<SelectItem> getOrganizations() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
for (Organization ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class BillBean method getEntriess.
/**
* Get the list of all categoriass
*
* @return the list of all categoriass
*/
public List<SelectItem> getEntriess() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
List<AccountEntry> refs = AccountEntryManager.getDefault().getAllEntities(null, new SortCriteria("concept"));
for (AccountEntry ref : refs) {
ret.add(new SelectItem(ref, ref.getConcept()));
}
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class BillBean method getOpenprojects.
/**
* Get the list of all projects
*
* @return the list of all projects
*/
public List<SelectItem> getOpenprojects() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
List<Project> refs = ProjectManager.getDefault().getAllEntities(null, new SortCriteria("name"));
for (Project proy : refs) {
ret.add(new SelectItem(proy, proy.getName()));
}
return ret;
}
Aggregations