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

项目:AvoinApotti    文件:Logic.java   
protected void onRadioButtongroupFilterValueChanged() throws PresentationLogicException
{
    // List the Observation Forms based on the filter selected
    ObservationFormCollection voFormsCommencedColl;

    ObservationForm voObserForm = new ObservationForm();
    voObserForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    if (form.groupFilter().getValue().equals(GenForm.groupFilterEnumeration.rdoActive))
        voObserForm.setIsStopped(Boolean.FALSE);
    else
        voObserForm.setIsStopped(null);

    voFormsCommencedColl = domain.listFormsCommencement(voObserForm);

    populateGrid(voFormsCommencedColl);
}
项目:openMAXIMS    文件:Logic.java   
protected void onRadioButtongroupFilterValueChanged() throws PresentationLogicException
{
    // List the Observation Forms based on the filter selected
    ObservationFormCollection voFormsCommencedColl;

    ObservationForm voObserForm = new ObservationForm();
    voObserForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    if (form.groupFilter().getValue().equals(groupFilterEnumeration.rdoActive))
        voObserForm.setIsStopped(Boolean.FALSE);
    else
        voObserForm.setIsStopped(null);

    form.getGlobalContext().Nursing.setObservationFormsSearchCriteria(voObserForm);
    voFormsCommencedColl = domain.listFormsCommencement(voObserForm);

    populateGrid(voFormsCommencedColl);
}
项目:openMAXIMS    文件:Logic.java   
protected void onRadioButtongroupFilterValueChanged() throws PresentationLogicException
{
    // List the Observation Forms based on the filter selected
    ObservationFormCollection voFormsCommencedColl;

    ObservationForm voObserForm = new ObservationForm();
    voObserForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    if (form.groupFilter().getValue().equals(GenForm.groupFilterEnumeration.rdoActive))
        voObserForm.setIsStopped(Boolean.FALSE);
    else
        voObserForm.setIsStopped(null);

    voFormsCommencedColl = domain.listFormsCommencement(voObserForm);

    populateGrid(voFormsCommencedColl);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onRadioButtongroupFilterValueChanged() throws PresentationLogicException
{
    // List the Observation Forms based on the filter selected
    ObservationFormCollection voFormsCommencedColl;

    ObservationForm voObserForm = new ObservationForm();
    voObserForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    if (form.groupFilter().getValue().equals(GenForm.groupFilterEnumeration.rdoActive))
        voObserForm.setIsStopped(Boolean.FALSE);
    else
        voObserForm.setIsStopped(null);

    voFormsCommencedColl = domain.listFormsCommencement(voObserForm);

    populateGrid(voFormsCommencedColl);
}
项目:AvoinApotti    文件:Logic.java   
private void doSort(SortOrder sortOrder,String sortByField) throws PresentationLogicException
{
    ObservationFormCollection values = form.gridForms().getValues();
    values.sort(new CustomFieldObservationFormComparator(sortOrder,sortByField));
    ObservationForm selectionSave = form.gridForms().getValue();
    populateGrid(values);
    form.gridForms().setValue(selectionSave);
    if (selectionSave != null)
    {
        form.gridForms().setValue(selectionSave);
        onGridFormsSelectionChanged();
    }
}
项目:AvoinApotti    文件:ObservationFormsImpl.java   
/**
 * List Forms Commencement
 */
public ObservationFormCollection listFormsCommencement(ObservationForm voObservationForm)
{
    ObservationFormCollection voCollObservationForm = new ObservationFormCollection();
    if (voCollObservationForm == null)
        return voCollObservationForm;

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ObservationForm t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voObservationForm.getCareContextIsNotNull())
    {
        hql.append(andStr + " t.careContext.id = :cc");
        markers.add("cc");
        values.add(voObservationForm.getCareContext().getID_CareContext());
        andStr = " and ";

        if (voObservationForm.getIsStoppedIsNotNull())
        {
            hql.append(andStr + " t.isStopped = :stopped");
            markers.add("stopped");
            values.add(voObservationForm.getIsStopped());
            andStr = " and ";
        }
    }

    if (andStr.equals(" and "))
        query += " where ";

    query += hql.toString();
    List procs = factory.find(query, markers, values);
    return ObservationFormAssembler.createObservationFormCollectionFromObservationForm(procs).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:Logic.java   
private void doSort(SortOrder sortOrder,String sortByField) throws PresentationLogicException
{
    ObservationFormCollection values = form.gridForms().getValues();
    values.sort(new CustomFieldObservationFormComparator(sortOrder,sortByField));
    ObservationForm selectionSave = form.gridForms().getValue();
    populateGrid(values);
    form.gridForms().setValue(selectionSave);
    if (selectionSave != null)
    {
        form.gridForms().setValue(selectionSave);
        onGridFormsSelectionChanged();
    }
}
项目:openMAXIMS    文件:ObservationFormsImpl.java   
/**
 * List Forms Commencement
 */
public ObservationFormCollection listFormsCommencement(ObservationForm voObservationForm)
{
    ObservationFormCollection voCollObservationForm = new ObservationFormCollection();
    if (voCollObservationForm == null)
        return voCollObservationForm;

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ObservationForm t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voObservationForm.getCareContextIsNotNull())
    {
        hql.append(andStr + " t.careContext.id = :cc");
        markers.add("cc");
        values.add(voObservationForm.getCareContext().getID_CareContext());
        andStr = " and ";

        if (voObservationForm.getIsStoppedIsNotNull())
        {
            hql.append(andStr + " t.isStopped = :stopped");
            markers.add("stopped");
            values.add(voObservationForm.getIsStopped());
            andStr = " and ";
        }
    }

    if (andStr.equals(" and "))
        query += " where ";

    query += hql.toString();
    List procs = factory.find(query, markers, values);
    return ObservationFormAssembler.createObservationFormCollectionFromObservationForm(procs).sort(SortOrder.DESCENDING);
}
项目:openMAXIMS    文件:Logic.java   
private void doSort(SortOrder sortOrder,String sortByField) throws PresentationLogicException
{
    ObservationFormCollection values = form.gridForms().getValues();
    values.sort(new CustomFieldObservationFormComparator(sortOrder,sortByField));
    ObservationForm selectionSave = form.gridForms().getValue();
    populateGrid(values);
    form.gridForms().setValue(selectionSave);
    if (selectionSave != null)
    {
        form.gridForms().setValue(selectionSave);
        onGridFormsSelectionChanged();
    }
}
项目:openMAXIMS    文件:ObservationFormsImpl.java   
/**
 * List Forms Commencement
 */
