private void loadNewSelectedLayout() { form.bedPlanner().setPlan(""); FloorLayoutLiteVo id = form.cmbFloorLayout().getValue(); if (id != null) { FloorLayoutVo layout = domain.getLayout(form.cmbFloorLayout().getValue()); form.bedPlanner().setPlan(layout.getVml()); form.getLocalContext().setCurentLayout(layout); } }
private void addFloorLayout(FloorLayoutLiteVo layout) { if (layout != null && !floorLayoutAdded(layout)) { form.cmbFloorLayout().newRow(layout, layout.getName()); } }
private boolean floorLayoutAdded(FloorLayoutLiteVo layout) { for (int x = 0; x < form.cmbFloorLayout().getValues().size(); x++) { if (((FloorLayoutLiteVo) form.cmbFloorLayout().getValues().get(x)).equals(layout)) return true; } return false; }
private void add(FloorLayoutLiteVo value) { if(value == null) return; ims.core.forms.floorlayoutlist.GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow(value.equals(form.getGlobalContext().Core.FloorLayout.getSelection())); row.setcolName(value.getName()); row.setcolStatus(value.getStatus()); row.setValue(value); }