public void open() throws PresentationLogicException { clearInstanceControls(); FloorBedSpaceLayoutLiteVoCollection list = domain.list(form.chkTemplatesOnly().getValue(), form.cmbStatus().getValue()); if(list != null && list.size() > 0) { for(int x = 0; x < list.size(); x++) { add(list.get(x)); } } else { engine.showMessage("No records found."); //WDEV-15335 } updateControlsState(); }
public ims.core.vo.FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() { DomainFactory factory = getDomainFactory(); String hql = " from FloorBedSpaceLayout fl"; ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); hql += " where fl.status.id = :status"; markers.add("status"); values.add(PreActiveActiveInactiveStatus.ACTIVE.getID()); hql += " and fl.isTemplate = :isTemplate"; markers.add("isTemplate"); values.add(Boolean.TRUE); //hql += " and fl.id not in ( select distinct fl.id from BayConfig as bc left join bc.floorBedSpaceLayout as fl ) "; FloorBedSpaceLayoutLiteVoCollection voCollFloorBedLayout = FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); return voCollFloorBedLayout; }
private void addAvailableFloorLayouts(grdLayoutsRow row) { FloorBedSpaceLayoutLiteVoCollection voCollLayout = form.getLocalContext().getActiveLayouts(); if(voCollLayout != null) { for (FloorBedSpaceLayoutLiteVo voFloorBedSpace : voCollLayout) { if(voFloorBedSpace != null) row.getBayBedSpaceLayout().newRow(voFloorBedSpace, voFloorBedSpace.getName()); } if (voCollLayout.size() > 0 && row.getValue() != null && row.getValue().getID_BayConfig() == null) { if (voCollLayout.size() == 1) row.getBayBedSpaceLayout().setValue(voCollLayout.get(0)); else { row.getBayBedSpaceLayout().showOpened(); } } } }
public ims.core.vo.FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() { DomainFactory factory = getDomainFactory(); String hql = " from FloorBedSpaceLayout fl"; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Object> values = new ArrayList<Object>(); hql += " where fl.status.id = :status"; markers.add("status"); values.add(PreActiveActiveInactiveStatus.ACTIVE.getID()); hql += " and fl.isTemplate = :isTemplate"; markers.add("isTemplate"); values.add(Boolean.TRUE); //hql += " and fl.id not in ( select distinct fl.id from BayConfig as bc left join bc.floorBedSpaceLayout as fl ) "; FloorBedSpaceLayoutLiteVoCollection voCollFloorBedLayout = FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); return voCollFloorBedLayout; }
private void addAvailableFloorLayouts(grdLayoutsRow row) { FloorBedSpaceLayoutLiteVoCollection voCollLayout = form.getLocalContext().getActiveLayouts(); if(voCollLayout != null) { for (FloorBedSpaceLayoutLiteVo voFloorBedSpace : voCollLayout) { if(voFloorBedSpace != null) row.getBayBedSpaceLayout().newRow(voFloorBedSpace, voFloorBedSpace.getName()); } } }
@SuppressWarnings("unchecked") public FloorBedSpaceLayoutLiteVoCollection listFloorBedLayouts() { DomainFactory factory = getDomainFactory(); String hql = " from FloorBedSpaceLayout fl"; ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); hql += " where fl.status.id = :status"; markers.add("status"); values.add(PreActiveActiveInactiveStatus.ACTIVE.getID()); return FloorBedSpaceLayoutLiteVoAssembler.createFloorBedSpaceLayoutLiteVoCollectionFromFloorBedSpaceLayout(factory.find(hql, markers, values)); }