add status field to customer request and cnvert to screenlet

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@687011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-08-19 10:13:10 +00:00
parent 65e4f35edb
commit 7fc2d033bc
2 changed files with 13 additions and 16 deletions
+3 -14
View File
@@ -62,20 +62,9 @@ under the License.
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.OrderRequest}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditCustRequest" location="component://projectmgr/widget/forms/RequestForms.xml"/>
</widgets>
</section>
</container>
</container>
<screenlet title="${uiLabelMap.OrderRequest}">
<include-form name="EditCustRequest" location="component://projectmgr/widget/forms/RequestForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
+10 -2
View File
@@ -33,13 +33,21 @@ under the License.
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="custRequestName" title="${uiLabelMap.CommonTitle}"><text/></field>
<field name="description" parameter-name="story"><textarea cols="60" rows="12"/></field>
<field name="description" parameter-name="story" use-when="custRequest==null"><textarea cols="60" rows="12"/></field>
<field name="custRequestTypeId">
<drop-down allow-empty="false">
<entity-options entity-name="CustRequestType" description="${description}"/>
</drop-down>
</field>
<field name="statusId"><hidden value="CRQ_ACCEPTED"/></field>
<field use-when="custRequest!=null" name="statusId">
<drop-down allow-empty="false" current="first-in-list" current-description="${currentStatus.description}">
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
<entity-constraint name="statusId" value="${custRequest.statusId}"/>
<entity-order-by field-name="sequenceId"/>
</entity-options>
</drop-down>
</field>
<field name="statusId" use-when="custRequest==null"><hidden value="CRQ_ACCEPTED"/></field>
<field name="priority">
<drop-down allow-empty="true">
<option key="9"/>