Package org.nxplanner.domain.virtual

Examples of org.nxplanner.domain.virtual.TimesheetEntry


    public TestTimesheetEntry(String name) {
        super(name);
    }

    public static TimesheetEntry getTestTimesheetEntry() {
        TimesheetEntry te = new TimesheetEntry();
        te.setPersonName(PERSON_NAME);
        te.setProjectId(PROJECT_ID);
        te.setProjectName(PROJECT_NAME);
        te.setIterationId(ITERATION_ID);
        te.setIterationName(ITERATION_NAME);
        te.setStoryId(STORY_ID);
        te.setStoryName(STORY_NAME);
        te.setTotalDuration(DURATION);
        return te;
    }
View Full Code Here


        form.setDateFormat(new SimpleDateFormat("yyyy-MM-dd"));
    }

    protected Timesheet buildTimesheet() {
        Timesheet timesheet = new Timesheet();
        TimesheetEntry entry1 = new TimesheetEntry();
        entry1.setPersonName("Test User");
        entry1.setProjectName("Unit Testing");
        entry1.setIterationName("Test Iteration");
        entry1.setStoryName("Test Story");
        entry1.setTotalDuration(6.5);
        timesheet.addEntry(entry1);
        return timesheet;
    }
View Full Code Here

                ResultSet results = stmt.executeQuery();
                for (boolean isRow = results.next(); isRow; isRow = results.next()) {
                    final int remoteUserId = SecurityHelper.getRemoteUserId(ThreadServletRequest.get());
                    if (SystemAuthorizer.get().hasPermission(results.getInt("project_id"),
                            remoteUserId, "system.project", results.getInt("project_id"), "read")) {
                        TimesheetEntry time = new TimesheetEntry();
                        time.setProjectId(results.getInt("project_id"));
                        time.setProjectName(results.getString("project_name"));
                        time.setIterationId(results.getInt("iteration_id"));
                        time.setIterationName(results.getString("iteration_name"));
                        time.setStoryId(results.getInt("story_id"));
                        time.setStoryName(results.getString("story_name"));
                        time.setTotalDuration(results.getDouble("total_duration"));
                        timesheet.addEntry(time);
                    }
                }
                stmt.close();
            } catch (Exception ex) {
View Full Code Here

        form.setDateFormat(new SimpleDateFormat("yyyy-MM-dd"));
    }

    protected Timesheet buildTimesheet() {
        Timesheet timesheet = new Timesheet();
        TimesheetEntry entry1 = new TimesheetEntry();
        entry1.setPersonName("Test User");
        entry1.setProjectName("Unit Testing");
        entry1.setIterationName("Test Iteration");
        entry1.setStoryName("Test Story");
        entry1.setTotalDuration(6.5);
        timesheet.addEntry(entry1);
        return timesheet;
    }
View Full Code Here

                stmt.setDate(3, new java.sql.Date(this.startDate.getTime()));
                stmt.setDate(4, new java.sql.Date(this.endDate.getTime()));
                stmt.setInt(5, this.personId);
                ResultSet results = stmt.executeQuery();
                for (boolean isRow = results.next(); isRow; isRow = results.next()) {
                    TimesheetEntry time = new TimesheetEntry();
                    time.setPersonName(results.getString("person_name"));
                    time.setProjectId(results.getInt("project_id"));
                    time.setProjectName(results.getString("project_name"));
                    time.setIterationId(results.getInt("iteration_id"));
                    time.setIterationName(results.getString("iteration_name"));
                    time.setStoryId(results.getInt("story_id"));
                    time.setStoryName(results.getString("story_name"));
                    time.setTotalDuration(results.getDouble("total_duration"));
                    timesheet.addEntry(time);
                }
                stmt.close();

                doDailyQuery(conn, timesheet, dailyQueryByReportDate);
View Full Code Here

TOP

Related Classes of org.nxplanner.domain.virtual.TimesheetEntry

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.