private void populateEdLocGrid() { form.grdEDLoc().getRows().clear(); //LocationLiteVoCollection collEdLoc = domain.listEmergencyDepartments(); TrackingAreaForWhiteBoardConfigVoCollection collArea = domain.listAreas(); if (collArea==null || collArea.size()==0) return; for (int i=0;i<collArea.size();i++) { addRowToGrid(collArea.get(i)); } }
public TrackingAreaForWhiteBoardConfigVoCollection listAreas() { StringBuffer hql = new StringBuffer(); hql.append("select area from WhiteBoardConfig as whiteBoardCfg left join whiteBoardCfg.currentArea as area "); hql.append("where whiteBoardCfg.currentArea is not null "); DomainFactory factory = getDomainFactory(); List<?> list = factory.find(hql.toString()); return TrackingAreaForWhiteBoardConfigVoAssembler.createTrackingAreaForWhiteBoardConfigVoCollectionFromTrackingArea(list); }