git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@680905 13f79535-47bb-0310-9956-ffa450edef68
358 lines
17 KiB
XML
358 lines
17 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="main-decorator">
|
|
<section>
|
|
<actions>
|
|
<!-- base/top/specific map first, then more common map added for shared labels -->
|
|
<property-map resource="MyPageUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="ProjectMgrUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="HumanResUiLabels" map-name="uiLabelMap" global="true"/>
|
|
|
|
<set field="layoutSettings.companyName" value="My Information" global="true"/>
|
|
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.PartyCompanySubtitle" global="true"/>
|
|
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
|
|
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
|
|
<!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>-->
|
|
|
|
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
|
|
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
|
|
<!-- TODO: Use transform to specify component URI -->
|
|
<set field="layoutSettings.javaScripts[]" value="/partymgr/static/partymgr.js" global="true"/>
|
|
<set field="layoutSettings.styleSheets[]" value="/partymgr/static/partymgr.css" global="true"/>
|
|
<set field="activeApp" value="mypage" global="true"/>
|
|
<set field="applicationMenuName" value="MyPageAppBar" global="true"/>
|
|
<set field="applicationMenuLocation" value="component://mypage/widget/MyPageMenus.xml" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<section>
|
|
<condition><not><if-empty field-name="userLogin"/></not></condition>
|
|
<actions>
|
|
<service service-name="getUserPreferenceGroup" result-map-name="preferences">
|
|
<field-map field-name="userPrefGroupId" value="MyPage" />
|
|
</service>
|
|
</actions>
|
|
<widgets/>
|
|
</section>
|
|
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonPartyDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="viewprofile"/>
|
|
<set field="partyId" from-field="userLogin.partyId"/>
|
|
<set field="parameters.partyId" from-field="userLogin.partyId"/>
|
|
<entity-one entity-name="Party" value-name="party"/>
|
|
<entity-one entity-name="Person" value-name="lookupPerson"/>
|
|
<entity-one entity-name="PartyGroup" value-name="lookupGroup"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container style="h1"><label text="${uiLabelMap.PartyTheProfileOf} ${lookupPerson.personalTitle} ${lookupPerson.firstName} ${lookupPerson.middleName} ${lookupPerson.lastName} ${lookupPerson.suffix} ${lookupGroup.groupName} [${partyId}]"/></container>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonCalendarDecorator">
|
|
<section>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonTimesheetDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="${parameters.donePage}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body"/>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonCommunicationEventDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="${parameters.donePage}"/>
|
|
<script location="component://mypage/webapp/mypage/WEB-INF/actions/GetMyCommunicationEventRole.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-menu location="component://mypage/widget/MyPageMenus.xml" name="CommSubTabBar"/>
|
|
<decorator-section-include name="body"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonMyTaskDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="${parameters.donePage}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body"/>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="main">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="main" />
|
|
<set field="parameters.donePage" value="main"/>
|
|
<!-- refresh every 3 minutes -->
|
|
<!--
|
|
set field="layoutSettings.extraHead" value="<META
|
|
HTTP-EQUIV="REFRESH" CONTENT="180">"/
|
|
-->
|
|
<service service-name="getUserPreferenceGroup"
|
|
result-map-name="preferences">
|
|
<field-map field-name="userPrefGroupId" value="MyPage" />
|
|
</service>
|
|
<!-- check if there are any customer requests for this user -->
|
|
<entity-condition list-name="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" env-name="userLogin.partyId"/>
|
|
</condition-list>
|
|
</condition-list>
|
|
<order-by field-name="-custRequestDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field-name="custRequests"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.OrderRequestList}" navigation-form-name="ListRequestList" >
|
|
<include-form name="ListRequestList" location="component://order/webapp/ordermgr/request/RequestForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="preferences.userPrefMap.myCommunications"
|
|
operator="equals" value="Y" />
|
|
</condition>
|
|
<widgets>
|
|
<include-screen name="MyCommunications"
|
|
location="component://mypage/widget/MyPageScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="preferences.userPrefMap.otherCommunications"
|
|
operator="equals" value="Y" />
|
|
</condition>
|
|
<widgets>
|
|
<include-screen name="OtherCommunications"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="preferences.userPrefMap.myCompanyComms"
|
|
operator="equals" value="Y" />
|
|
</condition>
|
|
<widgets>
|
|
<include-screen name="MyCompanyComms"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="preferences.userPrefMap.myTasks"
|
|
operator="equals" value="Y" />
|
|
</condition>
|
|
<widgets>
|
|
<include-screen name="MyTasks"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="preferences.userPrefMap.myTimesheet"
|
|
operator="equals" value="Y" />
|
|
</condition>
|
|
<widgets>
|
|
<include-screen name="MyTimesheet"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="preferences">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="preferences"/>
|
|
<service service-name="getUserPreferenceGroup"
|
|
result-map-name="preferences">
|
|
<field-map field-name="userPrefGroupId" value="MyPage" />
|
|
</service>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.CommonPreferences}: pages visible on the main screen">
|
|
<include-form name="preferences" location="component://mypage/widget/MyPageForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="MyTasks">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="myTasks" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="MyTasks"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="MyCommunications">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="myCommunications" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="MyCommunications"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="OtherCommunications">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="otherCommunications" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="OtherCommunications"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="MyCompanyComms">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="myCompanyComms" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="MyCompanyComms"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="MyTimesheet">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="myTimesheet" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator"
|
|
location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="MyTimesheet"
|
|
location="component://mypage/widget/MyPageScreens.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonRequestDecorator">
|
|
<section>
|
|
<actions/>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<decorator-section-include name="body"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|