Java 类ims.ocrr.vo.InvestigationQuestionVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void refreshEditedQuestions()
{
    ims.core.vo.QuestionInformationVoCollection editedQuestions = form.getGlobalContext().Core.getEditedQuestions();
    if (editedQuestions == null || editedQuestions.size() == 0)
        return;

    for (int i = 0; i < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); i++)
    {
        InvestigationQuestionVo voInvestigationQuestion = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).getValue();
        if (voInvestigationQuestion != null)
        {
            QuestionInformationShortVo question = voInvestigationQuestion.getQuestion();
            int index = getQuestionIndex(editedQuestions, question);
            if (index >= 0)
            {
                voInvestigationQuestion.setQuestion(editedQuestions.get(index));
                form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).setValue(voInvestigationQuestion);
            }
        }
    }

    form.getGlobalContext().Core.setEditedQuestions(null);
}
项目:openMAXIMS    文件:Logic.java   
private void refreshEditedQuestions()
{
    ims.core.vo.QuestionInformationVoCollection editedQuestions = form.getGlobalContext().Core.getEditedQuestions();
    if (editedQuestions == null || editedQuestions.size() == 0)
        return;

    for (int i = 0; i < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); i++)
    {
        InvestigationQuestionVo voInvestigationQuestion = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).getValue();
        if (voInvestigationQuestion != null)
        {
            QuestionInformationShortVo question = voInvestigationQuestion.getQuestion();
            int index = getQuestionIndex(editedQuestions, question);
            if (index >= 0)
            {
                voInvestigationQuestion.setQuestion(editedQuestions.get(index));
                form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).setValue(voInvestigationQuestion);
            }
        }
    }

    form.getGlobalContext().Core.setEditedQuestions(null);
}
项目:openMAXIMS    文件:Logic.java   
private void refreshEditedQuestions()
{
    ims.core.vo.QuestionInformationVoCollection editedQuestions = form.getGlobalContext().Core.getEditedQuestions();
    if (editedQuestions == null || editedQuestions.size() == 0)
        return;

    for (int i = 0; i < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); i++)
    {
        InvestigationQuestionVo voInvestigationQuestion = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).getValue();
        if (voInvestigationQuestion != null)
        {
            QuestionInformationShortVo question = voInvestigationQuestion.getQuestion();
            int index = getQuestionIndex(editedQuestions, question);
            if (index >= 0)
            {
                voInvestigationQuestion.setQuestion(editedQuestions.get(index));
                form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).setValue(voInvestigationQuestion);
            }
        }
    }

    form.getGlobalContext().Core.setEditedQuestions(null);
}
项目:openmaxims-linux    文件:Logic.java   
private void refreshEditedQuestions()
{
    ims.core.vo.QuestionInformationVoCollection editedQuestions = form.getGlobalContext().Core.getEditedQuestions();
    if (editedQuestions == null || editedQuestions.size() == 0)
        return;

    for (int i = 0; i < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); i++)
    {
        InvestigationQuestionVo voInvestigationQuestion = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).getValue();
        if (voInvestigationQuestion != null)
        {
            QuestionInformationShortVo question = voInvestigationQuestion.getQuestion();
            int index = getQuestionIndex(editedQuestions, question);
            if (index >= 0)
            {
                voInvestigationQuestion.setQuestion(editedQuestions.get(index));
                form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(i).setValue(voInvestigationQuestion);
            }
        }
    }

    form.getGlobalContext().Core.setEditedQuestions(null);
}
项目:AvoinApotti    文件:Logic.java   
/**
 * @param voCollQuestion
 */
