small corrections to the request and task screens

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@610017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-01-08 15:09:37 +00:00
parent e2f743b813
commit 8050c9b459
4 changed files with 12 additions and 24 deletions
+2 -2
View File
@@ -338,10 +338,10 @@
</menu>
<menu name="RequestTabBar">
<menu-item name="viewRequest" title="${uiLabelMap.ProjectMgrView}">
<link target="ViewRequest?custRequestId?${parameters.custRequestId}"/>
<link target="ViewRequest?custRequestId=${parameters.custRequestId}"/>
</menu-item>
<menu-item name="editRequest" title="${uiLabelMap.ProjectMgrEdit}">
<link target="EditRequest?custRequestId?${parameters.custRequestId}"/>
<link target="EditRequest?custRequestId=${parameters.custRequestId}"/>
</menu-item>
</menu>
</menus>
@@ -81,6 +81,7 @@ under the License.
<set field="showRequestManagementLinks" value="Y"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<entity-one entity-name="CustRequest" value-name="custRequest"/>
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/custRequestWorkEffort.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
@@ -102,11 +102,8 @@ under the License.
<field name="lastModifiedByUserLogin"><hidden/></field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="RequestInfo" type="single" use-row-submit="true" default-entity-name="CustRequest" default-map-name="custRequest">
<form name="RequestInfo" type="single" default-entity-name="CustRequest" default-map-name="custRequest">
<actions>
<entity-one entity-name="CustRequestWorkEffort" value-name="custRequestWorkEffort">
<field-map field-name="workEffortId" env-name="workEffortId"/>
</entity-one>
<entity-one entity-name="WorkEffort" value-name="workEffort">
<field-map field-name="workEffortId" env-name="workEffortId"/>
</entity-one>
@@ -118,15 +115,15 @@ under the License.
<set field="phaseId" from-field="result.phaseId"/>
<set field="phaseName" from-field="result.phaseName"/>
</actions>
<field name="custRequestTypeId"><display-entity entity-name="CustRequestType" description="${description}"></display-entity></field>
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"></display-entity></field>
<field name="custRequestTypeId"><display-entity entity-name="CustRequestType" description="${description}"/></field>
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
<field name="fromPartyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}" key-field-name="partyId"></display-entity></field>
<field name="custRequestName"><display/></field>
<field name="description"><display/></field>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}">
<hyperlink also-hidden="false" description="${projectName}" target="projectView?projectId=${projectId}"/>
</field>
<field name="phaseName"><hyperlink target="FindPhase?projectId=${projectId}" description="${phaseName}"/></field>
<field name="phaseName"><display description="${result.phaseName}"/></field>
<field name="taskName">
<hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffort.workEffortName}"/>
</field>
@@ -222,19 +222,9 @@
<field-map field-name="taskId" env-name="workEffortId"/>
<field-map field-name="hoursPartyId" env-name="userLogin.partyId"/>
</service>
<set field="task" from-field="result.taskInfo"/>
<set field="plannedHours" from-field="task.plannedHours"/>
<set field="actualHours" from-field="task.actualHours"/>
<set field="projectId" from-field="result.projectId"/>
<set field="projectName" from-field="result.projectName"/>
<set field="currentStatusId" from-field="task.currentStatusId"/>
<service service-name="getProjectIdAndName" result-map-name="resultProject">
<field-map field-name="taskId" env-name="workEffortId"/>
</service>
<set field="projectId" from-field="resultProject.projectId"/>
<set field="projectName" from-field="resultProject.projectName"/>
<set field="phaseId" from-field="resultProject.phaseId"/>
<set field="phaseName" from-field="resultProject.phaseName"/>
</row-actions>
<field name="fromDate"><hidden/></field>
<field name="workEffortId"><hidden/></field>
@@ -243,16 +233,16 @@
<field name="workEffortName" title="${uiLabelMap.ProjectMgrTaskName}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${workEffortName}" target="taskView?workEffortId=${workEffortId}"/>
</field>
<field name="phaseName" title="${uiLabelMap.ProjectMgrPhaseName}"><display description="${phaseName}"/></field>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}"><hyperlink target="projectView?projectId=${projectId}" description="${projectName}"/></field>
<field name="currentStatusId" ><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
<field name="phaseName" title="${uiLabelMap.ProjectMgrPhaseName}"><display description="${resultProject.phaseName}"/></field>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}"><hyperlink target="projectView?projectId=${resultProject.projectId}" description="${resultProject.projectName}"/></field>
<field entry-name="result.taskInfo.currentStatusId" name="currentStatusId" ><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
<field name="priority"><display/></field>
<field name="estimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><display type="date"/></field>
<field name="estimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}" red-when="before-now"><display type="date"/></field>
<field name="actualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><display type="date"/></field>
<field name="actualCompletionDate" title="${uiLabelMap.WorkEffortActualCompletionDate}" red-when="before-now"><display type="date"/></field>
<field name="plannedHours" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
<field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
<field entry-name="result.taskInfo.plannedHours" name="plannedHours" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
<field entry-name="result.taskInfo.actualHours" name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
<field name="roleTypeId" parameter-name="newRoleTypeId" title="${uiLabelMap.PartyRole}">
<drop-down>