git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766627 13f79535-47bb-0310-9956-ffa450edef68
893 lines
52 KiB
XML
893 lines
52 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="PendingCommunications">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitlePendingCommunications"/>
|
|
<set field="headerItem" value="comm"/>
|
|
<set field="tabButtonItem" value="pending"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdFrom" value="${parameters.partyIdFrom}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdTo" value="${parameters.partyIdTo}"/>
|
|
<set field="entityName" value="CommunicationEvent"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen location="${parameters.mainDecoratorLocation}" name="main-decorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="partyId"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="ProfileTabBar"/>
|
|
</widgets>
|
|
</section>
|
|
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="CommFindTabBar"/>
|
|
<container><label style="h1" text="${uiLabelMap.PartyPendingCommunicationEvents}"/></container>
|
|
<container>
|
|
<link style="smallSubmit" target="ViewCommunicationEvent" text="${uiLabelMap.PartyNewCommunication}">
|
|
<parameter param-name="partyId"/>
|
|
</link>
|
|
</container>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="ListPendingCommEvents"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- List comm events for a specific party -->
|
|
<screen name="ListPartyCommEvents">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListCommunications"/>
|
|
<set field="tabButtonItem" value="PartyCommEvents"/>
|
|
<set field="subTabButtonItem" value="CommunicationEvent"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set field="partyIdFrom" value="${parameters.partyIdFrom}" default-value="${parameters.partyId}"/>
|
|
<set field="partyIdTo" value="${parameters.partyIdTo}" default-value="${parameters.partyId}"/>
|
|
<entity-condition entity-name="CommunicationEventAndRole" list="commEvents">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="partyId" operator="equals" value="${partyId}"/>
|
|
</condition-list>
|
|
<order-by field-name="-entryDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="h1"><label text="${uiLabelMap.PageTitleListCommunications}"/></container>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="ListPartyCommEvents"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- List comm events from incoming email of which the parties are unknown, with the option to mass delete -->
|
|
<screen name="ListUnknownPartyComms">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListUnknownPartyComms"/>
|
|
<set field="tabButtonItem" value="ListUnknownPartyComms"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleListUnknownPartyComms}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="ListUnknownPartyEmails"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="FindCommunicationEvents">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindCommunicationEvents"/>
|
|
<set field="headerItem" value="comm"/>
|
|
<set field="tabButtonItem" value="Find"/>
|
|
<set field="entityName" value="CommunicationEvent"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen location="${parameters.mainDecoratorLocation}" name="main-decorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="CommEventTabBar"/>
|
|
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
|
<decorator-section name="menu-bar">
|
|
<include-menu name="CommSubTabBar" location="component://party/widget/partymgr/PartyMenus.xml"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-options">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="findCommEvents"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-results">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="ListLookupCommEvents"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ViewCommunicationEvent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleViewCommunication"/>
|
|
<set field="tabButtonItem" value="OverView"/>
|
|
<set field="parentCommEventId" from-field="parameters.parentCommEventId"/>
|
|
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="Common${parameters.my}CommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="commOverview"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="commOverview">
|
|
<section>
|
|
<widgets>
|
|
<container style="lefthalf">
|
|
<section>
|
|
<widgets>
|
|
<label style="h1" text="${uiLabelMap.FormFieldTitle_communicationEventId} ${parameters.communicationEventId}"/>
|
|
<include-screen name="commEvent" location="component://party/widget/partymgr/CommunicationScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="communicationEvent.parentCommEventId"/>
|
|
</not>
|
|
</condition>
|
|
<actions>
|
|
<set field="parent" value="${uiLabelMap.CommonParent}"/>
|
|
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent">
|
|
<field-map field-name="communicationEventId" from-field="communicationEvent.parentCommEventId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="commEvent" location="component://party/widget/partymgr/CommunicationScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
<container style="righthalf">
|
|
<label style="h1" text="${uiLabelMap.CommonRelatedInformation}"/>
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form name="ViewCommRoles"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PartyCommContent}">
|
|
<include-form name="listCommContent"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
<section>
|
|
<actions>
|
|
<entity-and list="commEvents" entity-name="CommunicationEvent">
|
|
<field-map field-name="parentCommEventId"
|
|
from-field="parameters.communicationEventId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyChildCommunicationEvents}">
|
|
<include-form name="ListCommEvents"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<actions>
|
|
<set field="entityName" value="CustRequestAndCommEvent"/>
|
|
<set field="requestParameters.communicationEventId"
|
|
from-field="parameters.communicationEventId"/>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.OrderRequestList}">
|
|
<include-form name="ListRequests"
|
|
location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<actions>
|
|
<set field="entityName" value="ContactListCommStatus"/>
|
|
<set field="requestParameters.communicationEventId"
|
|
from-field="parameters.communicationEventId"/>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.MarketingContactListCommStatus}">
|
|
<include-form name="ListContactListCommStatuses"
|
|
location="component://marketing/webapp/marketing/contact/ContactListForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="commEvent">
|
|
<section>
|
|
<widgets>
|
|
<screenlet title="${parent} ${uiLabelMap.PartyCommunicationEvent}">
|
|
<section>
|
|
<condition>
|
|
<or><!-- have for e-mails a special form -->
|
|
<if-compare field="communicationEvent.communicationEventTypeId"
|
|
operator="equals" value="EMAIL_COMMUNICATION"/>
|
|
<if-compare field="communicationEvent.communicationEventTypeId"
|
|
operator="equals" value="AUTO_EMAIL_COMM"/>
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<or>
|
|
<if-compare field="communicationEvent.statusId"
|
|
operator="equals" value="COM_UNKNOWN_PARTY"/>
|
|
<if-empty field="communicationEvent.partyIdFrom"/>
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet>
|
|
<container>
|
|
<label style="h1" text="${uiLabelMap.PartyOriginEmailNotKnown}"/>
|
|
</container>
|
|
<container>
|
|
<label style="h2" text="${uiLabelMap.PartyEmailMessage}"/>
|
|
</container>
|
|
<include-form name="allocateMsgToPartyForm"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="ViewEmail"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="ViewCommEvent"/>
|
|
</fail-widgets>
|
|
</section>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="addAttachmentEmail">
|
|
<section>
|
|
<actions>
|
|
<entity-condition entity-name="MimeType" list="mimeTypes">
|
|
<order-by field-name="description"/>
|
|
<order-by field-name="mimeTypeId"/>
|
|
</entity-condition>
|
|
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<set field="communicationEventTypeId" from-field="parameters.communicationEventTypeId"/>
|
|
<set field="partyId" from-field="userLogin.partyId"/>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyAttachContent}">
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://party/webapp/partymgr/communication/addAttachFile.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AttachFileList">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<entity-and entity-name="CommEventContentAssoc" list="commEventContent">
|
|
<field-map field-name="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
</entity-and>
|
|
<entity-and entity-name="PartyContent" list="partyContent">
|
|
<field-map field-name="partyId" from-field="userLogin.partyId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyAttachFile}">
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://party/webapp/partymgr/communication/attachFileList.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditCommunicationEvent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditCommunication"/>
|
|
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
|
|
<set field="parameters.communicationEventTypeId" from-field="parameters.communicationEventTypeId" default-value="${communicationEvent.communicationEventTypeId}"/>
|
|
<script location="component://party/webapp/partymgr/WEB-INF/actions/communication/PrepCommEventReply.groovy"/>
|
|
<script location="component://party/webapp/partymgr/WEB-INF/actions/communication/PrepCommEventForward.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="Common${parameters.my}CommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section><!-- Email -->
|
|
<condition>
|
|
<or><!-- have for e-mails a special form -->
|
|
<if-compare field="parameters.communicationEventTypeId" operator="equals" value="EMAIL_COMMUNICATION"/>
|
|
<if-compare field="parameters.communicationEventTypeId" operator="equals" value="AUTO_EMAIL_COMM"/>
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-empty field="communicationEvent"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyCreateAddEmail} ${parameters.communicationEventId}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="EditEmail"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="lefthalf">
|
|
<screenlet title="${uiLabelMap.PartyCreateAddEmail} ${parameters.communicationEventId}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="EditEmail"/>
|
|
</screenlet>
|
|
</container>
|
|
<container style="righthalf">
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form name="ViewCommRoles" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="AddEventRole"/>
|
|
</screenlet>
|
|
<include-screen name="AttachFileList"/>
|
|
<include-screen name="addAttachmentEmail"/>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
<container style="clear"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition><!-- internal note -->
|
|
<if-compare field="parameters.communicationEventTypeId" operator="equals" value="COMMENT_NOTE"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-empty field="communicationEvent"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent} ${parameters.communicationEventId}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="EditInternalNote"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="lefthalf">
|
|
<screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent} ${parameters.communicationEventId}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="EditInternalNote"/>
|
|
</screenlet>
|
|
</container>
|
|
<container style="righthalf">
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form name="ListCommRoles" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="AddEventRole"/>
|
|
</screenlet>
|
|
<include-screen name="AttachFileList"/>
|
|
<include-screen name="addAttachmentEmail"/>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition><!-- others -->
|
|
<and>
|
|
<if-compare field="parameters.communicationEventTypeId" operator="not-equals" value="COMMENT_NOTE"/>
|
|
<if-compare field="parameters.communicationEventTypeId" operator="not-equals" value="EMAIL_COMMUNICATION"/>
|
|
<if-compare field="parameters.communicationEventTypeId" operator="not-equals" value="AUTO_EMAIL_COMM"/>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent} ${parameters.communicationEventId}">
|
|
<include-form name="EditCommEvent" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PartyChildCommunicationEvents}" navigation-form-name="ListChildCommEvents">
|
|
<include-form name="ListChildCommEvents" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditRequestFromCommEvent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditCommunication"/>
|
|
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="Common${parameters.my}CommunicationEventDecorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PartyEditCustomerRequest}">
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="EditRequestFromCommEvent"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="UpdateCommRoles">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleViewCommRoles"/>
|
|
<set field="tabButtonItem" value="UpdateCommRoles"/>
|
|
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<set field="parentCommEventId" from-field="parameters.parentCommEventId"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set field="partyIdFrom" value="${parameters.partyId}"/>
|
|
<set field="partyIdTo" value="${parameters.partyId}"/>
|
|
<entity-one entity-name="Party" use-cache="true" value-field="party"/>
|
|
<entity-one entity-name="Person" use-cache="true" value-field="lookupPerson"/>
|
|
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer"
|
|
default-value="20"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="ListCommRoles"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="AddEventRole"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="UpdateCommPurposes">
|
|
<section>
|
|
<actions>
|
|
<property-map map-name="uiLabelMap" resource="PartyUiLabels"/>
|
|
<set field="titleProperty" value="PageTitleViewCommPurposes"/>
|
|
<set field="tabButtonItem" value="UpdateCommPurposes"/>
|
|
|
|
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<set field="parentCommEventId" from-field="parameters.parentCommEventId"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set field="partyIdFrom" value="${parameters.partyId}"/>
|
|
<set field="partyIdTo" value="${parameters.partyId}"/>
|
|
<entity-one entity-name="Party" use-cache="true" value-field="party"/>
|
|
<entity-one entity-name="Person" use-cache="true" value-field="lookupPerson"/>
|
|
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PartyCommEventPurposes}">
|
|
<container style="button-bar">
|
|
<link style="smallSubmit" target="AddCommContent" text="${uiLabelMap.PartyNewCommPurpose}">
|
|
<parameter param-name="communicationEventId"/>
|
|
<parameter param-name="partyId"/>
|
|
</link>
|
|
</container>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="ListCommPurposes"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ListCommWorkEfforts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListCommWorkEfforts"/>
|
|
<set field="tabButtonItem" value="UpdateCommWorkEfforts"/>
|
|
|
|
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set field="partyIdFrom" value="${parameters.partyIdFrom}"/>
|
|
<set field="partyIdTo" value="${parameters.partyIdTo}"/>
|
|
<set field="entityName" value="CommunicationEvent"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PartyCommWorkEfforts}">
|
|
<container style="button-bar">
|
|
<link style="smallSubmit" target="AddCommEventWorkEffort">
|
|
<parameter param-name="communicationEventId"/>
|
|
<parameter param-name="partyId"/>
|
|
</link>
|
|
</container>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="ListCommWorkEfforts"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddCommEventWorkEffort">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListCommWorkEfforts"/>
|
|
<set field="tabButtonItem" value="UpdateCommWorkEfforts"/>
|
|
|
|
<set field="partyId" from-field="parameters.partyId"/>
|
|
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<set field="workEffortId" from-field="parameters.workEffortId"/>
|
|
<entity-one entity-name="WorkEffort" value-field="workEffort"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PartyCommWorkEfforts}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="AddCommEventWorkEffort"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditCommEventWorkEffort">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListCommWorkEfforts"/>
|
|
<set field="tabButtonItem" value="UpdateCommWorkEfforts"/>
|
|
|
|
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<set field="workEffortId" from-field="parameters.workEffortId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PartyCommWorkEfforts}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="AddCommEventWorkEffort"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ListCommContent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PartyCommContent"/>
|
|
<set field="headerItem" value="comm"/>
|
|
<set field="tabButtonItem" value="CommContent"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdFrom" value="${parameters.partyIdFrom}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdTo" value="${parameters.partyIdTo}"/>
|
|
<set field="communicationEventId" value="${parameters.communicationEventId}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyCommContent}">
|
|
<container style="button-bar">
|
|
<link style="smallSubmit" target="AddCommContent">
|
|
<parameter param-name="communicationEventId"/>
|
|
<parameter param-name="partyId"/>
|
|
</link>
|
|
</container>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="listCommContent"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="AddCommContent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PartyNewCommContent"/>
|
|
<set field="headerItem" value="comm"/>
|
|
<set field="tabButtonItem" value="CommContent"/>
|
|
<set field="partyId" from-field="parameters.partyId"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdFrom" value="${parameters.partyIdFrom}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdTo" value="${parameters.partyIdTo}"/>
|
|
<set field="communicationEventId" value="${parameters.communicationEventId}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="CREATE"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyNewCommContent}">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="addCommContent"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditCommContent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleCommEvents"/>
|
|
<set field="tabButtonItem" value="CommContent"/>
|
|
<set field="partyId" value="${parameters.partyId}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdFrom" value="${parameters.partyIdFrom}"/>
|
|
<set default-value="${userLogin.partyId}" field="partyIdTo" value="${parameters.partyIdTo}"/>
|
|
<set field="communicationEventId" value="${parameters.communicationEventId}"/>
|
|
<entity-one entity-name="CommEventContentDataResource" value-field="commEventContentDataResource">
|
|
<field-map field-name="communicationEventId" from-field="parameters.communicationEventId"/>
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
<field-map field-name="fromDate" from-field="parameters.fromDate"/>
|
|
<field-map field-name="drDataResourceId" from-field="parameters.dataResourceId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="UPDATE"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="partyId"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="ProfileTabBar"/>
|
|
</widgets>
|
|
</section>
|
|
<container style="h1"><label text="${uiLabelMap.PageTitleEditCommContent}"/></container>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="editCommContent"/>
|
|
<section>
|
|
<condition>
|
|
<if-regexp expr="text.*" field="commEventContentDataResource.drMimeTypeId"/>
|
|
</condition>
|
|
<actions>
|
|
<entity-one entity-name="ElectronicText" value-field="electronicText">
|
|
<field-map field-name="dataResourceId" from-field="commEventContentDataResource.drDataResourceId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditCommContent}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="editCommTextContent"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-regexp expr="text.*" field="commEventContentDataResource.drMimeTypeId"/>
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PartyViewImage}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="uploadCommContent"/>
|
|
<label text="${uiLabelMap.PartyViewImage}" style="h1"/>
|
|
<content dataresource-id="${commEventContentDataResource.drDataResourceId}"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="PartyCommunicationEvents">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleCommEvents"/>
|
|
<set field="headerItem" value="mycomm"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMyCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="MyCommunicationEvents"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Portlet screens -->
|
|
<screen name="MyCommunicationEvents">
|
|
<section>
|
|
<actions>
|
|
<script location="component://common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy"/>
|
|
<set field="internalNotesOnly" from-field="internalNotesOnly" default-value="true"/>
|
|
<set field="partyId" from-field="parameters.partyId" default-value="${communicationPartyId}"/>
|
|
<set field="partyId" from-field="partyId" default-value="${userLogin.partyId}"/>
|
|
<set field="all" from-field="parameters.all"/>
|
|
<entity-condition entity-name="CommunicationEventAndRole" list="commEvents">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="statusId" operator="not-equals"
|
|
value="COM_UNKNOWN_PARTY"/>
|
|
<condition-expr field-name="statusId" operator="not-equals"
|
|
value="COM_PENDING"/>
|
|
<condition-expr field-name="partyId" operator="equals"
|
|
value="${partyId}"/>
|
|
<condition-expr field-name="roleStatusId"
|
|
operator="not-equals" value="COM_ROLE_COMPLETED" ignore="${all}"/>
|
|
<condition-expr field-name="communicationEventTypeId"
|
|
operator="equals" value="COMMENT_NOTE" ignore="${internalNotesOnly}"/>
|
|
</condition-list>
|
|
<order-by field-name="-datetimeStarted"/>
|
|
</entity-condition>
|
|
<entity-condition entity-name="CommunicationEventAndRole" list="commEventsUnknown">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="statusId" operator="equals"
|
|
value="COM_UNKNOWN_PARTY"/>
|
|
<condition-expr field-name="roleStatusId" operator="not-equals"
|
|
value="COM_ROLE_COMPLETED"/>
|
|
<condition-expr field-name="partyId" operator="equals"
|
|
value="${partyId}"/>
|
|
</condition-list>
|
|
<order-by field-name="-datetimeStarted"/>
|
|
</entity-condition>
|
|
<entity-condition entity-name="CommunicationEventAndRole" list="commEventDraft">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="statusId" operator="equals"
|
|
value="COM_PENDING"/>
|
|
<condition-expr field-name="partyId" operator="equals"
|
|
value="${partyId}"/>
|
|
</condition-list>
|
|
<order-by field-name="-datetimeStarted"/>
|
|
</entity-condition>
|
|
<entity-one entity-name="PartyNameView" value-field="partyName">
|
|
<field-map field-name="partyId" from-field="partyId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyCommunicationsOfParty}: ${partyName.firstName} ${partyName.middleName} ${partyName.lastName} ${partyName.groupName} [${partyId}] "
|
|
navigation-menu-name="communicationsMenu" navigation-form-name="ListPartyCommEvents" name="myComms">
|
|
<include-menu name="communicationsMenu" location="component://party/widget/partymgr/PartyMenus.xml"/>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="commEventsUnknown"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<label style="h2" text="${uiLabelMap.PartyEmailsFromUnknownOrigin}"></label>
|
|
<include-form name="ListMyUnknownPartyEmails" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<label style="h2" text="${uiLabelMap.PartyEmailsFromKnownOrigin}"></label>
|
|
<include-form name="ListPartyCommEvents" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="commEventDraft"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<label style="h2" text="${uiLabelMap.PartyDraftEmails}"></label>
|
|
<include-form name="ListDraftEmails" location="component://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|