Files
ofbiz-framework/applications/party/widget/partymgr/ProfileScreens.xml
T

535 lines
26 KiB
XML

<!--
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="Party">
<section>
<actions>
<entity-and entity-name="PartyNameHistory" list-name="partyNameHistoryList">
<field-map field-name="partyId" env-name="parameters.partyId"/>
<order-by field-name="-changeDate"/>
</entity-and>
<entity-one entity-name="PartyAndGroup" value-name="lookupGroup">
<field-map field-name="partyId" env-name="parameters.partyId"/><!-- is required -->
</entity-one>
<entity-one entity-name="PartyAndPerson" value-name="lookupPerson">
<field-map field-name="partyId" env-name="parameters.partyId"/><!-- is required -->
</entity-one>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field-name="lookupPerson"/></not>
</condition>
<widgets>
<section>
<condition>
<if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PartyPersonalInformation}" navigation-menu-name="personUpdate" id="PartyPersonalInformationPanel">
<include-menu name="personUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
<include-form name="ViewPartyPerson" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
<section>
<condition>
<not><if-empty field-name="partyNameHistoryList"/></not>
</condition>
<widgets>
<include-form name="ViewPartyPersonHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</widgets>
</section>
</screenlet>
</widgets>
<fail-widgets>
<screenlet title="${uiLabelMap.PartyPersonalInformation}" id="PartyPersonalInformationPanel">
<include-form name="ViewPartyPerson" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
<section>
<condition>
<not><if-empty field-name="partyNameHistoryList"/></not>
</condition>
<widgets>
<include-form name="ViewPartyPersonHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</widgets>
</section>
</screenlet>
</fail-widgets>
</section>
</widgets>
</section>
<section>
<condition>
<not><if-empty field-name="lookupGroup"/></not>
</condition>
<widgets>
<section>
<condition>
<if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PartyPartyGroupInformation}" navigation-menu-name="groupUpdate" id="PartyGroupInformationPanel">
<include-menu name="groupUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
<include-form name="ViewPartyGroup" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
<section>
<condition>
<not><if-empty field-name="partyNameHistoryList"/></not>
</condition>
<widgets>
<include-form name="ViewPartyGroupHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</widgets>
</section>
</screenlet>
</widgets>
<fail-widgets>
<screenlet title="${uiLabelMap.PartyPartyGroupInformation}" id="PartyGroupInformationPanel">
<include-form name="ViewPartyGroup" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
<section>
<condition>
<not><if-empty field-name="partyNameHistoryList"/></not>
</condition>
<widgets>
<include-form name="ViewPartyGroupHistory" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</widgets>
</section>
</screenlet>
</fail-widgets>
</section>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="Contact">
<section>
<actions>
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetContactMechs.groovy"/>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/Contact.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="PaymentMethods">
<section>
<actions>
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy"/>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/PaymentMethods.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="Attributes">
<section>
<actions>
<entity-and entity-name="PartyAttribute" list-name="attributes">
<field-map field-name="partyId" env-name="parameters.partyId"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/Attributes.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="AvsSettings">
<section>
<actions>
<entity-and entity-name="PartyIcsAvsOverride" list-name="avsOverride">
<field-map field-name="partyId" env-name="parameters.partyId"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/AvsSettings.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="Cart">
<section>
<actions>
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetCurrentCart.groovy"/>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/Cart.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="LoyaltyPoints">
<section>
<actions>
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetLoyaltyPoints.groovy"/>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/LoyaltyPoints.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="UserLogin">
<section>
<actions>
<entity-and entity-name="UserLogin" list-name="userLogins">
<field-map field-name="partyId" env-name="parameters.partyId"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/UserLogin.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="Visits">
<section>
<actions>
<entity-and entity-name="Visit" list-name="visits">
<field-map field-name="partyId" env-name="parameters.partyId"/>
<order-by field-name="-fromDate"/>
<limit-range start="0" size="5"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/Visits.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="FinAccounts">
<section>
<actions>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD" />
<entity-condition entity-name="FinAccount" list-name="ownedFinAccountList" filter-by-date="true">
<condition-expr field-name="ownerPartyId" operator="equals" env-name="parameters.partyId"/>
<order-by field-name="-fromDate"/>
</entity-condition>
</actions>
<widgets>
<section>
<condition>
<and>
<not><if-empty field-name="ownedFinAccountList"/></not>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</and>
</condition>
<widgets>
<container id="fin-account-summary" style="screenlet">
<container style="screenlet-title-bar">
<label style="h3" text="${uiLabelMap.PageTitleFinancialAccountSummary}"/>
</container>
<container style="screenlet-body">
<iterate-section entry-name="ownedFinAccount" paginate="true" paginate-target="viewprofile?partyId=${parameters.partyId}" view-size="3" list-name="ownedFinAccountList">
<section>
<actions>
<entity-condition entity-name="FinAccountTrans" list-name="ownedFinAccountTransList">
<condition-expr field-name="finAccountId" env-name="ownedFinAccount.finAccountId"/>
<order-by field-name="-transactionDate"/>
<limit-range start="0" size="5"/>
</entity-condition>
<entity-condition entity-name="FinAccountAuth" list-name="ownedFinAccountAuthList" filter-by-date="true">
<condition-expr field-name="finAccountId" env-name="ownedFinAccount.finAccountId"/>
<order-by field-name="-authorizationDate"/>
<limit-range start="0" size="5"/>
</entity-condition>
<entity-one entity-name="Uom" value-name="accountCurrencyUom" auto-field-map="false" use-cache="true">
<field-map field-name="uomId" env-name="ownedFinAccount.currencyUomId"/>
</entity-one>
<entity-one entity-name="StatusItem" value-name="finAccountStatusItem">
<field-map field-name="statusId" env-name="ownedFinAccount.statusId"/>
</entity-one>
<entity-one entity-name="FinAccountType" value-name="ownedFinAccountType" auto-field-map="false" use-cache="true">
<field-map field-name="finAccountTypeId" env-name="ownedFinAccount.finAccountTypeId"/>
</entity-one>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/FinAccounts.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</iterate-section>
<container id="apply-service-credit">
<label style="h2" text="${uiLabelMap.AccountingApplyServiceCredit}"/>
<include-form name="ApplyServiceCredit" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</container>
</container>
</container>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="SerializedInventory">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<entity-condition entity-name="InventoryItem" list-name="inventoryItemList">
<condition-list>
<condition-expr field-name="inventoryItemTypeId" operator="equals" value="SERIALIZED_INV_ITEM"/>
<condition-expr field-name="ownerPartyId" operator="equals" env-name="parameters.partyId"/>
</condition-list>
<order-by field-name="-createdStamp"/>
</entity-condition>
</actions>
<widgets>
<section>
<condition>
<not>
<if-empty field-name="inventoryItemList"/>
</not>
</condition>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/SerializedInventory.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="Subscriptions">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<entity-condition entity-name="Subscription" list-name="subscriptionList" filter-by-date="true">
<condition-list>
<condition-expr field-name="partyId" operator="equals" env-name="parameters.partyId"/>
</condition-list>
<order-by field-name="-fromDate"/>
</entity-condition>
</actions>
<widgets>
<section>
<condition>
<not>
<if-empty field-name="subscriptionList"/>
</not>
</condition>
<widgets>
<screenlet id="subscription-summary" title="${uiLabelMap.ProductSubscriptions}" collapsible="true">
<include-form name="ListSubscriptions" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</screenlet>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="Content">
<section>
<actions>
<entity-condition entity-name="PartyContentType" list-name="partyContentTypes">
<order-by field-name="description"/>
</entity-condition>
<entity-condition entity-name="MimeType" list-name="mimeTypes">
<order-by field-name="description"/>
<order-by field-name="mimeTypeId"/>
</entity-condition>
<entity-condition entity-name="RoleType" list-name="roles">
<order-by field-name="description"/>
<order-by field-name="roleTypeId"/>
</entity-condition>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/Content.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="ContentList">
<section>
<actions>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
<entity-and entity-name="PartyContent" list-name="partyContent">
<field-map field-name="partyId" env-name="parameters.partyId"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/ContentList.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="Notes">
<section>
<actions>
<entity-and entity-name="PartyNoteView" list-name="notes">
<field-map field-name="targetPartyId" env-name="parameters.partyId"/>
<order-by field-name="-noteDateTime"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html>
<html-template location="component://party/webapp/partymgr/party/profileblocks/Notes.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="ShipperAccount">
<section>
<actions>
<set field="partyId" from-field="parameters.partyId"/>
</actions>
<widgets>
<screenlet title="${uiLabelMap.PartyShipperAccount}" navigation-menu-name="addShipper">
<include-menu name="addShipper" location="component://party/widget/partymgr/PartyMenus.xml"/>
<include-form name="ListCarrierAccounts" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</screenlet>
</widgets>
</section>
</screen>
<screen name="contactsAndAccounts">
<section>
<actions>
<set field="partyId" from-field="parameters.partyId"/>
<entity-and list-name="contacts" entity-name="PartyRelationship">
<field-map field-name="partyIdFrom" env-name="parameters.partyId"/>
<field-map field-name="roleTypeIdFrom" value="ACCOUNT"/>
<field-map field-name="roleTypeIdTo" value="CONTACT"/>
</entity-and>
<entity-and list-name="accounts" entity-name="PartyRelationship">
<field-map field-name="partyIdTo" env-name="parameters.partyId"/>
<field-map field-name="roleTypeIdFrom" value="ACCOUNT"/>
<field-map field-name="roleTypeIdTo" value="CONTACT"/>
</entity-and>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field-name="contacts"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.ListRelatedContacts}" navigation-form-name="ListContacts">
<include-form name="ListRelatedContacts" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<not><if-empty field-name="accounts"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.ListRelatedAccounts}" navigation-form-name="ListAccounts">
<include-form name="ListRelatedAccounts" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</screenlet>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="mytasks">
<section>
<actions>
<service service-name="getWorkEffortAssignedActivities"/>
<service service-name="getWorkEffortAssignedActivitiesByRole"/>
<service service-name="getWorkEffortAssignedActivitiesByGroup"/>
<service service-name="getWorkEffortAssignedTasks"/>
</actions>
<widgets><!-- can always view your own tasks -->
<platform-specific><html><html-template location="component://party/webapp/partymgr/party/profileblocks/mytasks.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="ViewInternalOrg">
<section>
<actions>
<set field="headerItem" value="internalOrganization"/>
<set field="roleTypeId" value="EMPLOYEE"/>
</actions>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="boxlink">
<link target="EditEmployment" style="lightbuttontext" text="${uiLabelMap.CommonUpdate}"/>
</container>
<label style="h3">${uiLabelMap.OrderOrderEntryInternalOrganization}</label>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListInternalOrganization" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</screen>
</screens>