Java 类ims.core.vo.HcpFilter 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onCmbIdByTeamValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.cmbIdByMember().clear();

    if(form.cmbIdByTeam().getValue() == null)
        return;

    HcpFilter filter = new HcpFilter();
    filter.setHcpType(form.cmbIdByTeam().getValue());

    HcpCollection voCollHcps = domain.listHcps(filter);
    for(int i=0;i<voCollHcps.size();i++)
    {
        form.cmbIdByMember().newRow(voCollHcps.get(i), voCollHcps.get(i).toString());
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbAllocToTeamValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.cmbAllocToMember().clear();

    if(form.cmbAllocToTeam().getValue() == null)
        return;

    HcpFilter filter = new HcpFilter();
    filter.setHcpType(form.cmbAllocToTeam().getValue());

    HcpCollection voCollHcps = domain.listHcps(filter);
    for(int i=0;i<voCollHcps.size();i++)
    {
        form.cmbAllocToMember().newRow(voCollHcps.get(i), voCollHcps.get(i).toString());
    }

}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    if(coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            Hcp med = coll.get(i);
            form.qmbAuthoringCP().newRow(med, med.toString());          
        }

        if (coll.size() == 1)
            form.qmbAuthoringCP().setValue(coll.get(0));
        else if (coll.size() > 1)
            form.qmbAuthoringCP().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnDetail().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnDetail().qmbAuthoringCP().newRow(med, med.toString());          
    }
    if (coll.size() == 1)
    {
        form.ctnDetail().qmbAuthoringCP().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctnDetail().qmbAuthoringCP().showOpened();     
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnEducateToCarers().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname("%" + value + "%");
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    if(coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            Hcp med = coll.get(i);
            form.ctnEducateToCarers().qmbAuthoringCP().newRow(med, med.toString());         
        }
        if (coll.size() == 1)
        {
            form.ctnEducateToCarers().qmbAuthoringCP().setValue(coll.get(0));
        }
        else if (coll.size() > 1)
        {
            form.ctnEducateToCarers().qmbAuthoringCP().showOpened();        
        }       
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbConsultantTextSubmited(String value) throws PresentationLogicException
{
    if (value != null)
    {
        HcpFilter voHCPFilter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        voHCPFilter.setQueryName(name);
        voHCPFilter.setHcpType(HcpDisType.MEDICAL);

        HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter);

        voColl.sort();
        form.qmbConsultant().clear();
        for (int i = 0; i < voColl.size(); i++)
        {
            form.qmbConsultant().newRow(voColl.get(i), voColl.get(i).getIHcpName());
        }
        if (voColl.size() == 1)
            form.qmbConsultant().setValue(voColl.get(0));
        else if (voColl.size() > 1)
            form.qmbConsultant().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbConsTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (value != null)
    {
        HcpFilter voHCPFilter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        voHCPFilter.setQueryName(name);
        voHCPFilter.setHcpType(HcpDisType.MEDICAL);

        HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter);

        voColl.sort();
        form.qmbCons().clear();
        for (int i = 0; i < voColl.size(); i++)
        {
            form.qmbCons().newRow(voColl.get(i), voColl.get(i).getIHcpName());
        }
        if (voColl.size() == 1)
            form.qmbCons().setValue(voColl.get(0));
        else if (voColl.size() > 1)
            form.qmbCons().showOpened();    
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbConsultantsTextSubmited(String value) throws PresentationLogicException 
{
    if (value != null)
    {
        HcpFilter voHCPFilter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        voHCPFilter.setQueryName(name);
        voHCPFilter.setHcpType(HcpDisType.MEDICAL);

        HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter);

        form.qmbConsultants().clear();
        for (int i = 0; i < voColl.size(); i++)
        {
            form.qmbConsultants().newRow(voColl.get(i), voColl.get(i).getName().toString());
        }
        if (voColl.size() == 1)
            form.qmbConsultants().setValue(voColl.get(0));
        else if (voColl.size() > 1)
            form.qmbConsultants().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbHCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (value != null)
    {
        HcpFilter voHCPFilter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        voHCPFilter.setQueryName(name);
        voHCPFilter.setHcpType(HcpDisType.MEDICAL);

        HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter);

        voColl.sort();
        form.qmbHCP().clear();
        for (int i = 0; i < voColl.size(); i++)
        {
            form.qmbHCP().newRow(voColl.get(i), voColl.get(i).getIHcpName());
        }
        if (voColl.size() == 1)
            form.qmbHCP().setValue(voColl.get(0));
        else if (voColl.size() > 1)
            form.qmbHCP().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdListOwnerGridQueryComboBoxTextSubmited(int column, grdListOwnerRow row, String text) throws PresentationLogicException
{
    row.getColHcp().clear();

    HcpFilter filter = new HcpFilter();
    PersonName voName = new PersonName();
    voName.setSurname(text);
    filter.setQueryName(voName);

    HcpLiteVoCollection voCollHcp = domain.listHcpLite(filter);
    if (voCollHcp.size() == 0)
    {
        engine.showMessage("No matching records found");
        return;
    }

    for (int i = 0; i < voCollHcp.size(); i++)
    {
        row.getColHcp().newRow(voCollHcp.get(i), voCollHcp.get(i).getName().toString());
    }

    if (voCollHcp.size() == 1)
        row.getColHcp().setValue(voCollHcp.get(0));
    else
        row.getColHcp().showOpened();
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAnaesTextSubmited(String value) throws PresentationLogicException 
{
    form.qmbAnaes().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name  = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpLiteVoCollection hcpColl = domain.listHcpLiteByName(value);
    for (int i = 0; i < hcpColl.size(); i++)
    {
        HcpLiteVo hcp = hcpColl.get(i);
        form.qmbAnaes().newRow(hcp, hcp.toString());            
    }
    if (hcpColl.size() == 1)
    {
        form.qmbAnaes().setValue(hcpColl.get(0));
    }
    else if (hcpColl.size() > 1)
    {
        form.qmbAnaes().showOpened();       
    }               
}
项目:AvoinApotti    文件:MosAdminImpl.java   
public HcpCollection listHcps(HcpFilter filter)
{
    if (filter.getQueryName() == null)
    {           
        MemberOfStaffShortVo voMos = new MemberOfStaffShortVo();
        voMos.setStaffType(StaffType.HCP);
        MemberOfStaffShortVoCollection coll = this.listMembersOfStaff(voMos);           
        HcpCollection voCollHcp = new HcpCollection();

        for (int i = 0; i < coll.size(); i++) 
        {
            MemberOfStaffShortVo voLocalMos = coll.get(i);
            voCollHcp.add(voLocalMos.getHcp());             
        }
        return voCollHcp;
    }
    else
    {
        HcpAdmin hcpAdmin = (HcpAdmin) getDomainImpl(HcpAdminImpl.class);
        return hcpAdmin.listHCPs(filter);
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbListOwnerTextSubmited(String value)
        throws PresentationLogicException {
    form.qmbListOwner().clear();

    HcpFilter filter = new HcpFilter();
    PersonName voName = new PersonName();
    voName.setSurname(value);
    filter.setQueryName(voName);

    HcpLiteVoCollection voCollHcp = domain.listClinicsListOwners(filter);
    if (voCollHcp.size() == 0) {
        engine.showMessage("No matching records found");
        return;
    }

    for (int i = 0; i < voCollHcp.size(); i++) {
        form.qmbListOwner().newRow(voCollHcp.get(i),
                voCollHcp.get(i).getName().toString());
    }

    if (voCollHcp.size() == 1)
        form.qmbListOwner().setValue(voCollHcp.get(0));
    else
        form.qmbListOwner().showOpened();
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws PresentationLogicException 
{
    form.ctnTherapy().lyrThermal().tabHeader().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHcps(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnTherapy().lyrThermal().tabHeader().qmbAuthoringCP().newRow(med, med.toString());            
    }
    if (coll.size() == 1)
    {
        form.ctnTherapy().lyrThermal().tabHeader().qmbAuthoringCP().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctnTherapy().lyrThermal().tabHeader().qmbAuthoringCP().showOpened();       
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbAuthoringCP().newRow(med, med.toString());          
    }
    if (coll.size() == 1)
    {
        form.qmbAuthoringCP().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.qmbAuthoringCP().showOpened();     
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.ctnTherapy().lyrTherapy().tabHeader().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnTherapy().lyrTherapy().tabHeader().qmbAuthoringCP().newRow(med, med.toString());            
    }

    if (coll.size() == 1)
        form.ctnTherapy().lyrTherapy().tabHeader().qmbAuthoringCP().setValue(coll.get(0));
    else if (coll.size() > 1)
        form.ctnTherapy().lyrTherapy().tabHeader().qmbAuthoringCP().showOpened();

}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbAuthoringCP().newRow(med, med.toString());          
    }

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

}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbAuthoringCP().newRow(med, med.toString());          
    }

    if (coll.size() == 1)
        form.qmbAuthoringCP().setValue(coll.get(0));
    else if (coll.size() > 1)
        form.qmbAuthoringCP().showOpened();
}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.ctnDetail().lyrBoBath().tabBoBath().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnDetail().lyrBoBath().tabBoBath().qmbAuthoringCP().newRow(med, med.toString());          
    }

    if (coll.size() == 1)
        form.ctnDetail().lyrBoBath().tabBoBath().qmbAuthoringCP().setValue(coll.get(0));
    else if (coll.size() > 1)
        form.ctnDetail().lyrBoBath().tabBoBath().qmbAuthoringCP().showOpened();     
}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.ctnStand().lyrParent().tabHeader().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnStand().lyrParent().tabHeader().qmbAuthoringCP().newRow(med, med.toString());           
    }
    if (coll.size() == 1)
        form.ctnStand().lyrParent().tabHeader().qmbAuthoringCP().setValue(coll.get(0));
    else if (coll.size() > 1)
        form.ctnStand().lyrParent().tabHeader().qmbAuthoringCP().showOpened();  

}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws PresentationLogicException 
{
    form.ctnRemedial().lyrRemedial().tabHeader().qmbAuthoringHCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnRemedial().lyrRemedial().tabHeader().qmbAuthoringHCP().newRow(med, med.toString());         
    }
    if (coll.size() == 1)
    {
        form.ctnRemedial().lyrRemedial().tabHeader().qmbAuthoringHCP().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctnRemedial().lyrRemedial().tabHeader().qmbAuthoringHCP().showOpened();        
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws PresentationLogicException
{
    form.qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbAuthoringCP().newRow(med, med.toString());          
    }
    if (coll.size() == 1)
    {
        form.qmbAuthoringCP().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.qmbAuthoringCP().showOpened();     
    }       

}
项目:AvoinApotti    文件:Logic.java   
private void setAuthoringCP(String value)
{
    form.qmbHCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbHCP().newRow(med, med.toString());          
    }

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

}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnStretching().lyrStretching().tabHeader().qmbAuthoringHcp().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnStretching().lyrStretching().tabHeader().qmbAuthoringHcp().newRow(med, med.toString());         
    }
    if (coll.size() == 1)
    {
        form.ctnStretching().lyrStretching().tabHeader().qmbAuthoringHcp().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctnStretching().lyrStretching().tabHeader().qmbAuthoringHcp().showOpened();        
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnDetails().lyrTENS().tabHeader().qmbAuthoringCP().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHcps(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.ctnDetails().lyrTENS().tabHeader().qmbAuthoringCP().newRow(med, med.toString());           
    }
    if (coll.size() == 1)
    {
        form.ctnDetails().lyrTENS().tabHeader().qmbAuthoringCP().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctnDetails().lyrTENS().tabHeader().qmbAuthoringCP().showOpened();      
    }       
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbAuthoringTextSubmited(String value) throws PresentationLogicException
{
    form.qmbAuthoring().clear();
    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listHCPs(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbAuthoring().newRow(med, med.toString());            
    }

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

}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbHCPTextSubmited(String value) 
    {
        form.qmbHCP().clear();
        HcpFilter filter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        filter.setQueryName(name);

        HcpCollection voHCPColl = domain.listHcps(filter);

        if(voHCPColl != null)
        {
            for (int i = 0; i < voHCPColl.size(); i++)
            {
                form.qmbHCP().newRow(voHCPColl.get(i), voHCPColl.get(i).toString());
            }
            if (voHCPColl.size() == 1)
            {
                form.qmbHCP().setValue(voHCPColl.get(0));
            }
            else if (voHCPColl.size() > 1)
            {
                form.qmbHCP().showOpened();     
            }
        }
}
项目:AvoinApotti    文件:SurgicalOPNotesPostOpInstructionsCCImpl.java   
public HcpLiteVoCollection listHCPs(HcpFilter filter) 
{
    HcpAdmin hcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
    if (filter != null && filter.getQueryNameIsNotNull())
        return hcpAdmin.listHcpLiteByName(filter.getQueryName().getSurname());
    else 
        return null;
}
项目:AvoinApotti    文件:MDTDetailsImpl.java   
public HcpCollection listHcps(String text) 
{
    if(text == null || text.length() == 0)
        throw new DomainRuntimeException("Filter not supplied");

    HcpFilter filter = new HcpFilter();
    filter.setQueryName(new PersonName());
    filter.getQueryName().setSurname(text);

    HcpAdmin impl = (HcpAdmin) getDomainImpl(HcpAdminImpl.class);
    return impl.listHCPs(filter);
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbConfirmedByTextSubmited(String value) throws PresentationLogicException 
{
    if(value == null)
        return;

    form.qmbConfirmedBy().clear();

    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpCollection coll = domain.listMedics(filter);
    for (int i = 0; i < coll.size(); i++)
    {
        Hcp med = coll.get(i);
        form.qmbConfirmedBy().newRow(med, med.toString());          
    }
    if (coll.size() == 1)
    {
        form.qmbConfirmedBy().setValue(coll.get(0));
        populateConfirmedData();
    }
    else if (coll.size() > 1)
    {
        form.qmbConfirmedBy().showOpened();     
    }   
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbHCPTextSubmited(String value) throws PresentationLogicException 
{
    if (form.cmbDiscipline().getValue() != null)
    {   
        HcpFilter voFilter = new HcpFilter();
        PersonName voPname = new PersonName();

        voPname.setSurname(value);
        voFilter.setQueryName(voPname);

        HcpDisType voHCPDisciplineInstance = form.cmbDiscipline().getValue();
        voFilter.setHcpType(voHCPDisciplineInstance);

        HcpCollection hcpColl = domain.listHcps(voFilter);

        if (hcpColl != null)
        {
            form.qcbHCP().clear();
            for (int i = 0; i < hcpColl.size(); i++)
            {
                form.qcbHCP().newRow(hcpColl.get(i), hcpColl.get(i).getName().toString());                  
            }
            if (hcpColl.size() == 1)
                form.qcbHCP().setValue(hcpColl.get(0));
            else if (hcpColl.size() > 1)
                form.qcbHCP().showOpened();

            form.btnOk().setEnabled(true);
        }
    }
}
项目:AvoinApotti    文件:MUSTImpl.java   
public HcpLiteVoCollection listMedics(HcpFilter voHcpFilter) 
{
    HcpAdmin hcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
    if (voHcpFilter != null && voHcpFilter.getQueryNameIsNotNull())
        return hcpAdmin.listHcpLiteByName(voHcpFilter.getQueryName().getSurname());
    return null;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbConsTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    if (value != null)
    {
        HcpFilter voHCPFilter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        voHCPFilter.setQueryName(name);
        voHCPFilter.setHcpType(HcpDisType.MEDICAL);

        HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter);

        voColl.sort();
        form.qmbCons().clear();

        for (int i = 0; i < voColl.size(); i++)
        {
            form.qmbCons().newRow(voColl.get(i), voColl.get(i).getIHcpName());
        }

        if (voColl.size() == 1)
            form.qmbCons().setValue(voColl.get(0));
        else if (voColl.size() > 1)
            form.qmbCons().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean isHcpType(Hcp voHcpResult)
{
    if (voHcpResult == null)
        return false;
    HcpDisType hcpType = form.lyrProServices().tabProfessional().cmbProfessional().getValue();
    HcpDisType hcpSubType = form.lyrProServices().tabProfessional().cmbHcpSubType().getValue();
    // Don't check "Other Discipline"
    if (hcpType != null && isOtherDiscipline(hcpType) == false)
    {
        if (hcpSubType != null && voHcpResult != null && voHcpResult.getID_HcpIsNotNull())
        {
            HcpFilter filter = new HcpFilter();
            filter.setID_Hcp(voHcpResult.getID_Hcp());
            Hcp voHcp = domain.getHcp(filter);
            if (voHcp != null)
            {
                if (voHcp instanceof NurseVo)
                {
                    if (hcpSubType.equals(((NurseVo) voHcp).getNurseType()))
                        return true;
                }
                if (voHcp instanceof MedicVo)
                {
                    if (hcpSubType.equals(((MedicVo) voHcp).getMedicType()))
                        return true;
                }
                if (voHcp instanceof TherapistVo)
                {
                    if (hcpSubType.equals(((TherapistVo) voHcp).getTherapistType()))
                        return true;
                }

                return false;
            }
        }
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbHCPTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setEventFired(null);

    if (value != null)
    {
        HcpFilter voHCPFilter = new HcpFilter();
        PersonName name = new PersonName();
        name.setSurname(value);
        voHCPFilter.setQueryName(name);
        voHCPFilter.setHcpType(HcpDisType.MEDICAL);

        HcpLiteVoCollection voColl = domain.listHCPs(voHCPFilter);

        voColl.sort();
        form.qmbHCP().clear();
        for (int i = 0; i < voColl.size(); i++)
        {
            form.qmbHCP().newRow(voColl.get(i), voColl.get(i).getIHcpName());
        }
        if (voColl.size() == 1)
            form.qmbHCP().setValue(voColl.get(0));
        else if (voColl.size() > 1)
            form.qmbHCP().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbRequestedTextSubmited(String value) throws PresentationLogicException
{
    form.ctn().qmbRequested().clear();

    HcpFilter filter = new HcpFilter();
    PersonName name = new PersonName();
    name.setSurname(value);
    filter.setQueryName(name);

    HcpLiteVoCollection coll = new HcpLiteVoCollection();
    try
    {
        coll = domain.listHCPs(filter);
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }

    for (int i = 0; i < coll.size(); i++)
    {
        HcpLiteVo med = coll.get(i);
        form.ctn().qmbRequested().newRow(med, med.toString());
    }
    if (coll.size() == 1)
    {
        form.ctn().qmbRequested().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.ctn().qmbRequested().showOpened();
    }
}
项目:AvoinApotti    文件:RecentDischargesImpl.java   
public HcpLiteVo getHCP(Integer idHCP) 
{
    HcpAdmin implHcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
    HcpFilter voFilter = new HcpFilter();
    voFilter.setID_Hcp(idHCP);
    return implHcpAdmin.getHcpLite(voFilter);
}
项目:AvoinApotti    文件:STHKCurrentInpatientListComponentImpl.java   
public HcpLiteVo getHCP(Integer idHCP)
{
    HcpAdmin implHcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
    HcpFilter voFilter = new HcpFilter();
    voFilter.setID_Hcp(idHCP);
    return implHcpAdmin.getHcpLite(voFilter);
}
项目:AvoinApotti    文件:PendingElectiveAdmissionsListELComponentImpl.java   
public HcpLiteVo getHCP(Integer idHCP)
{
    HcpAdmin implHcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
    HcpFilter voFilter = new HcpFilter();
    voFilter.setID_Hcp(idHCP);
    return implHcpAdmin.getHcpLite(voFilter);
}
项目:AvoinApotti    文件:EDischargeFuturePlanComponentImpl.java   
public HcpLiteVoCollection listHCPs(HcpFilter filter) 
{
    HcpAdmin hcpAdmin = (HcpAdmin)getDomainImpl(HcpAdminImpl.class);
    if (filter != null && filter.getQueryNameIsNotNull())
        return hcpAdmin.listHcpLiteByName(filter.getQueryName().getSurname());
    else 
        return null;
}