Java 类ims.therapies.vo.BathingFacilityVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType) 
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType)
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType) 
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType)
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType) 
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType)
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType) 
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private BathingFacilityVo getComponent(BathingFacilityVoCollection collComponents, EnvironmentalHomeVisitComponentType componentType)
{
    for(int i=0; i<collComponents.size(); i++)
    {
        if(collComponents.get(i).getType().equals(componentType))
            return collComponents.get(i);
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreen(HomeVisitVo voHomeVisit) 
{
    if(voHomeVisit == null) return;

    form.customControlAuthoring().setValue(voHomeVisit.getAuthoringInformation());

    if(voHomeVisit.getHouseDetailsIsNotNull() && voHomeVisit.getHouseDetails().getAddressIsNotNull())
        form.txtAddress().setValue(voHomeVisit.getHouseDetails().getAddress());

    BathingFacilityVoCollection collBathingFacilityVo = voHomeVisit.getHomeAssessmentComponent();

    boolean generalDataFound = false;
    for(int i=0; i<collBathingFacilityVo.size(); i++)
    {
        BathingFacilityVo voVisitAssessmentComponent = collBathingFacilityVo.get(i);
        if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.BATHINGANDTOILETFACILITIES))
        {
            generalDataFound = true;
            form.txtBathingToilet().setValue(voVisitAssessmentComponent.getDetails());
            form.txtBathShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtBathLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
            if(voVisitAssessmentComponent.getBathHeightIsNotNull() && voVisitAssessmentComponent.getBathHeight()>0)
                form.intBathHeight().setValue(voVisitAssessmentComponent.getBathHeight());
            else
                form.intBathHeight().setValue(null);
            if(voVisitAssessmentComponent.getBathWidthIsNotNull() && voVisitAssessmentComponent.getBathWidth()>0)
                form.intBathWidth().setValue(voVisitAssessmentComponent.getBathWidth());
            else
                form.intBathWidth().setValue(null);
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.HEATING))
        {
            generalDataFound = true;
            form.txtHeating().setValue(voVisitAssessmentComponent.getDetails());
            form.txtHeatingShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtHeatingLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.STAIRCASE))
        {
            generalDataFound = true;
            form.txtStaircase().setValue(voVisitAssessmentComponent.getDetails());
            form.txtStairShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtStairLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
    }
    form.getLocalContext().setUpdatingInstance(new Boolean(generalDataFound));
    form.getLocalContext().setHomeVisitVo(voHomeVisit);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(HomeVisitVo voHomeVisit) 
{
    if(voHomeVisit == null) return;

    form.customControlAuthoring().setValue(voHomeVisit.getAuthoringInformation());

    if(voHomeVisit.getHouseDetailsIsNotNull() && voHomeVisit.getHouseDetails().getAddressIsNotNull())
        form.txtAddress().setValue(voHomeVisit.getHouseDetails().getAddress());

    BathingFacilityVoCollection collBathingFacilityVo = voHomeVisit.getHomeAssessmentComponent();

    boolean generalDataFound = false;
    for(int i=0; i<collBathingFacilityVo.size(); i++)
    {
        BathingFacilityVo voVisitAssessmentComponent = collBathingFacilityVo.get(i);
        if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.BATHINGANDTOILETFACILITIES))
        {
            generalDataFound = true;
            form.txtBathingToilet().setValue(voVisitAssessmentComponent.getDetails());
            form.txtBathShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtBathLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
            if(voVisitAssessmentComponent.getBathHeightIsNotNull() && voVisitAssessmentComponent.getBathHeight()>0)
                form.intBathHeight().setValue(voVisitAssessmentComponent.getBathHeight());
            else
                form.intBathHeight().setValue(null);
            if(voVisitAssessmentComponent.getBathWidthIsNotNull() && voVisitAssessmentComponent.getBathWidth()>0)
                form.intBathWidth().setValue(voVisitAssessmentComponent.getBathWidth());
            else
                form.intBathWidth().setValue(null);
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.HEATING))
        {
            generalDataFound = true;
            form.txtHeating().setValue(voVisitAssessmentComponent.getDetails());
            form.txtHeatingShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtHeatingLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.STAIRCASE))
        {
            generalDataFound = true;
            form.txtStaircase().setValue(voVisitAssessmentComponent.getDetails());
            form.txtStairShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtStairLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
    }
    form.getLocalContext().setUpdatingInstance(new Boolean(generalDataFound));
    form.getLocalContext().setHomeVisitVo(voHomeVisit);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreen(HomeVisitVo voHomeVisit) 
{
    if(voHomeVisit == null) return;

    form.customControlAuthoring().setValue(voHomeVisit.getAuthoringInformation());

    if(voHomeVisit.getHouseDetailsIsNotNull() && voHomeVisit.getHouseDetails().getAddressIsNotNull())
        form.txtAddress().setValue(voHomeVisit.getHouseDetails().getAddress());

    BathingFacilityVoCollection collBathingFacilityVo = voHomeVisit.getHomeAssessmentComponent();

    boolean generalDataFound = false;
    for(int i=0; i<collBathingFacilityVo.size(); i++)
    {
        BathingFacilityVo voVisitAssessmentComponent = collBathingFacilityVo.get(i);
        if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.BATHINGANDTOILETFACILITIES))
        {
            generalDataFound = true;
            form.txtBathingToilet().setValue(voVisitAssessmentComponent.getDetails());
            form.txtBathShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtBathLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
            if(voVisitAssessmentComponent.getBathHeightIsNotNull() && voVisitAssessmentComponent.getBathHeight()>0)
                form.intBathHeight().setValue(voVisitAssessmentComponent.getBathHeight());
            else
                form.intBathHeight().setValue(null);
            if(voVisitAssessmentComponent.getBathWidthIsNotNull() && voVisitAssessmentComponent.getBathWidth()>0)
                form.intBathWidth().setValue(voVisitAssessmentComponent.getBathWidth());
            else
                form.intBathWidth().setValue(null);
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.HEATING))
        {
            generalDataFound = true;
            form.txtHeating().setValue(voVisitAssessmentComponent.getDetails());
            form.txtHeatingShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtHeatingLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.STAIRCASE))
        {
            generalDataFound = true;
            form.txtStaircase().setValue(voVisitAssessmentComponent.getDetails());
            form.txtStairShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtStairLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
    }
    form.getLocalContext().setUpdatingInstance(new Boolean(generalDataFound));
    form.getLocalContext().setHomeVisitVo(voHomeVisit);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreen(HomeVisitVo voHomeVisit) 
{
    if(voHomeVisit == null) return;

    form.customControlAuthoring().setValue(voHomeVisit.getAuthoringInformation());

    if(voHomeVisit.getHouseDetailsIsNotNull() && voHomeVisit.getHouseDetails().getAddressIsNotNull())
        form.txtAddress().setValue(voHomeVisit.getHouseDetails().getAddress());

    BathingFacilityVoCollection collBathingFacilityVo = voHomeVisit.getHomeAssessmentComponent();

    boolean generalDataFound = false;
    for(int i=0; i<collBathingFacilityVo.size(); i++)
    {
        BathingFacilityVo voVisitAssessmentComponent = collBathingFacilityVo.get(i);
        if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.BATHINGANDTOILETFACILITIES))
        {
            generalDataFound = true;
            form.txtBathingToilet().setValue(voVisitAssessmentComponent.getDetails());
            form.txtBathShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtBathLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
            if(voVisitAssessmentComponent.getBathHeightIsNotNull() && voVisitAssessmentComponent.getBathHeight()>0)
                form.intBathHeight().setValue(voVisitAssessmentComponent.getBathHeight());
            else
                form.intBathHeight().setValue(null);
            if(voVisitAssessmentComponent.getBathWidthIsNotNull() && voVisitAssessmentComponent.getBathWidth()>0)
                form.intBathWidth().setValue(voVisitAssessmentComponent.getBathWidth());
            else
                form.intBathWidth().setValue(null);
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.HEATING))
        {
            generalDataFound = true;
            form.txtHeating().setValue(voVisitAssessmentComponent.getDetails());
            form.txtHeatingShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtHeatingLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
        else if(voVisitAssessmentComponent.getType().equals(EnvironmentalHomeVisitComponentType.STAIRCASE))
        {
            generalDataFound = true;
            form.txtStaircase().setValue(voVisitAssessmentComponent.getDetails());
            form.txtStairShortTerm().setValue(voVisitAssessmentComponent.getShortTermPlan());
            form.txtStairLongTerm().setValue(voVisitAssessmentComponent.getLongTermPlan());
        }
    }
    form.getLocalContext().setUpdatingInstance(new Boolean(generalDataFound));
    form.getLocalContext().setHomeVisitVo(voHomeVisit);
}