Package org.sete.vo.project

Examples of org.sete.vo.project.ViewProjectsToScoreVo


      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
   
        checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    ScoreProjectService service = getService(ScoreProjectService.class);
    ViewProjectsToScoreVo vptsvo = new ViewProjectsToScoreVo();
    BeanUtils.copyProperties(vptsvo, form);
    vptsvo.setScorer(getAuthenticatedUser(request).getUserId().toString());
    ScienceProjectStatusType spst = ScienceProjectStatusType.forKey(ScienceProjectStatusType.Key.SCORINGINPROGRESS_KEY);
    service.updateProjectStatus(vptsvo.getProjectId(), vptsvo.getScorer(), spst);
   
    HttpSessionManager.bind(request.getSession(), "projectId", vptsvo.getProjectId());
    HttpSessionManager.bind(request.getSession(), "projectName", service.loadScienceProject(vptsvo.getProjectId()).getName());
   
    String stScore = new String();
    if(service.loadScienceProject(vptsvo.getProjectId()).getScore()!=null){
      stScore = service.loadScienceProject(vptsvo.getProjectId()).getScore().toString();
    }
    HttpSessionManager.bind(request.getSession(), "storedScore", stScore);
    return mapping.findForward(WebConstants.FORWARD_VIEW);
   
  }
View Full Code Here


            ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
       
        checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
        ScoreProjectService service = getService(ScoreProjectService.class);
        ViewProjectsToScoreVo vptsvo = new ViewProjectsToScoreVo();
        BeanUtils.copyProperties(vptsvo, form);
        ScienceProjectVo projectVo = service.loadScienceProject(vptsvo.getProjectId());
        request.setAttribute("project", projectVo);
        request.setAttribute("projectId", vptsvo.getProjectId());
        request.setAttribute("projectName", projectVo.getName());
       
        return mapping.findForward(WebConstants.FORWARD_VIEW);
       
    }
View Full Code Here

TOP

Related Classes of org.sete.vo.project.ViewProjectsToScoreVo

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.