Java 类ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam 实例源码

项目:AvoinApotti    文件:TrackingImpl.java   
private ReferralSpecialtyConsultantOrTeam assembleTeamConsultant(LookupInstance teamConsultant) 
{
    if(teamConsultant == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (teamConsultant.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(teamConsultant.getImage().getImageId(), teamConsultant.getImage().getImagePath());
    }

    color = teamConsultant.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam voLookup = new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(teamConsultant.getId(),teamConsultant.getText(), teamConsultant.isActive(), null, img, color);
    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = teamConsultant.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }
        color = parent.getColor();
        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openMAXIMS    文件:TrackingImpl.java   
private ReferralSpecialtyConsultantOrTeam assembleTeamConsultant(LookupInstance teamConsultant) 
{
    if(teamConsultant == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (teamConsultant.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(teamConsultant.getImage().getImageId(), teamConsultant.getImage().getImagePath());
    }

    color = teamConsultant.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam voLookup = new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(teamConsultant.getId(),teamConsultant.getText(), teamConsultant.isActive(), null, img, color);
    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = teamConsultant.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }
        color = parent.getColor();
        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openMAXIMS    文件:TrackingImpl.java   
private ReferralSpecialtyConsultantOrTeam assembleTeamConsultant(LookupInstance teamConsultant) 
{
    if(teamConsultant == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (teamConsultant.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(teamConsultant.getImage().getImageId(), teamConsultant.getImage().getImagePath());
    }

    color = teamConsultant.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam voLookup = new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(teamConsultant.getId(),teamConsultant.getText(), teamConsultant.isActive(), null, img, color);
    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = teamConsultant.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }
        color = parent.getColor();
        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openmaxims-linux    文件:TrackingImpl.java   
private ReferralSpecialtyConsultantOrTeam assembleTeamConsultant(LookupInstance teamConsultant) 
{
    if(teamConsultant == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (teamConsultant.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(teamConsultant.getImage().getImageId(), teamConsultant.getImage().getImagePath());
    }

    color = teamConsultant.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam voLookup = new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(teamConsultant.getId(),teamConsultant.getText(), teamConsultant.isActive(), null, img, color);
    ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = teamConsultant.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }
        color = parent.getColor();
        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.ReferralSpecialtyConsultantOrTeam(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}