add a partyList to the task overview

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2007-12-17 04:35:23 +00:00
parent 588183dbe7
commit 1fffed1317
4 changed files with 38 additions and 3 deletions
@@ -403,6 +403,7 @@
<set field="taskParty.partyName" value="${partyNameView.lastName},${partyNameView.firstName}${partyNameView.groupName}"/>
</if-not-empty>
<set field="taskParty.roleTypeId" from-field="task.roleTypeId"/>
<set field="taskParty.statusId" from-field="task.statusId"/>
<set field="taskParty.fromDate" from-field="task.fromDate"/>
<set field="taskParty.thruDate" from-field="task.thruDate"/>
</if-empty>
@@ -410,6 +411,7 @@
<!-- get the planned hours -->
<set field="lowInfo" from-field="task"/>
<set field="hoursPartyId" from-field="task.partyId"/>
<get-related-one value-name="task" relation-name="WorkEffort" to-value-name="lowInfo"/>
<call-simple-method method-name="getHours"/>
<set field="taskParty.plannedHours" from-field="highInfo.plannedHours"/>
<set field="taskParty.actualHours" from-field="highInfo.actualHours"/>
@@ -331,6 +331,7 @@ under the License.
</container>
</container>
<container style="righthalf">
<include-screen name="TaskTeamInfo"/>
<include-screen name="NoteInfo"/>
</container>
</widgets>
@@ -384,4 +385,24 @@ under the License.
</widgets>
</section>
</screen>
<screen name="TaskTeamInfo">
<section>
<actions>
<service service-name="getTasksByParties" result-map-name="result">
<field-map field-name="workEffortId" env-name="workEffortId"/>
</service>
<set field="taskParties" from-field="result.taskParties"/>
</actions>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<label style="boxhead" text="">${uiLabelMap.TaskTeam}</label>
</container>
<container style="screenlet-body">
<include-form name="ListTaskParties" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</widgets>
</section>
</screen>
</screens>
@@ -45,7 +45,7 @@ under the License.
</widgets>
</section>
</screen>
<screen name="EditTimeSheet1">
<screen name="EditTimeSheet">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindTimesheet"/>
@@ -71,7 +71,8 @@ under the License.
</decorator-screen>
</widgets>
</section>
</screen>
</screen>
<screen name="MyTimesheets">
<section>
<actions>
@@ -284,5 +284,16 @@
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date"/></field>
<field name="deleteButton" widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="complete"><hyperlink description="set to Complete" target="updateTaskPartyAssign?workEffortId=${workEffortId}&amp;partyId=${partyId}&amp;roleTypeId=${roleTypeId}&amp;fromDate=${fromDate}&amp;statusId=CAL_COMPLETED&amp;thruDate=${nowDate}"/></field>
</form>
</form>
<form name="ListTaskParties" type="list" list-name="taskParties">
<field name="partyId" title="${uiLabelMap.CommonName}">
<hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" target-type="inter-app" description="${partyName}"/>
</field>
<field name="roleTypeId" title="${uiLabelMap.ProjectMgrPartyRoleTypeId}"><display-entity entity-name="RoleType" description="${description}"/></field>
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" description="${description}"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date"/></field>
<field name="plannedHours"><display/></field>
<field name="actualHours"><display/></field>
</form>
</forms>