added requestlist on communicationeventsummary, changed update status communicationeventEvent, when status is set the complete, set the rolestatus also to complete(closed)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684390 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-08-10 01:08:53 +00:00
parent 2617681b51
commit 40b817fa9f
3 changed files with 16 additions and 11 deletions
@@ -406,6 +406,14 @@ under the License.
<else>
<set field="communicationEvent.statusId" from-field="parameters.statusId"/>
<store-value value-name="communicationEvent"/>
<!-- if complete, set all role status fields to 'complete' (intentionally ignoring the status change checking)-->
<if-compare operator="equals" value="COM_COMPLETE" field="parameters.statusId">
<get-related value-name="communicationEvent" relation-name="CommunicationEventRole" list-name="updRoles"/>
<iterate entry-name="updRole" list-name="updRoles">
<set field="updRole.statusId" value="COM_ROLE_COMPLETED"/>
<store-value value-name="updRole"/>
</iterate>
</if-compare>
</else>
</if-empty>
</if-compare-field>
@@ -272,7 +272,7 @@ under the License.
<field name="subject">
<hyperlink description="${subject}" target="ViewCommunicationEvent?communicationEventId=${communicationEventId}"/>
</field>
<field name="communicationEventTypeId"><display-entity description="${description}" entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/></field>
<field name="communicationEventTypeId" title="${uiLabelMap.CommonType}"><display-entity description="${description}" entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/></field>
<field name="partyIdFrom" title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}">
<display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView" key-field-name="partyId">
<sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyIdFrom}" target-type="inter-app" description="[${partyIdFrom}]"/>
@@ -284,12 +284,6 @@ under the License.
</display-entity>
</field>
<field name="statusId"><display-entity description="${description}" entity-name="StatusItem" key-field-name="statusId"/></field>
<!--field name="contactMechTypeId"><display-entity description="${description}" entity-name="ContactMechType" key-field-name="contactMechTypeId"/></field-->
<!-- Next two fields don't seem to be used, commenting out for now -->
<!--
<field name="roleTypeIdFrom"><display-entity description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/></field>
<field name="roleTypeIdTo"><display-entity description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/></field>
-->
<field name="createdStamp" title="${uiLabelMap.CommonCreated}"><display type="date"/></field>
<field name="datetimeStarted" title="${uiLabelMap.CommonSend}"><display type="date"/></field>
</form>
@@ -476,9 +470,9 @@ under the License.
</field>
<field name="contentTypeId"><display-entity entity-name="ContentType" description="${description}"/></field>
<field name="fromDate"><display/></field>
<field name="drDataResourceName" widget-style="smallSubmit">
<!-- field name="drDataResourceName" widget-style="smallSubmit">
<hyperlink also-hidden="false" description="${drDataResourceName} [${drDataResourceId}]" target="/content/control/editDataResource?dataResourceId=${drDataResourceId}" target-type="inter-app"/>
</field>
</field-->
<field name="drMimeTypeId"><display-entity entity-name="MimeType" description="${description}" key-field-name="mimeTypeId"/></field>
</form>
@@ -674,4 +668,7 @@ under the License.
<field name="content"><textarea cols="70" rows="20"/></field>
<field name="submit" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListRequests" extends="ListRequests" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
<field name="custRequestName"><hyperlink description="${custRequestName} [${custRequestId}]" target="/ordermgr/control/ViewRequest?custRequestId=${custRequestId}" target-type="inter-app"/></field>
</form>
</forms>
@@ -241,8 +241,8 @@ under the License.
</actions>
<widgets>
<screenlet title="${uiLabelMap.OrderRequestList}">
<include-form name="ListRequests"
location="component://order/webapp/ordermgr/request/RequestForms.xml" />
<include-form name="ListRequests"
location="component://party/webapp/partymgr/communication/CommForms.xml"/>
</screenlet>
</widgets>
</section>