Java 类ims.core.vo.MskGroupVoCollection 实例源码
项目:AvoinApotti
文件:Logic.java
private void prepopulateControls()
{
MskGroupVoCollection collection = domain.listMskGroup(new Boolean(true));
MskGroupVo mskGroupVo = null;
for (int i = 0; collection != null && i < collection.size(); i++)
{
mskGroupVo = collection.get(i);
if (mskGroupVo.getIsActiveIsNotNull() && mskGroupVo.getIsActive().booleanValue())
{
form.cmbGroup().newRow(mskGroupVo, mskGroupVo.getName());
}
}
}
项目:openMAXIMS
文件:Logic.java
private void prepopulateControls()
{
MskGroupVoCollection collection = domain.listMskGroup(new Boolean(true));
MskGroupVo mskGroupVo = null;
for (int i = 0; collection != null && i < collection.size(); i++)
{
mskGroupVo = collection.get(i);
if (mskGroupVo.getIsActiveIsNotNull() && mskGroupVo.getIsActive().booleanValue())
{
form.cmbGroup().newRow(mskGroupVo, mskGroupVo.getName());
}
}
}
项目:openMAXIMS
文件:Logic.java
private void prepopulateControls()
{
MskGroupVoCollection collection = domain.listMskGroup(new Boolean(true));
MskGroupVo mskGroupVo = null;
for (int i = 0; collection != null && i < collection.size(); i++)
{
mskGroupVo = collection.get(i);
if (mskGroupVo.getIsActiveIsNotNull() && mskGroupVo.getIsActive().booleanValue())
{
form.cmbGroup().newRow(mskGroupVo, mskGroupVo.getName());
}
}
}
项目:openmaxims-linux
文件:Logic.java
private void prepopulateControls()
{
MskGroupVoCollection collection = domain.listMskGroup(new Boolean(true));
MskGroupVo mskGroupVo = null;
for (int i = 0; collection != null && i < collection.size(); i++)
{
mskGroupVo = collection.get(i);
if (mskGroupVo.getIsActiveIsNotNull() && mskGroupVo.getIsActive().booleanValue())
{
form.cmbGroup().newRow(mskGroupVo, mskGroupVo.getName());
}
}
}
项目:AvoinApotti
文件:Logic.java
private void loadAndPopulateAssessmentGrid(OPDSpasAssLimbsVoCollection limbFinding) {
//load joint movements
form.cntDetails().grdAssessment().getRows().clear();
MskGroupVoCollection voCollMskGroup = form.getLocalContext().getCollMskGroupVo();
if(form.getMode().equals(FormMode.VIEW)){
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//if at least one child instantiated add joint as parent
if(childInstantiated(voMskJoint, limbFinding)){
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
for(int l=0;l<limbFinding.size();l++)
{
OPDSpasAssLimbsVo voLimb = limbFinding.get(l);
if (voJointMovment.getId() == voLimb.getMovement().getId() && voMskJoint.equals(voLimb.getJoint()))
{
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setColActiveLeft(voLimb.getActiveRomLeft());
childrow.setColActiveRight(voLimb.getActiveRomRight());
childrow.setColPassiveLeft(voLimb.getPassiveRomLeft());
childrow.setColPassiveRight(voLimb.getPassiveRomRight());
childrow.setColToneLeft(voLimb.getToneLeft());
childrow.setColToneRight(voLimb.getToneRight());
childrow.setValue(voJointMovment);
}
}
}
}
}
}
}
}
}
}
}
}
else{
loadAssessmentGrid(form.getLocalContext().getCollMskGroupVo());
populateAssessmentGrid(limbFinding);
}
form.cntDetails().grdAssessment().expandAll();
}
项目:AvoinApotti
文件:Logic.java
private void loadAssessmentGrid(MskGroupVoCollection voCollMskGroup) {
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//add joint as parent
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setReadOnly(false);
childrow.setValue(voJointMovment);
childrow.setColActiveLeft(null);
childrow.setColActiveRight(null);
childrow.setColPassiveLeft(null);
childrow.setColPassiveRight(null);
childrow.setColToneLeft(null);
childrow.setColToneRight(null);
childrow.setColLimbsReadOnly(true);
}
}
}
}
}
}
}
}
}
项目:AvoinApotti
文件:MedMskJointsBonesImpl.java
/**
* list the configured groups
*/
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration impl = (BoneJointConfiguration) getDomainImpl(MuscleJointConfigurationImpl.class);
return impl.listMskGroup(activeOnly);
}
项目:AvoinApotti
文件:OPDSpasticityAssessImpl.java
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration bjConfig = (BoneJointConfiguration)getDomainImpl(MuscleJointConfigurationImpl.class);
return bjConfig.listMskGroup(activeOnly).sort();
}
项目:AvoinApotti
文件:Logic.java
private void populateBoneJointGrid(MskGroupVoCollection collection, Integer groupID)
{
form.grdMuscleJoint().getRows().clear();
if (collection == null)
return;
GenForm.grdMuscleJointRow row = null;
MskGroupVo selMskGroupVo=null;
for(int i=0;i<collection.size();i++)
{
if (form.chkActiveRecords().getValue()
&& !collection.get(i).getIsActive().booleanValue())
{
continue;
}
row = form.grdMuscleJoint().getRows().newRow();
row.getColBoneOrJoint().newRow("Bone","Bone");
row.getColBoneOrJoint().newRow("Joint","Joint");
MSKGroupTypeCollection collGroupTypes = LookupHelper.getMSKGroupType(domain.getLookupService());
row.getColGroupType().clear();
for (int x =0; x < collGroupTypes.size(); x++)
row.getColGroupType().newRow(collGroupTypes.get(x), collGroupTypes.get(x).getText());
row.getColGroupType().setValue(collection.get(i).getGroupType());
row.setColActive(collection.get(i).getIsActive().booleanValue());
if(collection.get(i).getIsJoint().equals(Boolean.FALSE))
row.getColBoneOrJoint().setValue("Bone");
else
row.getColBoneOrJoint().setValue("Joint");
row.setColGroupTypeReadOnly(true);
row.setColDescription(collection.get(i).getDescription());
row.setColName(collection.get(i).getName());
row.setValue(collection.get(i));
if(groupID != null && collection.get(i).getID_MskGroups().equals(groupID))
selMskGroupVo = collection.get(i);
}
//Select the value saved
if(selMskGroupVo != null)
{
form.grdMuscleJoint().setValue(selMskGroupVo);
try {onGrdMuscleJointSelectionChanged();}
catch (PresentationLogicException e){e.printStackTrace();}
}
}
项目:openMAXIMS
文件:Logic.java
private void loadAndPopulateAssessmentGrid(OPDSpasAssLimbsVoCollection limbFinding) {
//load joint movements
form.cntDetails().grdAssessment().getRows().clear();
MskGroupVoCollection voCollMskGroup = form.getLocalContext().getCollMskGroupVo();
if(form.getMode().equals(FormMode.VIEW)){
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//if at least one child instantiated add joint as parent
if(childInstantiated(voMskJoint, limbFinding)){
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
for(int l=0;l<limbFinding.size();l++)
{
OPDSpasAssLimbsVo voLimb = limbFinding.get(l);
if (voJointMovment.getId() == voLimb.getMovement().getId() && voMskJoint.equals(voLimb.getJoint()))
{
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setColActiveLeft(voLimb.getActiveRomLeft());
childrow.setColActiveRight(voLimb.getActiveRomRight());
childrow.setColPassiveLeft(voLimb.getPassiveRomLeft());
childrow.setColPassiveRight(voLimb.getPassiveRomRight());
childrow.setColToneLeft(voLimb.getToneLeft());
childrow.setColToneRight(voLimb.getToneRight());
childrow.setValue(voJointMovment);
}
}
}
}
}
}
}
}
}
}
}
}
else{
loadAssessmentGrid(form.getLocalContext().getCollMskGroupVo());
populateAssessmentGrid(limbFinding);
}
form.cntDetails().grdAssessment().expandAll();
}
项目:openMAXIMS
文件:Logic.java
private void loadAssessmentGrid(MskGroupVoCollection voCollMskGroup) {
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//add joint as parent
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setReadOnly(false);
childrow.setValue(voJointMovment);
childrow.setColActiveLeft(null);
childrow.setColActiveRight(null);
childrow.setColPassiveLeft(null);
childrow.setColPassiveRight(null);
childrow.setColToneLeft(null);
childrow.setColToneRight(null);
childrow.setColLimbsReadOnly(true);
}
}
}
}
}
}
}
}
}
项目:openMAXIMS
文件:MedMskJointsBonesImpl.java
/**
* list the configured groups
*/
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration impl = (BoneJointConfiguration) getDomainImpl(MuscleJointConfigurationImpl.class);
return impl.listMskGroup(activeOnly);
}
项目:openMAXIMS
文件:OPDSpasticityAssessImpl.java
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration bjConfig = (BoneJointConfiguration)getDomainImpl(MuscleJointConfigurationImpl.class);
return bjConfig.listMskGroup(activeOnly).sort();
}
项目:openMAXIMS
文件:Logic.java
private void populateBoneJointGrid(MskGroupVoCollection collection, Integer groupID)
{
form.grdMuscleJoint().getRows().clear();
if (collection == null)
return;
GenForm.grdMuscleJointRow row = null;
MskGroupVo selMskGroupVo=null;
for(int i=0;i<collection.size();i++)
{
if (form.chkActiveRecords().getValue()
&& !collection.get(i).getIsActive().booleanValue())
{
continue;
}
row = form.grdMuscleJoint().getRows().newRow();
row.getColBoneOrJoint().newRow("Bone","Bone");
row.getColBoneOrJoint().newRow("Joint","Joint");
MSKGroupTypeCollection collGroupTypes = LookupHelper.getMSKGroupType(domain.getLookupService());
row.getColGroupType().clear();
for (int x =0; x < collGroupTypes.size(); x++)
row.getColGroupType().newRow(collGroupTypes.get(x), collGroupTypes.get(x).getText());
row.getColGroupType().setValue(collection.get(i).getGroupType());
row.setColActive(collection.get(i).getIsActive().booleanValue());
if(collection.get(i).getIsJoint().equals(Boolean.FALSE))
row.getColBoneOrJoint().setValue("Bone");
else
row.getColBoneOrJoint().setValue("Joint");
row.setColGroupTypeReadOnly(true);
row.setColDescription(collection.get(i).getDescription());
row.setColName(collection.get(i).getName());
row.setValue(collection.get(i));
if(groupID != null && collection.get(i).getID_MskGroups().equals(groupID))
selMskGroupVo = collection.get(i);
}
//Select the value saved
if(selMskGroupVo != null)
{
form.grdMuscleJoint().setValue(selMskGroupVo);
try {onGrdMuscleJointSelectionChanged();}
catch (PresentationLogicException e){e.printStackTrace();}
}
}
项目:openMAXIMS
文件:Logic.java
private void loadAndPopulateAssessmentGrid(OPDSpasAssLimbsVoCollection limbFinding) {
//load joint movements
form.cntDetails().grdAssessment().getRows().clear();
MskGroupVoCollection voCollMskGroup = form.getLocalContext().getCollMskGroupVo();
if(form.getMode().equals(FormMode.VIEW)){
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//if at least one child instantiated add joint as parent
if(childInstantiated(voMskJoint, limbFinding)){
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
for(int l=0;l<limbFinding.size();l++)
{
OPDSpasAssLimbsVo voLimb = limbFinding.get(l);
if (voJointMovment.getId() == voLimb.getMovement().getId() && voMskJoint.equals(voLimb.getJoint()))
{
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setColActiveLeft(voLimb.getActiveRomLeft());
childrow.setColActiveRight(voLimb.getActiveRomRight());
childrow.setColPassiveLeft(voLimb.getPassiveRomLeft());
childrow.setColPassiveRight(voLimb.getPassiveRomRight());
childrow.setColToneLeft(voLimb.getToneLeft());
childrow.setColToneRight(voLimb.getToneRight());
childrow.setValue(voJointMovment);
}
}
}
}
}
}
}
}
}
}
}
}
else{
loadAssessmentGrid(form.getLocalContext().getCollMskGroupVo());
populateAssessmentGrid(limbFinding);
}
form.cntDetails().grdAssessment().expandAll();
}
项目:openMAXIMS
文件:Logic.java
private void loadAssessmentGrid(MskGroupVoCollection voCollMskGroup) {
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//add joint as parent
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setReadOnly(false);
childrow.setValue(voJointMovment);
childrow.setColActiveLeft(null);
childrow.setColActiveRight(null);
childrow.setColPassiveLeft(null);
childrow.setColPassiveRight(null);
childrow.setColToneLeft(null);
childrow.setColToneRight(null);
childrow.setColLimbsReadOnly(true);
}
}
}
}
}
}
}
}
}
项目:openMAXIMS
文件:MedMskJointsBonesImpl.java
/**
* list the configured groups
*/
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration impl = (BoneJointConfiguration) getDomainImpl(MuscleJointConfigurationImpl.class);
return impl.listMskGroup(activeOnly);
}
项目:openMAXIMS
文件:OPDSpasticityAssessImpl.java
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration bjConfig = (BoneJointConfiguration)getDomainImpl(MuscleJointConfigurationImpl.class);
return bjConfig.listMskGroup(activeOnly).sort();
}
项目:openMAXIMS
文件:Logic.java
private void populateBoneJointGrid(MskGroupVoCollection collection, Integer groupID)
{
form.grdMuscleJoint().getRows().clear();
if (collection == null)
return;
GenForm.grdMuscleJointRow row = null;
MskGroupVo selMskGroupVo=null;
for(int i=0;i<collection.size();i++)
{
if (form.chkActiveRecords().getValue()
&& !collection.get(i).getIsActive().booleanValue())
{
continue;
}
row = form.grdMuscleJoint().getRows().newRow();
row.getColBoneOrJoint().newRow("Bone","Bone");
row.getColBoneOrJoint().newRow("Joint","Joint");
MSKGroupTypeCollection collGroupTypes = LookupHelper.getMSKGroupType(domain.getLookupService());
row.getColGroupType().clear();
for (int x =0; x < collGroupTypes.size(); x++)
row.getColGroupType().newRow(collGroupTypes.get(x), collGroupTypes.get(x).getText());
row.getColGroupType().setValue(collection.get(i).getGroupType());
row.setColActive(collection.get(i).getIsActive().booleanValue());
if(collection.get(i).getIsJoint().equals(Boolean.FALSE))
row.getColBoneOrJoint().setValue("Bone");
else
row.getColBoneOrJoint().setValue("Joint");
row.setColGroupTypeReadOnly(true);
row.setColDescription(collection.get(i).getDescription());
row.setColName(collection.get(i).getName());
row.setValue(collection.get(i));
if(groupID != null && collection.get(i).getID_MskGroups().equals(groupID))
selMskGroupVo = collection.get(i);
}
//Select the value saved
if(selMskGroupVo != null)
{
form.grdMuscleJoint().setValue(selMskGroupVo);
try {onGrdMuscleJointSelectionChanged();}
catch (PresentationLogicException e){e.printStackTrace();}
}
}
项目:openmaxims-linux
文件:Logic.java
private void loadAndPopulateAssessmentGrid(OPDSpasAssLimbsVoCollection limbFinding) {
//load joint movements
form.cntDetails().grdAssessment().getRows().clear();
MskGroupVoCollection voCollMskGroup = form.getLocalContext().getCollMskGroupVo();
if(form.getMode().equals(FormMode.VIEW)){
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//if at least one child instantiated add joint as parent
if(childInstantiated(voMskJoint, limbFinding)){
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
for(int l=0;l<limbFinding.size();l++)
{
OPDSpasAssLimbsVo voLimb = limbFinding.get(l);
if (voJointMovment.getId() == voLimb.getMovement().getId() && voMskJoint.equals(voLimb.getJoint()))
{
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setColActiveLeft(voLimb.getActiveRomLeft());
childrow.setColActiveRight(voLimb.getActiveRomRight());
childrow.setColPassiveLeft(voLimb.getPassiveRomLeft());
childrow.setColPassiveRight(voLimb.getPassiveRomRight());
childrow.setColToneLeft(voLimb.getToneLeft());
childrow.setColToneRight(voLimb.getToneRight());
childrow.setValue(voJointMovment);
}
}
}
}
}
}
}
}
}
}
}
}
else{
loadAssessmentGrid(form.getLocalContext().getCollMskGroupVo());
populateAssessmentGrid(limbFinding);
}
form.cntDetails().grdAssessment().expandAll();
}
项目:openmaxims-linux
文件:Logic.java
private void loadAssessmentGrid(MskGroupVoCollection voCollMskGroup) {
if (voCollMskGroup != null)
{
if (voCollMskGroup.size()>0)
{
for(int i=0;i<voCollMskGroup.size();i++)
{
if (voCollMskGroup.get(i).getJointsIsNotNull()
&& voCollMskGroup.get(i).getGroupTypeIsNotNull() //Wdev-1831
&& !voCollMskGroup.get(i).getGroupType().equals(MSKGroupType.DIGIT)) //Wdev-1831
{
MskJointVoCollection voCollJoints = voCollMskGroup.get(i).getJoints();
MskJointVo voMskJoint;
for(int j=0;j<voCollJoints.size();j++)
{
voMskJoint = voCollJoints.get(j);
if (voMskJoint.getMovementsIsNotNull())
{
if (voMskJoint.getMovements().size()>0)
{
//add joint as parent
GenForm.cntDetailsContainer.grdAssessmentRow row = form.cntDetails().grdAssessment().getRows().newRow();
row.setColLimbs(voMskJoint.getName());
row.setObjectId(voMskJoint.getID_MskJoints());
row.setValue((MskJointVo)voMskJoint);
row.setReadOnly(true);
row.setBackColor(Color.AliceBlue);
row.setColActiveLeft(null);
row.setColActiveRight(null);
row.setColPassiveLeft(null);
row.setColPassiveRight(null);
row.setColToneLeft(null);
row.setColToneRight(null);
row.setColLimbsReadOnly(true);
MskJointsMovements voJointMovment;
for(int k=0;k<voMskJoint.getMovements().size();k++)
{
voJointMovment = voMskJoint.getMovements().get(k);
//add movments as children
GenForm.cntDetailsContainer.grdAssessmentRow childrow = row.getRows().newRow();
childrow.setColLimbs(voJointMovment.getText());
childrow.setReadOnly(false);
childrow.setValue(voJointMovment);
childrow.setColActiveLeft(null);
childrow.setColActiveRight(null);
childrow.setColPassiveLeft(null);
childrow.setColPassiveRight(null);
childrow.setColToneLeft(null);
childrow.setColToneRight(null);
childrow.setColLimbsReadOnly(true);
}
}
}
}
}
}
}
}
}
项目:openmaxims-linux
文件:MedMskJointsBonesImpl.java
/**
* list the configured groups
*/
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration impl = (BoneJointConfiguration) getDomainImpl(MuscleJointConfigurationImpl.class);
return impl.listMskGroup(activeOnly);
}
项目:openmaxims-linux
文件:OPDSpasticityAssessImpl.java
public MskGroupVoCollection listMskGroup(Boolean activeOnly)
{
BoneJointConfiguration bjConfig = (BoneJointConfiguration)getDomainImpl(MuscleJointConfigurationImpl.class);
return bjConfig.listMskGroup(activeOnly).sort();
}
项目:openmaxims-linux
文件:Logic.java
private void populateBoneJointGrid(MskGroupVoCollection collection, Integer groupID)
{
form.grdMuscleJoint().getRows().clear();
if (collection == null)
return;
GenForm.grdMuscleJointRow row = null;
MskGroupVo selMskGroupVo=null;
for(int i=0;i<collection.size();i++)
{
if (form.chkActiveRecords().getValue()
&& !collection.get(i).getIsActive().booleanValue())
{
continue;
}
row = form.grdMuscleJoint().getRows().newRow();
row.getColBoneOrJoint().newRow("Bone","Bone");
row.getColBoneOrJoint().newRow("Joint","Joint");
MSKGroupTypeCollection collGroupTypes = LookupHelper.getMSKGroupType(domain.getLookupService());
row.getColGroupType().clear();
for (int x =0; x < collGroupTypes.size(); x++)
row.getColGroupType().newRow(collGroupTypes.get(x), collGroupTypes.get(x).getText());
row.getColGroupType().setValue(collection.get(i).getGroupType());
row.setColActive(collection.get(i).getIsActive().booleanValue());
if(collection.get(i).getIsJoint().equals(Boolean.FALSE))
row.getColBoneOrJoint().setValue("Bone");
else
row.getColBoneOrJoint().setValue("Joint");
row.setColGroupTypeReadOnly(true);
row.setColDescription(collection.get(i).getDescription());
row.setColName(collection.get(i).getName());
row.setValue(collection.get(i));
if(groupID != null && collection.get(i).getID_MskGroups().equals(groupID))
selMskGroupVo = collection.get(i);
}
//Select the value saved
if(selMskGroupVo != null)
{
form.grdMuscleJoint().setValue(selMskGroupVo);
try {onGrdMuscleJointSelectionChanged();}
catch (PresentationLogicException e){e.printStackTrace();}
}
}