git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684390 13f79535-47bb-0310-9956-ffa450edef68
695 lines
39 KiB
XML
695 lines
39 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-name="partyId"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="ProfileTabBar"/>
|
|
</widgets>
|
|
</section>
|
|
<include-menu location="component://party/webapp/partymgr/communication/CommMenus.xml" name="CommFindTabBar"/>
|
|
<container><label style="h1" text="${uiLabelMap.PartyPendingCommunicationEvents}"/></container>
|
|
<container><link style="smallSubmit" target="ViewCommunicationEvent?partyId=${partyId}" text="${uiLabelMap.PartyNewCommunication}"/></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}"/>
|
|
<set field="donePage" from-field="parameters.DONE_PAGE" default-value="ListPartyCommEvents?partyId=${partyId}"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
|
|
<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">
|
|
<section>
|
|
<condition>
|
|
<if-service-permission service-name="partyCommunicationEventPermissionCheck" main-action="VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="h1"><label text="${uiLabelMap.PageTitleListCommunications}"/></container>
|
|
<container style="button-bar"><link style="smallSubmit" target="EditCommunicationEvent?partyId=${partyId}" text="${uiLabelMap.PartyNewCommunication}"/></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/webapp/partymgr/communication/CommMenus.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/webapp/partymgr/communication/CommMenus.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-name="communicationEvent" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="lefthalf">
|
|
<section>
|
|
<widgets>
|
|
<label style="h1"
|
|
text="Communication Event id: ${parameters.communicationEventId}"></label>
|
|
<include-screen name="commEvent" />
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
<container style="righthalf">
|
|
<label style="h1" text="${uiLabelMap.CommonRelatedInformation}" />
|
|
<section>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyCommEventRoles}">
|
|
<include-form name="ViewCommRoles"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml" />
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PartyCommContent}">
|
|
<include-form name="listCommContent"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml" />
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field-name="communicationEvent.parentCommEventId" />
|
|
</not>
|
|
</condition>
|
|
<actions>
|
|
<set field="parent" value="${uiLabelMap.CommonParent}"/>
|
|
<entity-one entity-name="CommunicationEvent"
|
|
value-name="communicationEvent">
|
|
<field-map field-name="communicationEventId"
|
|
env-name="communicationEvent.parentCommEventId" />
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="commEvent" />
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<actions>
|
|
<entity-and list-name="commEvents" entity-name="CommunicationEvent">
|
|
<field-map field-name="parentCommEventId"
|
|
env-name="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://party/webapp/partymgr/communication/CommForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</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-name="communicationEvent.communicationEventTypeId"
|
|
operator="equals" value="EMAIL_COMMUNICATION" />
|
|
<if-compare field-name="communicationEvent.communicationEventTypeId"
|
|
operator="equals" value="AUTO_EMAIL_COMM" />
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="communicationEvent.statusId"
|
|
operator="equals" value="COM_UNKNOWN_PARTY" />
|
|
<if-empty field-name="communicationEvent.partyIdFrom" />
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet>
|
|
<container>
|
|
<label style="h1" text="Origin Email address not known!" />
|
|
</container>
|
|
<container>
|
|
<label style="h2"
|
|
text="Allocate this message to a existing or new party and add an email address" />
|
|
</container>
|
|
<include-form name="allocateMsgToPartyForm"
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml" />
|
|
<include-form name="deleteEmail"
|
|
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="EditCommunicationEvent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditCommunication" />
|
|
<set field="tabButtonItem" value="CommunicationEvent" />
|
|
<entity-one entity-name="CommunicationEvent" value-name="communicationEvent" />
|
|
<script location="component://party/webapp/partymgr/WEB-INF/actions/communication/PrepCommEventReply.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section><!-- Email -->
|
|
<condition>
|
|
<or><!-- have for e-mails a special form -->
|
|
<if-compare field-name="parameters.communicationEventTypeId"
|
|
operator="equals" value="EMAIL_COMMUNICATION" />
|
|
<if-compare field-name="parameters.communicationEventTypeId"
|
|
operator="equals" value="AUTO_EMAIL_COMM" />
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent}" collapsible="true">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="NewEmail"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition><!-- internal note -->
|
|
<if-compare field-name="parameters.communicationEventTypeId"
|
|
operator="equals" value="COMMENT_NOTE" />
|
|
</condition>
|
|
<widgets>
|
|
<screenlet id="EditCommunicationEventPanel" title="${uiLabelMap.PartyEditCommunicationEvent}" collapsible="true">
|
|
<include-form location="component://party/webapp/partymgr/communication/CommForms.xml" name="NewInternalNote"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition><!-- others -->
|
|
<and>
|
|
<if-compare field-name="parameters.communicationEventTypeId"
|
|
operator="not-equals" value="COMMENT_NOTE" />
|
|
<if-compare field-name="parameters.communicationEventTypeId"
|
|
operator="not-equals" value="EMAIL_COMMUNICATION" />
|
|
<if-compare field-name="parameters.communicationEventTypeId"
|
|
operator="not-equals" value="AUTO_EMAIL_COMM" />
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet id="EditCommunicationEventPanel"
|
|
title="${uiLabelMap.PartyEditCommunicationEvent}" collapsible="true">
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="EditCommEvent" />
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PartyChildCommunicationEvents}"
|
|
navigation-form-name="ListChildCommEvents">
|
|
<include-form
|
|
location="component://party/webapp/partymgr/communication/CommForms.xml"
|
|
name="ListChildCommEvents" />
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditRequestFromCommEvent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditCommunication" />
|
|
<set field="tabButtonItem" value="CommunicationEvent" />
|
|
<entity-one entity-name="CommunicationEvent" value-name="communicationEvent"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCommunicationEventDecorator"
|
|
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-name="party" />
|
|
<entity-one entity-name="Person" use-cache="true" value-name="lookupPerson" />
|
|
<entity-one entity-name="CommunicationEvent" value-name="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-name="party"/>
|
|
<entity-one entity-name="Person" use-cache="true" value-name="lookupPerson"/>
|
|
<entity-one entity-name="CommunicationEvent" value-name="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?communicationEventId=${communicationEventId}&partyId=${partyId}" text="${uiLabelMap.PartyNewCommPurpose}"/></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?communicationEventId=${communicationEventId}&partyId=${partyId}" text="${uiLabelMap.PartyNewCommWorkEffort}"/></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-name="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?communicationEventId=${communicationEventId}&partyId=${partyId}" text="${uiLabelMap.PartyAddCommContent}"/></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="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}"/>
|
|
<entity-one entity-name="CommEventContentDataResource" value-name="commEventContentDataResource">
|
|
<field-map field-name="communicationEventId" env-name="parameters.communicationEventId"/>
|
|
<field-map field-name="contentId" env-name="parameters.contentId"/>
|
|
<field-map field-name="fromDate" env-name="parameters.fromDate"/>
|
|
<field-map field-name="drDataResourceId" env-name="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-name="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-name="commEventContentDataResource.drMimeTypeId" />
|
|
</condition>
|
|
<actions>
|
|
<entity-one entity-name="ElectronicText" value-name="electronicText">
|
|
<field-map field-name="dataResourceId" env-name="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-name="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>
|
|
</screens>
|