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

项目:AvoinApotti    文件:Logic.java   
private void fillRecordBrowser()
{
    PlinthWorkShortVoCollection voPlinthWorkShort = domain.getPlinthWorkByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCareContext();
    boolean currentClinicalContactFound = false;
    if(voPlinthWorkShort != null)
    {
        for(int i=0; i<voPlinthWorkShort.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voPlinthWorkShort.get(i).getClinicalContact();

            if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact, Color.Green);
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        loadClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact(), Color.Green);

    browseRecord();
}
项目:AvoinApotti    文件:PlinthWorkImpl.java   
public PlinthWorkShortVoCollection getPlinthWorkByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from PlinthWork pw ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    java.util.List pwList = factory.find(query,markers,values);
    PlinthWorkShortVoCollection voPlinthWorkShortColl = PlinthWorkShortVoAssembler.createPlinthWorkShortVoCollectionFromPlinthWork(pwList);
    //if(voPlinthWorkShortColl.size()>0)
    return voPlinthWorkShortColl;    //wdev-13560
    //else
    //  return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser()
{
    PlinthWorkShortVoCollection voPlinthWorkShort = domain.getPlinthWorkByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCareContext();
    boolean currentClinicalContactFound = false;
    if(voPlinthWorkShort != null)
    {
        for(int i=0; i<voPlinthWorkShort.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voPlinthWorkShort.get(i).getClinicalContact();

            if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact, Color.Green);
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        loadClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact(), Color.Green);

    browseRecord();
}
项目:openMAXIMS    文件:PlinthWorkImpl.java   
public PlinthWorkShortVoCollection getPlinthWorkByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from PlinthWork pw ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    java.util.List pwList = factory.find(query,markers,values);
    PlinthWorkShortVoCollection voPlinthWorkShortColl = PlinthWorkShortVoAssembler.createPlinthWorkShortVoCollectionFromPlinthWork(pwList);
    //if(voPlinthWorkShortColl.size()>0)
    return voPlinthWorkShortColl;    //wdev-13560
    //else
    //  return null;
}
项目:openMAXIMS    文件:Logic.java   
private void fillRecordBrowser()
{
    PlinthWorkShortVoCollection voPlinthWorkShort = domain.getPlinthWorkByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCareContext();
    boolean currentClinicalContactFound = false;
    if(voPlinthWorkShort != null)
    {
        for(int i=0; i<voPlinthWorkShort.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voPlinthWorkShort.get(i).getClinicalContact();

            if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact, Color.Green);
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        loadClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact(), Color.Green);

    browseRecord();
}
项目:openMAXIMS    文件:PlinthWorkImpl.java   
public PlinthWorkShortVoCollection getPlinthWorkByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from PlinthWork pw ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    java.util.List pwList = factory.find(query,markers,values);
    PlinthWorkShortVoCollection voPlinthWorkShortColl = PlinthWorkShortVoAssembler.createPlinthWorkShortVoCollectionFromPlinthWork(pwList);
    //if(voPlinthWorkShortColl.size()>0)
    return voPlinthWorkShortColl;    //wdev-13560
    //else
    //  return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void fillRecordBrowser()
{
    PlinthWorkShortVoCollection voPlinthWorkShort = domain.getPlinthWorkByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    loadCareContext();
    boolean currentClinicalContactFound = false;
    if(voPlinthWorkShort != null)
    {
        for(int i=0; i<voPlinthWorkShort.size(); i++)
        {
            ClinicalContactShortVo voClinicalContact = voPlinthWorkShort.get(i).getClinicalContact();

            if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull() && form.getGlobalContext().Core.getCurrentClinicalContact().getID_ClinicalContact().equals(voClinicalContact.getID_ClinicalContact()))
            {
                currentClinicalContactFound = true;
                loadClinicalContact(voClinicalContact, Color.Green);
            }
            else
            {
                loadClinicalContact(voClinicalContact, null);
            }
        }
    }

    if(!currentClinicalContactFound && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        loadClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact(), Color.Green);

    browseRecord();
}
项目:openmaxims-linux    文件:PlinthWorkImpl.java   
public PlinthWorkShortVoCollection getPlinthWorkByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from PlinthWork pw ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    java.util.List pwList = factory.find(query,markers,values);
    PlinthWorkShortVoCollection voPlinthWorkShortColl = PlinthWorkShortVoAssembler.createPlinthWorkShortVoCollectionFromPlinthWork(pwList);
    //if(voPlinthWorkShortColl.size()>0)
    return voPlinthWorkShortColl;    //wdev-13560
    //else
    //  return null;
}