Package org.nxplanner.forms

Examples of org.nxplanner.forms.AggregateTimesheetForm


    protected ActionForward doExecute(ActionMapping actionMapping,
            ActionForm actionForm,
            HttpServletRequest request,
            HttpServletResponse reply) throws Exception {
        AggregateTimesheetForm form = (AggregateTimesheetForm)actionForm;
        try {
            Session session = getSession(request);
            try {

                form.setAllPeople(session.find("from people in class org.nxplanner.domain.Person " +
                        "where people.hidden = false order by name"));
                AggregateTimesheetQuery query = new AggregateTimesheetQuery(getSession(request));
                query.setPersonIds(form.getSelectedPeople());
                query.setStartDate(form.getStartDate());
                query.setEndDate(form.getEndDate());
                form.setTimesheet(query.getTimesheet());
                if (form.getDateFormat() == null) {
                    String format = getResources(request).getMessage("format.date");
                    form.setDateFormat(new SimpleDateFormat(format));
                }
                return actionMapping.findForward("view/aggregateTimesheet");
            } catch (Exception ex) {
                session.connection().rollback();
                log.error("error", ex);
View Full Code Here

TOP

Related Classes of org.nxplanner.forms.AggregateTimesheetForm

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.