Java 类ims.clinical.vo.lookups.ReferralSource 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
        voGP.setName(value);
        voGP.setIsActive(new Boolean(true));

    }
    else
    {
        OrganisationVo voOrg = new OrganisationVo();
        voOrg.setName(value);

    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
        voGP.setName(value);
        voGP.setIsActive(new Boolean(true));

    }
    else
    {
        OrganisationVo voOrg = new OrganisationVo();
        voOrg.setName(value);

    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
        voGP.setName(value);
        voGP.setIsActive(new Boolean(true));

    }
    else
    {
        OrganisationVo voOrg = new OrganisationVo();
        voOrg.setName(value);

    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo();
        voGP.setName(value);
        voGP.setIsActive(new Boolean(true));

    }
    else
    {
        OrganisationVo voOrg = new OrganisationVo();
        voOrg.setName(value);

    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceofReferral().getValue() != null && form.cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.lyr().tabReferralDetails().qmbReferredBy().clear();

    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());            

            if (gpColl.size() == 1)
            {
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(gpColl.get(0));
                onQmbReferredByValueChanged();
            }
            else if (gpColl.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());            

            if (coll.size() == 1){
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(coll.get(0));
                onQmbReferredByValueChanged();
            }
            else if (coll.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceReferral().getValue() != null && form.cmbSourceReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, null);//HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceofReferral().getValue() != null && form.cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.lyr().tabReferralDetails().qmbReferredBy().clear();

    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());            

            if (gpColl.size() == 1)
            {
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(gpColl.get(0));
                onQmbReferredByValueChanged();
            }
            else if (gpColl.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());            

            if (coll.size() == 1){
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(coll.get(0));
                onQmbReferredByValueChanged();
            }
            else if (coll.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceReferral().getValue() != null && form.cmbSourceReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, null);//HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceofReferral().getValue() != null && form.cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.lyr().tabReferralDetails().qmbReferredBy().clear();

    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());            

            if (gpColl.size() == 1)
            {
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(gpColl.get(0));
                onQmbReferredByValueChanged();
            }
            else if (gpColl.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());            

            if (coll.size() == 1){
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(coll.get(0));
                onQmbReferredByValueChanged();
            }
            else if (coll.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceReferral().getValue() != null && form.cmbSourceReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, null);//HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceofReferral().getValue() != null && form.cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.lyr().tabReferralDetails().qmbReferredBy().clear();

    if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());            

            if (gpColl.size() == 1)
            {
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(gpColl.get(0));
                onQmbReferredByValueChanged();
            }
            else if (gpColl.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.lyr().tabReferralDetails().qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());            

            if (coll.size() == 1){
                form.lyr().tabReferralDetails().qmbReferredBy().setValue(coll.get(0));
                onQmbReferredByValueChanged();
            }
            else if (coll.size() > 1)
                form.lyr().tabReferralDetails().qmbReferredBy().showOpened();       
        }       
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbReferredByTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbReferredBy().clear();

    if (form.cmbSourceReferral().getValue() != null && form.cmbSourceReferral().getValue().equals(ReferralSource.GPREFERRAL))
    {
        GpShortVoCollection gpColl = domain.listGPsBySurname(value);
        if(gpColl != null)
        {
            for (int i = 0; i < gpColl.size(); i++)
                form.qmbReferredBy().newRow(gpColl.get(i), gpColl.get(i).toString());           

            if (gpColl.size() == 1)
            {
                form.qmbReferredBy().setValue(gpColl.get(0));
                loadGPsPractice(gpColl.get(0));
            }
            else if (gpColl.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
    else
    {
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);
        filter.setHcpType(HcpDisType.MEDICAL);
        HcpCollection coll = domain.listHcps(filter, null);//HcpDisType.MEDICAL);
        if(coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
                form.qmbReferredBy().newRow(coll.get(i), coll.get(i).toString());           

            if (coll.size() == 1)
                form.qmbReferredBy().setValue(coll.get(0));
            else if (coll.size() > 1)
                form.qmbReferredBy().showOpened();      
        }       
    }
}