Files
ofbiz-framework/specialpurpose/projectmgr/widget/TaskScreens.xml
T
2007-12-17 04:35:23 +00:00

409 lines
25 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="Dependencies">
<section>
<actions>
<set field="titleProperty" value="PageTitleDependencies"/>
<set field="tabButtonItem" value="dependencies"/>
<set field="workEffortId" from-field="parameters.workEffortId"/>
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/getProjectId.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<actions>
<entity-and entity-name="WorkEffortAssocView" list-name="depList" filter-by-date="true">
<field-map field-name="workEffortIdTo" env-name="parameters.workEffortId"/>
<field-map field-name="workEffortAssocTypeId" value="WORK_EFF_DEPENDENCY"/>
</entity-and>
</actions>
<widgets>
<container style="lefthalf">
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleTasksBefore}</label></container>
<container style="screenlet-body">
<include-form name="Dependencies" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddDependencyBefore}</label></container>
<container style="screenlet-body">
<include-form name="AddDependencyBefore" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</container>
</widgets>
</section>
<section>
<actions>
<entity-and entity-name="WorkEffortAssocView" list-name="depList" filter-by-date="true">
<field-map field-name="workEffortIdFrom" env-name="parameters.workEffortId"/>
<field-map field-name="workEffortAssocTypeId" value="WORK_EFF_DEPENDENCY"/>
</entity-and>
</actions>
<widgets>
<container style="righthalf">
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleTasksAfter}</label></container>
<container style="screenlet-body">
<include-form name="Dependencies" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddDependencyAfter}</label></container>
<container style="screenlet-body">
<include-form name="AddDependencyAfter" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="MyTasks">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindTask"/>
<set field="headerItem" value="mytasks"/>
<set field="labelTitleProperty" value="ProjectMgrTaskName"/>
<set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/Dependencies"/>
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/MyTasks.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleFindTask}</label></container>
<container style="screenlet-body">
<include-form name="FindTask" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
<container style="button-bar"><link target="EditTask?workEffortTypeId=Task" text="${uiLabelMap.ProjectMgrNewTask}" style="buttontext"/></container>
<include-form name="ListTasks" 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="tabButtonItem" value="edittask"/>
<set field="labelTitleProperty" value="PageTitleEditTaskList"/>
<set field="workEffortId" from-field="parameters.workEffortId"/>
<entity-one entity-name="WorkEffort" value-name="task"/>
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/getProjectId.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- To add a new Project -->
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleEditTask} #${task.workEffortId} ${uiLabelMap.CommonInformation}</label></container>
<container style="screenlet-body">
<include-form name="EditTask" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</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="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="tabButtonItem" value="projectskills"/>
<set field="labelTitleProperty" value="PageTitleEditSkill"/>
<set field="workEffortId" from-field="parameters.workEffortId"/>
<entity-and entity-name="WorkEffortSkillStandard" list-name="workEffortSkillStandards">
<field-map field-name="workEffortId" env-name="workEffortId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" 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="ListTaskSkills" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
<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}&amp;workEffortIdTo=${workEffortAssoc.workEffortIdTo}&amp;workEffortAssocTypeId=${workEffortAssoc.workEffortAssocTypeId}&amp;fromDate=${workEffortAssoc.fromDate}&amp;DONE_PAGE=${donePage}" text="Edit Assoc" style="buttontext"></link>
<link target="EditTaskListAndAssoc?workEffortIdFrom=${workEffortAssoc.workEffortIdFrom}&amp;workEffortIdTo=${workEffortAssoc.workEffortIdTo}&amp;workEffortAssocTypeId=${workEffortAssoc.workEffortAssocTypeId}&amp;fromDate=${workEffortAssoc.fromDate}&amp;DONE_PAGE=${donePage}" text="Edit Assoc Detail" style="buttontext"></link>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="EditTaskPartyAssigns">
<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"/>
<set field="nowDate" value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString(&quot;yyyy-MM-dd HH:mm:ss.S&quot;)}" type="String"/>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleListPartyAssigns}</label></container>
<container style="screenlet-body">
<include-form name="EditWorkEffortPartyAssigns" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddPartyAssign}</label></container>
<container style="screenlet-body">
<include-form name="AddWorkEffortPartyAssign" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditTaskNotes">
<section>
<actions>
<set field="titleProperty" value="PageTitleListTaskNotes"/>
<set field="headerItem" value="task"/>
<set field="tabButtonItem" value="notes"/>
<set field="labelTitleProperty" value="PageTitleListTaskNotes"/>
<set field="workEffortId" from-field="parameters.workEffortId"/>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.${titleProperty}}</label></container>
<container style="screenlet-body">
<include-form name="ListTaskNotes" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddTaskNotes}</label></container>
<container style="screenlet-body">
<include-form name="AddTaskNote" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TaskView">
<section>
<actions>
<set field="tabButtonItem" value="taskView"/>
<set field="workEffortId" from-field="parameters.workEffortId"/>
<set field="projectId" from-field="parameters.workEffortId"/>
<service service-name="getProjectTask" result-map-name="result">
<field-map field-name="taskId" env-name="workEffortId"/>
</service>
<set field="task" from-field="result.taskInfo"/>
</actions>
<widgets>
<decorator-screen name="CommonTaskDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field-name="task"/></not>
</condition>
<widgets>
<container style="lefthalf">
<container style="screenlet">
<container style="screenlet-title-bar"><label style="boxhead" text="${uiLabelMap.PageTitleTaskInformation}"/></container>
<container style="screenlet-body">
<include-form name="TaskInfo" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</container>
<container style="righthalf">
<include-screen name="TaskTeamInfo"/>
<include-screen name="NoteInfo"/>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TaskInfo">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://projectmgr/webapp/projectmgr/project/summary/projectinfo.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="SubTasksInfo">
<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">${uiLabelMap.ProjectMgrSubTasks}</label>
</container>
<container style="screenlet-body">
<include-form name="ListTasks" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</widgets>
</section>
</screen>
<screen name="NoteInfo">
<section>
<actions>
<set field="workEffortId" from-field="parameters.workEffortId"/>
<entity-and entity-name="WorkEffortNoteAndData" list-name="workEffortNoteandDetails">
<field-map field-name="workEffortId" env-name="workEffortId"/>
<order-by field-name="-noteDateTime"/>
</entity-and>
</actions>
<widgets>
<platform-specific>
<html><html-template location="component://projectmgr/webapp/projectmgr/project/summary/noteinfo.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="TaskTeamInfo">
<section>
<actions>
<service service-name="getTasksByParties" result-map-name="result">
<field-map field-name="workEffortId" env-name="workEffortId"/>
</service>
<set field="taskParties" from-field="result.taskParties"/>
</actions>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<label style="boxhead" text="">${uiLabelMap.TaskTeam}</label>
</container>
<container style="screenlet-body">
<include-form name="ListTaskParties" location="component://projectmgr/widget/forms/TaskForms.xml"/>
</container>
</container>
</widgets>
</section>
</screen>
</screens>