Java 类ims.admin.vo.GPSearchCriteriaVo 实例源码

项目:openMAXIMS    文件:GPSearchImpl.java   
private void filterPracticesForAddress(GPSearchCriteriaVo filter,GPLiteWithPracticesVo gpWithPractices) //WDEV-18377 
{
    if (gpWithPractices ==null || gpWithPractices.getPractices() == null)
        return;

    if (!ConfigFlag.DOM.GP_USE_SURGERIES.getValue())
    {
        for (int k=gpWithPractices.getPractices().size()-1;k>=0;k--)
        {
            if (gpWithPractices.getPractices().get(k) ==null || gpWithPractices.getPractices().get(k).getPractice() == null)
                continue;

            if (!isPracticeValidforAddress(filter, gpWithPractices.getPractices().get(k).getPractice()))
            {
                gpWithPractices.getPractices().remove(k);
            }

        }   
    }   
}
项目:openMAXIMS    文件:GPSearchImpl.java   
private void filterSurgeriesForAddress(GPSearchCriteriaVo filter, GpPracticeLiteVo practWithSurg) //WDEV-18377
{
    if (practWithSurg.getSurgeriesIsNotNull() && practWithSurg.getSurgeries().size() >0 && ConfigFlag.DOM.GP_USE_SURGERIES.getValue())
    {   
        for (int j=practWithSurg.getSurgeries().size()-1; j>=0;j--)
        {   
            if (practWithSurg.getSurgeries().get(j) == null)
                continue;
            if (!isSurgeryValidforAddress(filter, practWithSurg.getSurgeries().get(j)))
            {
                practWithSurg.getSurgeries().remove(j);
            }

        }
    }
}
项目:openMAXIMS    文件:GPSearchImpl.java   
private boolean isSurgeryValidforAddress(GPSearchCriteriaVo filter, LocSiteShortVo surgery)
{
    if (surgery != null && filter.getAddressContains() != null && filter.getAddressContains().length() > 0)
    {           
        if (surgery.getIsActiveIsNotNull() && Boolean.TRUE.equals(surgery.getIsActive()) && ((surgery.getNameIsNotNull() && surgery.getName().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) || //WDEV-18828 
                        (surgery.getAddressIsNotNull() &&
                        (surgery.getAddress().getLine1IsNotNull() && surgery.getAddress().getLine1().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase()) ||
                        (surgery.getAddress().getLine2IsNotNull()&& surgery.getAddress().getLine2().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) ||
                        (surgery.getAddress().getLine3IsNotNull()&& surgery.getAddress().getLine3().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) || 
                        (surgery.getAddress().getLine4IsNotNull() && surgery.getAddress().getLine4().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) ||
                        (surgery.getAddress().getLine5IsNotNull() && surgery.getAddress().getLine5().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) ||
                        (surgery.getAddress().getPostCodeIsNotNull() && surgery.getAddress().getPostCode().replace(" ", "").toUpperCase().equals(filter.getAddressContains().replaceAll("%", "").replace(" ", "").toUpperCase()))))))
        {
            return true;
        }
    }
    return false;
}
项目:openMAXIMS    文件:GPSearchImpl.java   
private boolean isPracticeValidforAddress(GPSearchCriteriaVo filter, GpPracticeLiteVo practice)
{
    if (practice != null && filter.getAddressContains() != null && filter.getAddressContains().length() > 0)
    {
        if (practice.getIsActiveIsNotNull() && Boolean.TRUE.equals(practice.getIsActive()) && ((practice.getNameIsNotNull() && practice.getName().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) || //WDEV-18828
                        (practice.getAddressIsNotNull() && 
                        (practice.getAddress().getLine1IsNotNull() && practice.getAddress().getLine1().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase()) ||
                        (practice.getAddress().getLine2IsNotNull()&& practice.getAddress().getLine2().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) || 
                        (practice.getAddress().getLine3IsNotNull()&& practice.getAddress().getLine3().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) || 
                        (practice.getAddress().getLine4IsNotNull() && practice.getAddress().getLine4().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) || 
                        (practice.getAddress().getLine5IsNotNull() && practice.getAddress().getLine5().toUpperCase().contains(filter.getAddressContains().replaceAll("%", "").toUpperCase())) ||
                        (practice.getAddress().getPostCodeIsNotNull() && practice.getAddress().getPostCode().replace(" ", "").toUpperCase().equals(filter.getAddressContains().replaceAll("%", "").replace(" ", "").toUpperCase()))))))
        {
            return true;
        }
    }
    return false;


}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    form.btnOK().setEnabled(false);
    form.customControlGPSearch().setSearchButtonAsDefault();

    if (form.getGlobalContext().OCRR.getGPSearchStringIsNotNull() && form.getGlobalContext().OCRR.getGPSearchString().length() > 0)
    {
        GPSearchCriteriaVo criteria = new GPSearchCriteriaVo();
        criteria.setSurname(form.getGlobalContext().OCRR.getGPSearchString());
        form.customControlGPSearch().setSearchCriteria(criteria);
        form.customControlGPSearch().search();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    form.btnOK().setEnabled(false);
    form.customControlGPSearch().initialize(false, false);
    form.customControlGPSearch().setSearchButtonAsDefault();

    if (form.getGlobalContext().OCRR.getGPSearchStringIsNotNull() && form.getGlobalContext().OCRR.getGPSearchString().length() > 0)
    {
        GPSearchCriteriaVo criteria = new GPSearchCriteriaVo();
        criteria.setSurname(form.getGlobalContext().OCRR.getGPSearchString());
        form.customControlGPSearch().setSearchCriteria(criteria);
        form.customControlGPSearch().search();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{
    form.btnOK().setEnabled(false);
    form.customControlGPSearch().setSearchButtonAsDefault();

    if (form.getGlobalContext().OCRR.getGPSearchStringIsNotNull() && form.getGlobalContext().OCRR.getGPSearchString().length() > 0)
    {
        GPSearchCriteriaVo criteria = new GPSearchCriteriaVo();
        criteria.setSurname(form.getGlobalContext().OCRR.getGPSearchString());
        form.customControlGPSearch().setSearchCriteria(criteria);
        form.customControlGPSearch().search();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void initialize()
{
    form.btnOK().setEnabled(false);
    form.customControlGPSearch().setSearchButtonAsDefault();

    if (form.getGlobalContext().OCRR.getGPSearchStringIsNotNull() && form.getGlobalContext().OCRR.getGPSearchString().length() > 0)
    {
        GPSearchCriteriaVo criteria = new GPSearchCriteriaVo();
        criteria.setSurname(form.getGlobalContext().OCRR.getGPSearchString());
        form.customControlGPSearch().setSearchCriteria(criteria);
        form.customControlGPSearch().search();
    }
}
项目:AvoinApotti    文件:Logic.java   
public void setSearchCriteria(GPSearchCriteriaVo criteria)
{
    populateDataFromScreen(criteria);
    enableCodeText();
}
项目:openMAXIMS    文件:Logic.java   
public void setSearchCriteria(GPSearchCriteriaVo criteria)
{
    populateDataFromScreen(criteria);
    enableCodeText();
}
项目:openMAXIMS    文件:GPSearchImpl.java   
private GPLiteWithPracticesVoCollection getFilteredPracticesAndSurgeriesforAddress(GPSearchCriteriaVo filter,GPLiteWithPracticesVoCollection gpWithPractColl) //WDEV-18377
{       
    for (int i=gpWithPractColl.size()-1; i>=0;i--)
    {
        if (gpWithPractColl.get(i) == null || gpWithPractColl.get(i).getPractices() == null)
            continue;
        if (!ConfigFlag.DOM.GP_USE_SURGERIES.getValue())
        {
            filterPracticesForAddress(filter, gpWithPractColl.get(i));
        }
        else
        {
            for (int x=gpWithPractColl.get(i).getPractices().size()-1; x>=0;x--)
            {
                if (gpWithPractColl.get(i).getPractices().get(x) ==null || gpWithPractColl.get(i).getPractices().get(x).getPractice() == null)
                    continue;
                filterSurgeriesForAddress(filter,gpWithPractColl.get(i).getPractices().get(x).getPractice());

            }
            Iterator<GpLiteToPracticeLiteVo> iteratorForPractices = gpWithPractColl.get(i).getPractices().iterator();
            while (iteratorForPractices.hasNext())
            {   
                if (iteratorForPractices.next().getPractice().getSurgeries().size() == 0)
                {
                    iteratorForPractices.remove();
                }
            }

        }
    }

    Iterator<GPLiteWithPracticesVo> iteratorForGP = gpWithPractColl.iterator();
    while (iteratorForGP.hasNext())
    {
        if (iteratorForGP.next().getPractices().size() == 0)
        {
            iteratorForGP.remove();
        }
    }

    return gpWithPractColl;
}
项目:openMAXIMS    文件:Logic.java   
public void setSearchCriteria(GPSearchCriteriaVo criteria)
{
    populateDataFromScreen(criteria);
    enableCodeText();
}
项目:openmaxims-linux    文件:Logic.java   
public void setSearchCriteria(GPSearchCriteriaVo criteria)
{
    populateDataFromScreen(criteria);
    enableCodeText();
}