Java 类ims.therapies.vo.PlinthWorkAnalysisVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateAnalysisGrid(PlinthWorkAnalysisVoCollection voAnalysisColl)
{
    if(voAnalysisColl!= null)
    {
        GenForm.grdAnalysisRow row;
        for(int y=0; y<voAnalysisColl.size(); y++)
        {
            PlinthWorkAnalysisVo voAna = voAnalysisColl.get(y);
            int a =0;
            for(a=0; a<form.grdAnalysis().getRows().size(); a++)
            {
                row = form.grdAnalysis().getRows().get(a);
                if(row.getColBalanceAnalysis().equals(voAna.getBalanceAnalysis()))
                {
                    row.setColDynamic(voAna.getDynamic());
                    row.setColStatic(voAna.getStaticAnalysis());
                    break;
                }
            }
            if(a == form.grdAnalysis().getRows().size())
            {
                row = form.grdAnalysis().getRows().newRow();
                row.setValue(voAna);
                row.setColBalanceAnalysis(voAna.getBalanceAnalysis());
                row.setColDynamic(voAna.getDynamic());
                row.setColStatic(voAna.getStaticAnalysis());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAnalysisGrid(PlinthWorkAnalysisVoCollection voAnalysisColl)
{
    if(voAnalysisColl!= null)
    {
        GenForm.grdAnalysisRow row;
        for(int y=0; y<voAnalysisColl.size(); y++)
        {
            PlinthWorkAnalysisVo voAna = voAnalysisColl.get(y);
            int a =0;
            for(a=0; a<form.grdAnalysis().getRows().size(); a++)
            {
                row = form.grdAnalysis().getRows().get(a);
                if(row.getColBalanceAnalysis().equals(voAna.getBalanceAnalysis()))
                {
                    row.setColDynamic(voAna.getDynamic());
                    row.setColStatic(voAna.getStaticAnalysis());
                    break;
                }
            }
            if(a == form.grdAnalysis().getRows().size())
            {
                row = form.grdAnalysis().getRows().newRow();
                row.setValue(voAna);
                row.setColBalanceAnalysis(voAna.getBalanceAnalysis());
                row.setColDynamic(voAna.getDynamic());
                row.setColStatic(voAna.getStaticAnalysis());
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAnalysisGrid(PlinthWorkAnalysisVoCollection voAnalysisColl)
{
    if(voAnalysisColl!= null)
    {
        GenForm.grdAnalysisRow row;
        for(int y=0; y<voAnalysisColl.size(); y++)
        {
            PlinthWorkAnalysisVo voAna = voAnalysisColl.get(y);
            int a =0;
            for(a=0; a<form.grdAnalysis().getRows().size(); a++)
            {
                row = form.grdAnalysis().getRows().get(a);
                if(row.getColBalanceAnalysis().equals(voAna.getBalanceAnalysis()))
                {
                    row.setColDynamic(voAna.getDynamic());
                    row.setColStatic(voAna.getStaticAnalysis());
                    break;
                }
            }
            if(a == form.grdAnalysis().getRows().size())
            {
                row = form.grdAnalysis().getRows().newRow();
                row.setValue(voAna);
                row.setColBalanceAnalysis(voAna.getBalanceAnalysis());
                row.setColDynamic(voAna.getDynamic());
                row.setColStatic(voAna.getStaticAnalysis());
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAnalysisGrid(PlinthWorkAnalysisVoCollection voAnalysisColl)
{
    if(voAnalysisColl!= null)
    {
        GenForm.grdAnalysisRow row;
        for(int y=0; y<voAnalysisColl.size(); y++)
        {
            PlinthWorkAnalysisVo voAna = voAnalysisColl.get(y);
            int a =0;
            for(a=0; a<form.grdAnalysis().getRows().size(); a++)
            {
                row = form.grdAnalysis().getRows().get(a);
                if(row.getColBalanceAnalysis().equals(voAna.getBalanceAnalysis()))
                {
                    row.setColDynamic(voAna.getDynamic());
                    row.setColStatic(voAna.getStaticAnalysis());
                    break;
                }
            }
            if(a == form.grdAnalysis().getRows().size())
            {
                row = form.grdAnalysis().getRows().newRow();
                row.setValue(voAna);
                row.setColBalanceAnalysis(voAna.getBalanceAnalysis());
                row.setColDynamic(voAna.getDynamic());
                row.setColStatic(voAna.getStaticAnalysis());
            }
        }
    }
}