Files
ofbiz-framework/applications/order/widget/ordermgr/RequestScreens.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

690 lines
41 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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindRequest">
<section>
<actions>
<set field="titleProperty" value="OrderFindRequests"/>
<set field="headerItem" value="request"/>
<set field="entityName" value="CustRequest"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.OrderFindRequests}" collapsible="true" id="findRequests">
<link target="request" text="${uiLabelMap.OrderNewRequest}" style="buttontext"/>
<include-form name="FindRequests" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.OrderRequestList}" navigation-form-name="ListRequests" >
<include-form name="ListRequests" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewRequest">
<section>
<actions>
<set field="MainColumnStyle" value="rightonly"/>
<set field="tabButtonItem" value="ViewRequest"/>
<set field="headerItem" value="request"/>
<set field="titleProperty" value="PageTitleViewRequest"/>
<!--<set field="headerItem" value="Shopping List"/>-->
<set field="showRequestManagementLinks" value="Y"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<get-related-one value-field="custRequest" relation-name="CustRequestType" to-value-field="custRequestType"/>
<get-related-one value-field="custRequest" relation-name="StatusItem" to-value-field="statusItem"/>
<get-related-one value-field="custRequest" relation-name="CurrencyUom" to-value-field="currency"/>
<get-related-one value-field="custRequest" relation-name="ProductStore" to-value-field="store"/>
<get-related-one value-field="custRequest" relation-name="FulfillContactMech" to-value-field="fulfillContactMech"/>
<entity-and list="requestWorkEfforts" entity-name="CustRequestAndWorkEffort">
<field-map field-name="custRequestId" from-field="parameters.custRequestId"/>
</entity-and>
<get-related value-field="custRequest" relation-name="CustRequestParty" list="requestParties"/>
<set field="orderBy[]" value="sequenceNum"/>
<get-related value-field="custRequest" relation-name="CustRequestItem" list="custRequestItems" order-by-list="orderBy"/>
<entity-and list="commEvents" entity-name="CommunicationEventAndCustRequest">
<field-map field-name="custRequestId" from-field="parameters.custRequestId"/>
</entity-and>
<entity-and list="notes" entity-name="CustRequestItemNoteView">
<field-map field-name="custRequestId" from-field="parameters.custRequestId"/>
<order-by field-name="custRequestItemSeqId"/>
</entity-and>
<entity-and entity-name="CustRequestContent" list="custRequestContents" filter-by-date="true">
<field-map field-name="custRequestId" from-field="custRequestId"/>
</entity-and>
<entity-and entity-name="CustRequestAndContent" list="custRequestAndContents">
<field-map field-name="custRequestId" from-field="custRequestId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="lefthalf">
<screenlet title="${uiLabelMap.OrderRequest} ${custRequest.custRequestId} ${uiLabelMap.CommonInformation}">
<include-form name="requestInfo" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleRequestItems}">
<include-form name="OverviewRequestItems" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleRequestItemNotes}">
<include-form name="ListRequestItemNotes" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</container>
<container style="righthalf">
<screenlet title="${uiLabelMap.OrderCustRequestStatusList}" navigation-form-name="ViewRequest">
<include-form name="ViewRequestStatus" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/request/requestContactMech.ftl"/></html>
</platform-specific>
<screenlet title="${uiLabelMap.OrderRequestRoles}">
<include-form name="ViewRequestRoles" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PartyListCommunicationEvents}" navigation-form-name="ViewRequest">
<include-form name="ViewRequestCommunicationEvents" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.WorkEffortWorkEfforts}" navigation-form-name="ViewRequest">
<include-form name="ViewRequestWorkEfforts" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.CommonContent}" navigation-form-name="ViewRequest">
<include-form name="ListCustRequestContent" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditRequest">
<section>
<actions>
<set field="titleProperty" value="OrderRequest"/>
<set field="tabButtonItem" value="request"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<set field="statusId" from-field="custRequest.statusId"/>
<entity-one entity-name="StatusItem" value-field="currentStatus"/>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.OrderRequest}">
<section>
<condition>
<if-compare field="parameters.small" operator="equals" value="Y"/>
</condition>
<widgets>
<include-form name="EditSmallCustRequest" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</widgets>
<fail-widgets>
<include-form name="EditCustRequest" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</fail-widgets>
</section>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="RequestRoles">
<section>
<actions>
<set field="titleProperty" value="PageTitleRequestRoles"/>
<set field="tabButtonItem" value="requestroles"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-and entity-name="CustRequestParty" list="custRequestParties">
<field-map from-field="custRequestId" field-name="custRequestId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="EditRequestRolePanel" title="${uiLabelMap.PageTitleEditRequestRoles}" collapsible="true">
<include-form name="EditRequestRole" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<include-form name="ListRequestRoles" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="RequestItems">
<section>
<actions>
<set field="titleProperty" value="PageTitleRequestItems"/>
<set field="tabButtonItem" value="requestitems"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-and entity-name="CustRequestItem" list="custRequestItems">
<field-map from-field="custRequestId" field-name="custRequestId"/>
<order-by field-name="sequenceNum"/>
<order-by field-name="custRequestItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleRequestItems}">
<link target="requestitem" text="${uiLabelMap.OrderNewRequestItem}" style="buttontext">
<parameter param-name="custRequestId"/>
</link>
<include-form name="ListRequestItems" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditRequestItem">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditRequestItem"/>
<set field="tabButtonItem" value="requestitem"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<set field="statusId" from-field="custRequestItem.statusId"/>
<entity-one entity-name="StatusItem" value-field="currentStatus"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/request/GetNextSequenceNum.groovy"/>
</actions>
<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.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<container>
<link target="requestitem" text="${uiLabelMap.OrderNewRequestItem}" style="buttontext">
<parameter param-name="custRequestId"/>
</link>
</container>
<include-form name="EditCustRequestItem" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/request/CopyRequestItem.ftl"/></html>
</platform-specific>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="RequestItemNotes">
<section>
<actions>
<set field="titleProperty" value="PageTitleRequestItemNotes"/>
<set field="tabButtonItem" value="requestitemnotes"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/request/RequestItemNotes.groovy"/>
</actions>
<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.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/request/requestitemnotes.ftl"/></html>
</platform-specific>
<include-form name="ListRequestItemNotes" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
<include-form name="EditRequestItemNote" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="RequestItemRequirements">
<section>
<actions>
<set field="titleProperty" value="PageTitleRequestItemRequirements"/>
<set field="tabButtonItem" value="requestitemrequirements"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<entity-and entity-name="RequirementCustRequestView" list="custRequestRequirements">
<field-map from-field="custRequestItem.custRequestId" field-name="custRequestId"/>
<field-map from-field="custRequestItem.custRequestItemSeqId" field-name="custRequestItemSeqId"/>
</entity-and>
</actions>
<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.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<container>
<link target="EditRequirement" text="${uiLabelMap.OrderNewRequirement}" style="buttontext">
<parameter param-name="custRequestId" from-field="custRequestItem.custRequestId"/>
<parameter param-name="custRequestItemSeqId" from-field="custRequestItem.custRequestItemSeqId"/>
</link>
</container>
<include-form name="ListRequestItemRequirements" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="RequestItemQuotes">
<section>
<actions>
<set field="titleProperty" value="PageTitleRequestItemQuotes"/>
<set field="tabButtonItem" value="requestitemquotes"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<entity-and entity-name="QuoteItem" list="quotes">
<field-map from-field="custRequestItem.custRequestId" field-name="custRequestId"/>
<field-map from-field="custRequestItem.custRequestItemSeqId" field-name="custRequestItemSeqId"/>
</entity-and>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/request/SetRequestQuote.groovy"/>
</actions>
<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.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/request/QuoteLinks.ftl"/></html>
</platform-specific>
<include-form name="ListRequestQuoteItems" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditQuoteItemForRequest">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditQuoteItemForCustRequest"/>
<set field="tabButtonItem" value="requestitemquotes"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<set field="quoteId" from-field="parameters.quoteId"/>
<set field="quoteItemSeqId" from-field="parameters.quoteItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<entity-one entity-name="QuoteItem" value-field="quoteItem"/>
<set field="parameters.quantity" from-field="custRequestItem.quantity"/>
<set field="parameters.selectedAmount" from-field="custRequestItem.selectedAmount"/>
<set field="parameters.comments" from-field="custRequestItem.story"/>
</actions>
<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.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditQuoteItemForRequest" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CreateQuoteAndQuoteItemForRequest">
<section>
<actions>
<set field="titleProperty" value="PageTitleCreateQuoteForCustRequest"/>
<set field="tabButtonItem" value="requestitemquotes"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<set field="quoteId" from-field="parameters.quoteId"/>
<set field="quoteItemSeqId" from-field="parameters.quoteItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<entity-one entity-name="QuoteItem" value-field="quoteItem"/>
<set field="parameters.quantity" from-field="custRequestItem.quantity"/>
<set field="parameters.selectedAmount" from-field="custRequestItem.selectedAmount"/>
</actions>
<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.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="CreateQuoteAndQuoteItemForRequest" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditRequestItemWorkEfforts">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditRequestItemWorkEffort"/>
<set field="tabButtonItem" value="task"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<set field="custRequestItemSeqId" from-field="parameters.custRequestItemSeqId"/>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="CustRequestItem" value-field="custRequestItem"/>
<entity-and entity-name="CustRequestItemWorkEffort" list="custRequestItemWorkEffortList">
<field-map field-name="custRequestId"/>
<field-map field-name="custRequestItemSeqId"/>
<order-by field-name="workEffortId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="AddCustRequestItemWorkEffortPanel" title="${uiLabelMap.CommonId}:${custRequestItem.custRequestItemSeqId} ${custRequestItem.description}" collapsible="true">
<link target="EditRequestItem" text="${uiLabelMap.OrderNewRequestItem}" style="buttontext">
<parameter param-name="custRequestId"/>
</link>
<include-form name="AddCustRequestItemWorkEffort" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<include-form name="ListCustRequestItemWorkEfforts" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewRequestItemInfo">
<section>
<condition>
<not><if-empty field="requestItems"/></not>
</condition>
<widgets>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/request/ViewRequestItemInfo.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="EditCustRequestContent">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditRequestContent"/>
<set field="tabButtonItem" value="custRequestContent"/>
<set field="headerItem" value="request"/>
<set field="custRequestId" from-field="parameters.custRequestId"/>
<entity-and entity-name="CustRequestAndContent" list="custRequstAndContents">
<field-map field-name="custRequestId" from-field="custRequestId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequestDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="AddCustRequestContentsPanel" title="${uiLabelMap.PageTitleAddContent}" collapsible="true">
<include-form name="AddCustRequestContent" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
<include-form name="ListCustRequestContent" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="IncomingCustRequests">
<section>
<actions>
<entity-condition list="custRequests" entity-name="CustReqAndTypeAndPartyRel">
<condition-list combine="and">
<condition-expr field-name="statusId" operator="equals" value="CRQ_SUBMITTED"/>
<condition-list combine="and">
<condition-expr field-name="roleTypeIdTo" operator="equals" value="REQ_TAKER"/>
<condition-expr field-name="partyIdTo" operator="equals" from-field="userLogin.partyId"/>
</condition-list>
</condition-list>
<order-by field-name="-custRequestDate"/>
</entity-condition>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="custRequests"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.OrderIncomingCustRequests}" navigation-menu-name="RequestScreenletMenu">
<include-menu name="RequestScreenletMenu" location="component://order/widget/ordermgr/Menus.xml"/>
<include-form name="ListRequestList" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="ListCustRequests">
<section>
<actions>
<script location="component://common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy"/>
<set field="fromPartyId" from-field="userLogin.partyId"/>
<set field="screenletTitle" from-field="uiLabelMap.OrderOpenMyCustomerRequests"/>
</actions>
<widgets>
<section>
<condition>
<if-compare field="otherContacts" operator="equals" value="Y"/>
</condition>
<actions>
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetMyCompany.groovy"/>
<set field="fromPartyId" from-field=""/>
<set field="notFromPartyId" from-field="userLogin.partyId"/>
<set field="screenletTitle" from-field="uiLabelMap.OrderOpenCompanyCustomerRequests"/>
</actions>
<widgets/>
</section>
<section>
<condition>
<if-compare field="statusGroup" operator="equals" value="OPEN"/>
</condition>
<actions>
<entity-condition list="custRequests" entity-name="CustRequestInfoAndWorkEffortAndPartyRel">
<condition-list combine="and">
<condition-expr field-name="partyIdFrom" operator="equals" from-field="myCompanyId" ignore-if-empty="true"/>
<condition-expr field-name="fromPartyId" operator="equals" from-field="fromPartyId" ignore-if-empty="true"/>
<condition-expr field-name="fromPartyId" operator="not-equals" from-field="notFromPartyId" ignore-if-empty="true"/>
<condition-list combine="or">
<condition-expr field-name="statusId" operator="equals" value="CRQ_SUBMITTED"/>
<condition-expr field-name="statusId" operator="equals" value="CRQ_REVIEWED"/>
<condition-expr field-name="statusId" operator="equals" value="CRQ_ACCEPTED"/>
</condition-list>
</condition-list>
<order-by field-name="+priority"/>
<order-by field-name="+custRequestDate"/>
</entity-condition>
</actions>
<widgets/>
</section>
<section>
<condition>
<if-compare field="statusGroup" operator="equals" value="COMPLETED"/>
</condition>
<actions>
<entity-condition list="custRequests" entity-name="CustRequestInfoAndWorkEffortAndPartyRel">
<condition-list combine="and">
<condition-expr field-name="partyIdFrom" operator="equals" from-field="myCompanyId" ignore-if-null="true"/>
<condition-expr field-name="fromPartyId" operator="equals" from-field="fromPartyId" ignore-if-empty="true"/>
<condition-expr field-name="fromPartyId" operator="not-equals" from-field="notFromPartyId" ignore-if-empty="true"/>
<condition-expr field-name="statusId" operator="equals" value="CRQ_COMPLETED"/>
</condition-list>
<order-by field-name="+priority"/>
<order-by field-name="+custRequestDate"/>
</entity-condition>
</actions>
<widgets/>
</section>
<section>
<condition>
<if-compare field="statusGroup" operator="equals" value="CANCELLED"/>
</condition>
<actions>
<entity-condition list="custRequests" entity-name="CustRequestInfoAndWorkEffortAndPartyRel">
<condition-list combine="and">
<condition-expr field-name="partyIdFrom" operator="equals" from-field="myCompanyId" ignore-if-null="true"/>
<condition-expr field-name="fromPartyId" operator="equals" from-field="fromPartyId" ignore-if-empty="true"/>
<condition-expr field-name="fromPartyId" operator="not-equals" from-field="notFromPartyId" ignore-if-empty="true"/>
<condition-list combine="or">
<condition-expr field-name="statusId" operator="equals" value="CRQ_REJECTED"/>
<condition-expr field-name="statusId" operator="equals" value="CRQ_CANCELLED"/>
</condition-list>
</condition-list>
<order-by field-name="+priority"/>
<order-by field-name="+custRequestDate"/>
</entity-condition>
</actions>
<widgets/>
</section>
<section>
<condition>
<and>
<if-compare field="statusGroup" operator="equals" value="OPEN"/>
<if-compare field="otherContacts" operator="not-equals" value="Y"/>
</and>
</condition>
<widgets>
<screenlet title="${screenletTitle} ${fromPartyId}" navigation-form-name="ListCustRequests" >
<link target="newrequest" text="${uiLabelMap.OrderNewRequest}" style="buttontext"/>
<include-form name="ListMyCustRequests" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</widgets>
<fail-widgets>
<section><!-- only show open requests from other people in the company if there are any to show -->
<condition>
<not><if-empty field="custRequests"/></not>
</condition>
<widgets>
<screenlet title="${screenletTitle} ${fromPartyId}" navigation-form-name="ListCustRequests" >
<include-form name="ListCustRequests" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
</screenlet>
</widgets>
</section>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
<screen name="CreateCustRequestNotification">
<section>
<actions>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="PartyNameView" value-field="person">
<field-map field-name="partyId" from-field="custRequest.fromPartyId"/>
</entity-one>
<set field="title" value="${uiLabelMap.OrderCustRequestNotificationMailCreation} #${custRequestId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://order/webapp/ordermgr/request/CreateCustRequestNotification.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="CompletedCustRequestNotification">
<section>
<actions>
<entity-one entity-name="CustRequest" value-field="custRequest"/>
<entity-one entity-name="PartyNameView" value-field="person">
<field-map field-name="partyId" from-field="custRequest.fromPartyId"/>
</entity-one>
<set field="title" value="${uiLabelMap.OrderCustRequestNotificationMailCompleted} #${custRequestId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://order/webapp/ordermgr/request/CompletedCustRequestNotification.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
</screens>