Java 类ims.emergency.vo.InterventionTreatmentDetailVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateSelectedGrid(InterventionTreatmentDetailVoCollection interventionTreatments) 
{
    form.grdSelected().getRows().clear();

    if(interventionTreatments == null || interventionTreatments.size() == 0)
        return;

    for(InterventionTreatmentDetailVo intTreat : interventionTreatments)
    {
        addInterventionTreatmentDetailsRow(intTreat);
    }
}
项目:AvoinApotti    文件:Logic.java   
private InterventionTreatmentDetailVoCollection populateInterventionsTreatmentsFromScreen() 
{
    if(form.grdSelected().getRows().size() == 0)
        return null;

    InterventionTreatmentDetailVoCollection coll = new InterventionTreatmentDetailVoCollection();

    for(int i=0; i<form.grdSelected().getRows().size(); i++)
    {
        if(form.grdSelected().getRows().get(i) == null)
            continue;

        for(int j=0; j<form.grdSelected().getRows().get(i).getRows().size(); j++)
        {
            if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof InterventionTreatmentDetailVo)
            {
                coll.add((InterventionTreatmentDetailVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue());
            }
            else if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof TreatmentInterventionLiteVo)
            {
                coll.add(createInterventionTreatmentDetail((TreatmentInterventionLiteVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue()));
            }
        }
    }

    return coll;
}
项目:AvoinApotti    文件:Logic.java   
private void populateInterventionsTreatmentsGrid() 
{
    form.grdInterventionsTreatments().getRows().clear();

    InterventionTreatmentDetailVoCollection coll = null;

    if(form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence() != null)
        coll = form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence().getInterventionTreatments();

    if(coll == null || coll.size() == 0)
        return;

    if(Boolean.TRUE.equals(form.getLocalContext().getAddedDuringCoding()))
        coll.sort();

    for(InterventionTreatmentDetailVo intTreat : coll)
    {
        if(intTreat == null)
            continue;

        grdInterventionsTreatmentsRow row = null;
        if(Boolean.FALSE.equals(form.getLocalContext().getAddedDuringCoding()))
        {
            row = getSelectedParentRow(intTreat);
            if(row == null)
                return;
        }
        grdInterventionsTreatmentsRow childRow = null;

        if (row == null)
            childRow = form.grdInterventionsTreatments().getRows().newRow();
        else
            childRow = row.getRows().newRow();

        childRow.setColIntervention(intTreat.getTreatmentInterventionDescription());
        childRow.setValue(intTreat);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateSelectedGrid(InterventionTreatmentDetailVoCollection interventionTreatments) 
{
    form.grdSelected().getRows().clear();

    if(interventionTreatments == null || interventionTreatments.size() == 0)
        return;

    for(InterventionTreatmentDetailVo intTreat : interventionTreatments)
    {
        addInterventionTreatmentDetailsRow(intTreat);
    }
}
项目:openMAXIMS    文件:Logic.java   
private InterventionsTreatmentsForAttendenceVo populateDataFromScreen() 
{
    InterventionsTreatmentsForAttendenceVo record = (InterventionsTreatmentsForAttendenceVo) form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence().clone();

    //WDEV-19058
    InterventionTreatmentDetailVoCollection collIntervTreatments = populateInterventionsTreatmentsFromScreen();
    record.setInterventionTreatments(collIntervTreatments);

    return record;
}
项目:openMAXIMS    文件:Logic.java   
private InterventionTreatmentDetailVoCollection populateInterventionsTreatmentsFromScreen() 
{
    if(form.grdSelected().getRows().size() == 0)
        return null;

    InterventionTreatmentDetailVoCollection coll = new InterventionTreatmentDetailVoCollection();

    for(int i=0; i<form.grdSelected().getRows().size(); i++)
    {
        if(form.grdSelected().getRows().get(i) == null)
            continue;

        for(int j=0; j<form.grdSelected().getRows().get(i).getRows().size(); j++)
        {
            if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof InterventionTreatmentDetailVo)
            {
                //WDEV-19058
                InterventionTreatmentDetailVo tempTreatInterv = (InterventionTreatmentDetailVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue();
                //tempTreatInterv.setInterventionTreatmentComplete(YesNo.YES);
                coll.add(tempTreatInterv);

            }
            else if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof TreatmentInterventionLiteVo)
            {
                coll.add(createInterventionTreatmentDetail((TreatmentInterventionLiteVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue()));
            }
        }
    }

    return coll;
}
项目:openMAXIMS    文件:Logic.java   
private void populateSelectedGrid(InterventionTreatmentDetailVoCollection interventionTreatments) 
{
    form.grdSelected().getRows().clear();

    if(interventionTreatments == null || interventionTreatments.size() == 0)
        return;

    for(InterventionTreatmentDetailVo intTreat : interventionTreatments)
    {
        addInterventionTreatmentDetailsRow(intTreat);
    }
}
项目:openMAXIMS    文件:Logic.java   
private InterventionTreatmentDetailVoCollection populateInterventionsTreatmentsFromScreen() 
{
    if(form.grdSelected().getRows().size() == 0)
        return null;

    InterventionTreatmentDetailVoCollection coll = new InterventionTreatmentDetailVoCollection();

    for(int i=0; i<form.grdSelected().getRows().size(); i++)
    {
        if(form.grdSelected().getRows().get(i) == null)
            continue;

        for(int j=0; j<form.grdSelected().getRows().get(i).getRows().size(); j++)
        {
            if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof InterventionTreatmentDetailVo)
            {
                coll.add((InterventionTreatmentDetailVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue());
            }
            else if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof TreatmentInterventionLiteVo)
            {
                coll.add(createInterventionTreatmentDetail((TreatmentInterventionLiteVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue()));
            }
        }
    }

    return coll;
}
项目:openMAXIMS    文件:Logic.java   
private void populateInterventionsTreatmentsGrid() 
{
    form.grdInterventionsTreatments().getRows().clear();

    InterventionTreatmentDetailVoCollection coll = null;

    if(form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence() != null)
        coll = form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence().getInterventionTreatments();

    if(coll == null || coll.size() == 0)
        return;

    if(Boolean.TRUE.equals(form.getLocalContext().getAddedDuringCoding()))
        coll.sort();

    for(InterventionTreatmentDetailVo intTreat : coll)
    {
        if(intTreat == null)
            continue;

        grdInterventionsTreatmentsRow row = null;
        if(Boolean.FALSE.equals(form.getLocalContext().getAddedDuringCoding()))
        {
            row = getSelectedParentRow(intTreat);
            if(row == null)
                return;
        }
        grdInterventionsTreatmentsRow childRow = null;

        if (row == null)
            childRow = form.grdInterventionsTreatments().getRows().newRow();
        else
            childRow = row.getRows().newRow();

        childRow.setColIntervention(intTreat.getTreatmentInterventionDescription());
        childRow.setValue(intTreat);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateSelectedGrid(InterventionTreatmentDetailVoCollection interventionTreatments) 
{
    form.grdSelected().getRows().clear();

    if(interventionTreatments == null || interventionTreatments.size() == 0)
        return;

    for(InterventionTreatmentDetailVo intTreat : interventionTreatments)
    {
        addInterventionTreatmentDetailsRow(intTreat);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private InterventionTreatmentDetailVoCollection populateInterventionsTreatmentsFromScreen() 
{
    if(form.grdSelected().getRows().size() == 0)
        return null;

    InterventionTreatmentDetailVoCollection coll = new InterventionTreatmentDetailVoCollection();

    for(int i=0; i<form.grdSelected().getRows().size(); i++)
    {
        if(form.grdSelected().getRows().get(i) == null)
            continue;

        for(int j=0; j<form.grdSelected().getRows().get(i).getRows().size(); j++)
        {
            if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof InterventionTreatmentDetailVo)
            {
                coll.add((InterventionTreatmentDetailVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue());
            }
            else if(form.grdSelected().getRows().get(i).getRows().get(j).getValue() instanceof TreatmentInterventionLiteVo)
            {
                coll.add(createInterventionTreatmentDetail((TreatmentInterventionLiteVo) form.grdSelected().getRows().get(i).getRows().get(j).getValue()));
            }
        }
    }

    return coll;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateInterventionsTreatmentsGrid() 
{
    form.grdInterventionsTreatments().getRows().clear();

    InterventionTreatmentDetailVoCollection coll = null;

    if(form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence() != null)
        coll = form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence().getInterventionTreatments();

    if(coll == null || coll.size() == 0)
        return;

    if(Boolean.TRUE.equals(form.getLocalContext().getAddedDuringCoding()))
        coll.sort();

    for(InterventionTreatmentDetailVo intTreat : coll)
    {
        if(intTreat == null)
            continue;

        grdInterventionsTreatmentsRow row = null;
        if(Boolean.FALSE.equals(form.getLocalContext().getAddedDuringCoding()))
        {
            row = getSelectedParentRow(intTreat);
            if(row == null)
                return;
        }
        grdInterventionsTreatmentsRow childRow = null;

        if (row == null)
            childRow = form.grdInterventionsTreatments().getRows().newRow();
        else
            childRow = row.getRows().newRow();

        childRow.setColIntervention(intTreat.getTreatmentInterventionDescription());
        childRow.setValue(intTreat);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateInterventionsTreatmentsGrid() 
{
    form.chkNoneInterventions().setValue(form.getLocalContext().getAttendDiagInvTreatStatus() != null && Boolean.TRUE.equals(form.getLocalContext().getAttendDiagInvTreatStatus().getNoTreatments()));
    form.chkNoKnownInterventions().setValue(form.getLocalContext().getAttendDiagInvTreatStatus() != null && Boolean.TRUE.equals(form.getLocalContext().getAttendDiagInvTreatStatus().getTreatmentsNotRecorded())); 
    form.lblNoKnownInterventions().setTooltip(getNoKnownInterventionsTreatmentsDetails(form.getLocalContext().getAttendDiagInvTreatStatus()));

    form.grdInterventionsTreatments().getRows().clear();

    InterventionTreatmentDetailVoCollection coll = null;

    if(form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence() != null)
        coll = form.getGlobalContext().Emergency.getInterventionsTreatmentsForAttendence().getInterventionTreatments();

    if(coll == null || coll.size() == 0)
        return;

    if(Boolean.TRUE.equals(form.getLocalContext().getAddedDuringCoding()))
        coll.sort();

    for(InterventionTreatmentDetailVo intTreat : coll)
    {
        if(intTreat == null)
            continue;

        if(Boolean.FALSE.equals(form.getLocalContext().getAddedDuringCoding()) && Boolean.TRUE.equals(intTreat.getAddedDuringCoding()))
            continue;

        grdInterventionsTreatmentsRow row = null;
        if(Boolean.FALSE.equals(form.getLocalContext().getAddedDuringCoding()))
        {
            row = getSelectedParentRow(intTreat);
            if(row == null)
                return;
        }
        grdInterventionsTreatmentsRow childRow = null;

        if (row == null)
            childRow = form.grdInterventionsTreatments().getRows().newRow();
        else
            childRow = row.getRows().newRow();

        childRow.setColIntervention(intTreat.getTreatmentInterventionDescription());
        childRow.setColComplete(YesNo.YES.equals(intTreat.getInterventionTreatmentComplete()) ? true : false); //WDEV-19058
        childRow.setValue(intTreat);
    }
}