Java 类ims.ocrr.vo.lookups.HelpTextCategory 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onGrdTestHelpGridComboBoxSelectionChanged(int column, grdTestHelpRow row, Object value) throws PresentationLogicException
{
    if (value != null && column == 0 && value instanceof HelpTextCategory)
    {
        for (int i = 0; i < form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().size(); i++)
        {
            if (!row.getValue().equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getValue()))
            {
                if (value.equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getcolTitle()))
                {
                    engine.showMessage("This Category was already set in row " + String.valueOf(i + 1) + " !");
                    row.getcolTitle().setValue(null);
                    break;
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
    {
        InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
        if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
        {
            for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
            {
                if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
                {
                    sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
                }
            }
        }
    }

    return sb.toString().length() > 0 ? sb.toString() : null;
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdTestHelpGridComboBoxSelectionChanged(int column, grdTestHelpRow row, Object value) throws PresentationLogicException
{
    if (value != null && column == 0 && value instanceof HelpTextCategory)
    {
        for (int i = 0; i < form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().size(); i++)
        {
            if (!row.getValue().equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getValue()))
            {
                if (value.equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getcolTitle()))
                {
                    engine.showMessage("This Category was already set in row " + String.valueOf(i + 1) + " !");
                    row.getcolTitle().setValue(null);
                    break;
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
    {
        InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
        if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
        {
            for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
            {
                if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
                {
                    sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
                }
            }
        }
    }

    return sb.toString().length() > 0 ? sb.toString() : null;
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdTestHelpGridComboBoxSelectionChanged(int column, grdTestHelpRow row, Object value) throws PresentationLogicException
{
    if (value != null && column == 0 && value instanceof HelpTextCategory)
    {
        for (int i = 0; i < form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().size(); i++)
        {
            if (!row.getValue().equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getValue()))
            {
                if (value.equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getcolTitle()))
                {
                    engine.showMessage("This Category was already set in row " + String.valueOf(i + 1) + " !");
                    row.getcolTitle().setValue(null);
                    break;
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
    {
        InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
        if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
        {
            for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
            {
                if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
                {
                    sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
                }
            }
        }
    }

    return sb.toString().length() > 0 ? sb.toString() : null;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdTestHelpGridComboBoxSelectionChanged(int column, grdTestHelpRow row, Object value) throws PresentationLogicException
{
    if (value != null && column == 0 && value instanceof HelpTextCategory)
    {
        for (int i = 0; i < form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().size(); i++)
        {
            if (!row.getValue().equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getValue()))
            {
                if (value.equals(form.lyrInvestigations().tabHelpTexts().grdTestHelp().getRows().get(i).getcolTitle()))
                {
                    engine.showMessage("This Category was already set in row " + String.valueOf(i + 1) + " !");
                    row.getcolTitle().setValue(null);
                    break;
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * go through all the order investigations for this specimen and get each investigations helptext collection - if we find a helptext item with category set to HelpTextCategory.INSTRUCTIONSTOCOLLECTOR append the text of the item to the invest name and then to the returned string
 * 
 * @param voSpecimen
 * @return String
 */
private String buildInstructionsToCollector(OrderSpecimenVo voSpecimen)
{
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < voSpecimen.getInvestigations().size(); i++)
    {
        InvestigationUnderSpecimenVo voInvestItem = getInvestUnderSpecimenVoFromContextByOrderInvestigation(voSpecimen.getInvestigations().get(i));
        if (voInvestItem != null && voInvestItem.getHelpTextIsNotNull())
        {
            for (int p = 0; p < voInvestItem.getHelpText().size(); p++)
            {
                if (voInvestItem.getHelpText().get(p).getTextCategory().equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
                {
                    sb.append(voInvestItem.getInvestigationIndex().getName() + PhlebotomyHelper.INSTRUCTION_TO_COLLECTOR + voInvestItem.getHelpText().get(p).getHelpText());
                }
            }
        }
    }

    return sb.toString().length() > 0 ? sb.toString() : null;
}
项目:AvoinApotti    文件:Logic.java   
private void bindHelpTextCol(grdTestHelpRow row, boolean addInstructToCollectItem)
{
    HelpTextCategoryCollection collHelpText = LookupHelper.getHelpTextCategory(domain.getLookupService());
    for (int i = 0; i < collHelpText.size(); i++)
    {
        if (!addInstructToCollectItem && collHelpText.get(i).equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
            continue;

        row.getcolTitle().newRow(collHelpText.get(i), collHelpText.get(i).toString());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindHelpTextCol(grdTestHelpRow row, boolean addInstructToCollectItem)
{
    HelpTextCategoryCollection collHelpText = LookupHelper.getHelpTextCategory(domain.getLookupService());
    for (int i = 0; i < collHelpText.size(); i++)
    {
        if (!addInstructToCollectItem && collHelpText.get(i).equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
            continue;

        row.getcolTitle().newRow(collHelpText.get(i), collHelpText.get(i).toString());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void bindHelpTextCol(grdTestHelpRow row, boolean addInstructToCollectItem)
{
    HelpTextCategoryCollection collHelpText = LookupHelper.getHelpTextCategory(domain.getLookupService());
    for (int i = 0; i < collHelpText.size(); i++)
    {
        if (!addInstructToCollectItem && collHelpText.get(i).equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
            continue;

        row.getcolTitle().newRow(collHelpText.get(i), collHelpText.get(i).toString());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void bindHelpTextCol(grdTestHelpRow row, boolean addInstructToCollectItem)
{
    HelpTextCategoryCollection collHelpText = LookupHelper.getHelpTextCategory(domain.getLookupService());
    for (int i = 0; i < collHelpText.size(); i++)
    {
        if (!addInstructToCollectItem && collHelpText.get(i).equals(HelpTextCategory.INSTRUCTIONSTOCOLLECTOR))
            continue;

        row.getcolTitle().newRow(collHelpText.get(i), collHelpText.get(i).toString());
    }
}