Changeset 17797

Show
Ignore:
Timestamp:
07/29/08 15:09:04 (1 month ago)
Author:
ritesh
Message:

Filtering functionality for assignments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/src/net/project/hibernate/dao/IPnAssignmentDAO.java

    r17768 r17797  
    6969     
    7070    public List<PnAssignment> getAssignorAssignmentDetails(Integer assignorId); 
     71     
     72    public List<PnAssignment> getAssignmentDetailsWithFilters( 
     73                Integer personId, 
     74                boolean assignor, 
     75                Integer[] projectIds, 
     76                String[] assignmentTypes, 
     77                boolean lateAssignment, 
     78                boolean comingDueDate, 
     79                boolean shouldHaveStart, 
     80                boolean inProgress, 
     81                Date startDate, 
     82                Date endDate, 
     83                Integer statusId, 
     84                Integer percentComplete, 
     85                String PercentCompleteComparator, 
     86                String assignmentName, 
     87                String assignmentNameComparator 
     88    ); 
    7189} 
    7290 
  • trunk/core/src/net/project/hibernate/dao/impl/PnAssignmentDAOImpl.java

    r17768 r17797  
    22 
    33import java.util.ArrayList; 
     4import java.util.Calendar; 
    45import java.util.Date; 
    56import java.util.Iterator; 
     
    696697                return assignments;      
    697698    } 
     699                                                 
     700    public List<PnAssignment> getAssignmentDetailsWithFilters( 
     701                Integer personId, 
     702                boolean assignor, 
     703                Integer[] projectIds, 
     704                String[] assignmentTypes, 
     705                boolean lateAssignment, 
     706                boolean comingDueDate, 
     707                boolean shouldHaveStart, 
     708                boolean inProgress, 
     709                Date startDate, 
     710                Date endDate, 
     711                Integer statusId, 
     712                Integer percentComplete, 
     713                String PercentCompleteComparator, 
     714                String assignmentName, 
     715                String assignmentNameComparator 
     716    ){ 
     717        List<PnAssignment> assignments = new ArrayList<PnAssignment>();          
     718                String sql = "SELECT new PnAssignment (p.displayName, ps.projectId, ps.projectName, "  
     719                                        +" t.taskName, t.workPercentComplete, o.pnObjectType.objectType, a.work, a.workUnits, "  
     720                                        +" a.workComplete, a.startDate, a.endDate, a.percentAllocated, a.comp_id.objectId) " 
     721                                +" FROM PnAssignment a, PnTask t, PnObject o ,PnProjectSpace ps, PnPerson p " 
     722                                        +" WHERE a.comp_id.spaceId = ps.projectId " 
     723                                        +" AND a.comp_id.objectId = o.objectId " 
     724                                        +" AND o.objectId = t.taskId " 
     725                                        +" AND t.recordStatus = 'A' " 
     726                                        +" AND a.recordStatus = 'A' "  
     727                                        +" AND ps.recordStatus = 'A' "; 
     728 
     729                if(assignor){//assignor Assignment 
     730                        sql += " AND a.pnAssignor.personId = p.personId " 
     731                                        +" AND a.pnAssignor.personId = :personId ";                                      
    698732         
     733                }else{//resource Assignment  
     734                        sql += " AND a.comp_id.personId = p.personId " 
     735                                + " AND a.comp_id.personId = :personId ";                                        
     736                } 
     737                 
     738                //project ids clause 
     739                if(projectIds != null){ 
     740                        sql += " AND ps.projectId IN( :projectIds )"; 
     741                } 
     742                //Assignment type clause 
     743                if(assignmentTypes != null){ 
     744                        sql += " AND o.pnObjectType.objectType IN( :assignmentTypes )"; 
     745                } 
     746  
     747                if(lateAssignment){ 
     748                        sql += " AND ((a.percentComplete is null) OR "  
     749                            +" (a.endDate <  :toDayDate AND "  
     750                            +" (a.percentComplete < 1))) "; 
     751                } 
     752  
     753                if(comingDueDate){ 
     754                        sql += " AND ((a.endDate <= :toDayDatePlus7 ) AND (a.endDate >= :toDayDate))"; 
     755                } 
     756                 
     757                if(shouldHaveStart){ 
     758                        sql += " AND ((a.percentComplete is null) OR "  
     759                            +" (a.startDate <=  :toDayDate AND "  
     760                            +" (a.percentComplete = 0))) "; 
     761                } 
     762                 
     763                if(inProgress){ 
     764                        sql += " AND (a.percentComplete > 0 and a.percentComplete < 1)"; 
     765                } 
     766 
     767                if(startDate != null && endDate != null){ 
     768                        if(startDate.equals(endDate)){ 
     769                                sql += " AND a.startDate <= :startDate "; 
     770                                sql += " AND a.endDate >= :endDate "; 
     771                        } else { 
     772                                sql += " AND ( a.startDate between :startDate and :endDate "; 
     773                                sql += " or a.endDate between :startDate and :endDate ) "; 
     774                        } 
     775                } 
     776                 
     777                if(statusId != null){ 
     778                        sql += " AND a.statusId = :statusId"; 
     779                } 
     780                 
     781                if( percentComplete!=null && PercentCompleteComparator != null){ 
     782                        if(PercentCompleteComparator.equalsIgnoreCase("equals")){ 
     783                                sql += " AND a.percentComplete = :percentComplete "; 
     784                        } 
     785                        if(PercentCompleteComparator.equalsIgnoreCase("notequals")){ 
     786                                sql += " AND a.percentComplete != :percentComplete "; 
     787                        } 
     788                        if(PercentCompleteComparator.equalsIgnoreCase("lessthan")){ 
     789                                sql += " AND a.percentComplete < :percentComplete ";     
     790                        } 
     791                        if(PercentCompleteComparator.equalsIgnoreCase("greaterthan")){ 
     792                                sql += " AND a.percentComplete > :percentComplete ";     
     793                        } 
     794                } 
     795                 
     796                if( assignmentName!=null && assignmentNameComparator != null){ 
     797                        if(assignmentNameComparator.equalsIgnoreCase("equals")){ 
     798                                sql += " AND t.taskName = :assignmentName "; 
     799                        } 
     800                        if(assignmentNameComparator.equalsIgnoreCase("notequals")){ 
     801                                sql += " AND t.taskName != :assignmentName "; 
     802                        } 
     803                        if(assignmentNameComparator.equalsIgnoreCase("contains")){ 
     804                                sql += " AND upper(t.taskName) like upper(:assignmentName) ";    
     805                        } 
     806                } 
     807                                  
     808                sql += " ORDER BY ps.projectName "; 
     809                 
     810                try{ 
     811                        Query query = getHibernateTemplate().getSessionFactory().getCurrentSession().createQuery(sql); 
     812                        query.setInteger("personId", personId); 
     813                         
     814                        if (projectIds != null) { 
     815                                query.setParameterList("projectIds", projectIds); 
     816                        } 
     817 
     818                        if (assignmentTypes != null) { 
     819                                query.setParameterList("assignmentTypes", assignmentTypes); 
     820                        } 
     821 
     822                        if (lateAssignment || comingDueDate || shouldHaveStart) { 
     823                                query.setDate("toDayDate", new Date()); 
     824                        } 
     825 
     826                        if (comingDueDate) { 
     827                                Calendar cal = Calendar.getInstance(); 
     828                                cal.add(Calendar.DATE, 8); 
     829                                query.setDate("toDayDatePlus7", cal.getTime()); 
     830                        } 
     831 
     832                        if (startDate != null) { 
     833                                query.setDate("startDate", startDate); 
     834                        } 
     835 
     836                        if (endDate != null) { 
     837                                query.setDate("endDate", endDate); 
     838                        } 
     839 
     840                        if (statusId != null) { 
     841                                query.setInteger("statusId", statusId); 
     842                        } 
     843                         
     844                        if (percentComplete != null && PercentCompleteComparator != null) { 
     845                                query.setInteger("percentComplete", percentComplete); 
     846                        } 
     847 
     848                        if (assignmentName != null && assignmentNameComparator != null) { 
     849                                if (assignmentNameComparator.equalsIgnoreCase("contains")) { 
     850                                        query.setParameter("assignmentName", "%" + assignmentName + "%"); 
     851                                } else { 
     852                                        query.setParameter("assignmentName", assignmentName); 
     853                                } 
     854                        } 
     855                        assignments = query.list(); 
     856                } catch (Exception e) { 
     857                        log.error("Error occured while getting resource assignment details "+e.getMessage());                    
     858                } 
     859                return assignments;      
     860    } 
    699861} 
  • trunk/core/src/net/project/hibernate/service/IPnAssignmentService.java

    r17768 r17797  
    6565    public String getResourceAssignmentsTreeData(Integer resourceId, Integer[] projectIds, Date startDate, Date endDate, DateFormat userDateFormat); 
    6666     
     67    public List<PnAssignment> getAssignmentDetailsWithFilters( 
     68                Integer personId, 
     69                boolean assignor, 
     70                Integer[] projectIds, 
     71                String[] assignmentTypes, 
     72                boolean lateAssignment, 
     73                boolean comingDueDate, 
     74                boolean shouldHaveStart, 
     75                boolean inProgress, 
     76                Date startDate, 
     77                Date endDate, 
     78                Integer statusId, 
     79                Integer percentComplete, 
     80                String PercentCompleteComparator, 
     81                String assignmentName, 
     82                String assignmentNameComparator 
     83    ); 
     84     
     85    public String getAssignmentsTreeData( 
     86                Integer personId, 
     87                boolean assignor, 
     88                Integer[] projectIds, 
     89                String[] assignmentTypes, 
     90                boolean lateAssignment, 
     91                boolean comingDueDate, 
     92                boolean shouldHaveStart, 
     93                boolean inProgress, 
     94                Date startDate, 
     95                Date endDate, 
     96                Integer statusId, 
     97                Integer percentComplete, 
     98                String PercentCompleteComparator, 
     99                String assignmentName, 
     100                String assignmentNameComparator, 
     101                DateFormat userDateFormat 
     102    ); 
     103     
    67104} 
  • trunk/core/src/net/project/hibernate/service/impl/PnAssignmentServiceImpl.java

    r17768 r17797  
    669669    } 
    670670     
     671    public List<PnAssignment> getAssignmentDetailsWithFilters( 
     672                Integer personId, 
     673                boolean assignor, 
     674                Integer[] projectIds, 
     675                String[] assignmentTypes, 
     676                boolean lateAssignment, 
     677                boolean comingDueDate, 
     678                boolean shouldHaveStart, 
     679                boolean inProgress, 
     680                Date startDate, 
     681                Date endDate, 
     682                Integer statusId, 
     683                Integer percentComplete, 
     684                String PercentCompleteComparator, 
     685                String assignmentName, 
     686                String assignmentNameComparator 
     687    ){ 
     688        return pnAssignmentDAO.getAssignmentDetailsWithFilters(personId, assignor, projectIds, 
     689                        assignmentTypes, lateAssignment, comingDueDate, shouldHaveStart, inProgress, startDate, endDate, 
     690                        statusId, percentComplete, PercentCompleteComparator, assignmentName, assignmentNameComparator ); 
     691    } 
     692     
     693    public String getAssignmentsTreeData( 
     694                Integer personId, 
     695                boolean assignor, 
     696                Integer[] projectIds, 
     697                String[] assignmentTypes, 
     698                boolean lateAssignment, 
     699                boolean comingDueDate, 
     700                boolean shouldHaveStart, 
     701                boolean InProgress, 
     702                Date startDate, 
     703                Date endDate, 
     704                Integer statusId, 
     705                Integer percentComplete, 
     706                String PercentCompleteComparator, 
     707                String assignmentName, 
     708                String assignmentNameComparator, 
     709                DateFormat userDateFormat 
     710    ){ 
     711        return createAssignmentsTreeData(getAssignmentDetailsWithFilters(personId, assignor, projectIds, 
     712                        assignmentTypes, lateAssignment, comingDueDate, shouldHaveStart, InProgress, startDate, endDate, 
     713                        statusId, percentComplete, PercentCompleteComparator, assignmentName, assignmentNameComparator ), userDateFormat); 
     714    } 
     715     
    671716    /** 
    672717         * @return 
     
    783828                } 
    784829        } 
     830         
    785831     
    786832} 
  • trunk/core/src/net/project/view/pages/assignments/MyAssignments.java

    r17768 r17797  
    44package net.project.view.pages.assignments; 
    55 
     6import java.util.Date; 
    67import java.util.Iterator; 
    78import java.util.List; 
     
    2223import net.project.space.Space; 
    2324import net.project.util.DateFormat; 
     25import net.project.util.InvalidDateException; 
    2426 
    2527import org.apache.log4j.Logger; 
    2628import org.apache.tapestry.annotations.Inject; 
    2729import org.apache.tapestry.annotations.Persist; 
     30import org.apache.tapestry.annotations.SetupRender; 
    2831import org.apache.tapestry.services.RequestGlobals; 
    2932import org.apache.tapestry.util.TextStreamResponse; 
     
    3841        private String JSPRootURL; 
    3942         
    40         private List<PnProjectSpace> projects; 
    41          
    4243        @Inject 
    4344        private RequestGlobals requestGlobals; 
     
    6263         
    6364        @Persist 
    64         private String filterParameter; 
    65  
     65        private String assigneeOrassignorParameter; 
     66         
     67        @Persist 
     68        private boolean assignor; 
     69 
     70        @Persist 
     71        private Integer[] projectIds; 
     72 
     73        @Persist 
     74        private String[] assignmentTypes; 
     75 
     76        @Persist 
     77        private boolean lateAssignment; 
     78 
     79        @Persist 
     80        private boolean comingDueDate; 
     81 
     82        @Persist 
     83        private boolean shouldHaveStart; 
     84 
     85        @Persist 
     86        private boolean inProgress; 
     87 
     88        @Persist 
     89        private Date startDate; 
     90 
     91        @Persist 
     92        private Date endDate; 
     93 
     94        @Persist 
     95        private Integer statusId; 
     96 
     97        @Persist 
     98        private Integer percentComplete; 
     99 
     100        @Persist 
     101        private String percentCompleteComparator; 
     102 
     103        @Persist 
     104        private String assignmentName; 
     105 
     106        @Persist 
     107        private String assignmentNameComparator; 
     108         
     109        @Persist 
     110        private String projectOptionsString; 
     111         
    66112        /** 
    67113         *  
     
    74120                        validationMessageForBlogEntry = PropertyProvider.get("prm.blog.addweblogentry.validation.message"); 
    75121                        validationMessageForBlogComment = PropertyProvider.get("prm.blog.addweblogentrycomment.validation.message"); 
    76                         filterParameter = "getAssignedToMeTreeData"; 
     122                        assigneeOrassignorParameter = "assignee"; 
    77123                } catch (Exception e) { 
    78124                        log.error("Error occured while getting property tokens : " + e.getMessage()); 
    79125                } 
     126        } 
     127         
     128        @SetupRender 
     129        void setValues(){ 
     130                createUserProjectOptionsString(); 
    80131        } 
    81132         
     
    101152                if(action != null){ 
    102153                        if(action.equalsIgnoreCase("setFilterParameter")){ 
    103                                 setFilterParameter(request.getParameter("filter")); 
    104                                 if(getFilterParameter()!= null && !getFilterParameter().equals("")){ 
    105                                         return new TextStreamResponse("text", "success"); 
    106                                 }else{ 
    107                                         return new TextStreamResponse("text", "failure"); 
    108                                 } 
    109                         } 
    110                         if(action.equalsIgnoreCase("getAssignmentsTreeData")&& getFilterParameter().equalsIgnoreCase("getAssignedToMeTreeData")){ 
    111                                 return getAssignedToMeTreeData();                                
    112                         } 
    113                         if(action.equalsIgnoreCase("getAssignmentsTreeData")&& getFilterParameter().equalsIgnoreCase("getAssignedByMeTreeData")){ 
    114                                 return getAssignedByMeTreeData();                                
    115                         } 
     154                                setAllFilertParameter(request); 
     155                        } 
     156                        if(action.equalsIgnoreCase("getAssignmentsTreeData")){ 
     157                                return getAssignmentTreeData();                          
     158                        } 
     159                         
    116160                        if(action.equalsIgnoreCase("loadBlogEntries")){ 
    117161                                String assignmentId = request.getParameter("assignmentId"); 
     
    126170        /** 
    127171         * @return 
    128         */ 
     172         
    129173        private TextStreamResponse getAssignedToMeTreeData() { 
    130174                Integer[] projectIds = null; 
    131175                 
    132176                IPnProjectSpaceService pnProjectSpaceService = ServiceFactory.getInstance().getPnProjectSpaceService(); 
    133                 projects = pnProjectSpaceService.getProjectsByUserId(Integer.parseInt(SessionManager.getUser().getID())); 
     177                List<PnProjectSpace> projects; = pnProjectSpaceService.getProjectsByUserId(Integer.parseInt(SessionManager.getUser().getID())); 
    134178                int index = 0; 
    135179                if(projects != null){ 
     
    144188                                .getID()), projectIds, null, null, userDateFormat)); 
    145189        } 
    146          
    147         public TextStreamResponse getAssignedByMeTreeData(){ 
    148  
     190        */ 
     191         
     192        public TextStreamResponse getAssignmentTreeData() { 
    149193                IPnAssignmentService pnAssignmentService = ServiceFactory.getInstance().getPnAssignmentService(); 
    150                 return new TextStreamResponse("text", pnAssignmentService.getAssignorAssignmentsTreeData(Integer.parseInt(SessionManager.getUser() 
    151                                 .getID()), userDateFormat)); 
     194                return new TextStreamResponse("text", pnAssignmentService.getAssignmentsTreeData(Integer 
     195                                .parseInt(SessionManager.getUser().getID()), assignor, projectIds, assignmentTypes, lateAssignment, 
     196                                comingDueDate, shouldHaveStart, inProgress, startDate, endDate, statusId, percentComplete, 
     197                                percentCompleteComparator, assignmentName, assignmentNameComparator, userDateFormat)); 
    152198        } 
    153199         
     
    204250                return new TextStreamResponse("text", returnText); 
    205251        } 
     252         
     253        private void createUserProjectOptionsString(){ 
     254                projectOptionsString = "["; 
     255                IPnProjectSpaceService pnProjectSpaceService = ServiceFactory.getInstance().getPnProjectSpaceService(); 
     256                List<PnProjectSpace> projects = pnProjectSpaceService.getProjectsByUserId(Integer.parseInt(SessionManager.getUser().getID())); 
     257                if(projects != null && projects.size()>0){ 
     258                        for(PnProjectSpace project : projects){ 
     259                                if(!projectOptionsString.equals("[")){ 
     260                                        projectOptionsString += ","; 
     261                                } 
     262                                projectOptionsString += "['"+ project.getProjectId()+"','"+ project.getProjectName() +"']"; 
     263                        } 
     264                } 
     265                projectOptionsString += "]"; 
     266        } 
     267         
     268        private boolean setAllFilertParameter(HttpServletRequest request) { 
     269                if (request.getParameter("assigneeOrAssignor") != null && request.getParameter("assigneeOrAssignor").equals("assignor")) { 
     270                        setAssignor(true); 
     271                        setAssigneeOrassignorParameter("assignor"); 
     272                } else { 
     273                        setAssignor(false); 
     274                        setAssigneeOrassignorParameter("assignee"); 
     275                } 
     276 
     277                if (request.getParameter("projects") != null && !request.getParameter("projects").equals("")) { 
     278                        String strProjectIds[] = request.getParameter("projects").split(","); 
     279                        if (strProjectIds != null && strProjectIds.length > 0) { 
     280                                projectIds = new Integer[strProjectIds.length]; 
     281                                int index = 0; 
     282                                for (String strProjectId : strProjectIds) { 
     283                                        if (!strProjectId.equals("")) { 
     284                                                projectIds[index++] = Integer.parseInt(strProjectId); 
     285                                        } 
     286                                } 
     287                        } 
     288 
     289                } else { 
     290                        projectIds = null; 
     291                } 
     292 
     293                if (request.getParameter("assignmentTypes") != null && !request.getParameter("assignmentTypes").equals("")) { 
     294                        assignmentTypes = request.getParameter("assignmentTypes").split(","); 
     295                } else { 
     296                        assignmentTypes = null; 
     297                } 
     298 
     299                if (request.getParameter("lateAssignment") != null && request.getParameter("lateAssignment").equals("true")) { 
     300                        setLateAssignment(true); 
     301                } else { 
     302                        setLateAssignment(false); 
     303                } 
     304 
     305                if (request.getParameter("comingDueDate") != null && request.getParameter("comingDueDate").equals("true")) { 
     306                        setComingDueDate(true); 
     307                } else { 
     308                        setComingDueDate(false); 
     309                } 
     310 
     311                if (request.getParameter("shouldHaveStart") != null && request.getParameter("shouldHaveStart").equals("true")) { 
     312                        setShouldHaveStart(true); 
     313                } else { 
     314                        setShouldHaveStart(false); 
     315                } 
     316 
     317                if (request.getParameter("inProgress") != null && request.getParameter("inProgress").equals("true")) { 
     318                        setInProgress(true); 
     319                } else { 
     320                        setInProgress(false); 
     321                } 
     322 
     323                if (request.getParameter("startDate") != null && !request.getParameter("startDate").equals("")) { 
     324                        try { 
     325                                startDate = userDateFormat.parseDateString(request.getParameter("startDate"), "MM/dd/yyyy"); 
     326                        } catch (InvalidDateException pnetEx) { 
     327                                pnetEx.printStackTrace(); 
     328                        } 
     329                } else { 
     330                        startDate = null; 
     331                } 
     332 
     333                if (request.getParameter("endDate") != null && !request.getParameter("endDate").equals("")) { 
     334                        try { 
     335                                endDate = userDateFormat.parseDateString(request.getParameter("endDate"), "MM/dd/yyyy"); 
     336                        } catch (InvalidDateException pnetEx) { 
     337                                pnetEx.printStackTrace(); 
     338                        } 
     339                } else { 
     340                        endDate = null; 
     341                } 
     342 
     343                if (request.getParameter("statusId") != null && !request.getParameter("statusId").equals("")) { 
     344                        statusId = Integer.parseInt(request.getParameter("statusId")); 
     345                } else { 
     346                        statusId = null; 
     347                } 
     348 
     349                if (request.getParameter("percentComplete") != null && !request.getParameter("percentComplete").equals("") 
     350                                && request.getParameter("percentCompleteComparator") != null 
     351                                && !request.getParameter("percentCompleteComparator").equals("")) { 
     352                        percentComplete = Integer.parseInt(request.getParameter("percentComplete")); 
     353                        percentCompleteComparator = request.getParameter("percentCompleteComparator"); 
     354                } else { 
     355                        percentComplete = null; 
     356                        percentCompleteComparator = null; 
     357                } 
     358 
     359                if (request.getParameter("assignmentName") != null && !request.getParameter("assignmentName").equals("") 
     360                                && request.getParameter("assignmentNameComparator") != null 
     361                                && !request.getParameter("assignmentNameComparator").equals("")) { 
     362                        assignmentName = request.getParameter("assignmentName"); 
     363                        assignmentNameComparator = request.getParameter("assignmentNameComparator"); 
     364                } else { 
     365                        assignmentName = null; 
     366                        assignmentNameComparator = null; 
     367                } 
     368                return true; 
     369        } 
    206370 
    207371        /** 
     
    251415         * @return the filterParameter 
    252416         */ 
    253         public String getFilterParameter() { 
    254                 return filterParameter; 
     417        public String getAssigneeOrassignorParameter() { 
     418                return assigneeOrassignorParameter; 
    255419        } 
    256420 
     
    258422         * @param filterParameter the filterParameter to set 
    259423         */ 
    260         public void setFilterParameter(String filterParameter) { 
    261                 this.filterParameter = filterParameter; 
     424        public void setAssigneeOrassignorParameter(String filterParameter) { 
     425                this.assigneeOrassignorParameter = filterParameter; 
     426        } 
     427 
     428        /** 
     429         * @return the assignmentName 
     430         */ 
     431        public String getAssignmentName() { 
     432                return assignmentName; 
     433        } 
     434 
     435        /** 
     436         * @param assignmentName the assignmentName to set 
     437         */ 
     438        public void setAssignmentName(String assignmentName) { 
     439                this.assignmentName = assignmentName; 
     440        } 
     441 
     442        /** 
     443         * @return the assignmentNameComparator 
     444         */ 
     445        public String getAssignmentNameComparator() { 
     446                return assignmentNameComparator; 
     447        } 
     448 
     449        /** 
     450         * @param assignmentNameComparator the assignmentNameComparator to set 
     451         */ 
     452        public void setAssignmentNameComparator(String assignmentNameComparator) { 
     453                this.assignmentNameComparator = assignmentNameComparator; 
     454        } 
     455 
     456        /** 
     457         * @return the assignmentTypes 
     458         */ 
     459        public String[] getAssignmentTypes() { 
     460                return assignmentTypes; 
     461        } 
     462 
     463        /** 
     464         * @param assignmentTypes the assignmentTypes to set 
     465         */ 
     466        public void setAssignmentTypes(String[] assignmentTypes) { 
     467                this.assignmentTypes = assignmentTypes; 
     468        } 
     469 
     470        /** 
     471         * @return the assignor 
     472         */ 
     473        public boolean isAssignor() { 
     474                return assignor; 
     475        } 
     476 
     477        /** 
     478         * @param assignor the assignor to set 
     479         */ 
     480        public void setAssignor(boolean assignor) { 
     481                this.assignor = assignor; 
     482        } 
     483 
     484        /** 
     485         * @return the comingDueDate 
     486         */ 
     487        public boolean isComingDueDate() { 
     488                return comingDueDate; 
     489        } 
     490 
     491        /** 
     492         * @param comingDueDate the comingDueDate to set 
     493         */ 
     494        public void setComingDueDate(boolean comingDueDate) { 
     495                this.comingDueDate = comingDueDate; 
     496        } 
     497 
     498        /** 
     499         * @return the endDate 
     500         */ 
     501        public Date getEndDate() { 
     502                return endDate; 
     503        } 
     504 
     505        /** 
     506         * @param endDate the endDate to set 
     507         */ 
     508        public void setEndDate(Date endDate) { 
     509                this.endDate = endDate; 
     510        } 
     511 
     512        /** 
     513         * @return the lateAssignment 
     514         */ 
     515        public boolean isLateAssignment() { 
     516                return lateAssignment; 
     517        } 
     518 
     519        /** 
     520         * @param lateAssignment the lateAssignment to set 
     521         */ 
     522        public void setLateAssignment(boolean lateAssignment) { 
     523                this.lateAssignment = lateAssignment; 
     524        } 
     525 
     526        /** 
     527         * @return the percentComplete 
     528         */ 
     529        public Integer getPercentComplete() { 
     530                return percentComplete; 
     531        } 
     532 
     533        /** 
     534         * @param percentComplete the percentComplete to set 
     535         */ 
     536        public void setPercentComplete(Integer percentComplete) { 
     537                this.percentComplete = percentComplete; 
     538        } 
     539 
     540        /** 
     541         * @return the projectIds 
     542         */ 
     543        public Integer[] getProjectIds() { 
     544                return projectIds; 
     545        } 
     546 
     547        /** 
     548         * @param projectIds the projectIds to set 
     549         */ 
     550        public void setProjectIds(Integer[] projectIds) { 
     551                this.projectIds = projectIds; 
     552        } 
     553 
     554        /** 
     555         * @return the shouldHaveStart 
     556         */ 
     557        public boolean isShouldHaveStart() { 
     558                return shouldHaveStart; 
     559        } 
     560 
     561        /** 
     562         * @param shouldHaveStart the shouldHaveStart to set 
     563         */ 
     564        public void setShouldHaveStart(boolean shouldHaveStart) { 
     565                this.shouldHaveStart = shouldHaveStart; 
     566        } 
     567 
     568        /** 
     569         * @return the startDate 
     570         */ 
     571        public Date getStartDate() { 
     572                return startDate; 
     573        } 
     574 
     575        /** 
     576         * @param startDate the startDate to set 
     577         */ 
     578        public void setStartDate(Date startDate) { 
     579                this.startDate = startDate; 
     580        } 
     581 
     582        /** 
     583         * @return the statusId 
     584         */ 
     585        public Integer getStatusId() { 
     586                return statusId; 
     587        } 
     588 
     589        /** 
     590         * @param statusId the statusId to set 
     591         */ 
     592        public void setStatusId(Integer statusId) { 
     593                this.statusId = statusId; 
     594        } 
     595 
     596        /** 
     597         * @param moduleId the moduleId to set 
     598         */ 
     599        public void setModuleId(Integer moduleId) { 
     600                this.moduleId = moduleId; 
     601        } 
     602 
     603        /** 
     604         * @return the inProgress 
     605         */ 
     606        public boolean isInProgress() { 
     607                return inProgress; 
     608        } 
     609 
     610        /** 
     611         * @param inProgress the inProgress to set 
     612         */ 
     613        public void setInProgress(boolean inProgress) { 
     614                this.inProgress = inProgress; 
     615        } 
     616 
     617        /** 
     618         * @return the projectOptionsString 
     619         */ 
     620        public String getProjectOptionsString() { 
     621                return projectOptionsString; 
     622        } 
     623 
     624        /** 
     625         * @param projectOptionsString the projectOptionsString to set 
     626         */ 
     627        public void setProjectOptionsString(String projectOptionsString) { 
     628                this.projectOptionsString = projectOptionsString; 
     629        } 
     630 
     631        /** 
     632         * @return the percentCompleteComparator 
     633         */ 
     634        public String getPercentCompleteComparator() { 
     635                return percentCompleteComparator; 
     636        } 
     637 
     638        /** 
     639         * @param percentCompleteComparator the percentCompleteComparator to set 
     640         */ 
     641        public void setPercentCompleteComparator(String percentCompleteComparator) { 
     642                this.percentCompleteComparator = percentCompleteComparator; 
    262643        } 
    263644 
  • trunk/core/web/html/assignments/MyAssignments.html

    r17768 r17797  
    33<t:BlogLayout xmlns:t="http://ta