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

项目:AvoinApotti    文件:Logic.java   
private MedicationFormVoCollection populateFRUDataFromScreen()
{
    MedicationFormVoCollection result = new MedicationFormVoCollection();
    for (int i = 0 ; i < form.lyrDetails().tabFRU().dyngrdFRU().getRows().size() ; i++)
    {
        Object value = form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getValue();
        if (value instanceof MedicationFormVo)
        {
            MedicationFormVo  x = (MedicationFormVo) value;
            x.setFormRoutes(getRoutes(form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getRows()));
            if (x.getFormIsNotNull() || x.getFormRoutesIsNotNull())
            {
                result.add(x);
            }
        }
    }
    if (result.size()==0)
        return null;
    return result;
}
项目:openMAXIMS    文件:Logic.java   
private MedicationFormVoCollection populateFRUDataFromScreen()
{
    MedicationFormVoCollection result = new MedicationFormVoCollection();
    for (int i = 0 ; i < form.lyrDetails().tabFRU().dyngrdFRU().getRows().size() ; i++)
    {
        Object value = form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getValue();
        if (value instanceof MedicationFormVo)
        {
            MedicationFormVo  x = (MedicationFormVo) value;
            x.setFormRoutes(getRoutes(form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getRows()));
            if (x.getFormIsNotNull() || x.getFormRoutesIsNotNull())
            {
                result.add(x);
            }
        }
    }
    if (result.size()==0)
        return null;
    return result;
}
项目:openMAXIMS    文件:Logic.java   
private MedicationFormVoCollection populateFRUDataFromScreen()
{
    MedicationFormVoCollection result = new MedicationFormVoCollection();
    for (int i = 0 ; i < form.lyrDetails().tabFRU().dyngrdFRU().getRows().size() ; i++)
    {
        Object value = form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getValue();
        if (value instanceof MedicationFormVo)
        {
            MedicationFormVo  x = (MedicationFormVo) value;
            x.setFormRoutes(getRoutes(form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getRows()));
            if (x.getFormIsNotNull() || x.getFormRoutesIsNotNull())
            {
                result.add(x);
            }
        }
    }
    if (result.size()==0)
        return null;
    return result;
}
项目:openmaxims-linux    文件:Logic.java   
private MedicationFormVoCollection populateFRUDataFromScreen()
{
    MedicationFormVoCollection result = new MedicationFormVoCollection();
    for (int i = 0 ; i < form.lyrDetails().tabFRU().dyngrdFRU().getRows().size() ; i++)
    {
        Object value = form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getValue();
        if (value instanceof MedicationFormVo)
        {
            MedicationFormVo  x = (MedicationFormVo) value;
            x.setFormRoutes(getRoutes(form.lyrDetails().tabFRU().dyngrdFRU().getRows().get(i).getRows()));
            if (x.getFormIsNotNull() || x.getFormRoutesIsNotNull())
            {
                result.add(x);
            }
        }
    }
    if (result.size()==0)
        return null;
    return result;
}
项目:AvoinApotti    文件:Logic.java   
private void populateFRU(MedicationFormVoCollection forms)
{
    form.lyrDetails().tabFRU().dyngrdFRU().getRows().clear();
    if (forms == null)
        return;
    for (int i = 0 ; i < forms.size() ; i++)
    {
        DynamicGridRow nForm = addForm(forms.get(i), true);
        if (nForm != null && forms.get(i).getFormRoutesIsNotNull())
        {
            for (int j = 0 ; j < forms.get(i).getFormRoutes().size(); j++)
            {
                DynamicGridRow nRoute = addRoute(forms.get(i).getFormRoutes().get(j), false, nForm);
                if (nRoute!=null && forms.get(i).getFormRoutes().get(j).getRouteUnitsIsNotNull())
                {
                    for (int k = 0 ; k < forms.get(i).getFormRoutes().get(j).getRouteUnits().size() ; k++)
                    {
                        addUnit(forms.get(i).getFormRoutes().get(j).getRouteUnits().get(k), false, nRoute);
                    }
                    rebindUnitRows(nRoute);
                }
            }
            rebindRouteRows(nForm);
        }
    }
    rebindFormRows();

}
项目:openMAXIMS    文件:Logic.java   
private void populateFRU(MedicationFormVoCollection forms)
{
    form.lyrDetails().tabFRU().dyngrdFRU().getRows().clear();
    if (forms == null)
        return;
    for (int i = 0 ; i < forms.size() ; i++)
    {
        DynamicGridRow nForm = addForm(forms.get(i), true);
        if (nForm != null && forms.get(i).getFormRoutesIsNotNull())
        {
            for (int j = 0 ; j < forms.get(i).getFormRoutes().size(); j++)
            {
                DynamicGridRow nRoute = addRoute(forms.get(i).getFormRoutes().get(j), false, nForm);
                if (nRoute!=null && forms.get(i).getFormRoutes().get(j).getRouteUnitsIsNotNull())
                {
                    for (int k = 0 ; k < forms.get(i).getFormRoutes().get(j).getRouteUnits().size() ; k++)
                    {
                        addUnit(forms.get(i).getFormRoutes().get(j).getRouteUnits().get(k), false, nRoute);
                    }
                    rebindUnitRows(nRoute);
                }
            }
            rebindRouteRows(nForm);
        }
    }
    rebindFormRows();

}
项目:openMAXIMS    文件:Logic.java   
private void populateFRU(MedicationFormVoCollection forms)
{
    form.lyrDetails().tabFRU().dyngrdFRU().getRows().clear();
    if (forms == null)
        return;
    for (int i = 0 ; i < forms.size() ; i++)
    {
        DynamicGridRow nForm = addForm(forms.get(i), true);
        if (nForm != null && forms.get(i).getFormRoutesIsNotNull())
        {
            for (int j = 0 ; j < forms.get(i).getFormRoutes().size(); j++)
            {
                DynamicGridRow nRoute = addRoute(forms.get(i).getFormRoutes().get(j), false, nForm);
                if (nRoute!=null && forms.get(i).getFormRoutes().get(j).getRouteUnitsIsNotNull())
                {
                    for (int k = 0 ; k < forms.get(i).getFormRoutes().get(j).getRouteUnits().size() ; k++)
                    {
                        addUnit(forms.get(i).getFormRoutes().get(j).getRouteUnits().get(k), false, nRoute);
                    }
                    rebindUnitRows(nRoute);
                }
            }
            rebindRouteRows(nForm);
        }
    }
    rebindFormRows();

}
项目:openmaxims-linux    文件:Logic.java   
private void populateFRU(MedicationFormVoCollection forms)
{
    form.lyrDetails().tabFRU().dyngrdFRU().getRows().clear();
    if (forms == null)
        return;
    for (int i = 0 ; i < forms.size() ; i++)
    {
        DynamicGridRow nForm = addForm(forms.get(i), true);
        if (nForm != null && forms.get(i).getFormRoutesIsNotNull())
        {
            for (int j = 0 ; j < forms.get(i).getFormRoutes().size(); j++)
            {
                DynamicGridRow nRoute = addRoute(forms.get(i).getFormRoutes().get(j), false, nForm);
                if (nRoute!=null && forms.get(i).getFormRoutes().get(j).getRouteUnitsIsNotNull())
                {
                    for (int k = 0 ; k < forms.get(i).getFormRoutes().get(j).getRouteUnits().size() ; k++)
                    {
                        addUnit(forms.get(i).getFormRoutes().get(j).getRouteUnits().get(k), false, nRoute);
                    }
                    rebindUnitRows(nRoute);
                }
            }
            rebindRouteRows(nForm);
        }
    }
    rebindFormRows();

}