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

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


        Short a;
        a = 0;
        problem.setProblemAward(a);
        problem.setStatusId(0);
        problem.setVotingNum(new Long(0));
        ProblemVersion pv = new ProblemVersion();
        pv.setCreatorId(userId);
        pv.setProblemContent(problemContent);
        // problem.setRoleId(roleId);
        this.dp = dp;

        try {
            dp.create(problem);
            SysUser user = new SysUser();
            user.setUserId(userId);
            user = (SysUser) dp.get(user);

            // Problem pro = new Problem();
            // pro.setProblemId(problem.getProblemId());
            // ArrayList pros = dp.query(pro);
            // newProblem = (Problem)pros.get(0);
            pv.setProblemId(problem.getProblemId());
            dp.create(pv);
            StringBuffer buffer = BeanUtil.serializeObjectToClient(problem);
            buffer.append("<message>保存成功");
            returnMessage = buffer.toString();
        } catch (EasyJException e) {
View Full Code Here


            dp.update(problem);
        }

        String problemContent = request.getParameter("problemContent");
        // 增加完problem之后,需要增加对应的problem_version
        ProblemVersion version = new ProblemVersion();
        version.setCreatorId(userId);
        version.setProblemContent(problemContent);
        version.setProblemId(problem.getProblemId());
        version.setProblemVersionId(new Long(1));
        dp.update(version);
        returnMessage = "problemId=" + problem.getProblemId() + "<message>保存成功";
    }
View Full Code Here

TOP

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

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.