private void populateAreasCombo() { form.cmbArea().clear(); TrackingAreaShortVoCollection tempVoColl = domain.listTrackingAreas(engine.getCurrentLocation()); TrackingAreaShortVo overral = null; if( tempVoColl != null && tempVoColl.size() > 0 ) { for( int i = 0; i < tempVoColl.size();i++ ) { TrackingAreaShortVo tempTrVo = tempVoColl.get(i); if( tempTrVo != null && tempTrVo.getIsOverallViewIsNotNull() && Boolean.TRUE.equals(tempTrVo.getIsOverallView())) overral = tempTrVo; form.cmbArea().newRow(tempTrVo,tempTrVo.getAreaDisplayName()); } if( overral != null) form.cmbArea().setValue(overral); } }
private void initialiseareasCombo() { form.lyrWorklist().tabClinicianWorklist().cmbAreas().clear(); TrackingAreaShortVoCollection tempVoColl = domain.listTrackingAreas(engine.getCurrentLocation()); TrackingAreaShortVo overral = null; if( tempVoColl != null && tempVoColl.size() > 0 ) { for( int i = 0; i < tempVoColl.size();i++ ) { TrackingAreaShortVo tempTrVo = tempVoColl.get(i); if( tempTrVo != null && tempTrVo.getIsOverallViewIsNotNull() && Boolean.TRUE.equals(tempTrVo.getIsOverallView())) overral = tempTrVo; form.lyrWorklist().tabClinicianWorklist().cmbAreas().newRow(tempTrVo,tempTrVo.getAreaDisplayName()); } if( overral != null) form.lyrWorklist().tabClinicianWorklist().cmbAreas().setValue(overral); } }
private void populateAreasCombo() { form.cmbArea().clear(); TrackingAreaShortVoCollection tempVoColl = domain.listTrackingAreas(engine.getCurrentLocation()); TrackingAreaShortVo overral = null; if( tempVoColl != null && tempVoColl.size() > 0 ) { for( int i = 0; i < tempVoColl.size();i++ ) { TrackingAreaShortVo tempTrVo = tempVoColl.get(i); if( tempTrVo != null && tempTrVo.getIsOverallViewIsNotNull() && Boolean.TRUE.equals(tempTrVo.getIsOverallView())) overral = tempTrVo; form.cmbArea().newRow(tempTrVo,tempTrVo.getAreaDisplayName()); } if (form.getLocalContext().getSelectedAreaIsNotNull()) { form.cmbArea().setValue(form.getLocalContext().getSelectedArea()); } else if( overral != null) { form.cmbArea().setValue(overral); } } }
private void initialiseAreasTriageCombo() { form.lyrWorklist().tabTriageWorklist().cmbAreasForTriage().clear(); TrackingAreaShortVoCollection tempVoColl = domain.listTrackingAreas(engine.getCurrentLocation()); TrackingAreaShortVo overral = null; if (tempVoColl == null || tempVoColl.size() == 0) return; for (int i = 0; i < tempVoColl.size(); i++) { TrackingAreaShortVo tempTrVo = tempVoColl.get(i); if (tempTrVo != null && tempTrVo.getIsOverallViewIsNotNull() && Boolean.TRUE.equals(tempTrVo.getIsOverallView())) overral = tempTrVo; form.lyrWorklist().tabTriageWorklist().cmbAreasForTriage().newRow(tempTrVo, tempTrVo.getAreaDisplayName()); } if (overral != null) form.lyrWorklist().tabTriageWorklist().cmbAreasForTriage().setValue(overral); }
private void initialiseAreasClinicianCombo() { form.lyrWorklist().tabClinicianWorklist().cmbAreas().clear(); TrackingAreaShortVoCollection tempVoColl = domain.listTrackingAreas(engine.getCurrentLocation()); TrackingAreaShortVo overral = null; if( tempVoColl != null && tempVoColl.size() > 0 ) { for( int i = 0; i < tempVoColl.size();i++ ) { TrackingAreaShortVo tempTrVo = tempVoColl.get(i); if( tempTrVo != null && tempTrVo.getIsOverallViewIsNotNull() && Boolean.TRUE.equals(tempTrVo.getIsOverallView())) overral = tempTrVo; form.lyrWorklist().tabClinicianWorklist().cmbAreas().newRow(tempTrVo,tempTrVo.getAreaDisplayName()); } if( overral != null) form.lyrWorklist().tabClinicianWorklist().cmbAreas().setValue(overral); } }
private void populateAreasCombo() { form.cmbArea().clear(); TrackingAreaShortVoCollection tempVoColl = domain.listTrackingAreas(form.getLocalContext().getSelectedAreaIsNotNull() ? form.getLocalContext().getSelectedArea().getEDLocation() : (engine.getCurrentLocation() != null ? new LocationRefVo(engine.getCurrentLocation().getID(), 0) : null)); TrackingAreaShortVo overral = null; if( tempVoColl != null && tempVoColl.size() > 0 ) { for( int i = 0; i < tempVoColl.size();i++ ) { TrackingAreaShortVo tempTrVo = tempVoColl.get(i); if( tempTrVo != null && tempTrVo.getIsOverallViewIsNotNull() && Boolean.TRUE.equals(tempTrVo.getIsOverallView())) overral = tempTrVo; form.cmbArea().newRow(tempTrVo,tempTrVo.getAreaDisplayName()); } if( overral != null) form.cmbArea().setValue(overral); } }
public TrackingAreaShortVoCollection listTrackingAreas(ILocation edloc) { if( edloc == null) throw new CodingRuntimeException("Cannot list Tracking Area for a null EDLocation Id."); DomainFactory factory = getDomainFactory(); String query = "select ta from TrackingConfiguration as trc left join trc.areas as ta where ta.eDLocation.id = :EDLocationId and ta.status.id = :ActiveStatus and ta.isRegistrationArea = 0 order by index(ta)";//order by upper(ta.areaDisplayName)"; List<?> list = factory.find(query, new String[] {"EDLocationId", "ActiveStatus"}, new Object[] {edloc.getID(), PreActiveActiveInactiveStatus.ACTIVE.getID()}); if( list != null && list.size() > 0) return TrackingAreaShortVoAssembler.createTrackingAreaShortVoCollectionFromTrackingArea(list); return null; }