Java 类ims.core.vo.VitalSignItemFrequencyVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateVitalSigns(VitalSignMonitoringVo item, grdDetailsRow row)
{
    VitalSignItemFrequencyVo voVSItemFreq;

    if (item.getItemFrequency() != null && row != null)
    {
        for (int i = 0; i < item.getItemFrequency().size(); i++)
        {
            voVSItemFreq = item.getItemFrequency().get(i);
            row = form.grdDetails().getRows().newRow();
            if (voVSItemFreq.getVitalSignTypeIsNotNull())
                row.setColObservation(voVSItemFreq.getVitalSignType().getIItemText());
            if (voVSItemFreq.getFrequencyIsNotNull())
                row.setColFrequency(voVSItemFreq.getFrequency().getText());
            row.setSelectable(false);
            row.setValue(item);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateVitalSigns(VitalSignMonitoringVo item, grdDetailsRow row)
{
    VitalSignItemFrequencyVo voVSItemFreq;

    if (item.getItemFrequency() != null && row != null)
    {
        for (int i = 0; i < item.getItemFrequency().size(); i++)
        {
            voVSItemFreq = item.getItemFrequency().get(i);
            row = form.grdDetails().getRows().newRow();
            if (voVSItemFreq.getVitalSignTypeIsNotNull())
                row.setColObservation(voVSItemFreq.getVitalSignType().getIItemText());
            if (voVSItemFreq.getFrequencyIsNotNull())
                row.setColFrequency(voVSItemFreq.getFrequency().getText());
            row.setSelectable(false);
            row.setValue(item);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateVitalSigns(VitalSignMonitoringVo item, grdDetailsRow row)
{
    VitalSignItemFrequencyVo voVSItemFreq;

    if (item.getItemFrequency() != null && row != null)
    {
        for (int i = 0; i < item.getItemFrequency().size(); i++)
        {
            voVSItemFreq = item.getItemFrequency().get(i);
            row = form.grdDetails().getRows().newRow();
            if (voVSItemFreq.getVitalSignTypeIsNotNull())
                row.setColObservation(voVSItemFreq.getVitalSignType().getIItemText());
            if (voVSItemFreq.getFrequencyIsNotNull())
                row.setColFrequency(voVSItemFreq.getFrequency().getText());
            row.setSelectable(false);
            row.setValue(item);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateVitalSigns(VitalSignMonitoringVo item, grdDetailsRow row)
{
    VitalSignItemFrequencyVo voVSItemFreq;

    if (item.getItemFrequency() != null && row != null)
    {
        for (int i = 0; i < item.getItemFrequency().size(); i++)
        {
            voVSItemFreq = item.getItemFrequency().get(i);
            row = form.grdDetails().getRows().newRow();
            if (voVSItemFreq.getVitalSignTypeIsNotNull())
                row.setColObservation(voVSItemFreq.getVitalSignType().getIItemText());
            if (voVSItemFreq.getFrequencyIsNotNull())
                row.setColFrequency(voVSItemFreq.getFrequency().getText());
            row.setSelectable(false);
            row.setValue(item);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringVo value)
{

    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());

    if (value != null)
    {

        if (value.getDurationUnitIsNotNull())
            form.ctn().cmbDuration().setValue(value.getDurationUnit());
        if (value.getGroupFrequencyIsNotNull())
            form.ctn().cmbFrequency().setValue(value.getGroupFrequency());
        if (value.getVitalSignGroupIsNotNull())
        {
            if(form.ctn().cmbObservation().getValues().contains(value.getVitalSignGroup()))         //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            else
            {
                form.ctn().cmbObservation().newRow(value.getVitalSignGroup(),value.getVitalSignGroup().getGroupName()); //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            }
        }
        if (value.getAuthoringInformationIsNotNull())
            form.ctn().customControlAuthoringInfo().setValue(value.getAuthoringInformation());
        if (value.getStartDateTimeIsNotNull())
            form.ctn().dtimStart().setValue(value.getStartDateTime());
        if (value.getStoppedDateTimeIsNotNull())
            form.ctn().dtimStopped().setValue(value.getStoppedDateTime());
        if (value.getDurationValueIsNotNull())
            form.ctn().intDuration().setValue(value.getDurationValue());
        if (value.getRequestDetailsIsNotNull())
            form.ctn().txtDetails().setValue(value.getRequestDetails());
        if (value.getStoppedByIsNotNull())
        {
            form.ctn().qmbStopped().newRow(value.getStoppedBy(), value.getStoppedBy().toString());
            form.ctn().qmbStopped().setValue(value.getStoppedBy());
        }
        if (value.getRequestedByIsNotNull())
        {
            form.ctn().qmbRequested().newRow(value.getRequestedBy(), value.getRequestedBy().toString());
            form.ctn().qmbRequested().setValue(value.getRequestedBy());
        }
        if (value.getItemFrequencyIsNotNull())
        {
            VitalSignItemFrequencyVoCollection coll = value.getItemFrequency();
            coll.sort();
            VitalSignItemFrequencyVo item;
            if (coll != null)
            {
                form.ctn().grdVitals().getRows().clear();

                grdVitalsRow row;
                for (int i = 0; i < coll.size(); i++)
                {
                    item = coll.get(i);
                    row = form.ctn().grdVitals().getRows().newRow();

                    if (item.getVitalSignTypeIsNotNull())
                        row.setColVitalSign(item.getVitalSignType());
                    if (item.getFrequencyIsNotNull())
                        row.setColFrequency(item.getFrequency());

                    row.setValue(item);
                    row.setColSelect(true);
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringVo value)
{

    //form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());

    if (value != null)
    {

        if (value.getDurationUnitIsNotNull())
            form.ctn().cmbDuration().setValue(value.getDurationUnit());
        if (value.getGroupFrequencyIsNotNull())
            form.ctn().cmbFrequency().setValue(value.getGroupFrequency());
        if (value.getVitalSignGroupIsNotNull())
        {
            if(form.ctn().cmbObservation().getValues().contains(value.getVitalSignGroup()))         //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            else
            {
                form.ctn().cmbObservation().newRow(value.getVitalSignGroup(),value.getVitalSignGroup().getGroupName()); //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            }
        }
        if (value.getAuthoringInformationIsNotNull())
            form.ctn().customControlAuthoringInfo().setValue(value.getAuthoringInformation());
        if (value.getStartDateTimeIsNotNull())
            form.ctn().dtimStart().setValue(value.getStartDateTime());
        if (value.getStoppedDateTimeIsNotNull())
            form.ctn().dtimStopped().setValue(value.getStoppedDateTime());
        if (value.getDurationValueIsNotNull())
            form.ctn().intDuration().setValue(value.getDurationValue());
        if (value.getRequestDetailsIsNotNull())
            form.ctn().txtDetails().setValue(value.getRequestDetails());
        if (value.getStoppedByIsNotNull())
        {
            form.ctn().qmbStopped().newRow(value.getStoppedBy(), value.getStoppedBy().toString());
            form.ctn().qmbStopped().setValue(value.getStoppedBy());
        }
        if (value.getRequestedByIsNotNull())
        {
            form.ctn().qmbRequested().newRow(value.getRequestedBy(), value.getRequestedBy().toString());
            form.ctn().qmbRequested().setValue(value.getRequestedBy());
        }
        if (value.getItemFrequencyIsNotNull())
        {
            VitalSignItemFrequencyVoCollection coll = value.getItemFrequency();
            coll.sort();
            VitalSignItemFrequencyVo item;
            if (coll != null)
            {
                form.ctn().grdVitals().getRows().clear();

                grdVitalsRow row;
                for (int i = 0; i < coll.size(); i++)
                {
                    item = coll.get(i);
                    row = form.ctn().grdVitals().getRows().newRow();

                    if (item.getVitalSignTypeIsNotNull())
                        row.setColVitalSign(item.getVitalSignType());
                    if (item.getFrequencyIsNotNull())
                        row.setColFrequency(item.getFrequency());

                    row.setValue(item);
                    row.setColSelect(true);
                }
            }
        }
    }

    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
}
项目:openMAXIMS    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringVo value)
{

    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());

    if (value != null)
    {

        if (value.getDurationUnitIsNotNull())
            form.ctn().cmbDuration().setValue(value.getDurationUnit());
        if (value.getGroupFrequencyIsNotNull())
            form.ctn().cmbFrequency().setValue(value.getGroupFrequency());
        if (value.getVitalSignGroupIsNotNull())
        {
            if(form.ctn().cmbObservation().getValues().contains(value.getVitalSignGroup()))         //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            else
            {
                form.ctn().cmbObservation().newRow(value.getVitalSignGroup(),value.getVitalSignGroup().getGroupName()); //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            }
        }
        if (value.getAuthoringInformationIsNotNull())
            form.ctn().customControlAuthoringInfo().setValue(value.getAuthoringInformation());
        if (value.getStartDateTimeIsNotNull())
            form.ctn().dtimStart().setValue(value.getStartDateTime());
        if (value.getStoppedDateTimeIsNotNull())
            form.ctn().dtimStopped().setValue(value.getStoppedDateTime());
        if (value.getDurationValueIsNotNull())
            form.ctn().intDuration().setValue(value.getDurationValue());
        if (value.getRequestDetailsIsNotNull())
            form.ctn().txtDetails().setValue(value.getRequestDetails());
        if (value.getStoppedByIsNotNull())
        {
            form.ctn().qmbStopped().newRow(value.getStoppedBy(), value.getStoppedBy().toString());
            form.ctn().qmbStopped().setValue(value.getStoppedBy());
        }
        if (value.getRequestedByIsNotNull())
        {
            form.ctn().qmbRequested().newRow(value.getRequestedBy(), value.getRequestedBy().toString());
            form.ctn().qmbRequested().setValue(value.getRequestedBy());
        }
        if (value.getItemFrequencyIsNotNull())
        {
            VitalSignItemFrequencyVoCollection coll = value.getItemFrequency();
            coll.sort();
            VitalSignItemFrequencyVo item;
            if (coll != null)
            {
                form.ctn().grdVitals().getRows().clear();

                grdVitalsRow row;
                for (int i = 0; i < coll.size(); i++)
                {
                    item = coll.get(i);
                    row = form.ctn().grdVitals().getRows().newRow();

                    if (item.getVitalSignTypeIsNotNull())
                        row.setColVitalSign(item.getVitalSignType());
                    if (item.getFrequencyIsNotNull())
                        row.setColFrequency(item.getFrequency());

                    row.setValue(item);
                    row.setColSelect(true);
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringVo value)
{

    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());

    if (value != null)
    {

        if (value.getDurationUnitIsNotNull())
            form.ctn().cmbDuration().setValue(value.getDurationUnit());
        if (value.getGroupFrequencyIsNotNull())
            form.ctn().cmbFrequency().setValue(value.getGroupFrequency());
        if (value.getVitalSignGroupIsNotNull())
        {
            if(form.ctn().cmbObservation().getValues().contains(value.getVitalSignGroup()))         //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            else
            {
                form.ctn().cmbObservation().newRow(value.getVitalSignGroup(),value.getVitalSignGroup().getGroupName()); //wdev-12484
                form.ctn().cmbObservation().setValue(value.getVitalSignGroup());
            }
        }
        if (value.getAuthoringInformationIsNotNull())
            form.ctn().customControlAuthoringInfo().setValue(value.getAuthoringInformation());
        if (value.getStartDateTimeIsNotNull())
            form.ctn().dtimStart().setValue(value.getStartDateTime());
        if (value.getStoppedDateTimeIsNotNull())
            form.ctn().dtimStopped().setValue(value.getStoppedDateTime());
        if (value.getDurationValueIsNotNull())
            form.ctn().intDuration().setValue(value.getDurationValue());
        if (value.getRequestDetailsIsNotNull())
            form.ctn().txtDetails().setValue(value.getRequestDetails());
        if (value.getStoppedByIsNotNull())
        {
            form.ctn().qmbStopped().newRow(value.getStoppedBy(), value.getStoppedBy().toString());
            form.ctn().qmbStopped().setValue(value.getStoppedBy());
        }
        if (value.getRequestedByIsNotNull())
        {
            form.ctn().qmbRequested().newRow(value.getRequestedBy(), value.getRequestedBy().toString());
            form.ctn().qmbRequested().setValue(value.getRequestedBy());
        }
        if (value.getItemFrequencyIsNotNull())
        {
            VitalSignItemFrequencyVoCollection coll = value.getItemFrequency();
            coll.sort();
            VitalSignItemFrequencyVo item;
            if (coll != null)
            {
                form.ctn().grdVitals().getRows().clear();

                grdVitalsRow row;
                for (int i = 0; i < coll.size(); i++)
                {
                    item = coll.get(i);
                    row = form.ctn().grdVitals().getRows().newRow();

                    if (item.getVitalSignTypeIsNotNull())
                        row.setColVitalSign(item.getVitalSignType());
                    if (item.getFrequencyIsNotNull())
                        row.setColFrequency(item.getFrequency());

                    row.setValue(item);
                    row.setColSelect(true);
                }
            }
        }
    }
}