private DynamicGridRow findGroupRow(MotorChartDetailsVo voDetail) { DynamicGridRow groupRow = null; for(int i=0; i < form.dyngrdMotor().getRows().size(); i++) { DynamicGridRow row = form.dyngrdMotor().getRows().get(i); if(row.getValue() instanceof MotorAreaVo) { for(int z=0; z<row.getRows().size(); z++) { DynamicGridRow gRow = row.getRows().get(z); if(gRow.getValue() instanceof MuscleGroupsVo) { MuscleGroupsVo voGroup = (MuscleGroupsVo) gRow.getValue(); if(voGroup.getID_MuscleGroup().equals(voDetail.getMuscleGroup().getID_MuscleGroup())) groupRow = gRow; } } } } return groupRow; }
private void populateMotorChartDetails(MotorChartDetailsVoCollection coll, LateralityLRonly lateralityLR, MotorAreaRefVo areaRefVo, MuscleGroupRefVo groupRefVo, MuscleRefVo muscleRefVo, Object score) { MotorChartDetailsVo voMotorChartDetails = new MotorChartDetailsVo(); voMotorChartDetails.setLaterality(lateralityLR); voMotorChartDetails.setScore((Integer) score); voMotorChartDetails.setMotorArea(areaRefVo); voMotorChartDetails.setMuscleGroup(groupRefVo); voMotorChartDetails.setMuscle(muscleRefVo); coll.add(voMotorChartDetails); }