git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@600050 13f79535-47bb-0310-9956-ffa450edef68
268 lines
19 KiB
XML
268 lines
19 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.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
|
|
<form name="EditTask" type="single" target="updateTask" default-map-name="task">
|
|
<actions>
|
|
<entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
|
|
<field-map field-name="statusId" env-name="task.statusId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<alt-target use-when="headerItem=="projects"" target="createProjectTaskOrPhase"/>
|
|
<alt-target use-when="task==null&&projectId==null" target="createTask"/>
|
|
<field name="projectId"><hidden value="${parameters.projectId}"/></field>
|
|
<field name="DONE_PAGE"><hidden value="${donePage}"/></field>
|
|
<field name="workEffortTypeId"><hidden value="TASK"/></field>
|
|
<field use-when="task!=null" name="workEffortId" title="${uiLabelMap.ProjectMgrWorkEffortId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
|
<field use-when="task==null" entry-name="dummy" name="workEffortName" title="${uiLabelMap.ProjectMgrTaskName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
|
|
<field use-when="task!=null&&workEffortId!=null" name="workEffortName" title="${uiLabelMap.ProjectMgrTaskName}*"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field use-when="task!=null" name="statusId" parameter-name="currentStatusId" title="${uiLabelMap.CommonStatus}">
|
|
<drop-down allow-empty="false" current-description="${currentStatus.description}">
|
|
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
|
|
<entity-constraint name="statusId" env-name="task.currentStatusId"/>
|
|
<entity-order-by field-name="sequenceId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field use-when="task==null" name="currentStatusId" title="${uiLabelMap.CommonStatus}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="StatusItem" description="${description}" key-field-name="statusId">
|
|
<entity-constraint name="statusTypeId" value="TASK_STATUS"/>
|
|
<entity-order-by field-name="sequenceId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="priority" title="${uiLabelMap.CommonPriority}">
|
|
<drop-down allow-empty="true" current="selected">
|
|
<option key="1" description="1 (${uiLabelMap.WorkEffortPriorityHigh})"/>
|
|
<option key="2" description="2"/>
|
|
<option key="3" description="3"/>
|
|
<option key="4" description="4"/>
|
|
<option key="5" description="5"/>
|
|
<option key="6" description="6"/>
|
|
<option key="7" description="7"/>
|
|
<option key="8" description="8"/>
|
|
<option key="9" description="9 (${uiLabelMap.WorkEffortPriorityLow})"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="scopeEnumId" title="${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
|
|
<entity-constraint name="enumTypeId" value="WORK_EFF_SCOPE"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field use-when="projectId==null" name="workEffortParentId" title="${uiLabelMap.ProjectMgrTaskPhase}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="WorkEffort" key-field-name="workEffortId" description="${workEffortName}[${workEffortId}](project:${workEffortParentId})">
|
|
<entity-constraint name="workEffortTypeId" value="PHASE"/>
|
|
<entity-order-by field-name="workEffortParentId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field use-when="projectId!=null" name="workEffortParentId" title="${uiLabelMap.ProjectMgrTaskPhase}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="WorkEffort" key-field-name="workEffortId" description="${workEffortName}[${workEffortId}]">
|
|
<entity-constraint name="workEffortTypeId" value="PHASE"/>
|
|
<entity-constraint name="workEffortParentId" value="${projectId}"/>
|
|
<entity-order-by field-name="workEffortParentId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="estimatedStartDate" title="${uiLabelMap.FormFieldTitle_estimatedStartDate}"><date-time/></field>
|
|
<field name="estimatedCompletionDate" title="${uiLabelMap.FormFieldTitle_estimatedCompletionDate}"><date-time/></field>
|
|
<field name="actualStartDate" title="${uiLabelMap.FormFieldTitle_actualStartDate}"><date-time/></field>
|
|
<field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><date-time/></field>
|
|
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
|
</form>
|
|
<form name="AddPhase" type="single" target="createProjectTaskOrPhase">
|
|
<field name="projectId"><hidden value="${parameters.projectId}"/></field>
|
|
<field name="workEffortParentId"><hidden value="${parameters.projectId}"/></field>
|
|
<field name="workEffortTypeId"><hidden value="PHASE"/></field>
|
|
<field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
|
|
<field name="phaseName" parameter-name="workEffortName" title="${uiLabelMap.ProjectMgrPhaseName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="priority" title="${uiLabelMap.CommonPriority}">
|
|
<drop-down allow-empty="true" current="selected">
|
|
<option key="1" description="1 (${uiLabelMap.WorkEffortPriorityHigh})"/>
|
|
<option key="2" description="2"/>
|
|
<option key="3" description="3"/>
|
|
<option key="4" description="4"/>
|
|
<option key="5" description="5"/>
|
|
<option key="6" description="6"/>
|
|
<option key="7" description="7"/>
|
|
<option key="8" description="8"/>
|
|
<option key="9" description="9 (${uiLabelMap.WorkEffortPriorityLow})"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="scopeEnumId" title="${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
|
|
<entity-constraint name="enumTypeId" value="WORK_EFF_SCOPE"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
|
</form>
|
|
<form name="AddProjectPhase" type="single" target="createProjectPhase">
|
|
<field name="projectId"><hidden value="${parameters.projectId}"/></field>
|
|
<field name="workEffortParentId"><hidden value="${parameters.projectId}"/></field>
|
|
<field name="workEffortTypeId"><hidden value="PHASE"/></field>
|
|
<field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
|
|
<field name="phaseName" parameter-name="workEffortName" title="${uiLabelMap.ProjectMgrPhaseName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="priority" title="${uiLabelMap.CommonPriority}">
|
|
<drop-down allow-empty="true" current="selected">
|
|
<option key="1" description="1 (${uiLabelMap.WorkEffortPriorityHigh})"/>
|
|
<option key="2" description="2"/>
|
|
<option key="3" description="3"/>
|
|
<option key="4" description="4"/>
|
|
<option key="5" description="5"/>
|
|
<option key="6" description="6"/>
|
|
<option key="7" description="7"/>
|
|
<option key="8" description="8"/>
|
|
<option key="9" description="9 (${uiLabelMap.WorkEffortPriorityLow})"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="scopeEnumId" title="${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
|
|
<entity-constraint name="enumTypeId" value="WORK_EFF_SCOPE"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
|
</form>
|
|
|
|
<form name="FindTask" type="single" target="MyTasks">
|
|
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><date-time type="date"/></field>
|
|
<field name="taskName" parameter-name="workEffortName" title="${uiLabelMap.ProjectMgrTaskName}"><text/></field>
|
|
<field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
|
|
</form>
|
|
<form name="ListTasks" type="list" list-name="tasks" paginate-target="Dependencies">
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrTaskName}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${workEffortName} [${workEffortId}]" target="taskView?workEffortId=${workEffortId}"/>
|
|
</field>
|
|
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}"><hyperlink target="projectView?projectId=${projectId}" description="${projectName}[${projectId}]"/></field>
|
|
<field name="currentStatusId"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
|
|
<field name="priority"><display/></field>
|
|
<field use-when="actualStartDate!=null" name="startDate" entry-name="actualStartDate" title="${uiLabelMap.WorkEffortStartDate}" parameter-name="actualStartDate"><display type="date"/></field>
|
|
<field use-when="actualStartDate==null" name="startDate" entry-name="estimatedStartDate" title="${uiLabelMap.WorkEffortStartDate}" parameter-name="estimatedStartDate" red-when="before-now"><display type="date"/></field>
|
|
<field use-when="actualCompletionDate!=null" name="completionDate" entry-name="actualCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}" parameter-name="actualCompletionDate"><display type="date"/></field>
|
|
<field use-when="actualCompletionDate==null" name="completionDate" entry-name="estimatedCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}" parameter-name="estimatedCompletionDate" red-when="before-now"><display type="date"/></field>
|
|
<field name="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></field>
|
|
<field name="createdDate"><display type="date"/></field>
|
|
</form>
|
|
<form name="Dependencies" target="removeDependency" title="" list-name="depList" type="list" separate-columns="true" paginate-target="Dependencies">
|
|
<field name="workEffortIdTo"><hidden/></field>
|
|
<field name="projectId"><hidden/></field>
|
|
<field name="workEffortAssocTypeId"><hidden value="WORK_EFF_DEPENDENCY"/></field>
|
|
<field name="fromDate"><hidden/></field>
|
|
<field name="workEffortId"><hidden value="${parameters.workEffortId}"/></field>
|
|
<field name="workEffortToName" title="${uiLabelMap.CommonName}"><display/></field>
|
|
<field name="workEffortToParentId" title="${uiLabelMap.ProjectMgrTaskPhase}"><display-entity entity-name="WorkEffort" key-field-name="workEffortId" description="${workEffortName}"/>/></field>
|
|
<field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><display type="date"/>/></field>
|
|
<field name="estimatedCompletionDate" entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}"><display type="date"/></field>
|
|
<field name="actualStartDate" entry-name="workEffortToActualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><display type="date"/>/></field>
|
|
<field name="actualCompletionDate" entry-name="workEffortToActualCompletionDate" title="${uiLabelMap.WorkEffortActualCompletionDate}"><display type="date"/></field>
|
|
<field name="deleteButton"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="AddDependencyBefore" type="single" target="addDependency">
|
|
<field name="workEffortId"><hidden/></field>
|
|
<field name="workEffortIdTo"><hidden value="${parameters.workEffortId}"/></field>
|
|
<field name="workEffortAssocTypeId"><hidden value="WORK_EFF_DEPENDENCY"/></field>
|
|
<field name="relatedTasks" parameter-name="workEffortIdFrom">
|
|
<drop-down>
|
|
<entity-options entity-name="ProjectAndPhaseAndTask" key-field-name="workEffortId" description="${phaseName} -- ${workEffortName}">
|
|
<entity-constraint name="projectId" value="${projectId}"/>
|
|
<entity-constraint name="workEffortId" operator="not-equals" env-name="workEffortId"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="add"><submit/></field>
|
|
</form>
|
|
<form name="AddDependencyAfter" type="single" target="addDependency">
|
|
<field name="workEffortId"><hidden/></field>
|
|
<field name="projectId"><hidden value="${parameters.workEffortId}"/></field>
|
|
<field name="workEffortAssocTypeId"><hidden value="WORK_EFF_DEPENDENCY"/></field>
|
|
<field name="relatedTasks" parameter-name="workEffortIdTo">
|
|
<drop-down>
|
|
<entity-options entity-name="ProjectAndPhaseAndTask" key-field-name="workEffortId" description="${phaseName} -- ${workEffortName}">
|
|
<entity-constraint name="projectId" value="${projectId}"/>
|
|
<entity-constraint name="workEffortId" operator="not-equals" env-name="workEffortId"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="add"><submit/></field>
|
|
</form>
|
|
<form name="ListTaskSkills" type="list" target="updateTaskSkillStandard" list-name="workEffortSkillStandards" paginate-target="EditTaskSkills">
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrWorkEffortId}">
|
|
<display-entity entity-name="WorkEffort" description="${workEffortName} ${workEffortId}">
|
|
<sub-hyperlink target="EditTask?workEffortId=${workEffortId}" description="${workEffortId}" link-style="buttontext"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="skillTypeId" title="${uiLabelMap.ProjectMgrSkillType}"><display-entity entity-name="SkillType" description="${description}"/></field>
|
|
<field name="estimatedNumPeople" title="${uiLabelMap.ProjectMgrEstimatedNumPeople}"><text/></field>
|
|
<field name="estimatedDuration" title="${uiLabelMap.ProjectMgrEstimatedDuration}"><text/></field>
|
|
<field name="estimatedCost" title="${uiLabelMap.ProjectMgrEstimatedCost}" widget-style="linktext"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="ListTaskNotes" extends="ListWorkEffortNotes" extends-resource="component://workeffort/widget/WorkEffortForms.xml" type="list" list-name="taskNotes" paginate-target="EditTaskNotes">
|
|
<actions>
|
|
<entity-condition entity-name="WorkEffortNoteAndData">
|
|
<condition-expr field-name="workEffortId" env-name="workEffortId"/>
|
|
<order-by field-name="noteId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<field name="noteId" widget-style="tabletext"><hidden/></field>
|
|
<field name="workEffortId"><hidden/></field>
|
|
<field name="noteParty" title="${uiLabelMap.CommonBy}" widget-style="tabletext"><display description="${bsh:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, noteParty, true)} at ${bsh: org.ofbiz.base.util.UtilDateTime.timeStampToString(noteDateTime, "dd-MM-yyyy HH:mm", TimeZone.getDefault(), context.get("locale"))}"/></field>
|
|
|
|
<field name="Private/Public" widget-style="buttontext" use-when="internalNote.equals("N")">
|
|
<hyperlink target="updateTaskNote?workEffortId=${workEffortId}&noteId=${noteId}&internalNote=Y" description="${uiLabelMap.OrderNotesPrivate}"></hyperlink>
|
|
</field>
|
|
<field name="Private/Public" widget-style="buttontext" use-when="internalNote.equals("Y")">
|
|
<hyperlink target="updateTaskNote?workEffortId=${workEffortId}&noteId=${noteId}&internalNote=N" description="${uiLabelMap.OrderNotesPublic}"></hyperlink>
|
|
</field>
|
|
</form>
|
|
<form name="AddTaskNote" extends="AddWorkEffortNote" extends-resource="component://workeffort/widget/WorkEffortForms.xml" type="single" target="createTaskNote" title=""></form>
|
|
<form name="TaskInfo" type="single" default-map-name="task">
|
|
<field name="taskName" title="${uiLabelMap.ProjectMgrTaskName}"><display/></field>
|
|
<field name="taskDescription" title="${uiLabelMap.CommonDescription}"><display/></field>
|
|
<field name="statusDescription" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" key-field-name="statusId"></display-entity>/></field>
|
|
<field name="priority" title="${uiLabelMap.CommonPriority}"><display type="date"/></field>
|
|
<field name="estimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><display type="date"/></field>
|
|
<field name="estimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}"><display type="date"/></field>
|
|
<field name="actualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><display type="date"/></field>
|
|
<field name="actualCompletionDate" title="${uiLabelMap.WorkEffortActualCompletionDate}"><display type="date"/></field>
|
|
<field name="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></field>
|
|
<field name="createdDate"><display type="date"/></field>
|
|
</form>
|
|
</forms>
|