add task dependencies to task overview

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2007-12-26 09:00:57 +00:00
parent 577ccfbf21
commit 7e5e9e85a2
2 changed files with 84 additions and 2 deletions
@@ -418,6 +418,8 @@ under the License.
<include-form name="TaskInfo" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
<include-screen name="taskBefore"/>
<include-screen name="taskAfter"/>
</container>
<container style="righthalf">
<include-screen name="TaskTeamInfo"/>
@@ -510,5 +512,41 @@ under the License.
</container>
</widgets>
</section>
</screen>
</screen>
<screen name="taskBefore">
<section>
<actions>
<entity-and entity-name="WorkEffortAssocView" list-name="depList" filter-by-date="true">
<field-map field-name="workEffortIdTo" env-name="parameters.workEffortId"/>
<field-map field-name="workEffortAssocTypeId" value="WORK_EFF_DEPENDENCY"/>
</entity-and>
</actions>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleTasksBefore}</label></container>
<container style="screenlet-body">
<include-form name="TaskBefore" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</widgets>
</section>
</screen>
<screen name="taskAfter">
<section>
<actions>
<entity-and entity-name="WorkEffortAssocView" list-name="depList" filter-by-date="true">
<field-map field-name="workEffortIdFrom" env-name="parameters.workEffortId"/>
<field-map field-name="workEffortAssocTypeId" value="WORK_EFF_DEPENDENCY"/>
</entity-and>
</actions>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleTasksAfter}</label></container>
<container style="screenlet-body">
<include-form name="TaskAfter" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</widgets>
</section>
</screen>
</screens>
@@ -446,5 +446,49 @@
<field name="description"><display/></field>
<field name="custRequestTypeDescription"><display/></field>
<field name="statusItemDescription"><display/></field>
</form>
</form>
<form name="TaskBefore" target="removeDependency" title="" list-name="depList" type="list" separate-columns="true" paginate-target="Dependencies">
<row-actions>
<service service-name="getProjectTask" result-map-name="result">
<field-map field-name="taskId" env-name="workEffortIdFrom"/>
</service>
<set field="task" from-field="result.taskInfo"/>
<set field="currentStatusId" from-field="task.currentStatusId"/>
<set field="taskName" from-field="task.taskName"/>
<set field="workEffortParentId" from-field="task.workEffortParentId"/>
</row-actions>
<field name="workEffortIdTo"><hidden/></field>
<field name="workEffortAssocTypeId"><hidden/></field>
<field name="fromDate"><hidden/></field>
<field name="workEffortId"><hidden/></field>
<field name="workEffortIdFrom" title="${uiLabelMap.CommonName}"><hyperlink target="taskView?workEffortId=${workEffortIdFrom}" description="${taskName}"/></field>
<field name="workEffortParentId" title="${uiLabelMap.ProjectMgrTaskPhase}"><display-entity entity-name="WorkEffort" key-field-name="workEffortId" description="${workEffortName}"/></field>
<field name="currentStatusId"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><display type="date"/></field>
<field name="estimatedCompletionDate" entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}"><display type="date"/></field>
<field name="actualStartDate" entry-name="workEffortToActualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><display type="date"/></field>
<field name="actualCompletionDate" entry-name="workEffortToActualCompletionDate" title="${uiLabelMap.WorkEffortActualCompletionDate}"><display type="date"/></field>
</form>
<form name="TaskAfter" target="removeDependency" title="" list-name="depList" type="list" separate-columns="true" paginate-target="Dependencies">
<row-actions>
<service service-name="getProjectTask" result-map-name="result">
<field-map field-name="taskId" env-name="workEffortIdTo"/>
</service>
<set field="task" from-field="result.taskInfo"/>
<set field="currentStatusId" from-field="task.currentStatusId"/>
<set field="taskName" from-field="task.taskName"/>
<set field="workEffortParentId" from-field="task.workEffortParentId"/>
</row-actions>
<field name="workEffortIdFrom"><hidden/></field>
<field name="workEffortAssocTypeId"><hidden/></field>
<field name="fromDate"><hidden/></field>
<field name="workEffortId"><hidden/></field>
<field name="workEffortIdTo" title="${uiLabelMap.CommonName}"><hyperlink target="taskView?workEffortId=${workEffortIdTo}" description="${taskName}"/></field>
<field name="workEffortParentId" title="${uiLabelMap.ProjectMgrTaskPhase}"><display-entity entity-name="WorkEffort" key-field-name="workEffortId" description="${workEffortName}"/></field>
<field name="currentStatusId"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><display type="date"/></field>
<field name="estimatedCompletionDate" entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}"><display type="date"/></field>
<field name="actualStartDate" entry-name="workEffortToActualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><display type="date"/></field>
<field name="actualCompletionDate" entry-name="workEffortToActualCompletionDate" title="${uiLabelMap.WorkEffortActualCompletionDate}"><display type="date"/></field>
</form>
</forms>