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

项目: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);
    }
}