Java 类ims.nursing.vo.lookups.SkinWoundType 实例源码

项目:AvoinApotti    文件:Logic.java   
private SkinWoundType getWoundType(int brushID)
{
    for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
        if(SkinWoundType.getNegativeInstances()[i].getId() == brushID)
            return SkinWoundType.getNegativeInstances()[i];

    return SkinWoundType.PRESSURESORE;
}
项目:openMAXIMS    文件:Logic.java   
private SkinWoundType getWoundType(int brushID)
{
    for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
        if(SkinWoundType.getNegativeInstances()[i].getId() == brushID)
            return SkinWoundType.getNegativeInstances()[i];

    return SkinWoundType.PRESSURESORE;
}
项目:openMAXIMS    文件:Logic.java   
private SkinWoundType getWoundType(int brushID)
{
    for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
        if(SkinWoundType.getNegativeInstances()[i].getId() == brushID)
            return SkinWoundType.getNegativeInstances()[i];

    return SkinWoundType.PRESSURESORE;
}
项目:openmaxims-linux    文件:Logic.java   
private SkinWoundType getWoundType(int brushID)
{
    for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
        if(SkinWoundType.getNegativeInstances()[i].getId() == brushID)
            return SkinWoundType.getNegativeInstances()[i];

    return SkinWoundType.PRESSURESORE;
}
项目:AvoinApotti    文件:Logic.java   
private void initialiseDrawingControl(boolean bInitCtrl)
{
    if(bInitCtrl)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(SkinWoundType.getNegativeInstances()[i].getId(), SkinWoundType.getNegativeInstances()[i].getText(), SkinWoundType.getNegativeInstances()[i].getColor());

        //load the image associated image to this Form              
        AppImageVo voAppImage = new AppImageVo();
        voAppImage.setID_AppImage(new Integer(form.getImages().COE.BodyChart.getImageId()));


        DrawingImageVo voImage = new DrawingImageVo();
        //TODO: Leave till COE release of 03/03/05 has gone
        voImage.setImage(voAppImage);

        voImage.setImageName(getCurrentImageName());
        //When no version no - the domain will return getLast()
        if(getCurrentVersionNumber() != null)
            voImage.setVersionNumber(getCurrentVersionNumber());

        DrawingImageVo voImageRetrieved = domain.getDrawingImage(voImage);

        if (voImageRetrieved != null)
        {
            DrawingControlGroup rootNode = new DrawingControlGroup(voImageRetrieved.getRootGroup().getGroupID().intValue(), voImageRetrieved.getRootGroup().getGroupName());
            convertAllAreasToNode(voImageRetrieved.getRootGroup(), rootNode);
            form.drawingBodyChart().setAreas(rootNode);
            form.getGlobalContext().COE.SkinBodyChart.setAreas(rootNode.getAllAreas());
            form.getGlobalContext().COE.SkinBodyChart.setGroups(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());

            form.getLocalContext().setImageLoaded(new Boolean(true));

        }
        else
        {
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);
            form.getLocalContext().setImageLoaded(new Boolean(false));
            engine.showMessage("No active image available");
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialiseDrawingControl(boolean bInitCtrl)
{
    if(bInitCtrl)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(SkinWoundType.getNegativeInstances()[i].getId(), SkinWoundType.getNegativeInstances()[i].getText(), SkinWoundType.getNegativeInstances()[i].getColor());

        //load the image associated image to this Form              
        AppImageVo voAppImage = new AppImageVo();
        voAppImage.setID_AppImage(new Integer(form.getImages().COE.BodyChart.getImageId()));


        DrawingImageVo voImage = new DrawingImageVo();
        //TODO: Leave till COE release of 03/03/05 has gone
        voImage.setImage(voAppImage);

        voImage.setImageName(getCurrentImageName());
        //When no version no - the domain will return getLast()
        if(getCurrentVersionNumber() != null)
            voImage.setVersionNumber(getCurrentVersionNumber());

        DrawingImageVo voImageRetrieved = domain.getDrawingImage(voImage);

        if (voImageRetrieved != null)
        {
            DrawingControlGroup rootNode = new DrawingControlGroup(voImageRetrieved.getRootGroup().getGroupID().intValue(), voImageRetrieved.getRootGroup().getGroupName());
            convertAllAreasToNode(voImageRetrieved.getRootGroup(), rootNode);
            form.drawingBodyChart().setAreas(rootNode);
            form.getGlobalContext().COE.SkinBodyChart.setAreas(rootNode.getAllAreas());
            form.getGlobalContext().COE.SkinBodyChart.setGroups(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());

            form.getLocalContext().setImageLoaded(new Boolean(true));

        }
        else
        {
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);
            form.getLocalContext().setImageLoaded(new Boolean(false));
            engine.showMessage("No active image available");
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialiseDrawingControl(boolean bInitCtrl)
{
    if(bInitCtrl)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(SkinWoundType.getNegativeInstances()[i].getId(), SkinWoundType.getNegativeInstances()[i].getText(), SkinWoundType.getNegativeInstances()[i].getColor());

        //load the image associated image to this Form              
        AppImageVo voAppImage = new AppImageVo();
        voAppImage.setID_AppImage(new Integer(form.getImages().COE.BodyChart.getImageId()));


        DrawingImageVo voImage = new DrawingImageVo();
        //TODO: Leave till COE release of 03/03/05 has gone
        voImage.setImage(voAppImage);

        voImage.setImageName(getCurrentImageName());
        //When no version no - the domain will return getLast()
        if(getCurrentVersionNumber() != null)
            voImage.setVersionNumber(getCurrentVersionNumber());

        DrawingImageVo voImageRetrieved = domain.getDrawingImage(voImage);

        if (voImageRetrieved != null)
        {
            DrawingControlGroup rootNode = new DrawingControlGroup(voImageRetrieved.getRootGroup().getGroupID().intValue(), voImageRetrieved.getRootGroup().getGroupName());
            convertAllAreasToNode(voImageRetrieved.getRootGroup(), rootNode);
            form.drawingBodyChart().setAreas(rootNode);
            form.getGlobalContext().COE.SkinBodyChart.setAreas(rootNode.getAllAreas());
            form.getGlobalContext().COE.SkinBodyChart.setGroups(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());

            form.getLocalContext().setImageLoaded(new Boolean(true));

        }
        else
        {
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);
            form.getLocalContext().setImageLoaded(new Boolean(false));
            engine.showMessage("No active image available");
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initialiseDrawingControl(boolean bInitCtrl)
{
    if(bInitCtrl)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<SkinWoundType.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(SkinWoundType.getNegativeInstances()[i].getId(), SkinWoundType.getNegativeInstances()[i].getText(), SkinWoundType.getNegativeInstances()[i].getColor());

        //load the image associated image to this Form              
        AppImageVo voAppImage = new AppImageVo();
        voAppImage.setID_AppImage(new Integer(form.getImages().COE.BodyChart.getImageId()));


        DrawingImageVo voImage = new DrawingImageVo();
        //TODO: Leave till COE release of 03/03/05 has gone
        voImage.setImage(voAppImage);

        voImage.setImageName(getCurrentImageName());
        //When no version no - the domain will return getLast()
        if(getCurrentVersionNumber() != null)
            voImage.setVersionNumber(getCurrentVersionNumber());

        DrawingImageVo voImageRetrieved = domain.getDrawingImage(voImage);

        if (voImageRetrieved != null)
        {
            DrawingControlGroup rootNode = new DrawingControlGroup(voImageRetrieved.getRootGroup().getGroupID().intValue(), voImageRetrieved.getRootGroup().getGroupName());
            convertAllAreasToNode(voImageRetrieved.getRootGroup(), rootNode);
            form.drawingBodyChart().setAreas(rootNode);
            form.getGlobalContext().COE.SkinBodyChart.setAreas(rootNode.getAllAreas());
            form.getGlobalContext().COE.SkinBodyChart.setGroups(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());

            form.getLocalContext().setImageLoaded(new Boolean(true));

        }
        else
        {
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);
            form.getLocalContext().setImageLoaded(new Boolean(false));
            engine.showMessage("No active image available");
        }
    }
}