Java 类ims.clinical.vo.lookups.DressingCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private String getDressing(DressingCollection dressings) 
{
    if(dressings == null || dressings.size() == 0)
        return null;

    String dressingDisplay = "";

    for(int i=0; i<dressings.size(); i++)
    {
        Dressing dressing = dressings.get(i);

        if(dressing == null)
            continue;

        dressingDisplay += (dressingDisplay.length() > 0 ? ", " : "") + dressing.getIItemText();
    }

    return dressingDisplay.length() > 0 ? dressingDisplay : null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean populateDressingGrid()
{
    DressingCollection dressingColl = (ims.clinical.vo.lookups.LookupHelper.getDressing(domain.getLookupService()));

    if (dressingColl == null || dressingColl.size() == 0)
    {
        return false;
    }

    form.lyr1().tabDetails().ctn1().grdDressings().getRows().clear();
    for (int i = 0; i < dressingColl.size(); i++)
    {
        ims.clinical.forms.intraoperativecarerecord.GenForm.lyr1Layer.tabDetailsContainer.ctn1Container.grdDressingsRow newRow = form.lyr1().tabDetails().ctn1().grdDressings().getRows().newRow();
        newRow.setcolDressing(dressingColl.get(i).getIItemText());
        newRow.setValue(dressingColl.get(i));
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
private void setDressingsGrid(DressingCollection dressing)
{
    if (dressing == null || dressing.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); j++)
        {
            if (dressing.get(i).equals(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).setcolSelect(true);
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getDressing(DressingCollection dressings) 
{
    if(dressings == null || dressings.size() == 0)
        return null;

    String dressingDisplay = "";

    for(int i=0; i<dressings.size(); i++)
    {
        Dressing dressing = dressings.get(i);

        if(dressing == null)
            continue;

        dressingDisplay += (dressingDisplay.length() > 0 ? ", " : "") + dressing.getIItemText();
    }

    return dressingDisplay.length() > 0 ? dressingDisplay : null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateDressingGrid()
{
    DressingCollection dressingColl = (ims.clinical.vo.lookups.LookupHelper.getDressing(domain.getLookupService()));

    if (dressingColl == null || dressingColl.size() == 0)
    {
        return false;
    }

    form.lyr1().tabDetails().ctn1().grdDressings().getRows().clear();
    for (int i = 0; i < dressingColl.size(); i++)
    {
        ims.clinical.forms.intraoperativecarerecord.GenForm.lyr1Layer.tabDetailsContainer.ctn1Container.grdDressingsRow newRow = form.lyr1().tabDetails().ctn1().grdDressings().getRows().newRow();
        newRow.setcolDressing(dressingColl.get(i).getIItemText());
        newRow.setValue(dressingColl.get(i));
    }

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void setDressingsGrid(DressingCollection dressing)
{
    if (dressing == null || dressing.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); j++)
        {
            if (dressing.get(i).equals(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).setcolSelect(true);
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getDressing(DressingCollection dressings) 
{
    if(dressings == null || dressings.size() == 0)
        return null;

    String dressingDisplay = "";

    for(int i=0; i<dressings.size(); i++)
    {
        Dressing dressing = dressings.get(i);

        if(dressing == null)
            continue;

        dressingDisplay += (dressingDisplay.length() > 0 ? ", " : "") + dressing.getIItemText();
    }

    return dressingDisplay.length() > 0 ? dressingDisplay : null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateDressingGrid()
{
    DressingCollection dressingColl = (ims.clinical.vo.lookups.LookupHelper.getDressing(domain.getLookupService()));

    if (dressingColl == null || dressingColl.size() == 0)
    {
        return false;
    }

    form.lyr1().tabDetails().ctn1().grdDressings().getRows().clear();
    for (int i = 0; i < dressingColl.size(); i++)
    {
        ims.clinical.forms.intraoperativecarerecord.GenForm.lyr1Layer.tabDetailsContainer.ctn1Container.grdDressingsRow newRow = form.lyr1().tabDetails().ctn1().grdDressings().getRows().newRow();
        newRow.setcolDressing(dressingColl.get(i).getIItemText());
        newRow.setValue(dressingColl.get(i));
    }

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private void setDressingsGrid(DressingCollection dressing)
{
    if (dressing == null || dressing.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); j++)
        {
            if (dressing.get(i).equals(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).setcolSelect(true);
                break;
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean populateDressingGrid()
{
    DressingCollection dressingColl = (ims.clinical.vo.lookups.LookupHelper.getDressing(domain.getLookupService()));

    if (dressingColl == null || dressingColl.size() == 0)
    {
        return false;
    }

    form.lyr1().tabDetails().ctn1().grdDressings().getRows().clear();
    for (int i = 0; i < dressingColl.size(); i++)
    {
        ims.clinical.forms.intraoperativecarerecord.GenForm.lyr1Layer.tabDetailsContainer.ctn1Container.grdDressingsRow newRow = form.lyr1().tabDetails().ctn1().grdDressings().getRows().newRow();
        newRow.setcolDressing(dressingColl.get(i).getIItemText());
        newRow.setValue(dressingColl.get(i));
    }

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
private void setDressingsGrid(DressingCollection dressing)
{
    if (dressing == null || dressing.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); j++)
        {
            if (dressing.get(i).equals(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(j).setcolSelect(true);
                break;
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private DressingCollection getFromDressingsGrid()
{
    DressingCollection dressingCollection = new DressingCollection();

    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); i++)
    {
        if (form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getcolSelect())
        {
            dressingCollection.add(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getValue());
        }
    }

    return dressingCollection.size() == 0 ? null : dressingCollection;
}
项目:openMAXIMS    文件:Logic.java   
private DressingCollection getFromDressingsGrid()
{
    DressingCollection dressingCollection = new DressingCollection();

    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); i++)
    {
        if (form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getcolSelect())
        {
            dressingCollection.add(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getValue());
        }
    }

    return dressingCollection.size() == 0 ? null : dressingCollection;
}
项目:openMAXIMS    文件:Logic.java   
private DressingCollection getFromDressingsGrid()
{
    DressingCollection dressingCollection = new DressingCollection();

    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); i++)
    {
        if (form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getcolSelect())
        {
            dressingCollection.add(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getValue());
        }
    }

    return dressingCollection.size() == 0 ? null : dressingCollection;
}
项目:openmaxims-linux    文件:Logic.java   
private DressingCollection getFromDressingsGrid()
{
    DressingCollection dressingCollection = new DressingCollection();

    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdDressings().getRows().size(); i++)
    {
        if (form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getcolSelect())
        {
            dressingCollection.add(form.lyr1().tabDetails().ctn1().grdDressings().getRows().get(i).getValue());
        }
    }

    return dressingCollection.size() == 0 ? null : dressingCollection;
}