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

项目:AvoinApotti    文件:Logic.java   
private void populateInterventionGrid(InterventionChartHeaderVo header)
{
    ims.nursing.vo.InterventionChartVo intervention = domain.getInterventionRecord(header);
    if (intervention != null)
    {
        form.getLocalContext().setInterventionChartRecord(intervention);
        form.dteRecording().setValue(intervention.getAuthoringDateTime().getDate());
        form.timRecorded().setValue(intervention.getAuthoringDateTime().getTime());
        if (intervention.getAuthoringHCP() != null)
        {
            form.qmbAuthoringHcp().newRow(intervention.getAuthoringHCP(), intervention.getAuthoringHCP().toString());
            form.qmbAuthoringHcp().setValue(intervention.getAuthoringHCP());
        }
        InterventionChartDetailsVoCollection coll = intervention.getDetails();

        GenForm.grdInterventionsRow row = null;

        // inactive record handling
        for (int i = 0; i < coll.size(); i++)
        {
            ims.nursing.vo.InterventionChartDetailsVo interventionDetail = coll.get(i);

            if (interventionDetail != null)
            {
                row = form.grdInterventions().getRows().newRow();
                row.setValue(interventionDetail);
                if (interventionDetail.getTimeOfIntervention() != null)
                    row.setColTime(interventionDetail.getTimeOfIntervention());
                if (interventionDetail.getAssistanceRequired() != null)
                    row.setColAssistance(interventionDetail.getAssistanceRequired());
                if (interventionDetail.getLengthOfTime() != null)
                    row.setColLengthTime(interventionDetail.getLengthOfTime());
                if (interventionDetail.getDetails() != null)
                    row.setColIntervention(interventionDetail.getDetails());
            }
        }
        form.btnUpdate().setVisible(true);
        form.btnUpdate().setEnabled(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInterventionGrid(InterventionChartHeaderVo header)
{
    ims.nursing.vo.InterventionChartVo intervention = domain.getInterventionRecord(header);
    if (intervention != null)
    {
        form.getLocalContext().setInterventionChartRecord(intervention);
        form.dteRecording().setValue(intervention.getAuthoringDateTime().getDate());
        form.timRecorded().setValue(intervention.getAuthoringDateTime().getTime());
        if (intervention.getAuthoringHCP() != null)
        {
            form.qmbAuthoringHcp().newRow(intervention.getAuthoringHCP(), intervention.getAuthoringHCP().toString());
            form.qmbAuthoringHcp().setValue(intervention.getAuthoringHCP());
        }
        InterventionChartDetailsVoCollection coll = intervention.getDetails();

        GenForm.grdInterventionsRow row = null;

        // inactive record handling
        for (int i = 0; i < coll.size(); i++)
        {
            ims.nursing.vo.InterventionChartDetailsVo interventionDetail = coll.get(i);

            if (interventionDetail != null)
            {
                row = form.grdInterventions().getRows().newRow();
                row.setValue(interventionDetail);
                if (interventionDetail.getTimeOfIntervention() != null)
                    row.setColTime(interventionDetail.getTimeOfIntervention());
                if (interventionDetail.getAssistanceRequired() != null)
                    row.setColAssistance(interventionDetail.getAssistanceRequired());
                if (interventionDetail.getLengthOfTime() != null)
                    row.setColLengthTime(interventionDetail.getLengthOfTime());
                if (interventionDetail.getDetails() != null)
                    row.setColIntervention(interventionDetail.getDetails());
            }
        }
        form.btnUpdate().setVisible(true);
        form.btnUpdate().setEnabled(true);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInterventionGrid(InterventionChartHeaderVo header)
{
    ims.nursing.vo.InterventionChartVo intervention = domain.getInterventionRecord(header);
    if (intervention != null)
    {
        form.getLocalContext().setInterventionChartRecord(intervention);
        form.dteRecording().setValue(intervention.getAuthoringDateTime().getDate());
        form.timRecorded().setValue(intervention.getAuthoringDateTime().getTime());
        if (intervention.getAuthoringHCP() != null)
        {
            form.qmbAuthoringHcp().newRow(intervention.getAuthoringHCP(), intervention.getAuthoringHCP().toString());
            form.qmbAuthoringHcp().setValue(intervention.getAuthoringHCP());
        }
        InterventionChartDetailsVoCollection coll = intervention.getDetails();

        GenForm.grdInterventionsRow row = null;

        // inactive record handling
        for (int i = 0; i < coll.size(); i++)
        {
            ims.nursing.vo.InterventionChartDetailsVo interventionDetail = coll.get(i);

            if (interventionDetail != null)
            {
                row = form.grdInterventions().getRows().newRow();
                row.setValue(interventionDetail);
                if (interventionDetail.getTimeOfIntervention() != null)
                    row.setColTime(interventionDetail.getTimeOfIntervention());
                if (interventionDetail.getAssistanceRequired() != null)
                    row.setColAssistance(interventionDetail.getAssistanceRequired());
                if (interventionDetail.getLengthOfTime() != null)
                    row.setColLengthTime(interventionDetail.getLengthOfTime());
                if (interventionDetail.getDetails() != null)
                    row.setColIntervention(interventionDetail.getDetails());
            }
        }
        form.btnUpdate().setVisible(true);
        form.btnUpdate().setEnabled(true);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInterventionGrid(InterventionChartHeaderVo header)
{
    ims.nursing.vo.InterventionChartVo intervention = domain.getInterventionRecord(header);
    if (intervention != null)
    {
        form.getLocalContext().setInterventionChartRecord(intervention);
        form.dteRecording().setValue(intervention.getAuthoringDateTime().getDate());
        form.timRecorded().setValue(intervention.getAuthoringDateTime().getTime());
        if (intervention.getAuthoringHCP() != null)
        {
            form.qmbAuthoringHcp().newRow(intervention.getAuthoringHCP(), intervention.getAuthoringHCP().toString());
            form.qmbAuthoringHcp().setValue(intervention.getAuthoringHCP());
        }
        InterventionChartDetailsVoCollection coll = intervention.getDetails();

        GenForm.grdInterventionsRow row = null;

        // inactive record handling
        for (int i = 0; i < coll.size(); i++)
        {
            ims.nursing.vo.InterventionChartDetailsVo interventionDetail = coll.get(i);

            if (interventionDetail != null)
            {
                row = form.grdInterventions().getRows().newRow();
                row.setValue(interventionDetail);
                if (interventionDetail.getTimeOfIntervention() != null)
                    row.setColTime(interventionDetail.getTimeOfIntervention());
                if (interventionDetail.getAssistanceRequired() != null)
                    row.setColAssistance(interventionDetail.getAssistanceRequired());
                if (interventionDetail.getLengthOfTime() != null)
                    row.setColLengthTime(interventionDetail.getLengthOfTime());
                if (interventionDetail.getDetails() != null)
                    row.setColIntervention(interventionDetail.getDetails());
            }
        }
        form.btnUpdate().setVisible(true);
        form.btnUpdate().setEnabled(true);
    }
}
项目: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;
}