git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@607817 13f79535-47bb-0310-9956-ffa450edef68
354 lines
20 KiB
XML
354 lines
20 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="ProjectMgrUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="AssetMaintUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="HumanResUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
|
|
<!-- The two default (global) stylesheets are added to the list
|
|
of stylesheets to the first and second position -->
|
|
|
|
<set field="layoutSettings.companyName" from-field="uiLabelMap.ProjectMgrCompanyName" global="true"/>
|
|
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ProjectMgrCompanySubtitle" 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="projectmgr" global="true"/>
|
|
<set field="applicationMenuName" value="ProjectMgrAppBar" global="true"/>
|
|
<set field="applicationMenuLocation" value="component://projectmgr/widget/Menus.xml" global="true"/>
|
|
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonResourceDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="resources"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonProjectDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="projects"/>
|
|
<set field="projectId" from-field="parameters.projectId" default-value="${parameters.workEffortId}"/>
|
|
<entity-one entity-name="WorkEffort" value-name="project">
|
|
<field-map field-name="workEffortId" env-name="projectId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field-name="project"/>
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="ProjectTabBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
<include-menu name="ProjectSubTabBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
<label style="head1" text="${uiLabelMap.ProjectMgrProjectCurrent}: ${project.workEffortName}[${project.workEffortId}]"/>
|
|
</widgets>
|
|
</section>
|
|
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonTaskDecorator">
|
|
<section>
|
|
<actions>
|
|
<entity-one entity-name="WorkEffort" value-name="workEffort"/>
|
|
<service service-name="getProjectIdAndName" result-map-name="result">
|
|
<field-map field-name="taskId" env-name="parameters.workEffortId"/>
|
|
</service>
|
|
<set field="projectId" from-field="result.projectId"/>
|
|
<set field="projectName" from-field="result.projectName"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field-name="workEffort"/>
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="TaskTabBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
<section>
|
|
<condition>
|
|
<or>
|
|
<if-compare field-name="tabButtonItem" operator="equals" value="taskView"/>
|
|
<if-compare field-name="tabButtonItem" operator="equals" value="edittask"/>
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="TaskSubTabBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<label style="head1" text="${uiLabelMap.ProjectMgrTaskCurrent}: ${workEffort.workEffortName}[${workEffort.workEffortId}] Project: ${projectName}"/>
|
|
<link style="head1" text="[${projectId}]" target="projectView?projectId=${projectId}"/>
|
|
</widgets>
|
|
</section>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonMyTaskDecorator">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonSkillTypeDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="skillTypeId" from-field="parameters.skillTypeId"/>
|
|
<entity-one entity-name="SkillType" value-name="skillType"/>
|
|
</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="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonTimesheetDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="timesheet"/>
|
|
<set field="timesheetId" from-field="parameters.timesheetId"/>
|
|
<entity-one entity-name="Timesheet" value-name="timesheet"/>
|
|
<entity-one entity-name="PartyNameView" value-name="partyName">
|
|
<field-map field-name="partyId" env-name="timesheet.partyId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<!--include-menu name="TimesheetTabBar" location="component://projectmgr/widget/Menus.xml"/-->
|
|
<include-menu name="TimesheetSubTabBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
<container><label style="head1">${uiLabelMap.TimesheetTimesheetId}: ${timesheetId} ${uiLabelMap.CommonFrom}: ${partyName.firstName} ${partyName.middleName} ${partyName.lastName} ${partyName.groupName} [${timesheet.partyId}]</label></container>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonMyTimeDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="mytime"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="MyTimeSubTabBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonCalendarDecorator">
|
|
<section>
|
|
<actions>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<actions>
|
|
<entity-condition entity-name="Facility" list-name="allFacilities">
|
|
<order-by field-name="facilityName"/>
|
|
</entity-condition>
|
|
<entity-condition entity-name="FixedAsset" list-name="allFixedAssets">
|
|
<order-by field-name="fixedAssetId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html><html-template location="component://workeffort/webapp/workeffort/calendar/eventsByForms.ftl"/></html>
|
|
</platform-specific>
|
|
<platform-specific>
|
|
<html><html-template location="component://workeffort/webapp/workeffort/calendar/CalendarTabBar.ftl"/></html>
|
|
</platform-specific>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="Main">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container>
|
|
<label style="head1" text="Introduction to the Project Manager Application"/>
|
|
</container>
|
|
<section>
|
|
<actions>
|
|
<set field="text1" value="The projectmanager supports the administration/sheduling of projects, task assignment/re-assignment with time registration and invoicing.
|
|
For comments and requirements please add this to the documents below or open an issue in Jira.<br/><br/>
|
|
The current status of the component is documented in the development document below." />
|
|
<set field="text2" value="The following documents/systems are available:"/>
|
|
<set field="link1Text" value="A development document."/>
|
|
<set field="link1" value="http://docs.ofbiz.org/display/OFBIZ/Complete+the+implementation+of+the+ProjectMgr+component."/>
|
|
<set field="link2Text" value="User document"/>
|
|
<set field="link2" value="http://docs.ofbiz.org/display/OFBENDUSER/Project+Manager+Application+Roles"/>
|
|
<set field="link3Text" value="A Jira issue system for fault reports and change requests"/>
|
|
<set field="link3" value="https://issues.apache.org/jira/browse/OFBIZ/component/12312073"/>
|
|
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://projectmgr/main.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
</screens>
|