public MskGroupLiteVoCollection listGroupsForGroupType(MSKGroupType lkpGroupType) { DomainFactory factory = getDomainFactory(); String hql = " from MskGroups m where m.isActive = true and m.groupType.id = " + lkpGroupType.getId(); return MskGroupLiteVoAssembler.createMskGroupLiteVoCollectionFromMskGroups(factory.find(hql)).sort(); }
private void listUnUsedDigits() { form.ctnDetails().lyrDetails().tabDetails().cmbDigit().clear(); MskGroupLiteVoCollection voCollDigitGroups = domain.listDigitGroups(); if (voCollDigitGroups != null) for (int i = 0; i < voCollDigitGroups.size(); i++) { grdMovementRow latRow = form.grdMovement().getSelectedRow(); if (latRow != null) { boolean bFound = false; for (int j = 0; j < latRow.getRows().size(); j++) { if (latRow.getRows().get(j).getValue() instanceof RangeOfMovementDetailVo) { RangeOfMovementDetailVo vo = (RangeOfMovementDetailVo) latRow.getRows().get(j).getValue(); if (vo.getGroup().equals(voCollDigitGroups.get(i))) { bFound = true; break; } } } if (bFound == false) form.ctnDetails().lyrDetails().tabDetails().cmbDigit().newRow(voCollDigitGroups.get(i), voCollDigitGroups.get(i).getName()); } } }
public MskGroupLiteVoCollection listDigitGroups() { BoneJointConfiguration impl = (BoneJointConfiguration)getDomainImpl(MuscleJointConfigurationImpl.class); return impl.listGroupsForGroupType(MSKGroupType.DIGIT); }