private void prePopulateSupportCombo() { TreeNode[] coll = LookupHelper.getStandingSupportTypeExercise(domain.getLookupService()).getRootNodes(); form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear(); form.ctnStand().lyrParent().tabDetails().cmbSupport().getValues().clear(); if(coll != null) { for(int i=0;i<coll.length;i++) { StandingSupportTypeExercise item = (StandingSupportTypeExercise)coll[i]; if(item.isActive()) form.ctnStand().lyrParent().tabDetails().cmbSupport().newRow(item, item.getText()); } } }
private void prePopulateAnalysisGrid() { GenForm.grdAnalysisRow row = null; form.grdAnalysis().getRows().clear(); PlinthWorkBalanceAnalysisCollection AnalysisColl = LookupHelper.getPlinthWorkBalanceAnalysis(domain.getLookupService()); for (int i = 0; i < AnalysisColl.size(); i++) { PlinthWorkBalanceAnalysis analysis = AnalysisColl.get(i); row = form.grdAnalysis().getRows().newRow(); row.setColBalanceAnalysis(analysis); } }
private void prePopulateTreatmentGrid() { GenForm.grdTreatmentRow row = null; form.grdTreatment().getRows().clear(); PlinthWorkTreatmentCollection treatColl = LookupHelper.getPlinthWorkTreatment(domain.getLookupService()); for (int i = 0; i < treatColl.size(); i++) { PlinthWorkTreatment treatment = treatColl.get(i); row = form.grdTreatment().getRows().newRow(); row.setColTreatment(treatment); } }
private void prePopulatePositionGrid() { GenForm.grdPositionRow row = null; form.grdPosition().getRows().clear(); PlinthWorkActivityCollection activitesColl = LookupHelper.getPlinthWorkActivity(domain.getLookupService()); for (int i = 0; i < activitesColl.size(); i++) { PlinthWorkActivity activity = activitesColl.get(i); row = form.grdPosition().getRows().newRow(); row.setColPosition(activity); } }
private void prePopulateActivities() { form.gridActivities().populateTree(LookupHelper.getBalanceActivities(domain.getLookupService())); form.gridActivities().expandAll(); }