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

项目:AvoinApotti    文件:Logic.java   
private void fillRecordBrowser()
{
    WheelchairSkillsShortVoCollection voWheelChairSkillsColl = domain.listWheelchairSkillsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    ClinicalContactShortVo voCurrentClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    loadCareContext();
    boolean currentClinicalContactFound = false; 

    if(voWheelChairSkillsColl != null)
    {
        for(int i=0; i<voWheelChairSkillsColl.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voWheelChairSkillsColl.get(i).getClinicalContact();

            if(voCurrentClinicalContact != null && voCurrentClinicalContact.getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact,  Color.Green);   
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound)
        loadClinicalContact(voCurrentClinicalContact, Color.Green);

    browseRecord();
}
项目:AvoinApotti    文件:WheelchairSkillsImpl.java   
public WheelchairSkillsShortVoCollection listWheelchairSkillsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from WheelchairSkills w ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voCareContextRef != null)
    {
        hql.append(andStr + " w.clinicalContact.careContext.id = :id_cc");
        markers.add("id_cc");
        values.add(voCareContextRef.getID_CareContext());           
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List skills = factory.find(query, markers, values); 
    WheelchairSkillsShortVoCollection voWheelchairSkillsShortColl = WheelchairSkillsShortVoAssembler.createWheelchairSkillsShortVoCollectionFromWheelchairSkills(skills);
    if(voWheelchairSkillsShortColl != null && voWheelchairSkillsShortColl.size()>0)
        return voWheelchairSkillsShortColl;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser()
{
    WheelchairSkillsShortVoCollection voWheelChairSkillsColl = domain.listWheelchairSkillsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    ClinicalContactShortVo voCurrentClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    loadCareContext();
    boolean currentClinicalContactFound = false; 

    if(voWheelChairSkillsColl != null)
    {
        for(int i=0; i<voWheelChairSkillsColl.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voWheelChairSkillsColl.get(i).getClinicalContact();

            if(voCurrentClinicalContact != null && voCurrentClinicalContact.getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact,  Color.Green);   
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound)
        loadClinicalContact(voCurrentClinicalContact, Color.Green);

    browseRecord();
}
项目:openMAXIMS    文件:WheelchairSkillsImpl.java   
public WheelchairSkillsShortVoCollection listWheelchairSkillsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from WheelchairSkills w ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voCareContextRef != null)
    {
        hql.append(andStr + " w.clinicalContact.careContext.id = :id_cc");
        markers.add("id_cc");
        values.add(voCareContextRef.getID_CareContext());           
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List skills = factory.find(query, markers, values); 
    WheelchairSkillsShortVoCollection voWheelchairSkillsShortColl = WheelchairSkillsShortVoAssembler.createWheelchairSkillsShortVoCollectionFromWheelchairSkills(skills);
    if(voWheelchairSkillsShortColl != null && voWheelchairSkillsShortColl.size()>0)
        return voWheelchairSkillsShortColl;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser()
{
    WheelchairSkillsShortVoCollection voWheelChairSkillsColl = domain.listWheelchairSkillsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    ClinicalContactShortVo voCurrentClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    loadCareContext();
    boolean currentClinicalContactFound = false; 

    if(voWheelChairSkillsColl != null)
    {
        for(int i=0; i<voWheelChairSkillsColl.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voWheelChairSkillsColl.get(i).getClinicalContact();

            if(voCurrentClinicalContact != null && voCurrentClinicalContact.getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact,  Color.Green);   
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound)
        loadClinicalContact(voCurrentClinicalContact, Color.Green);

    browseRecord();
}
项目:openMAXIMS    文件:WheelchairSkillsImpl.java   
public WheelchairSkillsShortVoCollection listWheelchairSkillsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from WheelchairSkills w ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voCareContextRef != null)
    {
        hql.append(andStr + " w.clinicalContact.careContext.id = :id_cc");
        markers.add("id_cc");
        values.add(voCareContextRef.getID_CareContext());           
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List skills = factory.find(query, markers, values); 
    WheelchairSkillsShortVoCollection voWheelchairSkillsShortColl = WheelchairSkillsShortVoAssembler.createWheelchairSkillsShortVoCollectionFromWheelchairSkills(skills);
    if(voWheelchairSkillsShortColl != null && voWheelchairSkillsShortColl.size()>0)
        return voWheelchairSkillsShortColl;

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void fillRecordBrowser()
{
    WheelchairSkillsShortVoCollection voWheelChairSkillsColl = domain.listWheelchairSkillsByCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    ClinicalContactShortVo voCurrentClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
    loadCareContext();
    boolean currentClinicalContactFound = false; 

    if(voWheelChairSkillsColl != null)
    {
        for(int i=0; i<voWheelChairSkillsColl.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voWheelChairSkillsColl.get(i).getClinicalContact();

            if(voCurrentClinicalContact != null && voCurrentClinicalContact.getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact,  Color.Green);   
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound)
        loadClinicalContact(voCurrentClinicalContact, Color.Green);

    browseRecord();
}
项目:openmaxims-linux    文件:WheelchairSkillsImpl.java   
public WheelchairSkillsShortVoCollection listWheelchairSkillsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from WheelchairSkills w ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voCareContextRef != null)
    {
        hql.append(andStr + " w.clinicalContact.careContext.id = :id_cc");
        markers.add("id_cc");
        values.add(voCareContextRef.getID_CareContext());           
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();

    List skills = factory.find(query, markers, values); 
    WheelchairSkillsShortVoCollection voWheelchairSkillsShortColl = WheelchairSkillsShortVoAssembler.createWheelchairSkillsShortVoCollectionFromWheelchairSkills(skills);
    if(voWheelchairSkillsShortColl != null && voWheelchairSkillsShortColl.size()>0)
        return voWheelchairSkillsShortColl;

    return null;
}