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

项目:AvoinApotti    文件:Logic.java   
private void setCentralContextMenuCaptions()
{
    if (form.grdCentral().getValue() == null)
    {
        if (form.getLocalContext().getSelectedParentInstance() == null)
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("New Range Of Movement");
        else
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("Add Range Of Movement Details");
    }
    else
    {
        if (form.getLocalContext().getSelectedChildInstance().getJoint() == null)
            return;

        String str = "Add Selected Movements for " + form.getLocalContext().getSelectedChildInstance().getJoint().getName();

        form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText(str);

        if (form.grdCentral().getSelectedRow().getValue() instanceof MskJointMovementVo)
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText("Edit Movement Details");
        else
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText(str);

    }
}
项目:openMAXIMS    文件:Logic.java   
private void setCentralContextMenuCaptions()
{
    if (form.grdCentral().getValue() == null)
    {
        if (form.getLocalContext().getSelectedParentInstance() == null)
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("New Range Of Movement");
        else
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("Add Range Of Movement Details");
    }
    else
    {
        if (form.getLocalContext().getSelectedChildInstance().getJoint() == null)
            return;

        String str = "Add Selected Movements for " + form.getLocalContext().getSelectedChildInstance().getJoint().getName();

        form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText(str);

        if (form.grdCentral().getSelectedRow().getValue() instanceof MskJointMovementVo)
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText("Edit Movement Details");
        else
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText(str);

    }
}
项目:openMAXIMS    文件:Logic.java   
private void setCentralContextMenuCaptions()
{
    if (form.grdCentral().getValue() == null)
    {
        if (form.getLocalContext().getSelectedParentInstance() == null)
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("New Range Of Movement");
        else
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("Add Range Of Movement Details");
    }
    else
    {
        if (form.getLocalContext().getSelectedChildInstance().getJoint() == null)
            return;

        String str = "Add Selected Movements for " + form.getLocalContext().getSelectedChildInstance().getJoint().getName();

        form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText(str);

        if (form.grdCentral().getSelectedRow().getValue() instanceof MskJointMovementVo)
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText("Edit Movement Details");
        else
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText(str);

    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setCentralContextMenuCaptions()
{
    if (form.grdCentral().getValue() == null)
    {
        if (form.getLocalContext().getSelectedParentInstance() == null)
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("New Range Of Movement");
        else
            form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText("Add Range Of Movement Details");
    }
    else
    {
        if (form.getLocalContext().getSelectedChildInstance().getJoint() == null)
            return;

        String str = "Add Selected Movements for " + form.getLocalContext().getSelectedChildInstance().getJoint().getName();

        form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setText(str);

        if (form.grdCentral().getSelectedRow().getValue() instanceof MskJointMovementVo)
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText("Edit Movement Details");
        else
            form.getContextMenus().getRangeOfMovementCentralUpdateItem().setText(str);

    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateMovementGrd(MskJointMovementVoCollection voJointMovementVoColl)
{
    if (voJointMovementVoColl != null)
    {
        GenForm.grdMovementsRow row;
        for (int y = 0; y < voJointMovementVoColl.size(); y++)
        {
            MskJointMovementVo voJointMovement = voJointMovementVoColl.get(y);
            int a = 0;
            for (a = 0; a < form.grdMovements().getRows().size(); a++)
            {
                row = form.grdMovements().getRows().get(a);
                if (row.getMovements() != null)
                {
                    if (row.getMovements().equals(voJointMovement.getMoveType().getText()))
                    {
                        row.setcolSor(voJointMovement.getMovSOR());
                        row.setcolEor(voJointMovement.getMovEOR());
                        row.setcolFinding(voJointMovement.getMoveFinding());
                        break;
                    }
                }
            }
            if (a == form.grdMovements().getRows().size())
            {
                row = form.grdMovements().getRows().newRow();
                row.setValue(voJointMovement);
                row.setcolSor(voJointMovement.getMovSOR());
                row.setcolEor(voJointMovement.getMovEOR());
                row.setcolFinding(voJointMovement.getMoveFinding());
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateCentralChildInstanceControls(MskJointMovementVo vo)
{
    form.lyrDetails().tabCentral().cmbCentralArea().setValue(getRomJoint());
    form.lyrDetails().tabCentral().cmbCentralLimited().setValue(vo.getLimited());
    form.lyrDetails().tabCentral().cmbRange().setValue(vo.getQualitativeRange());
    // WDEV-11598
    form.lyrDetails().tabCentral().intSOR().setValue(vo.getMovSOR());
    form.lyrDetails().tabCentral().intEOR().setValue(vo.getMovEOR());
    form.lyrDetails().tabCentral().cmbCentralMovement().setValue(vo.getMoveType());
    form.lyrDetails().tabCentral().cmbCentralAction().setValue(vo.getMoveAction());
}
项目:AvoinApotti    文件:Logic.java   
private void populatePeripheralChildInstanceControls(RangeOfMovementDetailVo voRomDetail, MskJointMovementVo vo)
{
    RangeOfMovementJointVo voRomJoint = getRomJoint();
    form.lyrDetails().tabPeripheral().cmbPeripheralArea().setValue(voRomJoint);
    form.lyrDetails().tabPeripheral().cmbPeripheralLimited().setValue(vo.getLimited());
    form.lyrDetails().tabPeripheral().cmbPeripheralMovement().setValue(vo.getMoveType());
    form.lyrDetails().tabPeripheral().txtEOR().setValue(vo.getMovEOR() != null ? vo.getMovEOR().toString() : "");
    form.lyrDetails().tabPeripheral().txtSOR().setValue(vo.getMovSOR() != null ? vo.getMovSOR().toString() : "");
    form.lyrDetails().tabPeripheral().cmbLaterality().setValue(voRomDetail.getLaterality());
    form.lyrDetails().tabPeripheral().cmbPeripheralAction().setValue(vo.getMoveAction());
}
项目:AvoinApotti    文件:Logic.java   
private boolean populateChildInstanceData(RangeOfMovementDetailVo voRangeOfMovementDetail)
{
    if (form.getLocalContext().getJointTypeSelected().equals(Joint_Type_None) == false)
    {
        if (form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Central))
        {
            if (form.lyrDetails().tabCentral().cmbCentralArea().getValue() == null)
            {
                engine.showMessage("You must select a joint ");
                return false;
            }

            RangeOfMovementJointVo voROMCentralJoint = form.lyrDetails().tabCentral().cmbCentralArea().getValue();
            voRangeOfMovementDetail.setJoint(voROMCentralJoint.getJoint());
            voRangeOfMovementDetail.setGroup(voROMCentralJoint.getGroup());
        }
        else
        {
            if (form.lyrDetails().tabPeripheral().cmbPeripheralArea().getValue() == null)
            {
                engine.showMessage("You must select a joint ");
                return false;
            }

            RangeOfMovementJointVo voRomPeripheralJoint = form.lyrDetails().tabPeripheral().cmbPeripheralArea().getValue();
            voRangeOfMovementDetail.setJoint(voRomPeripheralJoint.getJoint());
            voRangeOfMovementDetail.setGroup(voRomPeripheralJoint.getGroup());
        }

        voRangeOfMovementDetail.setSelectedMovements(new MskJointMovementVoCollection());
        MskJointMovementVo voMskJointMovement = new MskJointMovementVo();
        populateMovementInstanceData(voRangeOfMovementDetail, voMskJointMovement);
        voRangeOfMovementDetail.getSelectedMovements().add(voMskJointMovement);

        return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateMovementInstanceData(RangeOfMovementDetailVo voRangeOfDetailMovement, MskJointMovementVo voMovement)
{
    if (voMovement == null)
        return;

    if (form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Central))
    {
        voMovement.setLimited(form.lyrDetails().tabCentral().cmbCentralLimited().getValue() != null ? form.lyrDetails().tabCentral().cmbCentralLimited().getValue() : null);
        voMovement.setQualitativeRange(form.lyrDetails().tabCentral().cmbRange().getValue() != null ? form.lyrDetails().tabCentral().cmbRange().getValue() : null);
        // WDEV-11598
        voMovement.setMovSOR(form.lyrDetails().tabCentral().intSOR().getValue());
        voMovement.setMovEOR(form.lyrDetails().tabCentral().intEOR().getValue());
        voMovement.setMoveType(form.lyrDetails().tabCentral().cmbCentralMovement().getValue() != null ? form.lyrDetails().tabCentral().cmbCentralMovement().getValue() : null);
        voMovement.setMoveAction(form.lyrDetails().tabCentral().cmbCentralAction().getValue() != null ? form.lyrDetails().tabCentral().cmbCentralAction().getValue() : null);
    }
    else
    {
        voMovement.setLimited(form.lyrDetails().tabPeripheral().cmbPeripheralLimited().getValue());

        if (form.lyrDetails().tabPeripheral().txtEOR().getValue() != null)
            voMovement.setMovEOR(new Integer(form.lyrDetails().tabPeripheral().txtEOR().getValue()));

        if (form.lyrDetails().tabPeripheral().txtSOR().getValue() != null)
            voMovement.setMovSOR(new Integer(form.lyrDetails().tabPeripheral().txtSOR().getValue()));

        voMovement.setMoveAction(form.lyrDetails().tabPeripheral().cmbPeripheralAction().getValue());
        voMovement.setMoveType(form.lyrDetails().tabPeripheral().cmbPeripheralMovement().getValue());
        voRangeOfDetailMovement.setLaterality(form.lyrDetails().tabPeripheral().cmbLaterality().getValue());

    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateCentralChildDataFromGrid(RangeOfMovementVo voRangeOfMovement)
{
    for (int i = 0; i < form.grdCentral().getRows().size(); i++)
    {
        GenForm.grdCentralRow currentRow = form.grdCentral().getRows().get(i);
        RangeOfMovementDetailVo voDetail = (RangeOfMovementDetailVo) currentRow.getValue();

        voDetail.getSelectedMovements().clear();
        for (int j = 0; j < currentRow.getRows().size(); j++)
        {
            voDetail.getSelectedMovements().add((MskJointMovementVo) currentRow.getRows().get(j).getValue());
        }

        if (voDetail.getID_MSkExamJointBonesDetail() == null)
        {
            voDetail.setIsJoint(Boolean.TRUE);
            voRangeOfMovement.getDetails().add(voDetail);
        }
        else
        {
            for (int j = 0; j < voRangeOfMovement.getDetails().size(); j++)
            {
                if (voRangeOfMovement.getDetails().get(j).equals(voDetail))
                {
                    voRangeOfMovement.getDetails().set(j, voDetail);
                    break;
                }
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populatePeripheralChildDataFromGrid(RangeOfMovementVo voRangeOfMovement)
{
    for (int i = 0; i < form.grdPeripheral().getRows().size(); i++)
    {
        GenForm.grdPeripheralRow currentRow = form.grdPeripheral().getRows().get(i);
        RangeOfMovementDetailVo voDetail = (RangeOfMovementDetailVo) currentRow.getValue();

        voDetail.getSelectedMovements().clear();
        for (int j = 0; j < currentRow.getRows().size(); j++)
        {
            voDetail.getSelectedMovements().add((MskJointMovementVo) currentRow.getRows().get(j).getValue());
        }

        if (voDetail.getID_MSkExamJointBonesDetail() == null)
        {
            voDetail.setIsJoint(Boolean.TRUE);
            voRangeOfMovement.getDetails().add(voDetail);
        }
        else
        {
            for (int j = 0; j < voRangeOfMovement.getDetails().size(); j++)
            {
                if (voRangeOfMovement.getDetails().get(j).equals(voDetail))
                {
                    voRangeOfMovement.getDetails().set(j, voDetail);
                    break;
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setCentralTabVisibility()
{
    boolean bVisible = form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Central) && ((form.grdCentral().getValue() == null || form.grdCentral().getValue() instanceof MskJointMovementVo) || ((form.getLocalContext().getCurrentAction().equals(Action_AddMovement) || form.getLocalContext().getCurrentAction().equals(Action_AddJoint))));

    form.lyrDetails().tabCentral().setHeaderVisible(bVisible);

    setCentralButtonsVisibility();
    setCentralJointComboVisibility(bVisible);
}
项目:AvoinApotti    文件:Logic.java   
private void setPeripheralTabVisibility()
{
    boolean bVisible = form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Peripheral) && ((form.grdPeripheral().getValue() == null || form.grdPeripheral().getValue() instanceof MskJointMovementVo) || ((form.getLocalContext().getCurrentAction().equals(Action_AddMovement)) || form.getLocalContext().getCurrentAction().equals(Action_AddJoint)));

    form.lyrDetails().tabPeripheral().setHeaderVisible(bVisible);

    setPeripheralButtonsVisibility();
    setPeripheralJointComboVisibility(bVisible);
}
项目:AvoinApotti    文件:Logic.java   
private void pushPeripheralChildNode(RangeOfMovementDetailVo voRangeOfMovementDetail)
{
    GenForm.grdPeripheralRow childRow = findPeripheralChildNode(voRangeOfMovementDetail.getJoint(), voRangeOfMovementDetail.getLaterality());
    if (childRow == null)
        childRow = form.grdPeripheral().getRows().newRow();

    childRow.setValue(voRangeOfMovementDetail);
    populatePeripheralChildNode(childRow, voRangeOfMovementDetail);
    if (voRangeOfMovementDetail.getSelectedMovements().size() > 0)
    {
        MskJointMovementVo voJointMovement = voRangeOfMovementDetail.getSelectedMovements().get(0);
        if (voJointMovement.getID_MskJointMovement() != null)
        {
            for (int i = 0; i < childRow.getRows().size(); i++)
            {
                MskJointMovementVo nodeMovement = (MskJointMovementVo) childRow.getRows().get(i).getValue();
                if (nodeMovement.equals(voJointMovement))
                {
                    childRow.getRows().get(i).setValue(voJointMovement);
                    break;
                }
            }
        }
        else
        {
            if (voJointMovement.getMoveType() != null)
            {
                GenForm.grdPeripheralRow movementRow = childRow.getRows().newRow();
                populatePeripheralMovementNode(movementRow, voJointMovement);
            }
        }

    }

    form.lyrDetails().tabPeripheral().cmbPeripheralArea().setEnabled(false);
    form.lyrDetails().tabPeripheral().cmbLaterality().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void pushCentralChildNode(RangeOfMovementDetailVo voRangeOfMovementDetail)
{
    GenForm.grdCentralRow childRow = findCentralChildNode(voRangeOfMovementDetail.getJoint());
    if (childRow == null)
        childRow = form.grdCentral().getRows().newRow();

    childRow.setValue(voRangeOfMovementDetail);
    populateCentralChildNode(childRow, voRangeOfMovementDetail);
    if (voRangeOfMovementDetail.getSelectedMovements().size() > 0)
    {
        MskJointMovementVo voJointMovement = voRangeOfMovementDetail.getSelectedMovements().get(0);
        if (voJointMovement.getID_MskJointMovement() != null)
        {
            for (int i = 0; i < childRow.getRows().size(); i++)
            {
                MskJointMovementVo nodeMovement = (MskJointMovementVo) childRow.getRows().get(i).getValue();
                if (nodeMovement.equals(voJointMovement))
                {
                    childRow.getRows().get(i).setValue(voJointMovement);
                    break;
                }
            }
        }
        else
        {
            if (voJointMovement.getMoveType() != null)
            {
                GenForm.grdCentralRow movementRow = childRow.getRows().newRow();
                populateCentralMovementNode(movementRow, voJointMovement);
            }

        }

    }

    // form.grdCentral().setValue(voRangeOfMovementDetail);
    form.lyrDetails().tabCentral().cmbCentralArea().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private void setUpdatedPeripheralChild()
{
    form.getLocalContext().setUpdatedChildType(Joint_Type_Peripheral);

    if (form.grdPeripheral().getValue() instanceof MskJointMovementVo)
    {
        form.getLocalContext().setUpdatedChild((MskJointMovementVo) form.grdPeripheral().getValue());
    }
    else
    {
        // Find the most recently added child
        if (form.getLocalContext().getCurrentAction().equals(Action_UpdateMovement) == false)
        {
            for (int i = 0; i < form.getLocalContext().getSelectedParentInstance().getDetails().size(); i++)
            {
                RangeOfMovementDetailVo voCurrentRom = form.getLocalContext().getSelectedParentInstance().getDetails().get(i);
                if (voCurrentRom.equals(form.getLocalContext().getSelectedChildInstance()))
                {
                    if(voCurrentRom.getSelectedMovements().size() > 0)
                    {
                        voCurrentRom.getSelectedMovements().sort();
                        form.getLocalContext().setUpdatedChild(voCurrentRom.getSelectedMovements().get(voCurrentRom.getSelectedMovements().size() - 1));
                    }
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setUpdatedCentralChild()
{
    form.getLocalContext().setUpdatedChildType(Joint_Type_Central);

    // We edited a central child which is still selected in the tree
    if (form.grdCentral().getValue() instanceof MskJointMovementVo)
    {
        form.getLocalContext().setUpdatedChild((MskJointMovementVo) form.grdCentral().getValue());
    }
    else
    {
        // We added a movement to the selected child. Interrogate the saved movement collection
        // and select the most recently added one.
        if (form.getLocalContext().getCurrentAction().equals(Action_UpdateMovement) == false)
        {
            for (int i = 0; i < form.getLocalContext().getSelectedParentInstance().getDetails().size(); i++)
            {
                RangeOfMovementDetailVo voCurrentRom = form.getLocalContext().getSelectedParentInstance().getDetails().get(i);
                if (voCurrentRom.equals(form.getLocalContext().getSelectedChildInstance()))
                {
                    if(voCurrentRom.getSelectedMovements().size() > 0)
                    {
                        voCurrentRom.getSelectedMovements().sort();
                        form.getLocalContext().setUpdatedChild(voCurrentRom.getSelectedMovements().get(voCurrentRom.getSelectedMovements().size() - 1));
                    }
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setContextMenuVisibility()
{
    boolean bGolden = form.getLocalContext().getGoldenInstanceSelected() != null && form.getLocalContext().getGoldenInstanceSelected().booleanValue() == true;

    form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.grdCentral().getValue() != null);
    form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.grdPeripheral().getValue() != null);

    form.getContextMenus().getRangeOfMovementCentralUpdateItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null && form.grdCentral().getValue() instanceof MskJointMovementVo);

    form.getContextMenus().getRangeOfMovementPeripheralEditItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null && form.grdPeripheral().getValue() instanceof MskJointMovementVo);

    form.getContextMenus().getRangeOfMovementCentralADDJointItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null);
    form.getContextMenus().getRangeOfMovementPeripheralAddJointItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null);
}
项目:AvoinApotti    文件:Logic.java   
private void setPeripheralContextMenuCaptions()
{
    if (form.grdPeripheral().getValue() == null)
    {
        if (form.getLocalContext().getSelectedParentInstance() == null)
            form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setText("New Range Of Movement");
        else
            form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setText("Add Range Of Movement Details");
    }
    else
    {
        if (form.getLocalContext().getSelectedChildInstance() == null)
            return;
        if (form.getLocalContext().getSelectedChildInstance().getJoint() == null)
            return;
        if (form.getLocalContext().getSelectedChildInstance().getLaterality() == null)
            return;

        String str = "Add Selected Movements for " + (form.getLocalContext().getSelectedChildInstance().getJoint().getName() + " - (" + (form.getLocalContext().getSelectedChildInstance().getLaterality().getIItemText() + ")"));

        form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setText(str);

        if (form.grdPeripheral().getSelectedRow().getValue() instanceof MskJointMovementVo)
            form.getContextMenus().getRangeOfMovementPeripheralEditItem().setText("Edit Movement Details");
        else
            form.getContextMenus().getRangeOfMovementPeripheralEditItem().setText(str);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void instanceControlsPopulateMovement(MskJointMovementVo vo)
{
    form.ctnDetails().lyrDetails().tabDetails().cmbMovement().newRow(vo.getMoveType(), vo.getMoveType().getIItemText());
    form.ctnDetails().lyrDetails().tabDetails().cmbMovement().setValue(vo.getMoveType());
    form.ctnDetails().lyrDetails().tabDetails().cmbAction().setValue(vo.getMoveAction());

    // WDEV-11598
    form.ctnDetails().lyrDetails().tabDetails().intEOR().setValue(vo.getMovEOR());
    form.ctnDetails().lyrDetails().tabDetails().intSOR().setValue(vo.getMovSOR());

    // form.ctnDetails().lyrDetails().tabDetails().intValue().setValue(vo.getMovEOR());
}
项目:AvoinApotti    文件:Logic.java   
private boolean checkExits(MskJointMovementVoCollection selectedMovements, MskJointMovementVo movement)
{
    if (movement == null)
        throw new CodingRuntimeException("Logical error - movement to add can not be null");

    for (MskJointMovementVo movementInCollection : selectedMovements)
    {
        if (movement.getMoveActionIsNotNull() && movement.getMoveAction().equals(movementInCollection.getMoveAction()) && movement.getMoveTypeIsNotNull() && movement.getMoveTypeIsNotNull() && movement.getMoveType().equals(movementInCollection.getMoveType()) && (!movement.getID_MskJointMovementIsNotNull() || (movement.getID_MskJointMovementIsNotNull() && !movement.getID_MskJointMovement().equals(movementInCollection.getID_MskJointMovement()))))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void instanceDataPopulateMovements(HandRangeOfMovementVo voHandRangeOfMovement)
{
    grdMovementRow lateralityRow, digitRow, jointRow;
    lateralityRow = findLateralityNode(form.ctnDetails().lyrDetails().tabDetails().cmbLaterality().getValue());
    digitRow = checkForDigitNode(lateralityRow, form.ctnDetails().lyrDetails().tabDetails().cmbDigit().getValue());
    jointRow = checkForJointNode(digitRow, form.ctnDetails().lyrDetails().tabDetails().cmbJoint().getValue());

    RangeOfMovementDetailVo voCurrentRangeOfMovementDetail = (RangeOfMovementDetailVo) digitRow.getValue();
    voCurrentRangeOfMovementDetail.setJoint((MskJointVo) jointRow.getValue());

    // Still have to populate the selected movements
    voCurrentRangeOfMovementDetail.getSelectedMovements().clear();
    MskJointMovementVoCollection voCollSelectedMovements = new MskJointMovementVoCollection();
    for (int i = 0; i < jointRow.getRows().size(); i++)
        voCollSelectedMovements.add((MskJointMovementVo) jointRow.getRows().get(i).getValue());

    voCurrentRangeOfMovementDetail.setSelectedMovements(voCollSelectedMovements);

    // Now just find the detail within the collection and save it..
    if (voCurrentRangeOfMovementDetail.getID_MSkExamJointBonesDetail() != null)
    {
        for (int x = 0; x < voHandRangeOfMovement.getDetails().size(); x++)
            if (voHandRangeOfMovement.getDetails().get(x).getID_MSkExamJointBonesDetail().equals(voCurrentRangeOfMovementDetail.getID_MSkExamJointBonesDetail()))
            {
                voHandRangeOfMovement.getDetails().set(x, voCurrentRangeOfMovementDetail);
                break;
            }
    }
    else
        voHandRangeOfMovement.getDetails().add(voCurrentRangeOfMovementDetail);

}
项目:AvoinApotti    文件:Logic.java   
private void removeMovementInstance()
{
    form.getLocalContext().setUpdatingParent(Boolean.FALSE);

    MskJointMovementVo voSelectedMovement = (MskJointMovementVo) form.grdMovement().getSelectedRow().getValue();
    form.grdMovement().removeSelectedRow();

    if (voSelectedMovement.getID_MskJointMovement() != null)
        saveWithoutCheck();

    updateContextMenusState();
}
项目:AvoinApotti    文件:Logic.java   
private void chooseTab()
{
    if (form.getMode().equals(FormMode.VIEW))
    {
        ValueObject vo = form.grdMovement().getValue();

        // In view mode just show the selected node
        if (vo instanceof MskJointMovementVo)
            form.ctnDetails().lyrDetails().showtabDetails();
        else
        {
            if (form.getLocalContext().getSelectedHandRangeOfMovementInstance() == null)
                form.ctnDetails().lyrDetails().showtabEmpty();
            else
                form.ctnDetails().lyrDetails().showtabHeader();
        }
    }
    else
    {
        boolean bNewParent = form.getLocalContext().getSelectedHandRangeOfMovementInstanceIsNotNull() && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getID_HandRangeOfMovement() == null;

        if (form.getLocalContext().getUpdatingParent().equals(Boolean.TRUE) || bNewParent)
        {
            form.ctnDetails().lyrDetails().showtabHeader();
        }
        else
        {
            form.ctnDetails().lyrDetails().showtabDetails();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Set's the visibility of the OK and Cancel buttons. Essentially if we are adding a new child then we want to see both buttons Otherwise we don't
 */
private void enableDetailsButtons()
{
    if (form.grdMovement().getSelectedRow() != null && form.grdMovement().getSelectedRow().getValue() instanceof MskJointMovementVo)
    {
        setUIForUpdateValue();
        return;
    }

    boolean boolAddnew = form.getMode().equals(FormMode.EDIT) && form.ctnDetails().lyrDetails().tabDetails().isHeaderVisible() && form.getLocalContext().getSelectedRangeOfMovementDetailInstance() != null && (form.getLocalContext().getSelectedRangeOfMovementDetailInstance().getID_MSkExamJointBonesDetail() == null || form.getLocalContext().getSelectedRangeOfMovementDetailInstance().getID_MSkExamJointBonesDetail() != null && form.ctnDetails().lyrDetails().tabDetails().cmbAction().getValue() == null);

    form.ctnDetails().lyrDetails().tabDetails().btnOK().setVisible(boolAddnew);
    form.ctnDetails().lyrDetails().tabDetails().btnCancelDetails().setVisible(boolAddnew);

    boolean boolEdit = form.getMode().equals(FormMode.EDIT) && form.ctnDetails().lyrDetails().tabDetails().isHeaderVisible() && form.getLocalContext().getSelectedRangeOfMovementDetailInstance() != null && form.getLocalContext().getSelectedRangeOfMovementDetailInstance().getID_MSkExamJointBonesDetail() != null;

    // If we are configuring a digit then we want to disable this combo
    // until we're finished
    form.ctnDetails().lyrDetails().tabDetails().cmbDigit().setEnabled(boolAddnew);

    form.ctnDetails().lyrDetails().tabDetails().cmbAction().setEnabled(boolEdit || boolAddnew);
    form.ctnDetails().lyrDetails().tabDetails().cmbJoint().setEnabled(boolEdit || boolAddnew);
    // form.ctnDetails().lyrDetails().tabDetails().cmbLaterality().setEnabled(boolEdit
    // || boolAddnew);
    form.ctnDetails().lyrDetails().tabDetails().cmbMovement().setEnabled(boolEdit || boolAddnew);

    // WDEV-11598
    form.ctnDetails().lyrDetails().tabDetails().intEOR().setEnabled(boolEdit || boolAddnew);
    form.ctnDetails().lyrDetails().tabDetails().intSOR().setEnabled(boolEdit || boolAddnew);
    // form.ctnDetails().lyrDetails().tabDetails().intValue().setEnabled(boolEdit || boolAddnew);
}
项目:openMAXIMS    文件:Logic.java   
private void populateMovementGrd(MskJointMovementVoCollection voJointMovementVoColl)
{
    if (voJointMovementVoColl != null)
    {
        GenForm.grdMovementsRow row;
        for (int y = 0; y < voJointMovementVoColl.size(); y++)
        {
            MskJointMovementVo voJointMovement = voJointMovementVoColl.get(y);
            int a = 0;
            for (a = 0; a < form.grdMovements().getRows().size(); a++)
            {
                row = form.grdMovements().getRows().get(a);
                if (row.getMovements() != null)
                {
                    if (row.getMovements().equals(voJointMovement.getMoveType().getText()))
                    {
                        row.setcolSor(voJointMovement.getMovSOR());
                        row.setcolEor(voJointMovement.getMovEOR());
                        row.setcolFinding(voJointMovement.getMoveFinding());
                        break;
                    }
                }
            }
            if (a == form.grdMovements().getRows().size())
            {
                row = form.grdMovements().getRows().newRow();
                row.setValue(voJointMovement);
                row.setcolSor(voJointMovement.getMovSOR());
                row.setcolEor(voJointMovement.getMovEOR());
                row.setcolFinding(voJointMovement.getMoveFinding());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCentralChildInstanceControls(MskJointMovementVo vo)
{
    form.lyrDetails().tabCentral().cmbCentralArea().setValue(getRomJoint());
    form.lyrDetails().tabCentral().cmbCentralLimited().setValue(vo.getLimited());
    form.lyrDetails().tabCentral().cmbRange().setValue(vo.getQualitativeRange());
    // WDEV-11598
    form.lyrDetails().tabCentral().intSOR().setValue(vo.getMovSOR());
    form.lyrDetails().tabCentral().intEOR().setValue(vo.getMovEOR());
    form.lyrDetails().tabCentral().cmbCentralMovement().setValue(vo.getMoveType());
    form.lyrDetails().tabCentral().cmbCentralAction().setValue(vo.getMoveAction());
}
项目:openMAXIMS    文件:Logic.java   
private void populatePeripheralChildInstanceControls(RangeOfMovementDetailVo voRomDetail, MskJointMovementVo vo)
{
    RangeOfMovementJointVo voRomJoint = getRomJoint();
    form.lyrDetails().tabPeripheral().cmbPeripheralArea().setValue(voRomJoint);
    form.lyrDetails().tabPeripheral().cmbPeripheralLimited().setValue(vo.getLimited());
    form.lyrDetails().tabPeripheral().cmbPeripheralMovement().setValue(vo.getMoveType());
    form.lyrDetails().tabPeripheral().txtEOR().setValue(vo.getMovEOR() != null ? vo.getMovEOR().toString() : "");
    form.lyrDetails().tabPeripheral().txtSOR().setValue(vo.getMovSOR() != null ? vo.getMovSOR().toString() : "");
    form.lyrDetails().tabPeripheral().cmbLaterality().setValue(voRomDetail.getLaterality());
    form.lyrDetails().tabPeripheral().cmbPeripheralAction().setValue(vo.getMoveAction());
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateChildInstanceData(RangeOfMovementDetailVo voRangeOfMovementDetail)
{
    if (form.getLocalContext().getJointTypeSelected().equals(Joint_Type_None) == false)
    {
        if (form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Central))
        {
            if (form.lyrDetails().tabCentral().cmbCentralArea().getValue() == null)
            {
                engine.showMessage("You must select a joint ");
                return false;
            }

            RangeOfMovementJointVo voROMCentralJoint = form.lyrDetails().tabCentral().cmbCentralArea().getValue();
            voRangeOfMovementDetail.setJoint(voROMCentralJoint.getJoint());
            voRangeOfMovementDetail.setGroup(voROMCentralJoint.getGroup());
        }
        else
        {
            if (form.lyrDetails().tabPeripheral().cmbPeripheralArea().getValue() == null)
            {
                engine.showMessage("You must select a joint ");
                return false;
            }

            RangeOfMovementJointVo voRomPeripheralJoint = form.lyrDetails().tabPeripheral().cmbPeripheralArea().getValue();
            voRangeOfMovementDetail.setJoint(voRomPeripheralJoint.getJoint());
            voRangeOfMovementDetail.setGroup(voRomPeripheralJoint.getGroup());
        }

        voRangeOfMovementDetail.setSelectedMovements(new MskJointMovementVoCollection());
        MskJointMovementVo voMskJointMovement = new MskJointMovementVo();
        populateMovementInstanceData(voRangeOfMovementDetail, voMskJointMovement);
        voRangeOfMovementDetail.getSelectedMovements().add(voMskJointMovement);

        return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateMovementInstanceData(RangeOfMovementDetailVo voRangeOfDetailMovement, MskJointMovementVo voMovement)
{
    if (voMovement == null)
        return;

    if (form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Central))
    {
        voMovement.setLimited(form.lyrDetails().tabCentral().cmbCentralLimited().getValue() != null ? form.lyrDetails().tabCentral().cmbCentralLimited().getValue() : null);
        voMovement.setQualitativeRange(form.lyrDetails().tabCentral().cmbRange().getValue() != null ? form.lyrDetails().tabCentral().cmbRange().getValue() : null);
        // WDEV-11598
        voMovement.setMovSOR(form.lyrDetails().tabCentral().intSOR().getValue());
        voMovement.setMovEOR(form.lyrDetails().tabCentral().intEOR().getValue());
        voMovement.setMoveType(form.lyrDetails().tabCentral().cmbCentralMovement().getValue() != null ? form.lyrDetails().tabCentral().cmbCentralMovement().getValue() : null);
        voMovement.setMoveAction(form.lyrDetails().tabCentral().cmbCentralAction().getValue() != null ? form.lyrDetails().tabCentral().cmbCentralAction().getValue() : null);
    }
    else
    {
        voMovement.setLimited(form.lyrDetails().tabPeripheral().cmbPeripheralLimited().getValue());

        if (form.lyrDetails().tabPeripheral().txtEOR().getValue() != null)
            voMovement.setMovEOR(new Integer(form.lyrDetails().tabPeripheral().txtEOR().getValue()));

        if (form.lyrDetails().tabPeripheral().txtSOR().getValue() != null)
            voMovement.setMovSOR(new Integer(form.lyrDetails().tabPeripheral().txtSOR().getValue()));

        voMovement.setMoveAction(form.lyrDetails().tabPeripheral().cmbPeripheralAction().getValue());
        voMovement.setMoveType(form.lyrDetails().tabPeripheral().cmbPeripheralMovement().getValue());
        voRangeOfDetailMovement.setLaterality(form.lyrDetails().tabPeripheral().cmbLaterality().getValue());

    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateCentralChildDataFromGrid(RangeOfMovementVo voRangeOfMovement)
{
    for (int i = 0; i < form.grdCentral().getRows().size(); i++)
    {
        GenForm.grdCentralRow currentRow = form.grdCentral().getRows().get(i);
        RangeOfMovementDetailVo voDetail = (RangeOfMovementDetailVo) currentRow.getValue();

        voDetail.getSelectedMovements().clear();
        for (int j = 0; j < currentRow.getRows().size(); j++)
        {
            voDetail.getSelectedMovements().add((MskJointMovementVo) currentRow.getRows().get(j).getValue());
        }

        if (voDetail.getID_MSkExamJointBonesDetail() == null)
        {
            voDetail.setIsJoint(Boolean.TRUE);
            voRangeOfMovement.getDetails().add(voDetail);
        }
        else
        {
            for (int j = 0; j < voRangeOfMovement.getDetails().size(); j++)
            {
                if (voRangeOfMovement.getDetails().get(j).equals(voDetail))
                {
                    voRangeOfMovement.getDetails().set(j, voDetail);
                    break;
                }
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populatePeripheralChildDataFromGrid(RangeOfMovementVo voRangeOfMovement)
{
    for (int i = 0; i < form.grdPeripheral().getRows().size(); i++)
    {
        GenForm.grdPeripheralRow currentRow = form.grdPeripheral().getRows().get(i);
        RangeOfMovementDetailVo voDetail = (RangeOfMovementDetailVo) currentRow.getValue();

        voDetail.getSelectedMovements().clear();
        for (int j = 0; j < currentRow.getRows().size(); j++)
        {
            voDetail.getSelectedMovements().add((MskJointMovementVo) currentRow.getRows().get(j).getValue());
        }

        if (voDetail.getID_MSkExamJointBonesDetail() == null)
        {
            voDetail.setIsJoint(Boolean.TRUE);
            voRangeOfMovement.getDetails().add(voDetail);
        }
        else
        {
            for (int j = 0; j < voRangeOfMovement.getDetails().size(); j++)
            {
                if (voRangeOfMovement.getDetails().get(j).equals(voDetail))
                {
                    voRangeOfMovement.getDetails().set(j, voDetail);
                    break;
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setCentralTabVisibility()
{
    boolean bVisible = form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Central) && ((form.grdCentral().getValue() == null || form.grdCentral().getValue() instanceof MskJointMovementVo) || ((form.getLocalContext().getCurrentAction().equals(Action_AddMovement) || form.getLocalContext().getCurrentAction().equals(Action_AddJoint))));

    form.lyrDetails().tabCentral().setHeaderVisible(bVisible);

    setCentralButtonsVisibility();
    setCentralJointComboVisibility(bVisible);
}
项目:openMAXIMS    文件:Logic.java   
private void setPeripheralTabVisibility()
{
    boolean bVisible = form.getLocalContext().getJointTypeSelected().equals(Joint_Type_Peripheral) && ((form.grdPeripheral().getValue() == null || form.grdPeripheral().getValue() instanceof MskJointMovementVo) || ((form.getLocalContext().getCurrentAction().equals(Action_AddMovement)) || form.getLocalContext().getCurrentAction().equals(Action_AddJoint)));

    form.lyrDetails().tabPeripheral().setHeaderVisible(bVisible);

    setPeripheralButtonsVisibility();
    setPeripheralJointComboVisibility(bVisible);
}
项目:openMAXIMS    文件:Logic.java   
private void pushPeripheralChildNode(RangeOfMovementDetailVo voRangeOfMovementDetail)
{
    GenForm.grdPeripheralRow childRow = findPeripheralChildNode(voRangeOfMovementDetail.getJoint(), voRangeOfMovementDetail.getLaterality());
    if (childRow == null)
        childRow = form.grdPeripheral().getRows().newRow();

    childRow.setValue(voRangeOfMovementDetail);
    populatePeripheralChildNode(childRow, voRangeOfMovementDetail);
    if (voRangeOfMovementDetail.getSelectedMovements().size() > 0)
    {
        MskJointMovementVo voJointMovement = voRangeOfMovementDetail.getSelectedMovements().get(0);
        if (voJointMovement.getID_MskJointMovement() != null)
        {
            for (int i = 0; i < childRow.getRows().size(); i++)
            {
                MskJointMovementVo nodeMovement = (MskJointMovementVo) childRow.getRows().get(i).getValue();
                if (nodeMovement.equals(voJointMovement))
                {
                    childRow.getRows().get(i).setValue(voJointMovement);
                    break;
                }
            }
        }
        else
        {
            if (voJointMovement.getMoveType() != null)
            {
                GenForm.grdPeripheralRow movementRow = childRow.getRows().newRow();
                populatePeripheralMovementNode(movementRow, voJointMovement);
            }
        }

    }

    form.lyrDetails().tabPeripheral().cmbPeripheralArea().setEnabled(false);
    form.lyrDetails().tabPeripheral().cmbLaterality().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
private void pushCentralChildNode(RangeOfMovementDetailVo voRangeOfMovementDetail)
{
    GenForm.grdCentralRow childRow = findCentralChildNode(voRangeOfMovementDetail.getJoint());
    if (childRow == null)
        childRow = form.grdCentral().getRows().newRow();

    childRow.setValue(voRangeOfMovementDetail);
    populateCentralChildNode(childRow, voRangeOfMovementDetail);
    if (voRangeOfMovementDetail.getSelectedMovements().size() > 0)
    {
        MskJointMovementVo voJointMovement = voRangeOfMovementDetail.getSelectedMovements().get(0);
        if (voJointMovement.getID_MskJointMovement() != null)
        {
            for (int i = 0; i < childRow.getRows().size(); i++)
            {
                MskJointMovementVo nodeMovement = (MskJointMovementVo) childRow.getRows().get(i).getValue();
                if (nodeMovement.equals(voJointMovement))
                {
                    childRow.getRows().get(i).setValue(voJointMovement);
                    break;
                }
            }
        }
        else
        {
            if (voJointMovement.getMoveType() != null)
            {
                GenForm.grdCentralRow movementRow = childRow.getRows().newRow();
                populateCentralMovementNode(movementRow, voJointMovement);
            }

        }

    }

    // form.grdCentral().setValue(voRangeOfMovementDetail);
    form.lyrDetails().tabCentral().cmbCentralArea().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
private void setUpdatedPeripheralChild()
{
    form.getLocalContext().setUpdatedChildType(Joint_Type_Peripheral);

    if (form.grdPeripheral().getValue() instanceof MskJointMovementVo)
    {
        form.getLocalContext().setUpdatedChild((MskJointMovementVo) form.grdPeripheral().getValue());
    }
    else
    {
        // Find the most recently added child
        if (form.getLocalContext().getCurrentAction().equals(Action_UpdateMovement) == false)
        {
            for (int i = 0; i < form.getLocalContext().getSelectedParentInstance().getDetails().size(); i++)
            {
                RangeOfMovementDetailVo voCurrentRom = form.getLocalContext().getSelectedParentInstance().getDetails().get(i);
                if (voCurrentRom.equals(form.getLocalContext().getSelectedChildInstance()))
                {
                    if(voCurrentRom.getSelectedMovements().size() > 0)
                    {
                        voCurrentRom.getSelectedMovements().sort();
                        form.getLocalContext().setUpdatedChild(voCurrentRom.getSelectedMovements().get(voCurrentRom.getSelectedMovements().size() - 1));
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setUpdatedCentralChild()
{
    form.getLocalContext().setUpdatedChildType(Joint_Type_Central);

    // We edited a central child which is still selected in the tree
    if (form.grdCentral().getValue() instanceof MskJointMovementVo)
    {
        form.getLocalContext().setUpdatedChild((MskJointMovementVo) form.grdCentral().getValue());
    }
    else
    {
        // We added a movement to the selected child. Interrogate the saved movement collection
        // and select the most recently added one.
        if (form.getLocalContext().getCurrentAction().equals(Action_UpdateMovement) == false)
        {
            for (int i = 0; i < form.getLocalContext().getSelectedParentInstance().getDetails().size(); i++)
            {
                RangeOfMovementDetailVo voCurrentRom = form.getLocalContext().getSelectedParentInstance().getDetails().get(i);
                if (voCurrentRom.equals(form.getLocalContext().getSelectedChildInstance()))
                {
                    if(voCurrentRom.getSelectedMovements().size() > 0)
                    {
                        voCurrentRom.getSelectedMovements().sort();
                        form.getLocalContext().setUpdatedChild(voCurrentRom.getSelectedMovements().get(voCurrentRom.getSelectedMovements().size() - 1));
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setContextMenuVisibility()
{
    boolean bGolden = form.getLocalContext().getGoldenInstanceSelected() != null && form.getLocalContext().getGoldenInstanceSelected().booleanValue() == true;

    form.getContextMenus().getRangeOfMovementCentralADDdetailsItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.grdCentral().getValue() != null);
    form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.grdPeripheral().getValue() != null);

    form.getContextMenus().getRangeOfMovementCentralUpdateItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null && form.grdCentral().getValue() instanceof MskJointMovementVo);

    form.getContextMenus().getRangeOfMovementPeripheralEditItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null && form.grdPeripheral().getValue() instanceof MskJointMovementVo);

    form.getContextMenus().getRangeOfMovementCentralADDJointItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null);
    form.getContextMenus().getRangeOfMovementPeripheralAddJointItem().setVisible(form.getMode().equals(FormMode.VIEW) && bGolden && form.getLocalContext().getSelectedParentInstance() != null);
}
项目:openMAXIMS    文件:Logic.java   
private void setPeripheralContextMenuCaptions()
{
    if (form.grdPeripheral().getValue() == null)
    {
        if (form.getLocalContext().getSelectedParentInstance() == null)
            form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setText("New Range Of Movement");
        else
            form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setText("Add Range Of Movement Details");
    }
    else
    {
        if (form.getLocalContext().getSelectedChildInstance() == null)
            return;
        if (form.getLocalContext().getSelectedChildInstance().getJoint() == null)
            return;
        if (form.getLocalContext().getSelectedChildInstance().getLaterality() == null)
            return;

        String str = "Add Selected Movements for " + (form.getLocalContext().getSelectedChildInstance().getJoint().getName() + " - (" + (form.getLocalContext().getSelectedChildInstance().getLaterality().getIItemText() + ")"));

        form.getContextMenus().getRangeOfMovementPeripheralAddDetailItem().setText(str);

        if (form.grdPeripheral().getSelectedRow().getValue() instanceof MskJointMovementVo)
            form.getContextMenus().getRangeOfMovementPeripheralEditItem().setText("Edit Movement Details");
        else
            form.getContextMenus().getRangeOfMovementPeripheralEditItem().setText(str);
    }

}