Java 类ims.nursing.vo.InterventionChartHeaderVoCollection 实例源码

项目:AvoinApotti    文件:NurInterventionChartImpl.java   
/**
* List Intervention Header Records
*/
public InterventionChartHeaderVoCollection listInterventionHeaderRecords(CareContextRefVo voCareContext) throws DomainInterfaceException
{
    if(voCareContext == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hql = " from InterventionChart interventionChart "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(voCareContext != null && voCareContext.getID_CareContextIsNotNull())
    {
        condStr.append(andStr + " interventionChart.careContext.id = :rcc"); 
        markers.add("rcc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    return InterventionChartHeaderVoAssembler.createInterventionChartHeaderVoCollectionFromInterventionChart(factory.find(hql, markers, values));
}
项目:openMAXIMS    文件:NurInterventionChartImpl.java   
/**
* List Intervention Header Records
*/
public InterventionChartHeaderVoCollection listInterventionHeaderRecords(CareContextRefVo voCareContext) throws DomainInterfaceException
{
    if(voCareContext == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hql = " from InterventionChart interventionChart "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(voCareContext != null && voCareContext.getID_CareContextIsNotNull())
    {
        condStr.append(andStr + " interventionChart.careContext.id = :rcc"); 
        markers.add("rcc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    return InterventionChartHeaderVoAssembler.createInterventionChartHeaderVoCollectionFromInterventionChart(factory.find(hql, markers, values));
}
项目:openMAXIMS    文件:NurInterventionChartImpl.java   
/**
* List Intervention Header Records
*/
public InterventionChartHeaderVoCollection listInterventionHeaderRecords(CareContextRefVo voCareContext) throws DomainInterfaceException
{
    if(voCareContext == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hql = " from InterventionChart interventionChart "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(voCareContext != null && voCareContext.getID_CareContextIsNotNull())
    {
        condStr.append(andStr + " interventionChart.careContext.id = :rcc"); 
        markers.add("rcc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    return InterventionChartHeaderVoAssembler.createInterventionChartHeaderVoCollectionFromInterventionChart(factory.find(hql, markers, values));
}
项目:openmaxims-linux    文件:NurInterventionChartImpl.java   
/**
* List Intervention Header Records
*/
public InterventionChartHeaderVoCollection listInterventionHeaderRecords(CareContextRefVo voCareContext) throws DomainInterfaceException
{
    if(voCareContext == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hql = " from InterventionChart interventionChart "; 
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if(voCareContext != null && voCareContext.getID_CareContextIsNotNull())
    {
        condStr.append(andStr + " interventionChart.careContext.id = :rcc"); 
        markers.add("rcc");
        values.add(voCareContext.getID_CareContext());
        andStr = " and ";
    }   

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    return InterventionChartHeaderVoAssembler.createInterventionChartHeaderVoCollectionFromInterventionChart(factory.find(hql, markers, values));
}
项目:AvoinApotti    文件:Logic.java   
boolean listInterventionHeaderRecords()
{
    form.cmbAllRecords().clear();
    form.cmbAllRecords().setValue(null);
    InterventionChartHeaderVoCollection interventionColl = new InterventionChartHeaderVoCollection();
    try
    {
        interventionColl = domain.listInterventionHeaderRecords(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        throw new DomainRuntimeException("DomainInterfaceException occurred listing interventioncharts.\r\n" + e.getMessage(), e);
    }

    if (interventionColl != null)
    {
        if (interventionColl.size() != 0)
        {
            boolean bFirstRecord = true;
            form.cmbAllRecords().clear();
            for (int i = 0; i < interventionColl.size(); i++)
            {
                InterventionChartHeaderVo intervention = interventionColl.get(i);
                if (intervention != null)
                {
                    // Load ComboBox with Records Retrieved
                    String strInterventionHeader = "";
                    if (intervention.getAuthoringHCP() != null)
                        strInterventionHeader = intervention.getAuthoringDateTime().toString()+ " - " + intervention.getAuthoringHCP().toString();
                    form.cmbAllRecords().newRow(intervention, strInterventionHeader);
                    form.cmbAllRecords().setValue(intervention);

                    if (bFirstRecord)
                    {
                        form.cmbAllRecords().setValue(intervention);
                        bFirstRecord = false;
                    }
                }
            }
            return true;
        }
        else
            return false;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
boolean listInterventionHeaderRecords()
{
    form.cmbAllRecords().clear();
    form.cmbAllRecords().setValue(null);
    InterventionChartHeaderVoCollection interventionColl = new InterventionChartHeaderVoCollection();
    try
    {
        interventionColl = domain.listInterventionHeaderRecords(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        throw new DomainRuntimeException("DomainInterfaceException occurred listing interventioncharts.\r\n" + e.getMessage(), e);
    }

    if (interventionColl != null)
    {
        if (interventionColl.size() != 0)
        {
            boolean bFirstRecord = true;
            form.cmbAllRecords().clear();
            for (int i = 0; i < interventionColl.size(); i++)
            {
                InterventionChartHeaderVo intervention = interventionColl.get(i);
                if (intervention != null)
                {
                    // Load ComboBox with Records Retrieved
                    String strInterventionHeader = "";
                    if (intervention.getAuthoringHCP() != null)
                        strInterventionHeader = intervention.getAuthoringDateTime().toString()+ " - " + intervention.getAuthoringHCP().toString();
                    form.cmbAllRecords().newRow(intervention, strInterventionHeader);
                    form.cmbAllRecords().setValue(intervention);

                    if (bFirstRecord)
                    {
                        form.cmbAllRecords().setValue(intervention);
                        bFirstRecord = false;
                    }
                }
            }
            return true;
        }
        else
            return false;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
boolean listInterventionHeaderRecords()
{
    form.cmbAllRecords().clear();
    form.cmbAllRecords().setValue(null);
    InterventionChartHeaderVoCollection interventionColl = new InterventionChartHeaderVoCollection();
    try
    {
        interventionColl = domain.listInterventionHeaderRecords(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        throw new DomainRuntimeException("DomainInterfaceException occurred listing interventioncharts.\r\n" + e.getMessage(), e);
    }

    if (interventionColl != null)
    {
        if (interventionColl.size() != 0)
        {
            boolean bFirstRecord = true;
            form.cmbAllRecords().clear();
            for (int i = 0; i < interventionColl.size(); i++)
            {
                InterventionChartHeaderVo intervention = interventionColl.get(i);
                if (intervention != null)
                {
                    // Load ComboBox with Records Retrieved
                    String strInterventionHeader = "";
                    if (intervention.getAuthoringHCP() != null)
                        strInterventionHeader = intervention.getAuthoringDateTime().toString()+ " - " + intervention.getAuthoringHCP().toString();
                    form.cmbAllRecords().newRow(intervention, strInterventionHeader);
                    form.cmbAllRecords().setValue(intervention);

                    if (bFirstRecord)
                    {
                        form.cmbAllRecords().setValue(intervention);
                        bFirstRecord = false;
                    }
                }
            }
            return true;
        }
        else
            return false;
    }
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
boolean listInterventionHeaderRecords()
{
    form.cmbAllRecords().clear();
    form.cmbAllRecords().setValue(null);
    InterventionChartHeaderVoCollection interventionColl = new InterventionChartHeaderVoCollection();
    try
    {
        interventionColl = domain.listInterventionHeaderRecords(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        throw new DomainRuntimeException("DomainInterfaceException occurred listing interventioncharts.\r\n" + e.getMessage(), e);
    }

    if (interventionColl != null)
    {
        if (interventionColl.size() != 0)
        {
            boolean bFirstRecord = true;
            form.cmbAllRecords().clear();
            for (int i = 0; i < interventionColl.size(); i++)
            {
                InterventionChartHeaderVo intervention = interventionColl.get(i);
                if (intervention != null)
                {
                    // Load ComboBox with Records Retrieved
                    String strInterventionHeader = "";
                    if (intervention.getAuthoringHCP() != null)
                        strInterventionHeader = intervention.getAuthoringDateTime().toString()+ " - " + intervention.getAuthoringHCP().toString();
                    form.cmbAllRecords().newRow(intervention, strInterventionHeader);
                    form.cmbAllRecords().setValue(intervention);

                    if (bFirstRecord)
                    {
                        form.cmbAllRecords().setValue(intervention);
                        bFirstRecord = false;
                    }
                }
            }
            return true;
        }
        else
            return false;
    }
    return false;
}