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

项目:AvoinApotti    文件:Logic.java   
private void loadGroupings()
{
    VitalSignMonitoringGroupVoCollection coll = new VitalSignMonitoringGroupVoCollection();
    VitalSignMonitoringGroupVo item = null;

    try
    {
        coll = domain.listVitalSignsMonitoringGroups();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }
    if (coll != null)
    {
        form.ctn().cmbObservation().clear();
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);
            if(item.getIsActive() != null && item.getIsActive().equals(Boolean.TRUE))   //wdev-12484
                form.ctn().cmbObservation().newRow(item, item.getGroupName());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadGroupings()
{
    VitalSignMonitoringGroupVoCollection coll = new VitalSignMonitoringGroupVoCollection();
    VitalSignMonitoringGroupVo item = null;

    try
    {
        coll = domain.listVitalSignsMonitoringGroups();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }
    if (coll != null)
    {
        form.ctn().cmbObservation().clear();
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);
            if(item.getIsActive() != null && item.getIsActive().equals(Boolean.TRUE))   //wdev-12484
                form.ctn().cmbObservation().newRow(item, item.getGroupName());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadGroupings()
{
    VitalSignMonitoringGroupVoCollection coll = new VitalSignMonitoringGroupVoCollection();
    VitalSignMonitoringGroupVo item = null;

    try
    {
        coll = domain.listVitalSignsMonitoringGroups();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }
    if (coll != null)
    {
        form.ctn().cmbObservation().clear();
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);
            if(item.getIsActive() != null && item.getIsActive().equals(Boolean.TRUE))   //wdev-12484
                form.ctn().cmbObservation().newRow(item, item.getGroupName());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadGroupings()
{
    VitalSignMonitoringGroupVoCollection coll = new VitalSignMonitoringGroupVoCollection();
    VitalSignMonitoringGroupVo item = null;

    try
    {
        coll = domain.listVitalSignsMonitoringGroups();
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }
    if (coll != null)
    {
        form.ctn().cmbObservation().clear();
        for (int i = 0; i < coll.size(); i++)
        {
            item = coll.get(i);
            if(item.getIsActive() != null && item.getIsActive().equals(Boolean.TRUE))   //wdev-12484
                form.ctn().cmbObservation().newRow(item, item.getGroupName());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setViewInstanceDetails(VitalSignMonitoringGroupVo voVitalSignMonitoringGroup)
{
    clearInstanceControls();        
    if (voVitalSignMonitoringGroup == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        voVitalSignMonitoringGroup = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        voVitalSignMonitoringGroup = domain.getVitalSignMonitoringGroupVo(voVitalSignMonitoringGroup);
        form.getLocalContext().setVitalSignsGrouping(voVitalSignMonitoringGroup);
    }

    form.txtName().setValue(voVitalSignMonitoringGroup.getGroupName());         
    if (voVitalSignMonitoringGroup.getIsActive() != null)
        form.chkActive().setValue(voVitalSignMonitoringGroup.getIsActive().booleanValue());

    if (voVitalSignMonitoringGroup.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;

        for (int i = 0; i < voVitalSignMonitoringGroup.getVitalsSigns().size(); i++)
        {
            item = voVitalSignMonitoringGroup.getVitalsSigns().get(i);

            row = form.grdVSESelect().getRows().newRow();
            row.setColVSElement(item.getText());
            row.setValue(item);
            row.setColSelect(true);
        }
    }
    updateContextMenu();
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnUpdateClick() throws PresentationLogicException
{
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = null;
    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();

    setInstanceDetails(vitalSignMonitoringGroupVo);
    updateInstance();
}
项目:AvoinApotti    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsGrouping(new VitalSignMonitoringGroupVo());
    form.setMode(FormMode.EDIT);

    if (form.grdVSGroups().getRows().size() > 0)
        form.txtName().setValue(null);

    form.txtName().setFocus();
    form.txtName().setEnabled(true);
    form.chkActive().setValue(true);
    form.grdVSESelect().getRows().clear();
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:AvoinApotti    文件:VitalSignsGroupingsImpl.java   
/**
* Get the vitalSignMonitoringGroupVo
*/
public ims.core.vo.VitalSignMonitoringGroupVo getVitalSignMonitoringGroupVo(VitalSignMonitoringGroupRefVo vitalSignMonitoringGroupRefVo)
{
    if (vitalSignMonitoringGroupRefVo == null)
        return null;

    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup domVitalSignMonitoringGroup = (VitalSignMonitoringGroup)factory.getDomainObject(VitalSignMonitoringGroup.class,vitalSignMonitoringGroupRefVo.getID_VitalSignMonitoringGroup());
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = VitalSignMonitoringGroupVoAssembler.create(domVitalSignMonitoringGroup); 

    return vitalSignMonitoringGroupVo;
}
项目:AvoinApotti    文件:VitalSignsGroupingsImpl.java   
public ims.core.vo.VitalSignMonitoringGroupVo saveVitalSignMonitoringGroupVo(ims.core.vo.VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup bo = VitalSignMonitoringGroupVoAssembler.extractVitalSignMonitoringGroup(factory, vitalSignMonitoringGroupVo);

    factory.save(bo);

    return VitalSignMonitoringGroupVoAssembler.create(bo);
}
项目:openMAXIMS    文件:Logic.java   
private void setViewInstanceDetails(VitalSignMonitoringGroupVo voVitalSignMonitoringGroup)
{
    clearInstanceControls();        
    if (voVitalSignMonitoringGroup == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        voVitalSignMonitoringGroup = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        voVitalSignMonitoringGroup = domain.getVitalSignMonitoringGroupVo(voVitalSignMonitoringGroup);
        form.getLocalContext().setVitalSignsGrouping(voVitalSignMonitoringGroup);
    }

    form.txtName().setValue(voVitalSignMonitoringGroup.getGroupName());         
    if (voVitalSignMonitoringGroup.getIsActive() != null)
        form.chkActive().setValue(voVitalSignMonitoringGroup.getIsActive().booleanValue());

    if (voVitalSignMonitoringGroup.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;

        for (int i = 0; i < voVitalSignMonitoringGroup.getVitalsSigns().size(); i++)
        {
            item = voVitalSignMonitoringGroup.getVitalsSigns().get(i);

            row = form.grdVSESelect().getRows().newRow();
            row.setColVSElement(item.getText());
            row.setValue(item);
            row.setColSelect(true);
        }
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnUpdateClick() throws PresentationLogicException
{
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = null;
    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();

    setInstanceDetails(vitalSignMonitoringGroupVo);
    updateInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsGrouping(new VitalSignMonitoringGroupVo());
    form.setMode(FormMode.EDIT);

    if (form.grdVSGroups().getRows().size() > 0)
        form.txtName().setValue(null);

    form.txtName().setFocus();
    form.txtName().setEnabled(true);
    form.chkActive().setValue(true);
    form.grdVSESelect().getRows().clear();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:openMAXIMS    文件:VitalSignsGroupingsImpl.java   
/**
* Get the vitalSignMonitoringGroupVo
*/
public ims.core.vo.VitalSignMonitoringGroupVo getVitalSignMonitoringGroupVo(VitalSignMonitoringGroupRefVo vitalSignMonitoringGroupRefVo)
{
    if (vitalSignMonitoringGroupRefVo == null)
        return null;

    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup domVitalSignMonitoringGroup = (VitalSignMonitoringGroup)factory.getDomainObject(VitalSignMonitoringGroup.class,vitalSignMonitoringGroupRefVo.getID_VitalSignMonitoringGroup());
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = VitalSignMonitoringGroupVoAssembler.create(domVitalSignMonitoringGroup); 

    return vitalSignMonitoringGroupVo;
}
项目:openMAXIMS    文件:VitalSignsGroupingsImpl.java   
public ims.core.vo.VitalSignMonitoringGroupVo saveVitalSignMonitoringGroupVo(ims.core.vo.VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup bo = VitalSignMonitoringGroupVoAssembler.extractVitalSignMonitoringGroup(factory, vitalSignMonitoringGroupVo);

    factory.save(bo);

    return VitalSignMonitoringGroupVoAssembler.create(bo);
}
项目:openMAXIMS    文件:Logic.java   
private void setViewInstanceDetails(VitalSignMonitoringGroupVo voVitalSignMonitoringGroup)
{
    clearInstanceControls();        
    if (voVitalSignMonitoringGroup == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        voVitalSignMonitoringGroup = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        voVitalSignMonitoringGroup = domain.getVitalSignMonitoringGroupVo(voVitalSignMonitoringGroup);
        form.getLocalContext().setVitalSignsGrouping(voVitalSignMonitoringGroup);
    }

    form.txtName().setValue(voVitalSignMonitoringGroup.getGroupName());         
    if (voVitalSignMonitoringGroup.getIsActive() != null)
        form.chkActive().setValue(voVitalSignMonitoringGroup.getIsActive().booleanValue());

    if (voVitalSignMonitoringGroup.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;

        for (int i = 0; i < voVitalSignMonitoringGroup.getVitalsSigns().size(); i++)
        {
            item = voVitalSignMonitoringGroup.getVitalsSigns().get(i);

            row = form.grdVSESelect().getRows().newRow();
            row.setColVSElement(item.getText());
            row.setValue(item);
            row.setColSelect(true);
        }
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnUpdateClick() throws PresentationLogicException
{
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = null;
    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();

    setInstanceDetails(vitalSignMonitoringGroupVo);
    updateInstance();
}
项目:openMAXIMS    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsGrouping(new VitalSignMonitoringGroupVo());
    form.setMode(FormMode.EDIT);

    if (form.grdVSGroups().getRows().size() > 0)
        form.txtName().setValue(null);

    form.txtName().setFocus();
    form.txtName().setEnabled(true);
    form.chkActive().setValue(true);
    form.grdVSESelect().getRows().clear();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:openMAXIMS    文件:VitalSignsGroupingsImpl.java   
/**
* Get the vitalSignMonitoringGroupVo
*/
public ims.core.vo.VitalSignMonitoringGroupVo getVitalSignMonitoringGroupVo(VitalSignMonitoringGroupRefVo vitalSignMonitoringGroupRefVo)
{
    if (vitalSignMonitoringGroupRefVo == null)
        return null;

    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup domVitalSignMonitoringGroup = (VitalSignMonitoringGroup)factory.getDomainObject(VitalSignMonitoringGroup.class,vitalSignMonitoringGroupRefVo.getID_VitalSignMonitoringGroup());
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = VitalSignMonitoringGroupVoAssembler.create(domVitalSignMonitoringGroup); 

    return vitalSignMonitoringGroupVo;
}
项目:openMAXIMS    文件:VitalSignsGroupingsImpl.java   
public ims.core.vo.VitalSignMonitoringGroupVo saveVitalSignMonitoringGroupVo(ims.core.vo.VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup bo = VitalSignMonitoringGroupVoAssembler.extractVitalSignMonitoringGroup(factory, vitalSignMonitoringGroupVo);

    factory.save(bo);

    return VitalSignMonitoringGroupVoAssembler.create(bo);
}
项目:openmaxims-linux    文件:Logic.java   
private void setViewInstanceDetails(VitalSignMonitoringGroupVo voVitalSignMonitoringGroup)
{
    clearInstanceControls();        
    if (voVitalSignMonitoringGroup == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        voVitalSignMonitoringGroup = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        voVitalSignMonitoringGroup = domain.getVitalSignMonitoringGroupVo(voVitalSignMonitoringGroup);
        form.getLocalContext().setVitalSignsGrouping(voVitalSignMonitoringGroup);
    }

    form.txtName().setValue(voVitalSignMonitoringGroup.getGroupName());         
    if (voVitalSignMonitoringGroup.getIsActive() != null)
        form.chkActive().setValue(voVitalSignMonitoringGroup.getIsActive().booleanValue());

    if (voVitalSignMonitoringGroup.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;

        for (int i = 0; i < voVitalSignMonitoringGroup.getVitalsSigns().size(); i++)
        {
            item = voVitalSignMonitoringGroup.getVitalsSigns().get(i);

            row = form.grdVSESelect().getRows().newRow();
            row.setColVSElement(item.getText());
            row.setValue(item);
            row.setColSelect(true);
        }
    }
    updateContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnUpdateClick() throws PresentationLogicException
{
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = null;
    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();

    setInstanceDetails(vitalSignMonitoringGroupVo);
    updateInstance();
}
项目:openmaxims-linux    文件:Logic.java   
private void newInstance()
{
    form.getLocalContext().setVitalSignsGrouping(new VitalSignMonitoringGroupVo());
    form.setMode(FormMode.EDIT);

    if (form.grdVSGroups().getRows().size() > 0)
        form.txtName().setValue(null);

    form.txtName().setFocus();
    form.txtName().setEnabled(true);
    form.chkActive().setValue(true);
    form.grdVSESelect().getRows().clear();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onCmbObservationValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setVitalSignMonitoringGroup(form.ctn().cmbObservation().getValue());
    form.ctn().cmbFrequency().setValue(null);
    form.ctn().grdVitals().setReadOnly(false);
    VitalSignMonitoringGroupVo item = form.ctn().cmbObservation().getValue();

    if (item != null)
    {
        if (item.getVitalsSigns() != null)
        {
            form.ctn().grdVitals().getRows().clear();

            VSType lkpItem;
            grdVitalsRow row;
            for (int i = 0; i < item.getVitalsSigns().size(); i++)
            {
                lkpItem = item.getVitalsSigns().get(i);

                row = form.ctn().grdVitals().getRows().newRow();
                row.setColVitalSign(lkpItem);
                row.setColSelect(true);
                row.setValue(null);
            }
        }
    }
    else
    {
        form.ctn().grdVitals().getRows().clear(); //WDEV-15302
    }
}
项目:openmaxims-linux    文件:VitalSignsGroupingsImpl.java   
/**
* Get the vitalSignMonitoringGroupVo
*/
public ims.core.vo.VitalSignMonitoringGroupVo getVitalSignMonitoringGroupVo(VitalSignMonitoringGroupRefVo vitalSignMonitoringGroupRefVo)
{
    if (vitalSignMonitoringGroupRefVo == null)
        return null;

    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup domVitalSignMonitoringGroup = (VitalSignMonitoringGroup)factory.getDomainObject(VitalSignMonitoringGroup.class,vitalSignMonitoringGroupRefVo.getID_VitalSignMonitoringGroup());
    VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo = VitalSignMonitoringGroupVoAssembler.create(domVitalSignMonitoringGroup); 

    return vitalSignMonitoringGroupVo;
}
项目:openmaxims-linux    文件:VitalSignsGroupingsImpl.java   
public ims.core.vo.VitalSignMonitoringGroupVo saveVitalSignMonitoringGroupVo(ims.core.vo.VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    DomainFactory factory = getDomainFactory();
    VitalSignMonitoringGroup bo = VitalSignMonitoringGroupVoAssembler.extractVitalSignMonitoringGroup(factory, vitalSignMonitoringGroupVo);

    factory.save(bo);

    return VitalSignMonitoringGroupVoAssembler.create(bo);
}
项目:AvoinApotti    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo)
{
    clearInstanceControls();        
    if (vitalSignMonitoringGroupVo == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        vitalSignMonitoringGroupVo = domain.getVitalSignMonitoringGroupVo(vitalSignMonitoringGroupVo);
        form.getLocalContext().setVitalSignsGrouping(vitalSignMonitoringGroupVo);
    }

    form.txtName().setValue(vitalSignMonitoringGroupVo.getGroupName());         
    if (vitalSignMonitoringGroupVo.getIsActive() != null)
        form.chkActive().setValue(vitalSignMonitoringGroupVo.getIsActive().booleanValue());

    if (vitalSignMonitoringGroupVo.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;
        VSTypeCollection coll = loadLookups();
        if (coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
            {
                item = coll.get(i);

                row = form.grdVSESelect().getRows().newRow();
                row.setColVSElement(item.getText());
                row.setValue(item);

                for (int z = 0; z < vitalSignMonitoringGroupVo.getVitalsSigns().size(); z++)
                {
                    if (item.getID() == vitalSignMonitoringGroupVo.getVitalsSigns().get(z).getID())
                    {
                        row.setColSelect(true);
                        break;
                    }
                }
            }
        }
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo)
{
    clearInstanceControls();        
    if (vitalSignMonitoringGroupVo == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        vitalSignMonitoringGroupVo = domain.getVitalSignMonitoringGroupVo(vitalSignMonitoringGroupVo);
        form.getLocalContext().setVitalSignsGrouping(vitalSignMonitoringGroupVo);
    }

    form.txtName().setValue(vitalSignMonitoringGroupVo.getGroupName());         
    if (vitalSignMonitoringGroupVo.getIsActive() != null)
        form.chkActive().setValue(vitalSignMonitoringGroupVo.getIsActive().booleanValue());

    if (vitalSignMonitoringGroupVo.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;
        VSTypeCollection coll = loadLookups();
        if (coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
            {
                item = coll.get(i);

                row = form.grdVSESelect().getRows().newRow();
                row.setColVSElement(item.getText());
                row.setValue(item);

                for (int z = 0; z < vitalSignMonitoringGroupVo.getVitalsSigns().size(); z++)
                {
                    if (item.getID() == vitalSignMonitoringGroupVo.getVitalsSigns().get(z).getID())
                    {
                        row.setColSelect(true);
                        break;
                    }
                }
            }
        }
    }
    updateContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo)
{
    clearInstanceControls();        
    if (vitalSignMonitoringGroupVo == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        vitalSignMonitoringGroupVo = domain.getVitalSignMonitoringGroupVo(vitalSignMonitoringGroupVo);
        form.getLocalContext().setVitalSignsGrouping(vitalSignMonitoringGroupVo);
    }

    form.txtName().setValue(vitalSignMonitoringGroupVo.getGroupName());         
    if (vitalSignMonitoringGroupVo.getIsActive() != null)
        form.chkActive().setValue(vitalSignMonitoringGroupVo.getIsActive().booleanValue());

    if (vitalSignMonitoringGroupVo.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;
        VSTypeCollection coll = loadLookups();
        if (coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
            {
                item = coll.get(i);

                row = form.grdVSESelect().getRows().newRow();
                row.setColVSElement(item.getText());
                row.setValue(item);

                for (int z = 0; z < vitalSignMonitoringGroupVo.getVitalsSigns().size(); z++)
                {
                    if (item.getID() == vitalSignMonitoringGroupVo.getVitalsSigns().get(z).getID())
                    {
                        row.setColSelect(true);
                        break;
                    }
                }
            }
        }
    }
    updateContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
private void setInstanceDetails(VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo)
{
    clearInstanceControls();        
    if (vitalSignMonitoringGroupVo == null)
        return;     

    if (form.getLocalContext().getVitalSignsGrouping() != null)
        vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping();
    else
    {
        vitalSignMonitoringGroupVo = domain.getVitalSignMonitoringGroupVo(vitalSignMonitoringGroupVo);
        form.getLocalContext().setVitalSignsGrouping(vitalSignMonitoringGroupVo);
    }

    form.txtName().setValue(vitalSignMonitoringGroupVo.getGroupName());         
    if (vitalSignMonitoringGroupVo.getIsActive() != null)
        form.chkActive().setValue(vitalSignMonitoringGroupVo.getIsActive().booleanValue());

    if (vitalSignMonitoringGroupVo.getVitalsSigns() != null)
    {
        grdVSESelectRow row;
        VSType item;
        VSTypeCollection coll = loadLookups();
        if (coll != null)
        {
            for (int i = 0; i < coll.size(); i++)
            {
                item = coll.get(i);

                row = form.grdVSESelect().getRows().newRow();
                row.setColVSElement(item.getText());
                row.setValue(item);

                for (int z = 0; z < vitalSignMonitoringGroupVo.getVitalsSigns().size(); z++)
                {
                    if (item.getID() == vitalSignMonitoringGroupVo.getVitalsSigns().get(z).getID())
                    {
                        row.setColSelect(true);
                        break;
                    }
                }
            }
        }
    }
    updateContextMenu();
}