Files
ofbiz-framework/specialpurpose/projectmgr/widget/forms/RequestForms.xml
T
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00

198 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="ListRequests" type="list" extends="ListRequestList" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml"
paginate-target="requestlist" >
<field name="createTaskFromRequest" title="${uiLabelMap.ProjectMgrCreateTaskFromRequest}" widget-style="buttontext">
<hyperlink description="${uiLabelMap.ProjectMgrCreateTaskFromRequest}" target="EditTaskFromRequest">
<parameter param-name="custRequestId"/>
</hyperlink>
</field>
</form>
<form name="EditCustRequest" type="single" target="updaterequest" title="Request" default-map-name="custRequest"
extends="EditSmallCustRequest" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
<field name="description" parameter-name="story" use-when="custRequest==null"><textarea cols="60" rows="12"/></field>
<field name="workEffortName"><hidden value="${custRequestName}"/></field>
<field name="workEffortId"><hidden value="${custRequestId}"/></field>
<field name="statusId"><hidden value="PAS_ASSIGNED"/></field>
<field name="workEffortTypeId"><hidden value="TASK"/></field>
<field name="currentStatusId"><hidden value="PTS_CREATED"/></field>
<field name="childWorkEffortId" parameter-name="workEffortParentId" title="${uiLabelMap.ProjectMgrProjectAndPhaseName}*">
<drop-down allow-empty="true">
<entity-options entity-name="WorkEffortAndChild" description="${workEffortName} -- ${childWorkEffortName}">
<entity-constraint name="workEffortTypeId" value="PROJECT"/>
<entity-constraint name="childWorkEffortTypeId" value="PHASE"/>
<entity-order-by field-name="workEffortName"/>
<entity-order-by field-name="childWorkEffortName"/>
</entity-options>
</drop-down>
</field>
<field name="partyId" title="${uiLabelMap.PartyParty}">
<drop-down allow-empty="true">
<entity-options entity-name="PartyRoleAndPartyDetail" description="${firstName} ${lastName}">
<entity-constraint name="roleTypeId" value="PROJECT_TEAM"/>
<entity-order-by field-name="lastName"/>
</entity-options>
</drop-down>
</field>
<field name="roleTypeId"><hidden value="PROJECT_TEAM"/></field>
<field name="custRequestDate" title="${uiLabelMap.OrderRequestDate}"><date-time type="timestamp"/></field>
<field name="responseRequiredDate"><date-time type="timestamp"/></field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
<sort-order>
<sort-field name="custRequestId"/>
<sort-field name="fromPartyId"/>
<sort-field name="custRequestName"/>
<sort-field name="custRequestTypeId"/>
<sort-field name="description"/>
<sort-field name="statusId"/>
<sort-field name="priority"/>
<sort-field name="childWorkEffortId"/>
<sort-field name="partyId"/>
<sort-field name="custRequestDate"/>
<sort-field name="responseRequiredDate"/>
<sort-field name="submitButton"/>
</sort-order>
</form>
<form name="RequestInfo" type="single" default-entity-name="CustRequest" default-map-name="custRequest"
header-row-style="header-row" default-table-style="basic-table">
<actions>
<entity-one entity-name="WorkEffort" value-field="workEffort">
<field-map field-name="workEffortId" from-field="workEffortId"/>
</entity-one>
<service service-name="getProjectIdAndNameFromTask" result-map="result">
<field-map field-name="taskId" from-field="workEffortId"/>
</service>
<set field="projectId" from-field="result.projectId"/>
<set field="projectName" from-field="result.projectName"/>
</actions>
<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">
<sub-hyperlink target="viewprofile" description="[${fromPartyId}]">
<parameter param-name="partyId" from-field="fromPartyId"/>
</sub-hyperlink>
</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">
<parameter param-name="projectId"/>
</hyperlink>
</field>
<field name="phaseName"><display description="${result.phaseName}"/></field>
<field name="taskName">
<hyperlink target="taskView" description="${workEffort.workEffortName}">
<parameter param-name="workEffortId"/>
</hyperlink>
</field>
<field name="custRequestDate" title="${uiLabelMap.OrderRequestDate}"><display type="date"/></field>
<field name="createdDate"><display type="date"/></field>
<field name="lastModifiedDate"><display type="date"/></field>
</form>
<form name="RequestRolesInfo" type="list"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<entity-and entity-name="CustRequestParty">
<field-map field-name="custRequestId" from-field="custRequestId"/>
</entity-and>
</actions>
<row-actions>
<entity-one entity-name="Person" value-field="person">
<field-map field-name="partyId" from-field="partyId"/>
</entity-one>
</row-actions>
<field name="partyId" widget-style="buttontext">
<hyperlink description="${partyId}" target="viewprofile">
<parameter param-name="partyId"/>
</hyperlink>
</field>
<field name="RequestTaker"><display description="${person.personalTitle} ${person.firstName} ${person.middleName} ${person.lastName}"/></field>
</form>
<form name="ListRequestsWorkEffortForm" type="list" use-row-submit="true" list-name="requests" paginate-target="requestlist"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<entity-and entity-name="WorkEffortCustRequestView" list="requests">
<field-map field-name="statusId" value="CRQ_REVIEWED"/>
<order-by field-name="createdDate"/>
</entity-and>
</actions>
<row-actions>
<service service-name="getProjectIdAndNameFromTask" result-map="sResult">
<field-map field-name="taskId" from-field="workEffortId"/>
</service>
</row-actions>
<field name="custRequestId">
<hyperlink target="ViewRequest" description="${custRequestName} [${custRequestId}]">
<parameter param-name="custRequestId"/>
</hyperlink>
</field>
<field name="projectId" title="${uiLabelMap.ProjectMgrProjectId}" map-name="sResult">
<hyperlink target="projectView" description="${sResult.projectName} [${sResult.projectId}]">
<parameter param-name="projectId" from-field="sResult.projectId"/>
</hyperlink>
</field>
<field name="phaseId" map-name="sResult">
<display description="${sResult.phaseName} [${sResult.phaseId}]"/>
</field>
<field name="workEffortId">
<hyperlink target="taskView" description="${workEffortName} [${workEffortId}]">
<parameter param-name="workEffortId"/>
</hyperlink>
</field>
<field name="priority"><display/></field>
<field name="createdDate"><display type="date"/></field>
<field name="fromPartyId">
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}" key-field-name="partyId">
<sub-hyperlink target="viewprofile" description="[${fromPartyId}]">
<parameter param-name="partyId" from-field="fromPartyId"/>
</sub-hyperlink>
</display-entity>
</field>
<field name="statusId">
<display-entity also-hidden="false" entity-name="StatusItem"/>
</field>
</form>
<form name="ViewRequestWorkEfforts" extends="ViewRequestWorkEfforts" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
<field name="workEffortId">
<hyperlink target="taskView" description="${workEffortName} [${workEffortId}]">
<parameter param-name="workEffortId"/>
</hyperlink>
</field>
</form>
<form name="OverviewRequestItems" extends="OverviewRequestItems" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
<field name="custRequestItemSeqId" title="${uiLabelMap.CommonNbr}"><display/></field>
<field name="story" title="${uiLabelMap.CommonText}"><display/></field>
<field name="productId"><ignored/></field>
<field name="statusId"><ignored/></field>
<field name="quantity"><ignored/></field>
<field name="description"><ignored/></field>
</form>
<form name="ListRequestItemNotes" extends="ListRequestItemNotes" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
<field name="custRequestItemSeqId" title="${uiLabelMap.CommonNbr}"><display/></field>
<field name="noteDateTime"><ignored/></field>
<field name="partyId"><ignored/></field>
<field name="name"><ignored/></field>
</form>
</forms>