public ObservationFormCollection listFormsCommencement(ObservationForm voObservationForm)
{
    ObservationFormCollection voCollObservationForm = new ObservationFormCollection();
    if (voCollObservationForm == null)
        return voCollObservationForm;

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ObservationForm t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voObservationForm.getCareContextIsNotNull())
    {
        hql.append(andStr + " t.careContext.id = :cc");
        markers.add("cc");
        values.add(voObservationForm.getCareContext().getID_CareContext());
        andStr = " and ";

        if (voObservationForm.getIsStoppedIsNotNull())
        {
            hql.append(andStr + " t.isStopped = :stopped");
            markers.add("stopped");
            values.add(voObservationForm.getIsStopped());
            andStr = " and ";
        }
    }

    if (andStr.equals(" and "))
        query += " where ";

    query += hql.toString();
    List procs = factory.find(query, markers, values);
    return ObservationFormAssembler.createObservationFormCollectionFromObservationForm(procs).sort(SortOrder.DESCENDING);
}
项目:openmaxims-linux    文件:Logic.java   
private void doSort(SortOrder sortOrder,String sortByField) throws PresentationLogicException
{
    ObservationFormCollection values = form.gridForms().getValues();
    values.sort(new CustomFieldObservationFormComparator(sortOrder,sortByField));
    ObservationForm selectionSave = form.gridForms().getValue();
    populateGrid(values);
    form.gridForms().setValue(selectionSave);
    if (selectionSave != null)
    {
        form.gridForms().setValue(selectionSave);
        onGridFormsSelectionChanged();
    }
}
项目:openmaxims-linux    文件:ObservationFormsImpl.java   
/**
 * List Forms Commencement
 */
