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

项目: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 newInstance()
{
    form.getLocalContext().setVitalSignsMonitoring(new VitalSignMonitoringVo());
    form.getLocalContext().setVitalSignMonitoringGroup(null);
    clearInstanceControls();
    form.setMode(FormMode.EDIT);
    loadGroupings();    //wdev-12484
    setDefaultValues();
    enableControls(true);

}
项目:AvoinApotti    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVo saveVitalSignsMonitoringVo(VitalSignMonitoringVo voVitalSignsMonitoring) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();
    VitalSignsMonitoring bo = VitalSignMonitoringVoAssembler.extractVitalSignsMonitoring(factory, voVitalSignsMonitoring);

    factory.save(bo);

    return VitalSignMonitoringVoAssembler.create(bo);
}
项目:openMAXIMS    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsMonitoring(new VitalSignMonitoringVo());
    form.getLocalContext().setVitalSignMonitoringGroup(null);
    clearInstanceControls();
    form.setMode(FormMode.EDIT);
    loadGroupings();    //wdev-12484
    setDefaultValues();
    enableControls(true);

}
项目:openMAXIMS    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVo saveVitalSignsMonitoringVo(VitalSignMonitoringVo voVitalSignsMonitoring) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();
    VitalSignsMonitoring bo = VitalSignMonitoringVoAssembler.extractVitalSignsMonitoring(factory, voVitalSignsMonitoring);

    factory.save(bo);

    return VitalSignMonitoringVoAssembler.create(bo);
}
项目:openMAXIMS    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsMonitoring(new VitalSignMonitoringVo());
    form.getLocalContext().setVitalSignMonitoringGroup(null);
    clearInstanceControls();
    form.setMode(FormMode.EDIT);
    loadGroupings();    //wdev-12484
    setDefaultValues();
    enableControls(true);

}
项目:openMAXIMS    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVo saveVitalSignsMonitoringVo(VitalSignMonitoringVo voVitalSignsMonitoring) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();
    VitalSignsMonitoring bo = VitalSignMonitoringVoAssembler.extractVitalSignsMonitoring(factory, voVitalSignsMonitoring);

    factory.save(bo);

    return VitalSignMonitoringVoAssembler.create(bo);
}
项目:openmaxims-linux    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsMonitoring(new VitalSignMonitoringVo());
    form.getLocalContext().setVitalSignMonitoringGroup(null);
    clearInstanceControls();
    form.setMode(FormMode.EDIT);
    loadGroupings();    //wdev-12484
    setDefaultValues();
    enableControls(true);

}
项目:openmaxims-linux    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVo saveVitalSignsMonitoringVo(VitalSignMonitoringVo voVitalSignsMonitoring) throws StaleObjectException 
{
    DomainFactory factory = getDomainFactory();
    VitalSignsMonitoring bo = VitalSignMonitoringVoAssembler.extractVitalSignsMonitoring(factory, voVitalSignsMonitoring);

    factory.save(bo);

    return VitalSignMonitoringVoAssembler.create(bo);
}
项目:AvoinApotti    文件:Logic.java   
private void populateVitalSignsType(VitalSignMonitoringVoCollection coll)
{
    VitalSignMonitoringVo item = null;

    boolean bAll = false;
    if (form.Group1().getValue().equals(GenForm.Group1Enumeration.rdoAll))
        bAll = true;

    if (coll != null)
    {
        grdDetailsRow row = null;
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);

            if (!bAll)
                if (item.getStoppedDateTimeIsNotNull())
                    continue;

            row = form.grdDetails().getRows().newRow();

            if (item.getVitalSignGroupIsNotNull())
                row.setColObservation(item.getVitalSignGroup().getGroupName());
            row.setColDetails(item.getRequestDetails());
            if (item.getGroupFrequencyIsNotNull())
                row.setColFrequency(item.getGroupFrequency().getText());
            if (item.getStartDateTimeIsNotNull())
                row.setColStartDateTime(item.getStartDateTime().toString());
            row.setColDuration(item.getDurationValue().toString() + " " + item.getDurationUnit().getText());
            row.setValue(item);

            row.setExpanded(true);
            row.setBold(true);
            row.setBackColor(Color.Bisque);

            if (item.getItemFrequencyIsNotNull())
                populateVitalSigns(item, row);

        }
    }
}
项目: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 populateVitalSignsType(VitalSignMonitoringVoCollection coll)
{
    VitalSignMonitoringVo item = null;

    boolean bAll = false;
    if (form.Group1().getValue().equals(GenForm.Group1Enumeration.rdoAll))
        bAll = true;

    if (coll != null)
    {
        grdDetailsRow row = null;
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);

            if (!bAll)
                if (item.getStoppedDateTimeIsNotNull())
                    continue;

            row = form.grdDetails().getRows().newRow();

            if (item.getVitalSignGroupIsNotNull())
                row.setColObservation(item.getVitalSignGroup().getGroupName());
            row.setColDetails(item.getRequestDetails());
            if (item.getGroupFrequencyIsNotNull())
                row.setColFrequency(item.getGroupFrequency().getText());
            if (item.getStartDateTimeIsNotNull())
                row.setColStartDateTime(item.getStartDateTime().toString());
            row.setColDuration(item.getDurationValue().toString() + " " + item.getDurationUnit().getText());
            row.setValue(item);

            row.setExpanded(true);
            row.setBold(true);
            row.setBackColor(Color.Bisque);

            if (item.getItemFrequencyIsNotNull())
                populateVitalSigns(item, row);

        }
    }
}
项目: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 populateVitalSignsType(VitalSignMonitoringVoCollection coll)
{
    VitalSignMonitoringVo item = null;

    boolean bAll = false;
    if (form.Group1().getValue().equals(GenForm.Group1Enumeration.rdoAll))
        bAll = true;

    if (coll != null)
    {
        grdDetailsRow row = null;
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);

            if (!bAll)
                if (item.getStoppedDateTimeIsNotNull())
                    continue;

            row = form.grdDetails().getRows().newRow();

            if (item.getVitalSignGroupIsNotNull())
                row.setColObservation(item.getVitalSignGroup().getGroupName());
            row.setColDetails(item.getRequestDetails());
            if (item.getGroupFrequencyIsNotNull())
                row.setColFrequency(item.getGroupFrequency().getText());
            if (item.getStartDateTimeIsNotNull())
                row.setColStartDateTime(item.getStartDateTime().toString());
            row.setColDuration(item.getDurationValue().toString() + " " + item.getDurationUnit().getText());
            row.setValue(item);

            row.setExpanded(true);
            row.setBold(true);
            row.setBackColor(Color.Bisque);

            if (item.getItemFrequencyIsNotNull())
                populateVitalSigns(item, row);

        }
    }
}
项目: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 populateVitalSignsType(VitalSignMonitoringVoCollection coll)
{
    VitalSignMonitoringVo item = null;

    boolean bAll = false;
    if (form.Group1().getValue().equals(GenForm.Group1Enumeration.rdoAll))
        bAll = true;

    if (coll != null)
    {
        grdDetailsRow row = null;
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);

            if (!bAll)
                if (item.getStoppedDateTimeIsNotNull())
                    continue;

            row = form.grdDetails().getRows().newRow();

            if (item.getVitalSignGroupIsNotNull())
                row.setColObservation(item.getVitalSignGroup().getGroupName());
            row.setColDetails(item.getRequestDetails());
            if (item.getGroupFrequencyIsNotNull())
                row.setColFrequency(item.getGroupFrequency().getText());
            if (item.getStartDateTimeIsNotNull())
                row.setColStartDateTime(item.getStartDateTime().toString());
            row.setColDuration(item.getDurationValue().toString() + " " + item.getDurationUnit().getText());
            row.setValue(item);

            row.setExpanded(true);
            row.setBold(true);
            row.setBackColor(Color.Bisque);

            if (item.getItemFrequencyIsNotNull())
                populateVitalSigns(item, row);

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