private void addQuestionsToGrid(QuestionInformationShortVoCollection voCollQuestion)
{
    GenForm.lyrInvestigationsLayer.tabQuestionsContainer.grdQuestionsRow qRow = null;
    for (int i = 0; i < voCollQuestion.size(); i++)
    {
        boolean isFound = false;
        for (int j = 0; j < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); j++)
        {
            if (form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue() != null && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestionIsNotNull() && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestion().equals(voCollQuestion.get(i)))
            {
                isFound = true;
                break;
            }
        }

        if (!isFound)
        {
            qRow = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().newRow();

            qRow.setcolQuestionText(voCollQuestion.get(i).getShortText());
            qRow.setcolImage(getQuestionImage(voCollQuestion.get(i).getIsQuestion()));

            InvestigationQuestionVo voInvQuestion = new InvestigationQuestionVo();
            voInvQuestion.setQuestion(voCollQuestion.get(i));
            qRow.setTooltip(voCollQuestion.get(i).getTooltip());
            qRow.setValue(voInvQuestion);

            //WDEV-5066
            if(!voCollQuestion.get(i).getIsQuestion())
                qRow.setcolMandatoryReadOnly(true);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voCollQuestion
 */
private void addQuestionsToGrid(QuestionInformationShortVoCollection voCollQuestion)
{
    GenForm.lyrInvestigationsLayer.tabQuestionsContainer.grdQuestionsRow qRow = null;
    for (int i = 0; i < voCollQuestion.size(); i++)
    {
        boolean isFound = false;
        for (int j = 0; j < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); j++)
        {
            if (form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue() != null && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestionIsNotNull() && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestion().equals(voCollQuestion.get(i)))
            {
                isFound = true;
                break;
            }
        }

        if (!isFound)
        {
            qRow = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().newRow();

            qRow.setcolQuestionText(voCollQuestion.get(i).getShortText());
            qRow.setcolImage(getQuestionImage(voCollQuestion.get(i).getIsQuestion()));

            InvestigationQuestionVo voInvQuestion = new InvestigationQuestionVo();
            voInvQuestion.setQuestion(voCollQuestion.get(i));
            qRow.setTooltip(voCollQuestion.get(i).getTooltip());
            qRow.setValue(voInvQuestion);

            //WDEV-5066
            if(!voCollQuestion.get(i).getIsQuestion())
                qRow.setcolMandatoryReadOnly(true);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voCollQuestion
 */
private void addQuestionsToGrid(QuestionInformationShortVoCollection voCollQuestion)
{
    GenForm.lyrInvestigationsLayer.tabQuestionsContainer.grdQuestionsRow qRow = null;
    for (int i = 0; i < voCollQuestion.size(); i++)
    {
        boolean isFound = false;
        for (int j = 0; j < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); j++)
        {
            if (form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue() != null && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestionIsNotNull() && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestion().equals(voCollQuestion.get(i)))
            {
                isFound = true;
                break;
            }
        }

        if (!isFound)
        {
            qRow = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().newRow();

            qRow.setcolQuestionText(voCollQuestion.get(i).getShortText());
            qRow.setcolImage(getQuestionImage(voCollQuestion.get(i).getIsQuestion()));

            InvestigationQuestionVo voInvQuestion = new InvestigationQuestionVo();
            voInvQuestion.setQuestion(voCollQuestion.get(i));
            qRow.setTooltip(voCollQuestion.get(i).getTooltip());
            qRow.setValue(voInvQuestion);

            //WDEV-5066
            if(!voCollQuestion.get(i).getIsQuestion())
                qRow.setcolMandatoryReadOnly(true);

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * @param voCollQuestion
 */
private void addQuestionsToGrid(QuestionInformationShortVoCollection voCollQuestion)
{
    GenForm.lyrInvestigationsLayer.tabQuestionsContainer.grdQuestionsRow qRow = null;
    for (int i = 0; i < voCollQuestion.size(); i++)
    {
        boolean isFound = false;
        for (int j = 0; j < form.lyrInvestigations().tabQuestions().grdQuestions().getRows().size(); j++)
        {
            if (form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue() != null && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestionIsNotNull() && form.lyrInvestigations().tabQuestions().grdQuestions().getRows().get(j).getValue().getQuestion().equals(voCollQuestion.get(i)))
            {
                isFound = true;
                break;
            }
        }

        if (!isFound)
        {
            qRow = form.lyrInvestigations().tabQuestions().grdQuestions().getRows().newRow();

            qRow.setcolQuestionText(voCollQuestion.get(i).getShortText());
            qRow.setcolImage(getQuestionImage(voCollQuestion.get(i).getIsQuestion()));

            InvestigationQuestionVo voInvQuestion = new InvestigationQuestionVo();
            voInvQuestion.setQuestion(voCollQuestion.get(i));
            qRow.setTooltip(voCollQuestion.get(i).getTooltip());
            qRow.setValue(voInvQuestion);

            //WDEV-5066
            if(!voCollQuestion.get(i).getIsQuestion())
                qRow.setcolMandatoryReadOnly(true);

        }
    }
}