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

项目:AvoinApotti    文件:Logic.java   
private String getSkinPreparation(SkinPreparationusedCollection skinPreparationUsed, String otherSkin) 
{
    if(skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return null;

    String skinPreparationDisplay = "";

    for(int i=0; i<skinPreparationUsed.size(); i++)
    {
        SkinPreparationused skin = skinPreparationUsed.get(i);

        if(skin == null)
            continue;

        if(SkinPreparationused.OTHER.equals(skin) && otherSkin != null)
        {
            skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText() + ": " + otherSkin;
            continue;
        }

        skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText();
    }

    return skinPreparationDisplay.length() > 0 ? skinPreparationDisplay : null;
}
项目:AvoinApotti    文件:Logic.java   
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
    SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

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

        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
        {
            intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
        }
    }

    return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
项目:AvoinApotti    文件:Logic.java   
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
    if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
        {
            if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

                if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
                {
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
                }
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getSkinPreparation(SkinPreparationusedCollection skinPreparationUsed, String otherSkin) 
{
    if(skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return null;

    String skinPreparationDisplay = "";

    for(int i=0; i<skinPreparationUsed.size(); i++)
    {
        SkinPreparationused skin = skinPreparationUsed.get(i);

        if(skin == null)
            continue;

        if(SkinPreparationused.OTHER.equals(skin) && otherSkin != null)
        {
            skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText() + ": " + otherSkin;
            continue;
        }

        skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText();
    }

    return skinPreparationDisplay.length() > 0 ? skinPreparationDisplay : null;
}
项目:openMAXIMS    文件:Logic.java   
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
    SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

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

        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
        {
            intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
        }
    }

    return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
项目:openMAXIMS    文件:Logic.java   
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
    if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
        {
            if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

                if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
                {
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
                }
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private String getSkinPreparation(SkinPreparationusedCollection skinPreparationUsed, String otherSkin) 
{
    if(skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return null;

    String skinPreparationDisplay = "";

    for(int i=0; i<skinPreparationUsed.size(); i++)
    {
        SkinPreparationused skin = skinPreparationUsed.get(i);

        if(skin == null)
            continue;

        if(SkinPreparationused.OTHER.equals(skin) && otherSkin != null)
        {
            skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText() + ": " + otherSkin;
            continue;
        }

        skinPreparationDisplay += (skinPreparationDisplay.length() > 0 ? ", " : "") + skin.getIItemText();
    }

    return skinPreparationDisplay.length() > 0 ? skinPreparationDisplay : null;
}
项目:openMAXIMS    文件:Logic.java   
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
    SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

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

        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
        {
            intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
        }
    }

    return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
项目:openMAXIMS    文件:Logic.java   
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
    if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
        {
            if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

                if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
                {
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
                }
                break;
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails)
{
    SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection();

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

        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()))
        {
            intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther());
        }
    }

    return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection;
}
项目:openmaxims-linux    文件:Logic.java   
private void setSkinPreparationGrid(SkinPreparationusedCollection skinPreparationUsed, String otherSkinPreparation)
{
    if (skinPreparationUsed == null || skinPreparationUsed.size() == 0)
        return;

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

        for (int j = 0; j < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); j++)
        {
            if (skinPreparationUsed.get(i).equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).getValue()))
            {
                form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolSelect(true);

                if (SkinPreparationused.OTHER.equals(skinPreparationUsed.get(i)))
                {
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOther(otherSkinPreparation);
                    form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(j).setcolOtherReadOnly(false);
                }
                break;
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean checkOtherSkinPreparation()
{
    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
    {
        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
    Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

    row.setcolOtherReadOnly(otherCondition);
    if (otherCondition)
        row.setcolOther(null);
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkOtherSkinPreparation()
{
    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
    {
        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
    Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

    row.setcolOtherReadOnly(otherCondition);
    if (otherCondition)
        row.setcolOther(null);
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkOtherSkinPreparation()
{
    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
    {
        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
    Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

    row.setcolOtherReadOnly(otherCondition);
    if (otherCondition)
        row.setcolOther(null);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean checkOtherSkinPreparation()
{
    for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++)
    {
        if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()) && form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect() && (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther() == null || form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther().length() == 0))

            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onGrdSkinPreparationGridCheckBoxClicked(int column, grdSkinPreparationRow row, boolean isChecked) throws PresentationLogicException
{
    Boolean otherCondition = !(row.getValue() instanceof SkinPreparationused && row.getValue().equals(SkinPreparationused.OTHER) && isChecked);

    row.setcolOtherReadOnly(otherCondition);
    if (otherCondition)
        row.setcolOther(null);
}