Files
ofbiz-framework/applications/humanres/widget/CommonScreens.xml
T
Ashish Vijaywargiya 16a12b6140 Applied patch from JIRA issue OFBIZ-1659.
Following things are covered in this work :-

Restructured and organized the Screenc and Forms in the HR component.
Improved and Updated the naming conventions in the naming of Screens,Forms and requests. 

Thanks Harsha Chadhar for this work.
It was really very important for us to Manage the files before the component is used Extensively with other components.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660980 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 15:25:38 +00:00

274 lines
15 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>
<property-map resource="HumanResUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" 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="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProjectMgrUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.HumanResCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.HumanResCompanySubtitle" 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="activeApp" value="humanres" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/partymgr/static/partymgr.js" global="true"/>
<set field="layoutSettings.styleSheets[]" value="/partymgr/static/partymgr.css" global="true"/>
<set field="applicationMenuName" value="HumanResAppBar" global="true"/>
<set field="applicationMenuLocation" value="component://humanres/widget/Menus.xml" global="true"/>
</actions>
<widgets>
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
</screen>
<screen name="CommonEmplPositionDecorator">
<section>
<actions>
<set field="headerItem" value="EmplPosition"/>
<set field="emplPositionId" from-field="parameters.emplPositionId"/>
<entity-one entity-name="EmplPosition" value-name="emplPosition"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for EmplPosition, _VIEW permission -->
<condition>
<if-has-permission permission="HUMANRES" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field-name="emplPosition"/></not>
</condition>
<widgets>
<include-menu name="EmplPostionBar" location="component://humanres/widget/Menus.xml"/>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.HumanResViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonEmploymentDecorator">
<section>
<actions>
<set field="roleTypeIdFrom" from-field="parameters.roleTypeIdFrom"/>
<set field="roleTypeIdTo" from-field="parameters.roleTypeIdTo"/>
<set field="partyIdFrom" from-field="parameters.partyIdFrom"/>
<set field="partyIdTo" from-field="parameters.partyIdTo"/>
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
<entity-one entity-name="Employment" value-name="employment"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for Employment, _VIEW permission -->
<condition>
<if-has-permission permission="HUMANRES" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field-name="employment"/></not>
</condition>
<widgets>
<include-menu name="EmploymentBar" location="component://humanres/widget/Menus.xml"/>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.HumanResViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonPayGradeDecorator">
<section>
<actions>
<set field="payGradeId" from-field="parameters.payGradeId"/>
<entity-one entity-name="PayGrade" value-name="payGrade"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for Employment, _VIEW permission -->
<condition>
<if-has-permission permission="HUMANRES" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field-name="payGrade"/></not>
</condition>
<widgets>
<include-menu name="SalaryBar" location="component://humanres/widget/Menus.xml"/>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.HumanResViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonPerfReviewDecorator">
<section>
<actions>
<set field="perfReviewId" from-field="parameters.perfReviewId"/>
<entity-one entity-name="PerfReview" value-name="perfReview"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for PartyAbility, _VIEW permission -->
<condition>
<if-has-permission permission="HUMANRES" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field-name="perfReviewId"/></not>
</condition>
<widgets>
<include-menu name="PartyBar" location="component://humanres/widget/Menus.xml"/>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.HumanResViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonPartyDecorator">
<section>
<actions>
<set field="partyId" from-field="parameters.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="pre-body">
<section>
<condition>
<and>
<if-has-permission permission="HUMANRES" action="_VIEW"/>
<not><if-empty field-name="partyId"/></not>
</and>
</condition>
<widgets>
<include-menu name="ProfileTabBar" location="component://humanres/widget/Menus.xml"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="PARTYMGR" action="_VIEW"/>
</condition>
<!-- do check for PARTYMGR, _VIEW permission -->
<widgets>
<section>
<condition><not><if-empty field-name="partyId"/></not></condition>
<widgets>
<container style="h1">
<section>
<condition>
<or>
<not><if-empty field-name="lookupPerson"/></not>
<not><if-empty field-name="lookupGroup"/></not>
</or>
</condition>
<widgets>
<label text="${uiLabelMap.PartyTheProfileOf} ${lookupPerson.personalTitle} ${lookupPerson.firstName} ${lookupPerson.middleName} ${lookupPerson.lastName} ${lookupPerson.suffix} ${lookupGroup.groupName} [${partyId}]"/>
</widgets>
<fail-widgets>
<label style="h1" text="${uiLabelMap.PartyNewUser}"/>
</fail-widgets>
</section>
</container>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="GlobalHRSettingsDecorator">
<section>
<actions>
<set field="headerItem" value="GlobalHRSettings"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container>
<include-menu name="GlobalHRSettingMenus" location="component://humanres/widget/Menus.xml"/>
</container>
</widgets>
</section>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>