Examples of IterationForm


Examples of net.sf.pmr.struts.agilePlanning.iteration.form.IterationForm

        if (StringUtils.isNotEmpty( (String) request.getParameter("persistanceId"))) {
     
            Iteration iteration = iterationService.findByPersistanceId(Integer.parseInt((String)request.getParameter("persistanceId")));

            // populate the form
            IterationForm iterationForm = (IterationForm) form;
           
           iterationForm.setEndDate(iteration.getEnd());
           iterationForm.setPersistanceId(iteration.getPersistanceId());
           iterationForm.setPersistanceVersion(iteration.getPersistanceVersion());
           iterationForm.setStartDate(iteration.getStart());
           // iterationForm.setReleasePersistanceId(iteration.getRelease().getPersistanceId());
           
        }
       
        // populate the release list box
View Full Code Here

Examples of net.sf.pmr.struts.agilePlanning.iteration.form.IterationForm

        // get the  service
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
       
        // get the form
        IterationForm iterationform = (IterationForm) form;

        // TODO faire une seul m�thode iterationService.save ?
        Errors errors = null;
        // get the current basicProject from the session
        Integer basicProjectPersistanceId = (Integer) request.getSession().getAttribute("basicProject.persistanceId");
        // save the iteration
        if (iterationform.getPersistanceId() == 0) {
            // add
            errors = iterationService.add(basicProjectPersistanceId.intValue(), iterationform.getStartDate(), iterationform.getEndDate());   
        } else {
            // update
            errors = iterationService.update(iterationform.getStartDate(), iterationform.getEndDate(), iterationform.getPersistanceId(), iterationform.getPersistanceVersion());
        }

        // Convert into struts action errors
        ActionMessages actionMessages = new ActionMessages();
View Full Code Here

Examples of net.sf.pmr.struts.agilePlanning.iteration.form.IterationForm

        if (StringUtils.isNotEmpty( (String) request.getParameter("persistanceId"))) {
     
            Iteration iteration = iterationService.findByPersistanceId(Integer.parseInt((String)request.getParameter("persistanceId")));

            // populate the form
            IterationForm iterationForm = (IterationForm) form;
           
           iterationForm.setEndDate(iteration.getEndDate());
           iterationForm.setPersistanceId(iteration.getPersistanceId());
           iterationForm.setPersistanceVersion(iteration.getPersistanceVersion());
           iterationForm.setStartDate(iteration.getStartDate());
           // iterationForm.setReleasePersistanceId(iteration.getRelease().getPersistanceId());
           
        }
       
        // populate the release list box
View Full Code Here

Examples of net.sf.pmr.struts.agilePlanning.iteration.form.IterationForm

        // get the  service
        IterationService iterationService = AgilePlanningObjectFactory.getIterationService();
       
        // get the form
        IterationForm iterationform = (IterationForm) form;

        // TODO faire une seul m�thode iterationService.save ?
        Errors errors = null;
        // get the current basicProject from the session
        Integer basicProjectPersistanceId = (Integer) request.getSession().getAttribute("basicProject.persistanceId");
        // save the iteration
        if (iterationform.getPersistanceId() == 0) {
            // add
            errors = iterationService.add(basicProjectPersistanceId.intValue(), iterationform.getStartDate(), iterationform.getEndDate());   
        } else {
            // update
            errors = iterationService.update(iterationform.getStartDate(), iterationform.getEndDate(), iterationform.getPersistanceId(), iterationform.getPersistanceVersion());
        }

        // Convert into struts action errors
        ActionMessages actionMessages = new ActionMessages();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.