Package org.nxplanner.forms

Examples of org.nxplanner.forms.PersonTimesheetForm


    protected ActionForward doExecute(ActionMapping actionMapping,
            ActionForm actionForm,
            HttpServletRequest request,
            HttpServletResponse reply) throws Exception {
        PersonTimesheetForm form = (PersonTimesheetForm)actionForm;
        try {
            Session session = getSession(request);
            try {
                PersonTimesheetQuery query = new PersonTimesheetQuery(getSession(request));
                query.setPersonId(form.getPersonId());
                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/timesheet");
            } catch (Exception ex) {
                session.connection().rollback();
View Full Code Here

TOP

Related Classes of org.nxplanner.forms.PersonTimesheetForm

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.