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

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

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

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

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

    return PainHypersensitivity.PAIN;
}
项目:AvoinApotti    文件:Logic.java   
private void initialiseDrawingControl(boolean bInit)
{
    //Initialise the control only when the page is visited
    if(bInit)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<PainHypersensitivity.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(PainHypersensitivity.getNegativeInstances()[i].getId(), PainHypersensitivity.getNegativeInstances()[i].getText(), PainHypersensitivity.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.PainBodyChart.setAreaList(rootNode.getAllAreas());
            form.getGlobalContext().COE.PainBodyChart.setGroupList(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());
        }
        else
        {
            //Load default image
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);

            form.getLocalContext().setImageLoaded(new Boolean(false));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialiseDrawingControl(boolean bInit)
{
    //Initialise the control only when the page is visited
    if(bInit)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<PainHypersensitivity.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(PainHypersensitivity.getNegativeInstances()[i].getId(), PainHypersensitivity.getNegativeInstances()[i].getText(), PainHypersensitivity.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.PainBodyChart.setAreaList(rootNode.getAllAreas());
            form.getGlobalContext().COE.PainBodyChart.setGroupList(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());
        }
        else
        {
            //Load default image
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);

            form.getLocalContext().setImageLoaded(new Boolean(false));
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialiseDrawingControl(boolean bInit)
{
    //Initialise the control only when the page is visited
    if(bInit)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<PainHypersensitivity.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(PainHypersensitivity.getNegativeInstances()[i].getId(), PainHypersensitivity.getNegativeInstances()[i].getText(), PainHypersensitivity.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.PainBodyChart.setAreaList(rootNode.getAllAreas());
            form.getGlobalContext().COE.PainBodyChart.setGroupList(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());
        }
        else
        {
            //Load default image
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);

            form.getLocalContext().setImageLoaded(new Boolean(false));
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initialiseDrawingControl(boolean bInit)
{
    //Initialise the control only when the page is visited
    if(bInit)
    {
        form.drawingBodyChart().setImage(form.getImages().COE.BodyChart);
        for(int i=0; i<PainHypersensitivity.getNegativeInstances().length; i++)
            form.drawingBodyChart().addBrush(PainHypersensitivity.getNegativeInstances()[i].getId(), PainHypersensitivity.getNegativeInstances()[i].getText(), PainHypersensitivity.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.PainBodyChart.setAreaList(rootNode.getAllAreas());
            form.getGlobalContext().COE.PainBodyChart.setGroupList(getAllGroups(rootNode));
            form.getLocalContext().setImageLoaded(new Boolean(true));
            form.getLocalContext().setCurrentVersionNo(voImageRetrieved.getVersionNumber());
        }
        else
        {
            //Load default image
            DrawingControlGroup root = new DrawingControlGroup(-1, "Body Chart");
            form.drawingBodyChart().setAreas(root);

            form.getLocalContext().setImageLoaded(new Boolean(false));
        }
    }
}