Author: hansbak
Date: Mon Oct 13 03:11:14 2008
New Revision: 704001
URL:
http://svn.apache.org/viewvc?rev=704001&view=revLog:
add sorting on phase/taskname
Modified:
ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy
Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=704001&r1=704000&r2=704001&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Mon Oct 13 03:11:14 2008
@@ -498,7 +498,9 @@
<return/>
</if-empty>
<entity-and entity-name="WorkEffort" list-name="phases">
+ <field-map field-name="workEffortTypeId" value="PHASE"/>
<field-map field-name="workEffortParentId" env-name="parameters.projectId"/>
+ <order-by field-name="workEffortName"/>
</entity-and>
<if-not-empty field="phases">
<iterate entry-name="phase" list-name="phases">
Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy?rev=704001&r1=704000&r2=704001&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy Mon Oct 13 03:11:14 2008
@@ -63,7 +63,7 @@
}
newPhase.workEffortTypeId = "PHASE";
ganttList.add(newPhase);
- tasks = delegator.findByAnd("WorkEffort", ["workEffortParentId" : phase.phaseId]);
+ tasks = delegator.findByAnd("WorkEffort", ["workEffortParentId" : phase.phaseId], ["workEffortName"]);
if (tasks){
tasks.each { task ->
resultTaskInfo = dispatcher.runSync("getProjectTask", [userLogin : userLogin , taskId : task.workEffortId]);