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

项目:AvoinApotti    文件:Logic.java   
private void populateGrid()
{
    VitalSignMonitoringVoCollection coll = null;

    try
    {
        coll = domain.listVitalSignsMonitoringVo(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }

    form.grdDetails().getRows().clear();
    form.getLocalContext().setVitalSignsMonitoring(null);

    if (coll != null)
    {
        populateVitalSignsType(coll);
    }
    enableControls(false);
    form.btnUpdate().setVisible(form.grdDetails().getValue() != null);
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid()
{
    VitalSignMonitoringVoCollection coll = null;

    try
    {
        coll = domain.listVitalSignsMonitoringVo(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }

    form.grdDetails().getRows().clear();
    form.getLocalContext().setVitalSignsMonitoring(null);

    if (coll != null)
    {
        populateVitalSignsType(coll);
    }
    enableControls(false);
    form.btnUpdate().setVisible(form.grdDetails().getValue() != null);
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid()
{
    VitalSignMonitoringVoCollection coll = null;

    try
    {
        coll = domain.listVitalSignsMonitoringVo(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }

    form.grdDetails().getRows().clear();
    form.getLocalContext().setVitalSignsMonitoring(null);

    if (coll != null)
    {
        populateVitalSignsType(coll);
    }
    enableControls(false);
    form.btnUpdate().setVisible(form.grdDetails().getValue() != null);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid()
{
    VitalSignMonitoringVoCollection coll = null;

    try
    {
        coll = domain.listVitalSignsMonitoringVo(form.getGlobalContext().Core.getCurrentCareContext());
    }
    catch (DomainInterfaceException e)
    {
        e.printStackTrace();
    }

    form.grdDetails().getRows().clear();
    form.getLocalContext().setVitalSignsMonitoring(null);

    if (coll != null)
    {
        populateVitalSignsType(coll);
    }
    enableControls(false);
    form.btnUpdate().setVisible(form.grdDetails().getValue() != null);
}
项目: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    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVoCollection listVitalSignsMonitoringVo(CareContextRefVo voCareContextRef) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from VitalSignsMonitoring vsm ");

    if (voCareContextRef == null)
        return null; 

    hql.append(" where vsm.careContext.id = :cc"); 

    hql.append(" order by vsm.startDateTime desc");

    java.util.List vsmList = factory.find(hql.toString(), new String[]{"cc"}, new Object[]{voCareContextRef.getID_CareContext()});

    return  VitalSignMonitoringVoAssembler.createVitalSignMonitoringVoCollectionFromVitalSignsMonitoring(vsmList);
}
项目: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    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVoCollection listVitalSignsMonitoringVo(CareContextRefVo voCareContextRef) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from VitalSignsMonitoring vsm ");

    if (voCareContextRef == null)
        return null; 

    hql.append(" where vsm.careContext.id = :cc"); 

    hql.append(" order by vsm.startDateTime desc");

    java.util.List vsmList = factory.find(hql.toString(), new String[]{"cc"}, new Object[]{voCareContextRef.getID_CareContext()});

    return  VitalSignMonitoringVoAssembler.createVitalSignMonitoringVoCollectionFromVitalSignsMonitoring(vsmList);
}
项目: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    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVoCollection listVitalSignsMonitoringVo(CareContextRefVo voCareContextRef) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from VitalSignsMonitoring vsm ");

    if (voCareContextRef == null)
        return null; 

    hql.append(" where vsm.careContext.id = :cc"); 

    hql.append(" order by vsm.startDateTime desc");

    java.util.List vsmList = factory.find(hql.toString(), new String[]{"cc"}, new Object[]{voCareContextRef.getID_CareContext()});

    return  VitalSignMonitoringVoAssembler.createVitalSignMonitoringVoCollectionFromVitalSignsMonitoring(vsmList);
}
项目: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    文件:VitalSignsMonitoringImpl.java   
public VitalSignMonitoringVoCollection listVitalSignsMonitoringVo(CareContextRefVo voCareContextRef) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from VitalSignsMonitoring vsm ");

    if (voCareContextRef == null)
        return null; 

    hql.append(" where vsm.careContext.id = :cc"); 

    hql.append(" order by vsm.startDateTime desc");

    java.util.List vsmList = factory.find(hql.toString(), new String[]{"cc"}, new Object[]{voCareContextRef.getID_CareContext()});

    return  VitalSignMonitoringVoAssembler.createVitalSignMonitoringVoCollectionFromVitalSignsMonitoring(vsmList);
}