You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ap...@apache.org on 2007/09/09 21:02:13 UTC
svn commit: r574051 [3/4] - in /ofbiz/trunk/specialpurpose/projectmgr: ./
config/ webapp/projectmgr/WEB-INF/ webapp/projectmgr/WEB-INF/actions/
webapp/projectmgr/project/ webapp/projectmgr/project/summary/ widget/
widget/forms/
Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listTimeSheetByDateRange.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listTimeSheetByDateRange.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listTimeSheetByDateRange.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listTimeSheetByDateRange.ftl Sun Sep 9 12:02:11 2007
@@ -0,0 +1,66 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+ <div class="screenlet-title-bar">
+ <ul>
+ <li class="head3"> Find TimeSheet</li>
+ </ul>
+ <br class="clear" />
+ </div>
+ <div class="screenlet-body">
+ <form method="post" name="listTimeSheetByDateRange" action="<@o...@ofbizUrl>">
+ <table>
+ <td><b>To Find TimeSheet Give Range</b></td>
+ <tr><td>
+ <fieldset class="right">
+ <div class="form-row">
+ <div class="field-label">
+ <label for="fromDate">${uiLabelMap.CommonFromDate}<span class="requiredLabel"></span></label>
+ </div>
+ <div class="field-widget">
+ <input name="fromDate" class="field text" type="text" size=20 value="" title=""/>
+ <a href="javascript:call_cal(document.listTimeSheetByDateRange.fromDate, null);"><img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ </div>
+ </div>
+ <div class="form-row">
+ <div class="field-label">
+ <label for="thruDate">${uiLabelMap.CommonThruDate}<span class="requiredLabel"></span></label>
+ </div>
+ <div class="field-widget">
+ <input name="thruDate" class="field text" type="text" size=20 value="" title="" />
+ <a href="javascript:call_cal(document.listTimeSheetByDateRange.thruDate, null);"><img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ </div>
+ </div>
+ </fieldset>
+ </td></tr>
+ <tr><td> </td></tr>
+ <tr><td>
+ <fieldset class="right">
+ <div class="form-row">
+ <div>
+ <a href="javascript:document.listTimeSheetByDateRange.submit()" class="buttontext">${uiLabelMap.CommonFind}</a>
+ </div>
+ </div>
+ </fieldset>
+ </td></tr>
+ </table>
+ </form>
+ </div>
+</div>
Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listprojectsbydaterange.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listprojectsbydaterange.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listprojectsbydaterange.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listprojectsbydaterange.ftl Sun Sep 9 12:02:11 2007
@@ -0,0 +1,66 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+ <div class="screenlet-title-bar">
+ <ul>
+ <li class="head3"> ${uiLabelMap.PageTitleFindProject}</li>
+ </ul>
+ <br class="clear" />
+ </div>
+ <div class="screenlet-body">
+ <form method="post" name="listProjectsByDateRange" action="<@o...@ofbizUrl>">
+ <table>
+ <td><b>${uiLabelMap.ProjectMgrToFindProject}</b></td>
+ <tr><td>
+ <fieldset class="right">
+ <div class="form-row">
+ <div class="field-label">
+ <label for="fromDate">${uiLabelMap.CommonFromDate}<span class="requiredLabel"></span></label>
+ </div>
+ <div class="field-widget">
+ <input name="fromDate" class="field text" type="text" size=20 value="" title=""/>
+ <a href="javascript:call_cal(document.listProjectsByDateRange.fromDate, null);"><img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ </div>
+ </div>
+ <div class="form-row">
+ <div class="field-label">
+ <label for="thruDate">${uiLabelMap.CommonThruDate}<span class="requiredLabel"></span></label>
+ </div>
+ <div class="field-widget">
+ <input name="thruDate" class="field text" type="text" size=20 value="" title="" />
+ <a href="javascript:call_cal(document.listProjectsByDateRange.thruDate, null);"><img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ </div>
+ </div>
+ </fieldset>
+ </td></tr>
+ <tr><td> </td></tr>
+ <tr><td>
+ <fieldset class="right">
+ <div class="form-row">
+ <div>
+ <a href="javascript:document.listProjectsByDateRange.submit()" class="buttontext">${uiLabelMap.CommonFind}</a>
+ </div>
+ </div>
+ </fieldset>
+ </td></tr>
+ </table>
+ </form>
+ </div>
+</div>
Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listtasksbydaterange.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listtasksbydaterange.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listtasksbydaterange.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/listtasksbydaterange.ftl Sun Sep 9 12:02:11 2007
@@ -0,0 +1,59 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+ <div class="screenlet-title-bar">
+ <ul>
+ <li class="head3">${uiLabelMap.PageTitleFindTask} </li>
+ </ul>
+ <br class="clear" />
+ </div>
+ <div class="screenlet-body">
+ <form method="post" name="listTasksByDateRange" action="<@o...@ofbizUrl>">
+ <table width="">
+ <tr>
+ <td><b>${uiLabelMap.ProjectMgrToFindTask}</b></td>
+ </tr>
+ <tr>
+ <td align="right">${uiLabelMap.CommonFromDate}</td>
+ <td>
+ <input type="text" size="20" name="fromDate" class="field text">
+ <a href="javascript:call_cal(document.listTasksByDateRange.fromDate, null);"><img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ </td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td align="right">${uiLabelMap.CommonThruDate}</td>
+ <td>
+ <input type="text" size="20" name="thruDate" class="field text">
+ <a href="javascript:call_cal(document.listTasksByDateRange.thruDate, null);"><img src="<@o...@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ </td>
+ <td> </td>
+ </tr>
+ <tr><td> </td></tr>
+ <tr>
+ <td> </td>
+ <td align="left">
+ <a href="javascript:document.listTasksByDateRange.submit()" class="buttontext">${uiLabelMap.CommonFind}</a>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+</div>
Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/summary/projectinfo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/summary/projectinfo.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/summary/projectinfo.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/summary/projectinfo.ftl Sun Sep 9 12:02:11 2007
@@ -0,0 +1,81 @@
+<#--
+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.
+-->
+<div class="screenlet">
+ <div class="screenlet-title-bar">
+ <ul>
+ <li class="head3"> ${uiLabelMap.ProjectMgrProjectName} #${project.workEffortId?if_exists} ${uiLabelMap.CommonInformation}</li>
+ </ul>
+ <br class="clear" />
+ </div>
+ <div class="screenlet-body">
+ <#if project?has_content>
+ <table width="100%" border="0" cellpadding="1" cellspacing="0">
+ <tr>
+ <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>
+ <td>${project.workEffortId?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label" >${uiLabelMap.CommonName}</td>
+ <td>${project.workEffortName?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label" >${uiLabelMap.CommonDescription}</td>
+ <td>${project.description?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label" >${uiLabelMap.CommonStatus}</td>
+ <td>${project.currentStatusId?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label">${uiLabelMap.CommonPriority}</td>
+ <td>${project.priority?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+ <td>${project.scopeEnumId?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+ <td>${project.estimatedStartDate?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+ <td>${project.estimatedCompletionDate?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+ <td>${project.actualStartDate?if_exists}</td>
+ </tr>
+ <tr><td colspan="3"><hr class="sepbar"/></td></tr>
+ <tr>
+ <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+ <td>${project.actualCompletionDate?if_exists}</td>
+ </tr>
+ </table>
+ </#if>
+ </div>
+</div>
Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml?rev=574051&r1=574050&r2=574051&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/CommonScreens.xml Sun Sep 9 12:02:11 2007
@@ -28,6 +28,7 @@
<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="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<!-- The two default (global) stylesheets are added to the list
@@ -80,11 +81,47 @@
</section>
</screen>
- <screen name="CommonWorkEffortDecorator">
+ <screen name="CommonProjectDecorator">
<section>
<actions>
- <set field="headerItem" value="workeffort"/>
- <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <set field="headerItem" value="projects"/>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
+ <entity-one entity-name="WorkEffort" value-name="workEffort"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-has-permission permission="WORKEFFORTMGR" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <section>
+ <condition>
+ <not>
+ <if-empty field-name="workEffortId"/>
+ </not>
+ </condition>
+ <widgets>
+ <include-menu name="ProjectTabBar" location="component://projectmgr/widget/Menus.xml"/>
+ </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>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
<entity-one entity-name="WorkEffort" value-name="workEffort"/>
</actions>
<widgets>
@@ -101,12 +138,9 @@
<if-empty field-name="workEffortId"/>
</not>
</condition>
- <widgets>
- <include-menu name="WorkEffortTabBar" location="component://workeffort/widget/WorkEffortMenus.xml"/>
- <container>
- <label style="head1">${uiLabelMap.WorkEffortWorkEffortId}: ${workEffortId}</label>
- </container>
- </widgets>
+ <widgets>
+ <include-menu name="TaskTabBar" location="component://projectmgr/widget/Menus.xml"/>
+ </widgets>
</section>
<decorator-section-include name="body"/>
@@ -119,8 +153,7 @@
</decorator-screen>
</widgets>
</section>
- </screen>
-
+ </screen>
<screen name="CommonTimesheetDecorator">
<section>
<actions>
@@ -139,8 +172,8 @@
<section>
<condition><not><if-empty field-name="timesheetId"/></not></condition>
<widgets>
- <include-menu name="TimesheetTabBar" location="component://workeffort/widget/TimesheetMenus.xml"/>
- <container><label style="head1">${uiLabelMap.TimesheetTimesheetId}: ${timesheetId}</label></container>
+ <include-menu name="TimesheetTabBar" location="component://projectmgr/widget/Menus.xml"/>
+ <!--container><label style="head1">${uiLabelMap.TimesheetTimesheetId}: ${timesheetId}</label></container-->
</widgets>
</section>
Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/Menus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/Menus.xml?rev=574051&r1=574050&r2=574051&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/Menus.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/Menus.xml Sun Sep 9 12:02:11 2007
@@ -20,15 +20,15 @@
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
- <menu name="ProjectMgrAppBar" default-menu-item-name="task" id="app-navigation" type="simple" selected-menuitem-context-field-name="headerItem" default-selected-style="selected" title="${uiLabelMap.ProjectManagerApplication}">
+ <menu name="ProjectMgrAppBar" default-menu-item-name="task" id="app-navigation" type="simple" selected-menuitem-context-field-name="headerItem" default-selected-style="selected" title="${uiLabelMap.ProjectManagerApplication}" menu-container-style="button-bar tab-bar">
- <menu-item name="task" title="${uiLabelMap.WorkEffortTaskList}"><link target="mytasks"/></menu-item>
- <menu-item name="projects" title="${uiLabelMap.WorkEffortProjects}"><link target="FindWorkEffort?workEffortTypeId=PROJECT"/></menu-item>
+ <menu-item name="task" title="${uiLabelMap.WorkEffortTaskList}"><link target="FindTaskByRange?workEffortTypeId=TASK"/></menu-item>
+ <menu-item name="projects" title="${uiLabelMap.WorkEffortProjects}"><link target="FindProjectByRange?workEffortTypeId=PROJECT"/></menu-item>
<menu-item name="calendar" title="${uiLabelMap.WorkEffortCalendar}"><link target="day"/></menu-item>
<menu-item name="mytime" title="${uiLabelMap.TimesheetMyTime}"><link target="MyTimesheets"/></menu-item>
<menu-item name="request" title="${uiLabelMap.WorkEffortRequestList}"><link target="requestlist"/></menu-item>
<menu-item name="workeffort" title="${uiLabelMap.WorkEffortWorkEffort}"><link target="FindWorkEffort"/></menu-item>
- <menu-item name="timesheet" title="${uiLabelMap.Timesheet}"><link target="FindTimesheet"/></menu-item>
+ <menu-item name="timesheet" title="${uiLabelMap.Timesheet}"><link target="FindTimeSheet?findAll=N"/></menu-item>
<menu-item name="Logout" title="Logout" align-style="col-right" widget-style="headerButtonRight" selected-style="headerButtonRightSelected">
<condition><not><if-empty field-name="userLogin"/></not></condition>
@@ -39,5 +39,30 @@
<link target="${checkLoginUrl}"/>
</menu-item>
</menu>
-
+ <menu name="ProjectTabBar" type="simple" menu-container-style="button-bar tab-bar" default-selected-style="selected">
+ <menu-item name="editproject" title="${uiLabelMap.ProjectMgrEditPoject}"><link target="EditProject?workEffortId=${workEffortId}"/></menu-item>
+ <menu-item name="phases" title="${uiLabelMap.ProjectMgrPhases}"><link target="FindPhase?workEffortIdFrom=${workEffortId}&workEffortTypeId=PHASE&workEffortAssocTypeId=WORK_EFF_BREAKDOWN"/></menu-item>
+ <menu-item name="subprojects" title="${uiLabelMap.ProjectMgrSubProjects}"><link target="FindProject?workEffortIdFrom=${workEffortId}&workEffortTypeId=PROJECT&workEffortAssocTypeId=WORK_EFF_BREAKDOWN"/></menu-item>
+ <menu-item name="tasks" title="${uiLabelMap.ProjectMgrTasks}"><link target="FindTask?workEffortIdFrom=${workEffortId}&workEffortTypeId=TASK&workEffortAssocTypeId=WORK_EFF_BREAKDOWN"/></menu-item>
+ <menu-item name="projectskills" title="${uiLabelMap.ProjectMgrSkillStandards}"><link target="EditProjectSkills?workEffortId=${workEffortId}"/></menu-item>
+ <menu-item name="parties" title="${uiLabelMap.ProjectMgrParties}"><link target="ListWorkEffortPartyAssigns?workEffortId=${workEffortId}"/></menu-item>
+ <menu-item name="treeDetails" title="${uiLabelMap.ProjectMgrTreeDetails}"><link target="ChildWorkEfforts?workEffortId=${workEffortId}&trail=${workEffortId}&workEffortTypeId=PROJECT&workEffortAssocTypeId=WORK_EFF_BREAKDOWN"/></menu-item>
+ </menu>
+ <menu name="TaskTabBar" type="simple" menu-container-style="button-bar tab-bar" default-selected-style="selected">
+ <menu-item name="edittask" title="${uiLabelMap.ProjectMgrEditTask}"><link target="EditTask?workEffortId=${workEffortId}"/></menu-item>
+ <menu-item name="subtasks" title="${uiLabelMap.ProjectMgrSubTasks}"><link target="FindTaskList?workEffortIdFrom=${workEffortId}&workEffortTypeId=TASK&workEffortAssocTypeId=WORK_EFF_BREAKDOWN"/></menu-item>
+ <menu-item name="projectskills" title="${uiLabelMap.ProjectMgrSkillStandards}"><link target="EditTaskSkills?workEffortId=${workEffortId}"/></menu-item>
+ <menu-item name="treeDetails" title="${uiLabelMap.ProjectMgrTreeDetails}"><link target="ChildTaskWorkEfforts?workEffortId=${workEffortId}&trail=${workEffortId}&workEffortTypeId=TASK&workEffortAssocTypeId=WORK_EFF_BREAKDOWN"/></menu-item>
+ </menu>
+ <menu name="TimesheetTabBar" menu-container-style="button-bar tab-bar" default-menu-item-name="edittimesheet" default-selected-style="selected">
+ <menu-item name="edittimesheet" title="${uiLabelMap.Timesheet}">
+ <link target="EditTimeSheet?timesheetId=${timesheetId}"/>
+ </menu-item>
+ <menu-item name="TimesheetRoles" title="${uiLabelMap.PartyParties}">
+ <link target="EditTimesheetRoles?timesheetId=${timesheetId}"/>
+ </menu-item>
+ <menu-item name="TimesheetEntries" title="${uiLabelMap.CommonEntries}">
+ <link target="EditTimesheetEntries?timesheetId=${timesheetId}"/>
+ </menu-item>
+ </menu>
</menus>
Added: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml Sun Sep 9 12:02:11 2007
@@ -0,0 +1,584 @@
+<?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="FindProject">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleFindProject"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="subprojects"/>
+ <set field="labelTitleProperty" value="ProjectMgrProjectName"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/FindProject"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-empty field-name="workEffortId"/>
+ </condition>
+ <!-- This is the code for the List of Projects -->
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.${titleProperty}}</label></container>
+ <container style="screenlet-body">
+ <container style="button-bar"><link target="EditProject?workEffortTypeId=PROJECT" text="${uiLabelMap.ProjectMgrNewProject}" style="buttontext"/></container>
+ <include-form name="ListProjects" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ </widgets>
+ <!-- This is the code for the List of subProjects -->
+ <fail-widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleEditSubProject}</label></container>
+ <container style="screenlet-body">
+ <include-form name="ListChildEfforts" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/editprojectandassoc.ftl"/></html>
+ </platform-specific>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="FindProjectByRange">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleFindProject"/>
+ <set field="headerItem" value="projects"/>
+ <set field="labelTitleProperty" value="ProjectMgrProjectName"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/FindProject"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListProjectsByDateRange.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/listprojectsbydaterange.ftl"/></html>
+ </platform-specific>
+ <container style="button-bar"><link target="EditProject?workEffortTypeId=PROJECT" text="${uiLabelMap.ProjectMgrNewProject}" style="buttontext"/></container>
+ <include-form name="ListProjects" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditProject">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditProject"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="editproject"/>
+ <set field="labelTitleProperty" value="PageTitleEditProject"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/FindProjectList"/>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <set field="workEffortAssocTypeId" from-field="parameters.workEffortAssocTypeId"/>
+ <entity-one entity-name="WorkEffort" value-name="project"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <!-- To add a new Project -->
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/editproject.ftl"/></html>
+ </platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="ChildWorkEfforts">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleListWorkEfforts"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="treeDetails"/>
+ <set field="labelTitleProperty" value="PageTitleListWorkEfforts"/>
+ <set field="trail" from-field="parameters.trail" default-value="${parameters.workEffortId}"/>
+ <set field="workEffortId" from-field="parameters.trail"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleTreeWorkEfforts}</label></container>
+ <container style="screenlet-body">
+ <!--container><label style="head1">${uiLabelMap.PageTitleTreeWorkEfforts}</label></container-->
+ <container><link text="${uiLabelMap.WorkEffortCreate}" target="EditWorkEffort?DONE_PAGE=${donePage}" style="linktext"/></container>
+ <include-tree name="TreeWorkEffort" location="component://projectmgr/widget/WorkEffortTrees.xml"/>
+ </container>
+ </container>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="WorkEffortTreeLine">
+ <section>
+ <actions>
+ <set field="workEffortId" from-field="workEffortIdFrom" default-value="${workEffort.workEffortId}"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="treeDetails"/>
+ <entity-one entity-name="WorkEffort" value-name="workEffort"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="ChildWorkEfforts?workEffortId=${workEffort.workEffortId}"/>
+ </actions>
+ <widgets>
+ <label text=" ${workEffort.workEffortName} - ${workEffort.description}" style="tabletext"/>
+ <link target="EditWorkEffort?workEffortId=${workEffort.workEffortId}" text="${workEffort.workEffortId}" style="buttontext"/>
+ <link target="AddProjectAndAssoc?workEffortIdFrom=${workEffort.workEffortId}" text="${uiLabelMap.WorkEffortAddChild}" style="buttontext"></link>
+ <link target="AddProjectAndAssoc?workEffortIdFrom=${workEffort.workEffortId}" text="${uiLabelMap.WorkEffortAddExistingWorkEffortChild}" style="buttontext"></link>
+ <section>
+ <condition><not><if-empty field-name="workEffortAssoc"/></not></condition>
+ <widgets>
+ <link target="EditProjectAndAssoc?workEffortIdFrom=${workEffortAssoc.workEffortIdFrom}&workEffortIdTo=${workEffortAssoc.workEffortIdTo}&workEffortAssocTypeId=${workEffortAssoc.workEffortAssocTypeId}&fromDate=${workEffortAssoc.fromDate}&DONE_PAGE=${donePage}" text="Edit Assoc" style="buttontext"></link>
+ <link target="EditProjectAndAssoc?workEffortIdFrom=${workEffortAssoc.workEffortIdFrom}&workEffortIdTo=${workEffortAssoc.workEffortIdTo}&workEffortAssocTypeId=${workEffortAssoc.workEffortAssocTypeId}&fromDate=${workEffortAssoc.fromDate}&DONE_PAGE=${donePage}" text="Edit Assoc Detail" style="buttontext"></link>
+ </widgets>
+ </section>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditProjectAndAssoc">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditProject"/>
+ <set field="labelTitleProperty" value="PageTitleEditProject"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="treeDetails"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdTo"/>
+ <set field="workEffortIdTo" from-field="parameters.workEffortIdTo"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="fromDate" from-field="parameters.fromDate"/>
+ <entity-one entity-name="WorkEffort" value-name="project"/>
+ <entity-one entity-name="WorkEffortAssoc" value-name="workEffortAssoc"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/editprojectandassoc.ftl"/></html>
+ </platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="FindTask">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditTask"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="tasks"/>
+ <set field="labelTitleProperty" value="PageTitleFindTask"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="filterTaskNotAssigned" from-field="parameters.filterTaskNotAssigned"/>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListFilteredTasks.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-empty field-name="parameters.filterTaskNotAssigned"/>
+ </condition>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/findtasks.ftl"/></html>
+ </platform-specific>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <label style="boxhead">${uiLabelMap.${titleProperty}}</label>
+ </container>
+ <container style="screenlet-body">
+ <include-form name="ListTasks" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ <fail-widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <label style="boxhead">${uiLabelMap.${titleProperty}}</label>
+ </container>
+ <container style="screenlet-body">
+ <include-form name="ListUnassignedTasks" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <!-- Edit a Task -->
+ <screen name="EditTask">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditTask"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="edittask"/>
+ <set field="labelTitleProperty" value="ProjectMgrTaskName"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/FindTasks"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <set field="workEffortAssocTypeId" from-field="parameters.workEffortAssocTypeId"/>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
+ <entity-one entity-name="WorkEffort" value-name="task"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-empty field-name="workEffortAssocTypeId"/>
+ </condition>
+ <!-- Add a new Task -->
+ <widgets>
+ <label style="head1">${uiLabelMap.PageTitleEditTask}</label>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittask.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ <fail-widgets>
+ <section>
+ <condition>
+ <not>
+ <if-empty field-name="workEffortIdFrom"/>
+ </not>
+ </condition>
+ <!-- Edit an existing Task -->
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ <!-- Edit an existing SubTask -->
+ <fail-widgets>
+ <container><link text="${uiLabelMap.CommonGoBack}" target="FindTask?workEffortId=${task.workEffortParentId}&workEffortTypeId=TASK" style="buttontext"/></container>
+ <label style="head1">${uiLabelMap.ProjectMgrSubTaskName}: ${task.workEffortName}</label>
+ <container><label style="head1">${uiLabelMap.PageTitleEditSubTask}</label></container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl"/></html>
+ </platform-specific>
+ </fail-widgets>
+ </section>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <!-- Edit an existing SubTask and their Association-->
+ <!--screen name="EditTaskAndAssoc">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditTask"/>
+ <set field="labelTitleProperty" value="PageTitleEditTask"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="edittask"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE"/>
+ <set field="workEffortIdTo" from-field="parameters.workEffortIdTo"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="fromDate" from-field="parameters.fromDate"/>
+ <entity-one entity-name="WorkEffort" value-name="task"/>
+ <entity-one entity-name="WorkEffortAssoc" value-name="workEffortAssoc"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl"/></html>
+ </platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen-->
+ <screen name="FindPhase">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditPhase"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="phases"/>
+ <set field="labelTitleProperty" value="PageTitleFindPhase"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.${titleProperty}}</label></container>
+ <container style="screenlet-body">
+ <!--container style="button-bar"><link target="EditTask?workEffortIdFrom=${parameters.workEffortIdFrom}&workEffortTypeId=TASK&workEffortAssocTypeId=WORK_EFF_BREAKDOWN" text="${uiLabelMap.ProjectMgrNewTask}" style="buttontext"/></container-->
+ <include-form name="ListPhases" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ListWorkEffortPartyAssigns">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleListWorkEffortPartyAssigns"/>
+ <set field="tabButtonItem" value="parties"/>
+ <set field="labelTitleProperty" value="PageTitleListWorkEffortPartyAssigns"/>
+
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <entity-one entity-name="WorkEffortPartyAssignment" value-name="workEffortPartyAssignment"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleListWorkEffortPartyAssigns}</label></container>
+ <container style="screenlet-body">
+ <include-form name="ListWorkEffortPartyAssigns" location="component://workeffort/widget/WorkEffortPartyAssignForms.xml"/>
+ </container>
+ </container>
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddWorkEffortPartyAssign}</label></container>
+ <container style="screenlet-body">
+ <include-form name="EditWorkEffortPartyAssign" location="component://workeffort/widget/WorkEffortPartyAssignForms.xml"/>
+ </container>
+ </container>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditProjectSkills">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditSkill"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="projectskills"/>
+ <set field="labelTitleProperty" value="PageTitleEditSkill"/>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <entity-one entity-name="WorkEffortSkillStandard" value-name="workEffortSkillStandard"/>
+ <entity-and entity-name="WorkEffortSkillStandard" list-name="workEffortSkillStandardList">
+ <field-map field-name="workEffortId"/>
+ </entity-and>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.${titleProperty}}</label></container>
+ <container style="screenlet-body">
+ <include-form name="ListProjectSkills" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/editProjectskills.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditTimeEntries">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleListTimeEntries"/>
+ <set field="headerItem" value="projects"/>
+ <set field="tabButtonItem" value="tasks"/>
+ <set field="labelTitleProperty" value="PageTitleEditSkill"/>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.${titleProperty}} ${workEffortId}</label></container>
+ <container style="screenlet-body">
+ <include-form name="ListTimeEntries" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/EditTimeEntry.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ProjectSummary">
+ <section>
+ <actions>
+ <entity-one entity-name="WorkEffort" value-name="project"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <not><if-empty field-name="project"/></not>
+ </condition>
+ <widgets>
+ <container style="lefthalf">
+ <include-screen name="ProjectInfo"/>
+ <include-screen name="PhasesInfo"/>
+ <include-screen name="PartiesInfo"/>
+ <!--include-screen name="ProjectTeamInfo"/-->
+
+ </container>
+ <container style="righthalf">
+ <include-screen name="SubProjectsInfo"/>
+ <include-screen name="TasksInfo"/>
+ </container>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ProjectInfo">
+ <section>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/summary/projectinfo.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="SubProjectsInfo">
+ <section>
+ <actions>
+ <set field="parameters.workEffortIdFrom" from-field="parameters.workEffortId"/>
+ <set field="parameters.workEffortTypeId" value="PROJECT"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
+ </actions>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <label style="boxhead">${uiLabelMap.ProjectMgrSubProjectList}</label>
+ </container>
+ <container style="screenlet-body">
+ <include-form name="ListProjects" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="TasksInfo">
+ <section>
+ <actions>
+ <set field="parameters.workEffortIdFrom" from-field="parameters.workEffortId"/>
+ <set field="parameters.workEffortTypeId" value="TASK"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
+ </actions>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <label style="boxhead" text="">${uiLabelMap.ProjectMgrTaskList}</label>
+ </container>
+ <container style="screenlet-body">
+ <include-form name="ListTaskLists" location="component://projectmgr/widget/forms/TaskForms.xml"/>
+ </container>
+ </container>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="PhasesInfo">
+ <section>
+ <actions>
+ <set field="parameters.workEffortIdFrom" from-field="parameters.workEffortId"/>
+ <set field="parameters.workEffortTypeId" value="PHASE"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
+ </actions>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <label style="boxhead" text="">${uiLabelMap.ProjectMgrPhaseList}</label>
+ </container>
+ <container style="screenlet-body">
+ <include-form name="ListPhaseInfo" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="PartiesInfo">
+ <section>
+ <actions>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/AssociatedParties.bsh"/>
+ </actions>
+ <widgets>
+ <container style="screenlet">
+ <container style="screenlet-title-bar">
+ <label style="boxhead" text="">${uiLabelMap.ProjectMgrPhaseList}</label>
+ </container>
+ <container style="screenlet-body">
+ <include-form name="ListAssociatedParties" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
+ </container>
+ </container>
+ </widgets>
+ </section>
+ </screen>
+</screens>
Added: ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml Sun Sep 9 12:02:11 2007
@@ -0,0 +1,213 @@
+<?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="FindTaskList">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleUnassignedTask"/>
+ <set field="headerItem" value="task"/>
+ <set field="tabButtonItem" value="subtasks"/>
+ <set field="labelTitleProperty" value="PageTitleFindTask"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-empty field-name="workEffortId"/>
+ </condition>
+ <widgets>
+ <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container>
+ <container style="button-bar"><link target="EditTask?workEffortTypeId=TASK" text="${uiLabelMap.ProjectMgrNewTask}" style="buttontext"/></container>
+ <include-form name="ListTaskLists" location="component://projectmgr/widget/forms/TaskForms.xml"/>
+ </widgets>
+ <fail-widgets>
+ <container><label style="head1">${uiLabelMap.PageTitleEditSubTask}</label></container>
+ <include-form name="ListChildEfforts" location="component://projectmgr/widget/forms/TaskForms.xml"/>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittasklistandassoc.ftl"/></html>
+ </platform-specific>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="FindTaskByRange">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleFindTask"/>
+ <set field="headerItem" value="task"/>
+ <set field="labelTitleProperty" value="ProjectMgrTaskName"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/FindTaskList"/>
+ <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
+ <set field="parameters.workEffortTypeId" value="TASK"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListProjectsByDateRange.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/listtasksbydaterange.ftl"/></html>
+ </platform-specific>
+ <container style="button-bar"><link target="EditTask?workEffortTypeId=Task" text="${uiLabelMap.ProjectMgrNewTask}" style="buttontext"/></container>
+ <include-form name="ListTaskLists" location="component://projectmgr/widget/forms/TaskForms.xml"/>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditTask">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditTaskList"/>
+ <set field="headerItem" value="task"/>
+ <set field="tabButtonItem" value="edittask"/>
+ <set field="labelTitleProperty" value="PageTitleEditTaskList"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/FindTaskList"/>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <set field="workEffortAssocTypeId" from-field="parameters.workEffortAssocTypeId"/>
+ <entity-one entity-name="WorkEffort" value-name="task"/>
+ </actions>
+ <widgets>
+
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <!-- To add a new Project -->
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittask.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditTaskListAndAssoc">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditTask"/>
+ <set field="labelTitleProperty" value="PageTitleEditTask"/>
+ <set field="headerItem" value="task"/>
+ <set field="tabButtonItem" value="edittask"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE"/>
+ <set field="workEffortIdTo" from-field="parameters.workEffortIdTo"/>
+ <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
+ <set field="fromDate" from-field="parameters.fromDate"/>
+ <entity-one entity-name="WorkEffort" value-name="task"/>
+ <entity-one entity-name="WorkEffortAssoc" value-name="workEffortAssoc"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittasklistandassoc.ftl"/></html>
+ </platform-specific>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditTaskSkills">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditSkill"/>
+ <set field="headerItem" value="task"/>
+ <set field="tabButtonItem" value="projectskills"/>
+ <set field="labelTitleProperty" value="PageTitleEditSkill"/>
+ <set field="workEffortId" from-field="parameters.workEffortId"/>
+ <entity-one entity-name="WorkEffortSkillStandard" value-name="workEffortSkillStandard"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container>
+ <include-form name="ListTaskSkills" location="component://projectmgr/widget/forms/TaskForms.xml"/>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/edittaskskills.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ChildTaskWorkEfforts">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleListWorkEfforts"/>
+ <set field="headerItem" value="task"/>
+ <set field="tabButtonItem" value="treeDetails"/>
+ <set field="labelTitleProperty" value="PageTitleListWorkEfforts"/>
+ <set field="trail" from-field="parameters.trail" default-value="${parameters.workEffortId}"/>
+ <set field="workEffortId" from-field="parameters.trail"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <container><label style="head1">${uiLabelMap.PageTitleTreeWorkEfforts}</label></container>
+ <container><link text="${uiLabelMap.WorkEffortCreate}" target="EditWorkEffort?DONE_PAGE=${donePage}" style="linktext"/></container>
+ <include-tree name="TreeTaskWorkEffort" location="component://projectmgr/widget/WorkEffortTrees.xml"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="WorkEffortTreeLine">
+ <section>
+ <actions>
+ <set field="workEffortId" from-field="workEffortIdFrom" default-value="${workEffort.workEffortId}"/>
+ <set field="headerItem" value="task"/>
+ <set field="tabButtonItem" value="treeDetails"/>
+ <entity-one entity-name="WorkEffort" value-name="workEffort"/>
+ <set field="donePage" from-field="parameters.DONE_PAGE" default-value="ChildWorkEfforts?workEffortId=${workEffort.workEffortId}"/>
+ </actions>
+ <widgets>
+ <label text=" ${workEffort.workEffortName} - ${workEffort.description}" style="tabletext"/>
+ <link target="EditWorkEffort?workEffortId=${workEffort.workEffortId}" text="${workEffort.workEffortId}" style="buttontext"/>
+ <link target="AddTaskAndAssoc?workEffortIdFrom=${workEffort.workEffortId}" text="${uiLabelMap.WorkEffortAddChild}" style="buttontext"></link>
+ <link target="AddTaskAndAssoc?workEffortIdFrom=${workEffort.workEffortId}" text="${uiLabelMap.WorkEffortAddExistingWorkEffortChild}" style="buttontext"></link>
+ <section>
+ <condition><not><if-empty field-name="workEffortAssoc"/></not></condition>
+ <widgets>
+ <link target="EditTaskListAndAssoc?workEffortIdFrom=${workEffortAssoc.workEffortIdFrom}&workEffortIdTo=${workEffortAssoc.workEffortIdTo}&workEffortAssocTypeId=${workEffortAssoc.workEffortAssocTypeId}&fromDate=${workEffortAssoc.fromDate}&DONE_PAGE=${donePage}" text="Edit Assoc" style="buttontext"></link>
+ <link target="EditTaskListAndAssoc?workEffortIdFrom=${workEffortAssoc.workEffortIdFrom}&workEffortIdTo=${workEffortAssoc.workEffortIdTo}&workEffortAssocTypeId=${workEffortAssoc.workEffortAssocTypeId}&fromDate=${workEffortAssoc.fromDate}&DONE_PAGE=${donePage}" text="Edit Assoc Detail" style="buttontext"></link>
+ </widgets>
+ </section>
+ </widgets>
+ </section>
+ </screen>
+</screens>
Added: ofbiz/trunk/specialpurpose/projectmgr/widget/TimeSheetScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/TimeSheetScreens.xml?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/TimeSheetScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/TimeSheetScreens.xml Sun Sep 9 12:02:11 2007
@@ -0,0 +1,72 @@
+<?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="FindTimeSheet">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleFindTimeSheet"/>
+ <set field="headerItem" value="timesheet"/>
+ <set field="labelTitleProperty" value="ProjectMgrFindTimeSheet"/>
+ <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListTimeSheetByDateRange.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/listTimeSheetByDateRange.ftl"/></html>
+ </platform-specific>
+ <container style="button-bar"><link target="EditTimeSheet" text="${uiLabelMap.TimesheetCreate}" style="buttontext"/></container>
+ <include-form name="ListFindTimeSheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditTimeSheet">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleFindTimesheet"/>
+ <set field="headerItem" value="timesheet"/>
+ <set field="tabButtonItem" value="edittimesheet"/>
+ <set field="labelTitleProperty" value="PageTitleAddTimesheet"/>
+ <entity-one entity-name="Timesheet" value-name="timesheet"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <widgets>
+ <platform-specific>
+ <html><html-template location="component://projectmgr/webapp/projectmgr/project/editTimeSheet.ftl"/></html>
+ </platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+</screens>
Added: ofbiz/trunk/specialpurpose/projectmgr/widget/WorkEffortTrees.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/WorkEffortTrees.xml?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/WorkEffortTrees.xml (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/WorkEffortTrees.xml Sun Sep 9 12:02:11 2007
@@ -0,0 +1,69 @@
+<?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.
+-->
+
+<trees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-tree.xsd">
+ <tree name="TreeWorkEffort" root-node-name="node-root" entity-name="WorkEffort"
+ default-render-style="simple" default-wrap-style="treeWrapper">
+ <node name="node-root" entity-name="WorkEffort" render-style="expand-collapse">
+ <entity-one entity-name="WorkEffort" value-name="workEffort"/>
+ <include-screen name="WorkEffortTreeLine" location="component://projectmgr/widget/ProjectScreens.xml"/>
+ <sub-node node-name="node-list">
+ <entity-condition entity-name="WorkEffortAssoc">
+ <condition-expr field-name="workEffortIdFrom" operator="equals" env-name="workEffortId"/>
+ </entity-condition>
+ </sub-node>
+ </node>
+ <node name="node-list" entry-name="workEffortAssoc" entity-name="WorkEffortAssoc" join-field-name="workEffortIdFrom" render-style="expand-collapse">
+ <entity-one entity-name="WorkEffort" value-name="workEffort">
+ <field-map field-name="workEffortId" env-name="workEffortAssoc.workEffortIdTo"/>
+ </entity-one>
+ <include-screen name="WorkEffortTreeLine" location="component://projectmgr/widget/ProjectScreens.xml"/>
+ <sub-node node-name="node-list">
+ <entity-condition entity-name="WorkEffortAssoc">
+ <condition-expr field-name="workEffortIdFrom" operator="equals" env-name="workEffortAssoc.workEffortIdTo"/>
+ </entity-condition>
+ </sub-node>
+ </node>
+ </tree>
+ <tree name="TreeTaskWorkEffort" root-node-name="node-root" entity-name="WorkEffort"
+ default-render-style="simple" default-wrap-style="treeWrapper">
+ <node name="node-root" entity-name="WorkEffort" render-style="expand-collapse">
+ <entity-one entity-name="WorkEffort" value-name="workEffort"/>
+ <include-screen name="WorkEffortTreeLine" location="component://projectmgr/widget/TaskScreens.xml"/>
+ <sub-node node-name="node-list">
+ <entity-condition entity-name="WorkEffortAssoc">
+ <condition-expr field-name="workEffortIdFrom" operator="equals" env-name="workEffortId"/>
+ </entity-condition>
+ </sub-node>
+ </node>
+ <node name="node-list" entry-name="workEffortAssoc" entity-name="WorkEffortAssoc" join-field-name="workEffortIdFrom" render-style="expand-collapse">
+ <entity-one entity-name="WorkEffort" value-name="workEffort">
+ <field-map field-name="workEffortId" env-name="workEffortAssoc.workEffortIdTo"/>
+ </entity-one>
+ <include-screen name="WorkEffortTreeLine" location="component://projectmgr/widget/TaskScreens.xml"/>
+ <sub-node node-name="node-list">
+ <entity-condition entity-name="WorkEffortAssoc">
+ <condition-expr field-name="workEffortIdFrom" operator="equals" env-name="workEffortAssoc.workEffortIdTo"/>
+ </entity-condition>
+ </sub-node>
+ </node>
+ </tree>
+</trees>