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

项目:AvoinApotti    文件:MassageImpl.java   
public MassageShortVoCollection listMassageByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from Massage m ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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


    List massage = factory.find(query, markers, values);    
    MassageShortVoCollection collMassageShortVo = MassageShortVoAssembler.createMassageShortVoCollectionFromMassage(massage);
    if(collMassageShortVo != null)
        return collMassageShortVo;

    return null;
}
项目:openMAXIMS    文件:MassageImpl.java   
public MassageShortVoCollection listMassageByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from Massage m ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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


    List massage = factory.find(query, markers, values);    
    MassageShortVoCollection collMassageShortVo = MassageShortVoAssembler.createMassageShortVoCollectionFromMassage(massage);
    if(collMassageShortVo != null)
        return collMassageShortVo;

    return null;
}
项目:openMAXIMS    文件:MassageImpl.java   
public MassageShortVoCollection listMassageByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from Massage m ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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


    List massage = factory.find(query, markers, values);    
    MassageShortVoCollection collMassageShortVo = MassageShortVoAssembler.createMassageShortVoCollectionFromMassage(massage);
    if(collMassageShortVo != null)
        return collMassageShortVo;

    return null;
}
项目:openmaxims-linux    文件:MassageImpl.java   
public MassageShortVoCollection listMassageByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from Massage m ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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


    List massage = factory.find(query, markers, values);    
    MassageShortVoCollection collMassageShortVo = MassageShortVoAssembler.createMassageShortVoCollectionFromMassage(massage);
    if(collMassageShortVo != null)
        return collMassageShortVo;

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void fillRecordBrowser()
{
    MassageShortVoCollection voMassageShortVoColl = domain.listMassageByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCurrentCareContext();
    boolean currentClinicalContactFound = false;
    if(voMassageShortVoColl != null)
    {
        if(engine.isRIEMode()){
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                MassageShortVo voMassageShort = voMassageShortVoColl.get(i);
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voMassageShort.getClinicalContact().getID_ClinicalContact()))
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString(), Color.Green);
                else
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString());
            }
            if(voMassageShortVoColl.size()>0)
                form.recbrMassage().setValue(voMassageShortVoColl.get(voMassageShortVoColl.size()-1));
        }
        else{
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                ClinicalContactShortVo voClinicalContact = voMassageShortVoColl.get(i).getClinicalContact();
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
                {
                    currentClinicalContactFound = true;
                    loadCurrentClinicalContact(voClinicalContact);
                }
                else
                    form.recbrMassage().newRow(voClinicalContact, "\t\t\t\tClinical Contact: "+ voClinicalContact.getStartDateTime().toString() +" - " +voClinicalContact.getSeenBy().toString());
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && !engine.isRIEMode())
        loadCurrentClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    browseRecored();

}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser()
{
    MassageShortVoCollection voMassageShortVoColl = domain.listMassageByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCurrentCareContext();
    boolean currentClinicalContactFound = false;
    if(voMassageShortVoColl != null)
    {
        if(engine.isRIEMode()){
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                MassageShortVo voMassageShort = voMassageShortVoColl.get(i);
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voMassageShort.getClinicalContact().getID_ClinicalContact()))
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString(), Color.Green);
                else
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString());
            }
            if(voMassageShortVoColl.size()>0)
                form.recbrMassage().setValue(voMassageShortVoColl.get(voMassageShortVoColl.size()-1));
        }
        else{
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                ClinicalContactShortVo voClinicalContact = voMassageShortVoColl.get(i).getClinicalContact();
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
                {
                    currentClinicalContactFound = true;
                    loadCurrentClinicalContact(voClinicalContact);
                }
                else
                    form.recbrMassage().newRow(voClinicalContact, "\t\t\t\tClinical Contact: "+ voClinicalContact.getStartDateTime().toString() +" - " +voClinicalContact.getSeenBy().toString());
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && !engine.isRIEMode())
        loadCurrentClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    browseRecored();

}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser()
{
    MassageShortVoCollection voMassageShortVoColl = domain.listMassageByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCurrentCareContext();
    boolean currentClinicalContactFound = false;
    if(voMassageShortVoColl != null)
    {
        if(engine.isRIEMode()){
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                MassageShortVo voMassageShort = voMassageShortVoColl.get(i);
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voMassageShort.getClinicalContact().getID_ClinicalContact()))
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString(), Color.Green);
                else
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString());
            }
            if(voMassageShortVoColl.size()>0)
                form.recbrMassage().setValue(voMassageShortVoColl.get(voMassageShortVoColl.size()-1));
        }
        else{
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                ClinicalContactShortVo voClinicalContact = voMassageShortVoColl.get(i).getClinicalContact();
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
                {
                    currentClinicalContactFound = true;
                    loadCurrentClinicalContact(voClinicalContact);
                }
                else
                    form.recbrMassage().newRow(voClinicalContact, "\t\t\t\tClinical Contact: "+ voClinicalContact.getStartDateTime().toString() +" - " +voClinicalContact.getSeenBy().toString());
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && !engine.isRIEMode())
        loadCurrentClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    browseRecored();

}
项目:openmaxims-linux    文件:Logic.java   
private void fillRecordBrowser()
{
    MassageShortVoCollection voMassageShortVoColl = domain.listMassageByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCurrentCareContext();
    boolean currentClinicalContactFound = false;
    if(voMassageShortVoColl != null)
    {
        if(engine.isRIEMode()){
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                MassageShortVo voMassageShort = voMassageShortVoColl.get(i);
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voMassageShort.getClinicalContact().getID_ClinicalContact()))
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString(), Color.Green);
                else
                    form.recbrMassage().newRow(voMassageShort, "\t\t\t\tClinical Contact: "+ voMassageShort.getClinicalContact().getStartDateTime().toString() +" - " +voMassageShort.getClinicalContact().getSeenBy().toString());
            }
            if(voMassageShortVoColl.size()>0)
                form.recbrMassage().setValue(voMassageShortVoColl.get(voMassageShortVoColl.size()-1));
        }
        else{
            for(int i=0; i<voMassageShortVoColl.size(); i++)
            {
                ClinicalContactShortVo voClinicalContact = voMassageShortVoColl.get(i).getClinicalContact();
                if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
                {
                    currentClinicalContactFound = true;
                    loadCurrentClinicalContact(voClinicalContact);
                }
                else
                    form.recbrMassage().newRow(voClinicalContact, "\t\t\t\tClinical Contact: "+ voClinicalContact.getStartDateTime().toString() +" - " +voClinicalContact.getSeenBy().toString());
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && !engine.isRIEMode())
        loadCurrentClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    browseRecored();

}