Java 类ims.core.vo.MskGroupVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateJointFindingTree()
{
    form.treGeneralFindings().clear();
    MskGroupVo voGroup = form.cmbGroup().getValue();
    if (voGroup != null)
    {
        GeneralFindingsJointCollection collGenJoints = voGroup.getJointGeneralFindings();
        TreeNode[] parentNodes = collGenJoints != null ? collGenJoints.getRootNodes() : null;
        for (int i = 0; parentNodes != null && i < parentNodes.length; i++)
        {
            ims.framework.controls.TreeNode treeNodeParent = form.treGeneralFindings().getNodes().add(parentNodes[i], ((GeneralFindingsJoint) parentNodes[i]).getText());
            treeNodeParent.setCheckBoxVisible(false);
            populateFindingJointChildren(treeNodeParent, ((GeneralFindingsJoint) parentNodes[i]));
            treeNodeParent.setExpanded(true);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceControls(MskGroupVo voGroup, boolean bBoneSelected) 
{
    if (voGroup == null) return;

    if (bBoneSelected == false) 
    {
        form.lyrBoneJoint().tabJoint().cmbGroupType().setValue(voGroup.getGroupType() == null ? null : form.grdMuscleJoint().getValue().getGroupType().toString());

        populateGeneralFindingsControls(voGroup.getJointGeneralFindings() != null ? voGroup.getJointGeneralFindings() : null );
        populateJointControls(voGroup.getJoints() != null ? voGroup.getJoints() : null);
    }
    else
    {
        populateBoneGridFromData(form.grdMuscleJoint().getValue().getBones()); 
        populateBoneGeneralGridFromData(form.grdMuscleJoint().getValue().getBoneGeneralFindings());                     
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateJointFindingTree()
{
    form.treGeneralFindings().clear();
    MskGroupVo voGroup = form.cmbGroup().getValue();
    if (voGroup != null)
    {
        GeneralFindingsJointCollection collGenJoints = voGroup.getJointGeneralFindings();
        TreeNode[] parentNodes = collGenJoints != null ? collGenJoints.getRootNodes() : null;
        for (int i = 0; parentNodes != null && i < parentNodes.length; i++)
        {
            ims.framework.controls.TreeNode treeNodeParent = form.treGeneralFindings().getNodes().add(parentNodes[i], ((GeneralFindingsJoint) parentNodes[i]).getText());
            treeNodeParent.setCheckBoxVisible(false);
            populateFindingJointChildren(treeNodeParent, ((GeneralFindingsJoint) parentNodes[i]));
            treeNodeParent.setExpanded(true);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControls(MskGroupVo voGroup, boolean bBoneSelected) 
{
    if (voGroup == null) return;

    if (bBoneSelected == false) 
    {
        form.lyrBoneJoint().tabJoint().cmbGroupType().setValue(voGroup.getGroupType() == null ? null : form.grdMuscleJoint().getValue().getGroupType().toString());

        populateGeneralFindingsControls(voGroup.getJointGeneralFindings() != null ? voGroup.getJointGeneralFindings() : null );
        populateJointControls(voGroup.getJoints() != null ? voGroup.getJoints() : null);
    }
    else
    {
        populateBoneGridFromData(form.grdMuscleJoint().getValue().getBones()); 
        populateBoneGeneralGridFromData(form.grdMuscleJoint().getValue().getBoneGeneralFindings());                     
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateJointFindingTree()
{
    form.treGeneralFindings().clear();
    MskGroupVo voGroup = form.cmbGroup().getValue();
    if (voGroup != null)
    {
        GeneralFindingsJointCollection collGenJoints = voGroup.getJointGeneralFindings();
        TreeNode[] parentNodes = collGenJoints != null ? collGenJoints.getRootNodes() : null;
        for (int i = 0; parentNodes != null && i < parentNodes.length; i++)
        {
            ims.framework.controls.TreeNode treeNodeParent = form.treGeneralFindings().getNodes().add(parentNodes[i], ((GeneralFindingsJoint) parentNodes[i]).getText());
            treeNodeParent.setCheckBoxVisible(false);
            populateFindingJointChildren(treeNodeParent, ((GeneralFindingsJoint) parentNodes[i]));
            treeNodeParent.setExpanded(true);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceControls(MskGroupVo voGroup, boolean bBoneSelected) 
{
    if (voGroup == null) return;

    if (bBoneSelected == false) 
    {
        form.lyrBoneJoint().tabJoint().cmbGroupType().setValue(voGroup.getGroupType() == null ? null : form.grdMuscleJoint().getValue().getGroupType().toString());

        populateGeneralFindingsControls(voGroup.getJointGeneralFindings() != null ? voGroup.getJointGeneralFindings() : null );
        populateJointControls(voGroup.getJoints() != null ? voGroup.getJoints() : null);
    }
    else
    {
        populateBoneGridFromData(form.grdMuscleJoint().getValue().getBones()); 
        populateBoneGeneralGridFromData(form.grdMuscleJoint().getValue().getBoneGeneralFindings());                     
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateJointFindingTree()
{
    form.treGeneralFindings().clear();
    MskGroupVo voGroup = form.cmbGroup().getValue();
    if (voGroup != null)
    {
        GeneralFindingsJointCollection collGenJoints = voGroup.getJointGeneralFindings();
        TreeNode[] parentNodes = collGenJoints != null ? collGenJoints.getRootNodes() : null;
        for (int i = 0; parentNodes != null && i < parentNodes.length; i++)
        {
            ims.framework.controls.TreeNode treeNodeParent = form.treGeneralFindings().getNodes().add(parentNodes[i], ((GeneralFindingsJoint) parentNodes[i]).getText());
            treeNodeParent.setCheckBoxVisible(false);
            populateFindingJointChildren(treeNodeParent, ((GeneralFindingsJoint) parentNodes[i]));
            treeNodeParent.setExpanded(true);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceControls(MskGroupVo voGroup, boolean bBoneSelected) 
{
    if (voGroup == null) return;

    if (bBoneSelected == false) 
    {
        form.lyrBoneJoint().tabJoint().cmbGroupType().setValue(voGroup.getGroupType() == null ? null : form.grdMuscleJoint().getValue().getGroupType().toString());

        populateGeneralFindingsControls(voGroup.getJointGeneralFindings() != null ? voGroup.getJointGeneralFindings() : null );
        populateJointControls(voGroup.getJoints() != null ? voGroup.getJoints() : null);
    }
    else
    {
        populateBoneGridFromData(form.grdMuscleJoint().getValue().getBones()); 
        populateBoneGeneralGridFromData(form.grdMuscleJoint().getValue().getBoneGeneralFindings());                     
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadJBCombo()
{
    MskGroupVo mskGroupVo = form.cmbGroup().getValue();
    form.cmbJB().clear();
    form.cmbLaterality().setValue(null);
    form.txtInterpret().setValue(null);
    form.txtLigSpecTests().setValue(null);
    form.grdMovements().getRows().clear();
    form.treGeneralFindings().clear();

    if (mskGroupVo != null && mskGroupVo.getIsJointIsNotNull())
    {
        if (mskGroupVo.getIsJoint().booleanValue())
        {
            // Joint
            for (int i = 0; i < mskGroupVo.getJoints().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getJoints().get(i), mskGroupVo.getJoints().get(i).getName());

            // Findings
            populateJointFindingTree();
        }
        else
        {
            // Bone
            for (int i = 0; i < mskGroupVo.getBones().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getBones().get(i), mskGroupVo.getBones().get(i).getText());

            // Findings
            populateBoneFindingsTree();
            form.grdMovements().setVisible(false);
            form.grdMovements().setReadOnly(form.getMode().equals(FormMode.VIEW));
        }
    }
}
项目: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());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean groupExists(MskGroupsRefVo voMskGroup)
{
    for (int i = 0; i < form.cmbGroup().getValues().size(); i++)
        if (((MskGroupVo) form.cmbGroup().getValues().get(i)).getID_MskGroups().equals(voMskGroup.getID_MskGroups()))
            return true;
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceDataForBone(MskGroupVo voGroup) 
{
    if (voGroup == null) return;

    voGroup.setBoneGeneralFindings(populateBoneGeneralDataFromScreen());
    voGroup.setBones(populateBoneDataFromScreen());
}
项目:AvoinApotti    文件:Logic.java   
private void populateInstanceDataForJoint(MskGroupVo voGroup)
{
    if (voGroup == null) return;

    voGroup.setGroupType(getGroupType(form.lyrBoneJoint().tabJoint().cmbGroupType().getValue()));
    voGroup.setJointGeneralFindings(populateJointGeneralDataFromScreen());
    voGroup.setJoints(populateJointDataFromScreen());
}
项目:AvoinApotti    文件:Logic.java   
private void newGroup() 
{
    this.clearScreen();

    form.getLocalContext().setMskGroupRecord(new MskGroupVo());
    GenForm.grdMuscleJointRow row = form.grdMuscleJoint().getRows().newRow();
    row.setColActive(true);
    row.getColBoneOrJoint().newRow("Bone","Bone");
    row.getColBoneOrJoint().newRow("Joint","Joint");
    row.getColBoneOrJoint().setValue("Bone");

    form.lyrBoneJoint().showtabBone();

    MskGroupVo voMskGroupVo = new MskGroupVo();
    voMskGroupVo.setIsJoint(Boolean.FALSE);
    row.setValue(voMskGroupVo);
    //Set readonly the rest of the rows
    for(int i=0; i<form.grdMuscleJoint().getRows().size(); i++)
    {
        if(!form.grdMuscleJoint().getRows().get(i).getValue().equals(voMskGroupVo))
            form.grdMuscleJoint().getRows().get(i).setReadOnly(true);
    }

    listAvailableGroupTypes();
    form.grdMuscleJoint().setValue(voMskGroupVo);

    form.setMode(FormMode.EDIT);        
}
项目:AvoinApotti    文件:Logic.java   
private void setAddApplyCaption()
{
    form.lyrDetails().tabCentral().btnCentralAddApply().setText("Add");
    form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdCentral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabCentral().btnCentralAddApply().setText("Apply");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdPeripheral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Apply");

}
项目:openMAXIMS    文件:Logic.java   
private void loadJBCombo()
{
    MskGroupVo mskGroupVo = form.cmbGroup().getValue();
    form.cmbJB().clear();
    form.cmbLaterality().setValue(null);
    form.txtInterpret().setValue(null);
    form.txtLigSpecTests().setValue(null);
    form.grdMovements().getRows().clear();
    form.treGeneralFindings().clear();

    if (mskGroupVo != null && mskGroupVo.getIsJointIsNotNull())
    {
        if (mskGroupVo.getIsJoint().booleanValue())
        {
            // Joint
            for (int i = 0; i < mskGroupVo.getJoints().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getJoints().get(i), mskGroupVo.getJoints().get(i).getName());

            // Findings
            populateJointFindingTree();
        }
        else
        {
            // Bone
            for (int i = 0; i < mskGroupVo.getBones().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getBones().get(i), mskGroupVo.getBones().get(i).getText());

            // Findings
            populateBoneFindingsTree();
            form.grdMovements().setVisible(false);
            form.grdMovements().setReadOnly(form.getMode().equals(FormMode.VIEW));
        }
    }
}
项目: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 boolean groupExists(MskGroupsRefVo voMskGroup)
{
    for (int i = 0; i < form.cmbGroup().getValues().size(); i++)
        if (((MskGroupVo) form.cmbGroup().getValues().get(i)).getID_MskGroups().equals(voMskGroup.getID_MskGroups()))
            return true;
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceDataForBone(MskGroupVo voGroup) 
{
    if (voGroup == null) return;

    voGroup.setBoneGeneralFindings(populateBoneGeneralDataFromScreen());
    voGroup.setBones(populateBoneDataFromScreen());
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceDataForJoint(MskGroupVo voGroup)
{
    if (voGroup == null) return;

    voGroup.setGroupType(getGroupType(form.lyrBoneJoint().tabJoint().cmbGroupType().getValue()));
    voGroup.setJointGeneralFindings(populateJointGeneralDataFromScreen());
    voGroup.setJoints(populateJointDataFromScreen());
}
项目:openMAXIMS    文件:Logic.java   
private void newGroup() 
{
    this.clearScreen();

    form.getLocalContext().setMskGroupRecord(new MskGroupVo());
    GenForm.grdMuscleJointRow row = form.grdMuscleJoint().getRows().newRow();
    row.setColActive(true);
    row.getColBoneOrJoint().newRow("Bone","Bone");
    row.getColBoneOrJoint().newRow("Joint","Joint");
    row.getColBoneOrJoint().setValue("Bone");

    form.lyrBoneJoint().showtabBone();

    MskGroupVo voMskGroupVo = new MskGroupVo();
    voMskGroupVo.setIsJoint(Boolean.FALSE);
    row.setValue(voMskGroupVo);
    //Set readonly the rest of the rows
    for(int i=0; i<form.grdMuscleJoint().getRows().size(); i++)
    {
        if(!form.grdMuscleJoint().getRows().get(i).getValue().equals(voMskGroupVo))
            form.grdMuscleJoint().getRows().get(i).setReadOnly(true);
    }

    listAvailableGroupTypes();
    form.grdMuscleJoint().setValue(voMskGroupVo);

    form.setMode(FormMode.EDIT);        
}
项目:openMAXIMS    文件:Logic.java   
private void setAddApplyCaption()
{
    form.lyrDetails().tabCentral().btnCentralAddApply().setText("Add");
    form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdCentral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabCentral().btnCentralAddApply().setText("Apply");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdPeripheral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Apply");

}
项目:openMAXIMS    文件:Logic.java   
private void loadJBCombo()
{
    MskGroupVo mskGroupVo = form.cmbGroup().getValue();
    form.cmbJB().clear();
    form.cmbLaterality().setValue(null);
    form.txtInterpret().setValue(null);
    form.txtLigSpecTests().setValue(null);
    form.grdMovements().getRows().clear();
    form.treGeneralFindings().clear();

    if (mskGroupVo != null && mskGroupVo.getIsJointIsNotNull())
    {
        if (mskGroupVo.getIsJoint().booleanValue())
        {
            // Joint
            for (int i = 0; i < mskGroupVo.getJoints().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getJoints().get(i), mskGroupVo.getJoints().get(i).getName());

            // Findings
            populateJointFindingTree();
        }
        else
        {
            // Bone
            for (int i = 0; i < mskGroupVo.getBones().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getBones().get(i), mskGroupVo.getBones().get(i).getText());

            // Findings
            populateBoneFindingsTree();
            form.grdMovements().setVisible(false);
            form.grdMovements().setReadOnly(form.getMode().equals(FormMode.VIEW));
        }
    }
}
项目: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 boolean groupExists(MskGroupsRefVo voMskGroup)
{
    for (int i = 0; i < form.cmbGroup().getValues().size(); i++)
        if (((MskGroupVo) form.cmbGroup().getValues().get(i)).getID_MskGroups().equals(voMskGroup.getID_MskGroups()))
            return true;
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceDataForBone(MskGroupVo voGroup) 
{
    if (voGroup == null) return;

    voGroup.setBoneGeneralFindings(populateBoneGeneralDataFromScreen());
    voGroup.setBones(populateBoneDataFromScreen());
}
项目:openMAXIMS    文件:Logic.java   
private void populateInstanceDataForJoint(MskGroupVo voGroup)
{
    if (voGroup == null) return;

    voGroup.setGroupType(getGroupType(form.lyrBoneJoint().tabJoint().cmbGroupType().getValue()));
    voGroup.setJointGeneralFindings(populateJointGeneralDataFromScreen());
    voGroup.setJoints(populateJointDataFromScreen());
}
项目:openMAXIMS    文件:Logic.java   
private void newGroup() 
{
    this.clearScreen();

    form.getLocalContext().setMskGroupRecord(new MskGroupVo());
    GenForm.grdMuscleJointRow row = form.grdMuscleJoint().getRows().newRow();
    row.setColActive(true);
    row.getColBoneOrJoint().newRow("Bone","Bone");
    row.getColBoneOrJoint().newRow("Joint","Joint");
    row.getColBoneOrJoint().setValue("Bone");

    form.lyrBoneJoint().showtabBone();

    MskGroupVo voMskGroupVo = new MskGroupVo();
    voMskGroupVo.setIsJoint(Boolean.FALSE);
    row.setValue(voMskGroupVo);
    //Set readonly the rest of the rows
    for(int i=0; i<form.grdMuscleJoint().getRows().size(); i++)
    {
        if(!form.grdMuscleJoint().getRows().get(i).getValue().equals(voMskGroupVo))
            form.grdMuscleJoint().getRows().get(i).setReadOnly(true);
    }

    listAvailableGroupTypes();
    form.grdMuscleJoint().setValue(voMskGroupVo);

    form.setMode(FormMode.EDIT);        
}
项目:openMAXIMS    文件:Logic.java   
private void setAddApplyCaption()
{
    form.lyrDetails().tabCentral().btnCentralAddApply().setText("Add");
    form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdCentral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabCentral().btnCentralAddApply().setText("Apply");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdPeripheral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Apply");

}
项目:openmaxims-linux    文件:Logic.java   
private void loadJBCombo()
{
    MskGroupVo mskGroupVo = form.cmbGroup().getValue();
    form.cmbJB().clear();
    form.cmbLaterality().setValue(null);
    form.txtInterpret().setValue(null);
    form.txtLigSpecTests().setValue(null);
    form.grdMovements().getRows().clear();
    form.treGeneralFindings().clear();

    if (mskGroupVo != null && mskGroupVo.getIsJointIsNotNull())
    {
        if (mskGroupVo.getIsJoint().booleanValue())
        {
            // Joint
            for (int i = 0; i < mskGroupVo.getJoints().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getJoints().get(i), mskGroupVo.getJoints().get(i).getName());

            // Findings
            populateJointFindingTree();
        }
        else
        {
            // Bone
            for (int i = 0; i < mskGroupVo.getBones().size(); i++)
                form.cmbJB().newRow(mskGroupVo.getBones().get(i), mskGroupVo.getBones().get(i).getText());

            // Findings
            populateBoneFindingsTree();
            form.grdMovements().setVisible(false);
            form.grdMovements().setReadOnly(form.getMode().equals(FormMode.VIEW));
        }
    }
}
项目: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());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean groupExists(MskGroupsRefVo voMskGroup)
{
    for (int i = 0; i < form.cmbGroup().getValues().size(); i++)
        if (((MskGroupVo) form.cmbGroup().getValues().get(i)).getID_MskGroups().equals(voMskGroup.getID_MskGroups()))
            return true;
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceDataForBone(MskGroupVo voGroup) 
{
    if (voGroup == null) return;

    voGroup.setBoneGeneralFindings(populateBoneGeneralDataFromScreen());
    voGroup.setBones(populateBoneDataFromScreen());
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInstanceDataForJoint(MskGroupVo voGroup)
{
    if (voGroup == null) return;

    voGroup.setGroupType(getGroupType(form.lyrBoneJoint().tabJoint().cmbGroupType().getValue()));
    voGroup.setJointGeneralFindings(populateJointGeneralDataFromScreen());
    voGroup.setJoints(populateJointDataFromScreen());
}
项目:openmaxims-linux    文件:Logic.java   
private void newGroup() 
{
    this.clearScreen();

    form.getLocalContext().setMskGroupRecord(new MskGroupVo());
    GenForm.grdMuscleJointRow row = form.grdMuscleJoint().getRows().newRow();
    row.setColActive(true);
    row.getColBoneOrJoint().newRow("Bone","Bone");
    row.getColBoneOrJoint().newRow("Joint","Joint");
    row.getColBoneOrJoint().setValue("Bone");

    form.lyrBoneJoint().showtabBone();

    MskGroupVo voMskGroupVo = new MskGroupVo();
    voMskGroupVo.setIsJoint(Boolean.FALSE);
    row.setValue(voMskGroupVo);
    //Set readonly the rest of the rows
    for(int i=0; i<form.grdMuscleJoint().getRows().size(); i++)
    {
        if(!form.grdMuscleJoint().getRows().get(i).getValue().equals(voMskGroupVo))
            form.grdMuscleJoint().getRows().get(i).setReadOnly(true);
    }

    listAvailableGroupTypes();
    form.grdMuscleJoint().setValue(voMskGroupVo);

    form.setMode(FormMode.EDIT);        
}
项目:openmaxims-linux    文件:Logic.java   
private void setAddApplyCaption()
{
    form.lyrDetails().tabCentral().btnCentralAddApply().setText("Add");
    form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Add");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdCentral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabCentral().btnCentralAddApply().setText("Apply");

    if (form.getLocalContext().getSelectedChildInstance() == null && (form.grdPeripheral().getValue() instanceof MskGroupVo))
        form.lyrDetails().tabPeripheral().btnPeripheralAddApply().setText("Apply");

}
项目: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 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 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 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();}
    }
}