Package cn.edu.pku.dr.requirement.elicitation.data

Examples of cn.edu.pku.dr.requirement.elicitation.data.FinalsolutionEvaluation


                            .getProblemsolutionId());
                    finalsolution = (Finalsolution) sdp.get(finalsolution);
                    finalsolution.setFinalgoodNum(new Long(finalsolution
                            .getFinalgoodNum().intValue() + 1));
                    sdp.update(finalsolution);
                    FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
                    fse.setFinalsolutionId(finalsolution.getFinalsolutionId());
                    fse.setIsGood("Y");
                    sdp.create(fse);
                    xml
                            .append("<message>success</message><choose>flower</choose><problemsolutionId>"
                                    + pse.getProblemsolutionId()
                                    + "</problemsolutionId></result>");
                }
            } catch (EasyJException e) {
                xml.append("<message>failure</message></result>");
            }
            try {
                if (request.getParameter("useState").equals("Y")) {
                    ps.setVotingGoodNum((new Long(ps.getVotingGoodNum()
                            .intValue() + 1)));
                    cdp.update(ps);
                    pse.setStage(2);
                    pse.setIsGood("Y");
                    sdp.create(pse);
                    xml
                            .append("<message>success</message><choose>flower</choose><problemsolutionId>"
                                    + pse.getProblemsolutionId()
                                    + "</problemsolutionId></result>");
                }
            } catch (EasyJException e) {
                xml.append("<message>failure</message></result>");
            }
            try {
                if (request.getParameter("useState").equals("N")) {
                    ps.setGoodNum(new Long(ps.getGoodNum().intValue() + 1));
                    cdp.update(ps);
                    pse.setIsGood("Y");
                    pse.setStage(2);
                    sdp.create(pse);
                    xml
                            .append("<message>success</message><choose>flower</choose><problemsolutionId>"
                                    + pse.getProblemsolutionId()
                                    + "</problemsolutionId></result>");
                }
            } catch (EasyJException e) {
                xml.append("<message>failure</message></result>");
            }
        }

        if (request.getParameter("badegg") != null) {
            try {
                if (request.getParameter("useState").equals("C")) {
                    Finalsolution finalsolution = new Finalsolution();
                    finalsolution.setProblemsolutionId(pse
                            .getProblemsolutionId());
                    finalsolution = (Finalsolution) sdp.get(finalsolution);
                    finalsolution.setFinalbadNum(new Long(finalsolution
                            .getFinalbadNum().intValue() + 1));
                    sdp.update(finalsolution);
                    FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
                    fse.setFinalsolutionId(finalsolution.getFinalsolutionId());
                    fse.setIsGood("N");
                    sdp.create(fse);
                    xml
                            .append("<message>success</message><choose>badegg</choose><problemsolutionId>"
                                    + pse.getProblemsolutionId()
                                    + "</problemsolutionId></result>");
View Full Code Here


                    .getProblemsolutionId());
            pse_stage.setStage(1);
            ArrayList pses_stage1 = sdp.query(pse_stage);
            pse_stage.setStage(2);
            ArrayList pses_stage2 = sdp.query(pse_stage);
            FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
            Finalsolution fs = new Finalsolution();
            fs.setProblemsolutionId(problemsolution.getProblemsolutionId());
            try {
                fs = (Finalsolution) sdp.get(fs);
                if (fs != null) {
                    fs = (Finalsolution) sdp.get(fs);
                    fse.setFinalsolutionId(fs.getFinalsolutionId());
                    ArrayList fses = sdp.query(fse);
                    while (stageflag3 == true && j < fses.size()) {
                        fs = (Finalsolution) fses.get(j);
                        if (pse.getCreatorId().intValue() == userId.intValue()) {
                            stageflag3 = false;
View Full Code Here

TOP

Related Classes of cn.edu.pku.dr.requirement.elicitation.data.FinalsolutionEvaluation

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.