Package com.vst.model.internal

Examples of com.vst.model.internal.QuestionVisualType


    public void setQuestionDao(QuestionDao dao) {
        this.dao = dao;
    }

    public void setQuestionVisualType(Question question) {
        QuestionVisualType questionVisualType = new QuestionVisualType();
        if (question.getQuestionType().getQuestionTypeId().equals(new Integer(1)) && !question.isForObjectStructure()) {
            questionVisualType.setQuestionTypeId(new Integer(1));
        }

        if (question.getQuestionType().getQuestionTypeId().equals(new Integer(1)) && question.isForObjectStructure()) {
            questionVisualType.setQuestionTypeId(new Integer(2));
        }

        if (question.getQuestionType().getQuestionTypeId().equals(new Integer(0))) {
            questionVisualType.setQuestionTypeId(new Integer(3));
        }

        question.setQuestionVisualType(questionVisualType);

    }
View Full Code Here


    }

   public List getQuestionVisualList() {
        List questionVisualTypeList = new ArrayList();
        QuestionVisualType questionVisualType = new QuestionVisualType();
        questionVisualType.setQuestionTypeId(new Integer(1));
        questionVisualType.setQuestionTypeName("Анализ проектно-технической документации");
        questionVisualTypeList.add(questionVisualType);

        questionVisualType = new QuestionVisualType();
        questionVisualType.setQuestionTypeId(new Integer(2));
        questionVisualType.setQuestionTypeName("Характеристики обследованного объекта");
        questionVisualTypeList.add(questionVisualType);

        questionVisualType = new QuestionVisualType();
        questionVisualType.setQuestionTypeId(new Integer(3));
        questionVisualType.setQuestionTypeName("Конструктивные решения");
        questionVisualTypeList.add(questionVisualType);
        return questionVisualTypeList;
    }
View Full Code Here

TOP

Related Classes of com.vst.model.internal.QuestionVisualType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.