public ObservationFormCollection listFormsCommencement(ObservationForm voObservationForm)
{
    ObservationFormCollection voCollObservationForm = new ObservationFormCollection();
    if (voCollObservationForm == null)
        return voCollObservationForm;

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ObservationForm t ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (voObservationForm.getCareContextIsNotNull())
    {
        hql.append(andStr + " t.careContext.id = :cc");
        markers.add("cc");
        values.add(voObservationForm.getCareContext().getID_CareContext());
        andStr = " and ";

        if (voObservationForm.getIsStoppedIsNotNull())
        {
            hql.append(andStr + " t.isStopped = :stopped");
            markers.add("stopped");
            values.add(voObservationForm.getIsStopped());
            andStr = " and ";
        }
    }

    if (andStr.equals(" and "))
        query += " where ";

    query += hql.toString();
    List procs = factory.find(query, markers, values);
    return ObservationFormAssembler.createObservationFormCollectionFromObservationForm(procs).sort(SortOrder.DESCENDING);
}
项目:AvoinApotti    文件:Logic.java   
private void populateGrid(ObservationFormCollection voObserFormColl)
{
    form.bUpdate().setEnabled(false);

    form.gridForms().getRows().clear();
    form.gridForms().setValue(null);

    if (voObserFormColl != null)
    {
        form.gridForms().getRows().clear();

        //for RIE - WDEV-7160 
        form.getLocalContext().setSelectedRecord(null);

        // Fill in the grid if there is any data
        GenForm.gridFormsRow row;
        for (int i = 0; i < voObserFormColl.size(); i++)
        {
            row = form.gridForms().getRows().newRow();

            ObservationForm observation = voObserFormColl.get(i);


            row.setValue(observation);

            row.setColDetails(observation.getDetails());
            row.setTooltipForColDetails(observation.getDetails());

            if (observation.getFormType() != null)
            {
                row.setColFormsCommenced(observation.getFormType().toString());
                row.setTooltipForColFormsCommenced(observation.getFormType().toString());
            }

            if (observation.getHCPStart() != null)
            {
                row.setColStartBy(observation.getHCPStart().getName().toString());
                row.setTooltipForColStartBy(observation.getHCPStart().getName().toString());
            }

            if (observation.getDateTimeStart() != null)
                row.setColStartDate(observation.getDateTimeStart().toString());

            if (observation.getDateTimeStop() != null)
                row.setColStopDate(observation.getDateTimeStop().toString());

            if (observation.getHCPStop() != null)
            {
                row.setColCompleteBy(observation.getHCPStop().getName().toString());
                row.setTooltipForColCompleteBy(observation.getHCPStop().getName().toString());
            }

            if (!observation.getIsStopped().booleanValue())
                row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            else
                row.setColIsActive(form.getImages().Core.AnswerBox_No);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(ObservationFormCollection voObserFormColl)
{
    form.bUpdate().setEnabled(false);

    form.gridForms().getRows().clear();
    form.gridForms().setValue(null);

    if (voObserFormColl != null)
    {
        form.gridForms().getRows().clear();

        //for RIE - WDEV-7160 
        form.getLocalContext().setSelectedRecord(null);

        // Fill in the grid if there is any data
        GenForm.gridFormsRow row;
        for (int i = 0; i < voObserFormColl.size(); i++)
        {
            row = form.gridForms().getRows().newRow();

            ObservationForm observation = voObserFormColl.get(i);


            row.setValue(observation);

            row.setColDetails(observation.getDetails());
            row.setTooltipForColDetails(observation.getDetails());

            if (observation.getFormType() != null)
            {
                row.setColFormsCommenced(observation.getFormType().toString());
                row.setTooltipForColFormsCommenced(observation.getFormType().toString());
            }

            if (observation.getHCPStart() != null)
            {
                row.setColStartBy(observation.getHCPStart().getName().toString());
                row.setTooltipForColStartBy(observation.getHCPStart().getName().toString());
            }

            if (observation.getDateTimeStart() != null)
                row.setColStartDate(observation.getDateTimeStart().toString());

            if (observation.getDateTimeStop() != null)
                row.setColStopDate(observation.getDateTimeStop().toString());

            if (observation.getHCPStop() != null)
            {
                row.setColCompleteBy(observation.getHCPStop().getName().toString());
                row.setTooltipForColCompleteBy(observation.getHCPStop().getName().toString());
            }

            if (!observation.getIsStopped().booleanValue())
                row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            else
                row.setColIsActive(form.getImages().Core.AnswerBox_No);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(ObservationFormCollection voObserFormColl)
{
    form.bUpdate().setEnabled(false);

    form.gridForms().getRows().clear();
    form.gridForms().setValue(null);

    if (voObserFormColl != null)
    {
        form.gridForms().getRows().clear();

        //for RIE - WDEV-7160 
        form.getLocalContext().setSelectedRecord(null);

        // Fill in the grid if there is any data
        GenForm.gridFormsRow row;
        for (int i = 0; i < voObserFormColl.size(); i++)
        {
            row = form.gridForms().getRows().newRow();

            ObservationForm observation = voObserFormColl.get(i);


            row.setValue(observation);

            row.setColDetails(observation.getDetails());
            row.setTooltipForColDetails(observation.getDetails());

            if (observation.getFormType() != null)
            {
                row.setColFormsCommenced(observation.getFormType().toString());
                row.setTooltipForColFormsCommenced(observation.getFormType().toString());
            }

            if (observation.getHCPStart() != null)
            {
                row.setColStartBy(observation.getHCPStart().getName().toString());
                row.setTooltipForColStartBy(observation.getHCPStart().getName().toString());
            }

            if (observation.getDateTimeStart() != null)
                row.setColStartDate(observation.getDateTimeStart().toString());

            if (observation.getDateTimeStop() != null)
                row.setColStopDate(observation.getDateTimeStop().toString());

            if (observation.getHCPStop() != null)
            {
                row.setColCompleteBy(observation.getHCPStop().getName().toString());
                row.setTooltipForColCompleteBy(observation.getHCPStop().getName().toString());
            }

            if (!observation.getIsStopped().booleanValue())
                row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            else
                row.setColIsActive(form.getImages().Core.AnswerBox_No);

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid(ObservationFormCollection voObserFormColl)
{
    form.bUpdate().setEnabled(false);

    form.gridForms().getRows().clear();
    form.gridForms().setValue(null);

    if (voObserFormColl != null)
    {
        form.gridForms().getRows().clear();

        //for RIE - WDEV-7160 
        form.getLocalContext().setSelectedRecord(null);

        // Fill in the grid if there is any data
        GenForm.gridFormsRow row;
        for (int i = 0; i < voObserFormColl.size(); i++)
        {
            row = form.gridForms().getRows().newRow();

            ObservationForm observation = voObserFormColl.get(i);


            row.setValue(observation);

            row.setColDetails(observation.getDetails());
            row.setTooltipForColDetails(observation.getDetails());

            if (observation.getFormType() != null)
            {
                row.setColFormsCommenced(observation.getFormType().toString());
                row.setTooltipForColFormsCommenced(observation.getFormType().toString());
            }

            if (observation.getHCPStart() != null)
            {
                row.setColStartBy(observation.getHCPStart().getName().toString());
                row.setTooltipForColStartBy(observation.getHCPStart().getName().toString());
            }

            if (observation.getDateTimeStart() != null)
                row.setColStartDate(observation.getDateTimeStart().toString());

            if (observation.getDateTimeStop() != null)
                row.setColStopDate(observation.getDateTimeStop().toString());

            if (observation.getHCPStop() != null)
            {
                row.setColCompleteBy(observation.getHCPStop().getName().toString());
                row.setTooltipForColCompleteBy(observation.getHCPStop().getName().toString());
            }

            if (!observation.getIsStopped().booleanValue())
                row.setColIsActive(form.getImages().Core.AnswerBox_Yes);
            else
                row.setColIsActive(form.getImages().Core.AnswerBox_No);

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    form.groupFilter().setValue(GenForm.groupFilterEnumeration.rdoActive);

    ObservationFormCollection voCollFormsCommenced;

    ObservationForm voObservationForm = new ObservationForm();
    voObservationForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voObservationForm.setIsStopped(Boolean.FALSE);

    voCollFormsCommenced = domain.listFormsCommencement(voObservationForm);


    populateGrid(voCollFormsCommenced);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    form.groupFilter().setValue(GenForm.groupFilterEnumeration.rdoActive);

    ObservationFormCollection voCollFormsCommenced;

    ObservationForm voObservationForm = new ObservationForm();
    voObservationForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voObservationForm.setIsStopped(Boolean.FALSE);

    voCollFormsCommenced = domain.listFormsCommencement(voObservationForm);


    populateGrid(voCollFormsCommenced);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    form.groupFilter().setValue(GenForm.groupFilterEnumeration.rdoActive);

    ObservationFormCollection voCollFormsCommenced;

    ObservationForm voObservationForm = new ObservationForm();
    voObservationForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voObservationForm.setIsStopped(Boolean.FALSE);

    voCollFormsCommenced = domain.listFormsCommencement(voObservationForm);


    populateGrid(voCollFormsCommenced);
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    form.groupFilter().setValue(GenForm.groupFilterEnumeration.rdoActive);

    ObservationFormCollection voCollFormsCommenced;

    ObservationForm voObservationForm = new ObservationForm();
    voObservationForm.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voObservationForm.setIsStopped(Boolean.FALSE);

    voCollFormsCommenced = domain.listFormsCommencement(voObservationForm);


    populateGrid(voCollFormsCommenced);
}