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

项目:AvoinApotti    文件:Logic.java   
private void populateScreenWithTreatmentInfo()
{
    MRSAAssessmentVo voMRSA = form.cmbScreeningRecords().getValue();

    updateControlStatus();

    if (voMRSA == null)
        return;

    MRSATreatmentVo voTreatment = voMRSA.getTreatment();

    if (voTreatment == null)
        return;

    form.dteRescreen().setValue(voTreatment.getRescreenDate());
    form.dteStart().setValue(voTreatment.getStartDate());
    form.intTreatmentNumber().setValue(voTreatment.getTreatmentNumber());

    if (voTreatment.getStartDate() != null)
        try
        {
            onDteStartValueChanged();
        }
        catch (PresentationLogicException e)
        {
        }

    MRSATreatmentDetailsVoCollection voTreatmentDetailColl = new MRSATreatmentDetailsVoCollection();

    if (voTreatment != null && voTreatment.getTreatmentDetails() != null)
        voTreatmentDetailColl = voTreatment.getTreatmentDetails();

    for(int z =0; z<voTreatmentDetailColl.size(); z++)
    {
        MRSATreatmentDetailsVo voTreatmentDetail = voTreatmentDetailColl.get(z); 
        int i=0;
        for(i=0; i<form.grdEdit().getRows().size(); i++)
        {
            GenForm.grdEditRow row = form.grdEdit().getRows().get(i);
            if(voTreatmentDetail.getTreatment()!= null && row.getColTreatment() != null)
            {
                if(row.getColTreatment().equals(voTreatmentDetail.getTreatment()))
                {
                    setGridEditRowData(voTreatmentDetail, row);
                    break;
                }
            }
        }
        if(i == form.grdEdit().getRows().size())
        {
            grdEditRow newRow = form.grdEdit().getRows().newRow();
            newRow.setColTreatment(voTreatmentDetail.getTreatment());
            setGridEditRowData(voTreatmentDetail, newRow);
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenWithTreatmentInfo()
{
    MRSAAssessmentVo voMRSA = form.cmbScreeningRecords().getValue();

    updateControlStatus();

    if (voMRSA == null)
        return;

    MRSATreatmentVo voTreatment = voMRSA.getTreatment();

    if (voTreatment == null)
        return;

    form.dteRescreen().setValue(voTreatment.getRescreenDate());
    form.dteStart().setValue(voTreatment.getStartDate());
    form.intTreatmentNumber().setValue(voTreatment.getTreatmentNumber());

    if (voTreatment.getStartDate() != null)
        try
        {
            onDteStartValueChanged();
        }
        catch (PresentationLogicException e)
        {
        }

    MRSATreatmentDetailsVoCollection voTreatmentDetailColl = new MRSATreatmentDetailsVoCollection();

    if (voTreatment != null && voTreatment.getTreatmentDetails() != null)
        voTreatmentDetailColl = voTreatment.getTreatmentDetails();

    for(int z =0; z<voTreatmentDetailColl.size(); z++)
    {
        MRSATreatmentDetailsVo voTreatmentDetail = voTreatmentDetailColl.get(z); 
        int i=0;
        for(i=0; i<form.grdEdit().getRows().size(); i++)
        {
            GenForm.grdEditRow row = form.grdEdit().getRows().get(i);
            if(voTreatmentDetail.getTreatment()!= null && row.getColTreatment() != null)
            {
                if(row.getColTreatment().equals(voTreatmentDetail.getTreatment()))
                {
                    setGridEditRowData(voTreatmentDetail, row);
                    break;
                }
            }
        }
        if(i == form.grdEdit().getRows().size())
        {
            grdEditRow newRow = form.grdEdit().getRows().newRow();
            newRow.setColTreatment(voTreatmentDetail.getTreatment());
            setGridEditRowData(voTreatmentDetail, newRow);
        }
    }       
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenWithTreatmentInfo()
{
    MRSAAssessmentVo voMRSA = form.cmbScreeningRecords().getValue();

    updateControlStatus();

    if (voMRSA == null)
        return;

    MRSATreatmentVo voTreatment = voMRSA.getTreatment();

    if (voTreatment == null)
        return;

    form.dteRescreen().setValue(voTreatment.getRescreenDate());
    form.dteStart().setValue(voTreatment.getStartDate());
    form.intTreatmentNumber().setValue(voTreatment.getTreatmentNumber());

    if (voTreatment.getStartDate() != null)
        try
        {
            onDteStartValueChanged();
        }
        catch (PresentationLogicException e)
        {
        }

    MRSATreatmentDetailsVoCollection voTreatmentDetailColl = new MRSATreatmentDetailsVoCollection();

    if (voTreatment != null && voTreatment.getTreatmentDetails() != null)
        voTreatmentDetailColl = voTreatment.getTreatmentDetails();

    for(int z =0; z<voTreatmentDetailColl.size(); z++)
    {
        MRSATreatmentDetailsVo voTreatmentDetail = voTreatmentDetailColl.get(z); 
        int i=0;
        for(i=0; i<form.grdEdit().getRows().size(); i++)
        {
            GenForm.grdEditRow row = form.grdEdit().getRows().get(i);
            if(voTreatmentDetail.getTreatment()!= null && row.getColTreatment() != null)
            {
                if(row.getColTreatment().equals(voTreatmentDetail.getTreatment()))
                {
                    setGridEditRowData(voTreatmentDetail, row);
                    break;
                }
            }
        }
        if(i == form.grdEdit().getRows().size())
        {
            grdEditRow newRow = form.grdEdit().getRows().newRow();
            newRow.setColTreatment(voTreatmentDetail.getTreatment());
            setGridEditRowData(voTreatmentDetail, newRow);
        }
    }       
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenWithTreatmentInfo()
{
    MRSAAssessmentVo voMRSA = form.cmbScreeningRecords().getValue();

    updateControlStatus();

    if (voMRSA == null)
        return;

    MRSATreatmentVo voTreatment = voMRSA.getTreatment();

    if (voTreatment == null)
        return;

    form.dteRescreen().setValue(voTreatment.getRescreenDate());
    form.dteStart().setValue(voTreatment.getStartDate());
    form.intTreatmentNumber().setValue(voTreatment.getTreatmentNumber());

    if (voTreatment.getStartDate() != null)
        try
        {
            onDteStartValueChanged();
        }
        catch (PresentationLogicException e)
        {
        }

    MRSATreatmentDetailsVoCollection voTreatmentDetailColl = new MRSATreatmentDetailsVoCollection();

    if (voTreatment != null && voTreatment.getTreatmentDetails() != null)
        voTreatmentDetailColl = voTreatment.getTreatmentDetails();

    for(int z =0; z<voTreatmentDetailColl.size(); z++)
    {
        MRSATreatmentDetailsVo voTreatmentDetail = voTreatmentDetailColl.get(z); 
        int i=0;
        for(i=0; i<form.grdEdit().getRows().size(); i++)
        {
            GenForm.grdEditRow row = form.grdEdit().getRows().get(i);
            if(voTreatmentDetail.getTreatment()!= null && row.getColTreatment() != null)
            {
                if(row.getColTreatment().equals(voTreatmentDetail.getTreatment()))
                {
                    setGridEditRowData(voTreatmentDetail, row);
                    break;
                }
            }
        }
        if(i == form.grdEdit().getRows().size())
        {
            grdEditRow newRow = form.grdEdit().getRows().newRow();
            newRow.setColTreatment(voTreatmentDetail.getTreatment());
            setGridEditRowData(voTreatmentDetail, newRow);
        }
    }       
}