Files
ofbiz-plugins/projectmgr/widget/forms/ProjectForms.xml
T

557 lines
43 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="EditProject" type="single" target="updateProject" default-map-name="project"
header-row-style="header-row" default-table-style="basic-table">
<alt-target use-when="project==null" target="createProject"/>
<field use-when="project==null" name="templateId">
<drop-down allow-empty="true">
<entity-options entity-name="WorkEffort" description="${workEffortName}" key-field-name="workEffortId">
<entity-constraint name="workEffortTypeId" value="PROJECT_TEMPLATE"/>
</entity-options>
</drop-down>
</field>
<field name="workEffortTypeId"><hidden value="PROJECT"/></field>
<field name="projectId"><hidden/></field>
<field name="workEffortId"><hidden value="${projectId}"/></field>
<field name="projectName" parameter-name="workEffortName" title="${uiLabelMap.ProjectMgrProjectName}*"><text/></field>
<field name="projectDescription" parameter-name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
<field use-when="project!=null" name="currentStatusId" title="${uiLabelMap.CommonStatus}" parameter-name="dummy"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
<field use-when="project==null" name="currentStatusId"><hidden value="_NA_"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}"><display/></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="parentProjectName" parameter-name="workEffortParentId">
<drop-down allow-empty="true">
<entity-options entity-name="WorkEffort" description="${workEffortName}" key-field-name="workEffortId">
<entity-constraint name="workEffortTypeId" value="PROJECT"/>
<entity-constraint name="workEffortId" operator="not-equals" env-name="projectId"/>
</entity-options>
</drop-down>
</field>
<field use-when="project!=null" name="estimatedStartDate" title="${uiLabelMap.FormFieldTitle_estimatedStartDate}"><display description="${bsh:project.get(&quot;estimatedStartDate&quot;)!=null?project.get(&quot;estimatedStartDate&quot;).toString().substring(0,10):&quot;&quot;;}"/></field>
<field use-when="project!=null" name="estimatedCompletionDate" title="${uiLabelMap.FormFieldTitle_estimatedCompletionDate}"><display description="${bsh:project.get(&quot;estimatedCompletionDate&quot;)!=null?project.get(&quot;estimatedCompletionDate&quot;).toString().substring(0,10):&quot;&quot;;}"/></field>
<field use-when="project!=null" name="actualStartDate" title="${uiLabelMap.FormFieldTitle_actualStartDate}"><display description="${bsh:project.get(&quot;actualStartDate&quot;)!=null?project.get(&quot;actualStartDate&quot;).toString().substring(0,10):&quot;&quot;;}"/></field>
<field use-when="project!=null" name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><display description="${bsh:project.get(&quot;actualCompletionDate&quot;)!=null?project.get(&quot;actualCompletionDate&quot;).toString().substring(0,10):&quot;&quot;;}"/></field>
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
</form>
<form name="AddSubProject" type="single" target="AddSubProject"
header-row-style="header-row" default-table-style="basic-table">
<field name="workEffortParentId"><hidden value="${projectId}"/></field>
<field name="projectId"><hidden/></field>
<field name="workEffortId" title="${uiLabelMap.ProjectMgrProjectName}">
<drop-down>
<entity-options entity-name="WorkEffort" description="${workEffortName}">
<entity-constraint name="workEffortTypeId" value="PROJECT"/>
<entity-constraint name="workEffortId" operator="not-equals" env-name="projectId"/>
</entity-options>
</drop-down>
</field>
<field name="add"><submit/></field>
</form>
<form name="FindResource" type="single" target="FindResource"
header-row-style="header-row" default-table-style="basic-table">
<field name="resourceName" parameter-name="partyId" title="${uiLabelMap.ProjectMgrResourceName}"><text/></field>
<field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
</form>
<form name="ListResources" type="list" list-name="resources" paginate-target="FindResource"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<row-actions>
<service service-name="getPartyEmail" result-map-name="emailResult"/>
<service service-name="getPartyTelephone" result-map-name="telResult"/>
</row-actions>
<field name="resourceName" parameter-name="partyId" title="${uiLabelMap.ProjectMgrResourceName}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${firstName} ${middleName} ${lastName} ${groupName}" target="viewprofile?partyId=${partyId}"/>
</field>
<field name="roleTypeId"><hidden/></field>
<field name="emailAddess" title="${uiLabelMap.PartyEmailAddress}"><hyperlink target="/partymgr/control/EditCommunicationEvent?partyIdFrom=${userLogin.partyId}&amp;partyIdTo=${partyId}&amp;communicationEventTypeId=EMAIL_COMMUNICATION&amp;contactMechIdTo=${contactMechId}&amp;contactMechTypeId=EMAIL_ADDRESS" description="${emailResult.emailAddress}" target-type="inter-app"/></field>
<field use-when="telResult.get(&quot;extension&quot;)!=null" name="telephone" title="${uiLabelMap.PartyPhoneNumber}"><display description="${telResult.countryCode} ${telResult.areaCode} ${telResult.contactNumber} Ext:${telResult.extension}"/></field>
<field use-when="telResult.get(&quot;extension&quot;)==null" name="telephone" title="${uiLabelMap.PartyPhoneNumber}"><display description="${telResult.countryCode} ${telResult.areaCode} ${telResult.contactNumber}"/></field>
<field name="contactMechPurposeTypeId" entry-name="telResult.contactMechPurposeTypeId" title="${uiLabelMap.CommonPurpose}"><display-entity entity-name="ContactMechPurposeType"/></field>
<field name="remove" title="${uiLabelMap.CommonRemove}"><hyperlink target="removeResource?partyId=${partyId}&amp;roleTypeId=${roleTypeId}" description="${uiLabelMap.CommonRemove}"/></field>
</form>
<form name="AddResource" type="single" target="addResource"
header-row-style="header-row" default-table-style="basic-table">
<field name="PartyId" parameter-name="partyId" title="${uiLabelMap.PartyPartyId}"><lookup target-form-name="LookupPartyName"/></field>
<field name="roleTypeId"><hidden value="PROJECT_TEAM"/></field>
<field name="addButton" ><submit/></field>
</form>
<form name="FindProject" type="single" target="FindProject" title="Find and List Project"
header-row-style="header-row" default-table-style="basic-table">
<field name="projectId" title="${uiLabelMap.ProjectMgrProjectId}" parameter-name="workEffortId"><text-find size="25" default-option="contains"></text-find></field>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}" parameter-name="workEffortName"><text-find size="25" default-option="contains"></text-find></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}" parameter-name="createdStamp"><date-find/></field>
<field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
</form>
<form name="hoursNotYetBilled" type="list" list-name="entryList"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/hoursNotYetBilled.bsh"/>
</actions>
<field name="workEffortName"><display/></field>
<field name="phaseName"><display/></field>
<field name="hours"><display/></field>
<field name="partyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName}"/></field>
<field name="fromDate"><display type="date"/></field>
</form>
<form name="ListProjects" type="list" list-name="listIt" paginate-target="FindProject"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<set field="parameters.workEffortTypeId" value="PROJECT"/>
<service service-name="performFind" result-map-name="result" result-map-list-name="listIt">
<field-map field-name="inputFields" env-name="parameters"/>
<field-map field-name="entityName" value="WorkEffort"/>
<field-map field-name="orderBy" value="lastStatusUpdate DESC"/>
</service>
</actions>
<row-actions>
<service service-name="getProject" result-map-name="result">
<field-map field-name="projectId" value="${workEffortId}"/>
</service>
<set field="projectName" from-field="result.projectInfo.projectName"/>
<set field="projectId" from-field="result.projectInfo.projectId"/>
<set field="currentStatusId" from-field="result.projectInfo.currentStatusId"/>
<set field="priority" from-field="result.projectInfo.priority"/>
<set field="plannedHours" from-field="result.projectInfo.plannedHours"/>
<set field="actualHours" from-field="result.projectInfo.actualHours"/>
<set field="createdStamp" from-field="result.projectInfo.createdStamp"/>
<set field="estimatedStartDate" from-field="result.projectInfo.estimatedStartDate"/>
<set field="estimatedCompletionDate" from-field="result.projectInfo.estimatedCompletionDate"/>
<set field="actualStartDate" from-field="result.projectInfo.actualStartDate"/>
<set field="actualCompletionDate" from-field="result.projectInfo.actualCompletionDate"/>
</row-actions>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}" widget-style="buttontext">
<hyperlink description="${projectName}" target="projectView?projectId=${projectId}"/>
</field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}"><display/></field>
<field name="estimatedStartDate" title="${uiLabelMap.FormFieldTitle_estimatedStartDate}"><display type="date"/></field>
<field name="estimatedCompletionDate" title="${uiLabelMap.FormFieldTitle_estimatedCompletionDate}"><display type="date"/></field>
<field name="actualStartDate" title="${uiLabelMap.FormFieldTitle_actualStartDate}"><display type="date"/></field>
<field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><display type="date"/></field>
<field name="plannedHours" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
<field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
<field name="createdStamp" title="${uiLabelMap.FormFieldTitle_createdDate}"><display type="date"/></field>
</form>
<form name="EditSubProjects" list-name="projects" type="list" target="RemoveSubProject"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-and entity-name="WorkEffort">
<field-map field-name="workEffortParentId" env-name="projectId"/>
<field-map field-name="workEffortTypeId" value="PROJECT"/>
</entity-and>
</actions>
<field name="projectId"><hidden/></field>
<field name="workEffortParentId"><hidden value=""/></field>
<field name="workEffortId"><hidden value="${projectId}"/></field>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${workEffortName}" target="projectView?projectId=${workEffortId}"/>
</field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}" parameter-name="dummy"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}"><display/></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="createdStamp"><display type="date"/></field>
<!--field name="removeButton"><submit/></field--><!-- TODO: difficult to clear the workEffortParentId field in the record have to find solution-->
</form>
<form name="ProjectInfo" type="single" default-map-name="project" paginate-target="FindProject"
header-row-style="header-row" default-table-style="basic-table">
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}"><display/></field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}">
<display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}"><display/></field>
<field name="parentProjectId" title="${uiLabelMap.ProjectMgrParentProjectName}">
<display-entity entity-name="WorkEffort" description="${workEffortName} ${workEffortId}" key-field-name="workEffortId">
<sub-hyperlink target="projectView?projectId=${workEffortId}" description="${workEffortId}" link-style="buttontext"/>
</display-entity>
</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>
<form name="ListChildEfforts" target="updateProjectAndAssoc" title="" list-name="projects" type="list" separate-columns="true" paginate-target="FindProject"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="StatusItem" value-name="currentStatus">
<field-map field-name="statusId" env-name="currentStatusId"/>
</entity-one>
</row-actions>
<field name="workEffortTypeId"><hidden/></field>
<field name="workEffortId"><hidden/></field>
<field name="projectId"><hidden/></field>
<field name="fromDate"><hidden/></field>
<field name="workEffortAssocTypeId"><hidden/></field>
<field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
<field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
<field name="currentStatusId">
<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" value="${currentStatusId}"/>
<entity-order-by field-name="sequenceId"/>
</entity-options>
</drop-down>
</field>
<field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}" position="1">
<drop-down allow-empty="true">
<option key="1" description="1 (${uiLabelMap.WorkEffortPriorityHigh})"/><option key="2"/><option key="3"/><option key="4"/><option key="5"/>
<option key="6"/><option key="7"/><option key="8"/><option key="9" description="9 (${uiLabelMap.WorkEffortPriorityLow})"/>
</drop-down>
</field>
<field name="actualStartDate" entry-name="workEffortToActualStartDate" title="${uiLabelMap.WorkEffortActualStartDate}"><date-time/></field>
<field name="actualCompletionDate" entry-name="workEffortToActualCompletionDate" title="${uiLabelMap.WorkEffortActualCompletionDate}"><date-time/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="EditProjectTasks" target="updateProjectTaskOrPhase" title="" list-name="tasks" type="list" separate-columns="true"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<service service-name="getProjectTask" result-map-name="result">
<field-map field-name="taskId" env-name="workEffortId"/>
</service>
<set field="currentStatusId" from-field="result.taskInfo.currentStatusId"/>
<set field="plannedHours" from-field="result.taskInfo.plannedHours"/>
<set field="actualHours" from-field="result.taskInfo.actualHours"/>
</row-actions>
<field name="workEffortId"><hidden value="${workEffortId}"/></field>
<field name="projectId"><hidden/></field>
<field entry-name="workEffortName" name="taskName" parameter-name="workEffortName" title="${uiLabelMap.CommonName}"><hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffortName}"/></field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"></display-entity></field>
<field name="plannedHours" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
<field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
<field 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="workEffortName"/>
</entity-options>
</drop-down>
</field>
<field name="priority" title="${uiLabelMap.CommonPriority}">
<drop-down allow-empty="true">
<option key="1" description="1 (${uiLabelMap.WorkEffortPriorityHigh})"/><option key="2"/><option key="3"/><option key="4"/><option key="5"/>
<option key="6"/><option key="7"/><option key="8"/><option key="9" description="9 (${uiLabelMap.WorkEffortPriorityLow})"/>
</drop-down>
</field>
<field name="estimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}"><date-time type="date"/></field>
<field name="estimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}"><date-time type="date"/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="ListUnassignedTasks" target="updateTaskAndAssoc" title="" list-name="tasks" type="list" separate-columns="true" paginate-target="FindTask"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<row-actions>
<entity-one entity-name="StatusItem" value-name="currentStatus">
<field-map field-name="statusId" env-name="currentStatusId"/>
</entity-one>
</row-actions>
<field name="workEffortTypeId"><hidden/></field>
<field name="workEffortId"><hidden/></field>
<field name="workEffortAssocTypeId"><hidden/></field>
<field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
<field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
<field name="projectId" title="${uiLabelMap.ProjectMgrWorkEffortIdFrom}"><lookup target-form-name="LookupWorkEffort"/></field>
<field name="fromDate"><date-time/></field>
<field name="currentStatusId">
<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" value="${currentStatusId}"/>
<entity-order-by field-name="sequenceId"/>
</entity-options>
</drop-down>
</field>
<field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}" position="1">
<drop-down allow-empty="true">
<option key="1" description="1 (${uiLabelMap.WorkEffortPriorityHigh})"/><option key="2"/><option key="3"/><option key="4"/><option key="5"/>
<option key="6"/><option key="7"/><option key="8"/><option key="9" description="9 (${uiLabelMap.WorkEffortPriorityLow})"/>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="ListPhases" target="updateProjectPhase" title="" list-name="phases" type="list" separate-columns="true" paginate-target="FindPhase"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<field name="projectId"><hidden value="${parameters.projectId}"/></field>
<field name="phaseId" parameter-name="workEffortId"><hidden/></field>
<field name="phaseName" parameter-name="workEffortName" title="${uiLabelMap.CommonName}*"><text/></field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}" parameter-name="dummy"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}"><display/></field>
<field name="plannedHours" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
<field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
<field name="scopeEnumId" title="${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}"><display-entity entity-name="Enumeration" key-field-name="enumId"/></field>
<field name="estimatedStartDate" title="${uiLabelMap.FormFieldTitle_estimatedStartDate}"><display type="date"/></field>
<field name="estimatedCompletionDate" title="${uiLabelMap.FormFieldTitle_estimatedCompletionDate}"><display type="date"/></field>
<field name="actualStartDate" title="${uiLabelMap.FormFieldTitle_actualStartDate}"><display type="date"/></field>
<field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><display type="date"/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="ListPhaseInfo" type="list" list-name="phases"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="projectId"><hidden value="parameters.projectId"/></field>
<field name="phase"><hyperlink target="FindPhase?projectId=${projectId}" description="${phaseName}"/></field>
<field name="currentStatusId"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="priority"><display/></field>
<field name="startDate"><display type="date"/></field>
<field name="completionDate"><display type="date"/></field>
<field name="plannedHours"><display/></field>
<field name="actualHours"><display/></field>
</form>
<form name="ListTaskInfo" type="list" list-name="tasks"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="projectId"><hidden value="parameters.projectId"/></field>
<field name="task"><hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffortName}"/></field>
<field name="phaseName"><display/></field>
<field name="currentStatusId"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="priority"><display/></field>
<field name="startDate"><display type="date"/></field>
<field name="completionDate"><display type="date"/></field>
<field name="plannedHours"><display/></field>
<field name="actualHours"><display/></field>
</form>
<form name="ListProjectParties" type="list" list-name="parties"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="projectId"><hidden/></field>
<field name="partyName" title="${uiLabelMap.CommonName}">
<hyperlink target="viewprofile?partyId=${partyId}" description="${partyName}"/>
</field>
<field name="roleTypeId" title="${uiLabelMap.ProjectMgrPartyRoleTypeId}"><display-entity entity-name="RoleType" description="${description}"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date"/></field>
<field name="actualHours"><display/></field>
</form>
<form name="EditProjectSkills" type="list" target="updateProjectSkillStandard" list-name="workEffortSkillStandardList" paginate-target="EditProjectSkills"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="workEffortId" title="${uiLabelMap.ProjectMgrWorkEffortId}">
<display-entity entity-name="WorkEffort" description="${workEffortName} ${workEffortId}">
<sub-hyperlink target="EditProject?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>
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="linktext">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteProjectSkillStandard?workEffortId=${workEffortId}&amp;skillTypeId=${skillTypeId}"/>
</field>
</form>
<form name="EditWorkEffortPartyAssigns" target="deleteWorkEffortPartyAssign" title="" type="list" paginate-target="ListWorkEffortPartyAssigns"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="WorkEffortPartyAssignView">
<condition-expr field-name="workEffortId" operator="equals" env-name="workEffortId"/>
<order-by field-name="roleTypeId"/>
</entity-condition>
</actions>
<field name="workEffortId"><hidden/></field>
<field name="projectId"><hidden/></field>
<field name="partyId" widget-style="buttontext"><hyperlink target="viewprofile?partyId=${partyId}" description="${firstName} ${middleName} ${lastName} ${groupName}"/></field>
<field name="roleTypeId" title="${uiLabelMap.PartyRoleType}">
<display-entity entity-name="RoleType"/>
</field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date"/></field>
<field name="deleteButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="AddWorkEffortPartyAssign" target="createWorkEffortPartyAssign" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<alt-target use-when="workEffortId!=projectId" target="createTaskPartyAssign"/><!-- this used for tasks else for project -->
<field name="projectId"><hidden/></field>
<field name="statusId"><hidden value="PRTYASGN_ASSIGNED"/></field>
<field name="workEffortId"><hidden value="${workEffortId}"/></field>
<field use-when="workEffortId==projectId" entry-name="xx" name="partyId"><!-- project level -->
<drop-down>
<entity-options entity-name="PartyRoleAndPartyDetail" description="${firstName} ${middleName} ${lastName} ${groupName}">
<entity-constraint name="roleTypeId" value="PROJECT_TEAM"/>
<entity-order-by field-name="lastName"/>
<entity-order-by field-name="groupName"/>
<entity-order-by field-name="roleTypeId"/>
</entity-options>
</drop-down>
</field>
<field use-when="workEffortId!=projectId" entry-name="xx" name="partyId"><!-- task level -->
<drop-down>
<entity-options entity-name="WorkEffortPartyAssignView" filter-by-date="true" description="${firstName} ${middleName} ${lastName} ${groupName}">
<entity-constraint name="workEffortId" env-name="projectId"/>
<entity-order-by field-name="lastName"/>
<entity-order-by field-name="groupName"/>
<entity-order-by field-name="roleTypeId"/>
</entity-options>
</drop-down>
</field>
<field entry-name="xx" name="roleTypeId" title="${uiLabelMap.PartyRoleType}">
<drop-down>
<entity-options entity-name="RoleType" description="${description}">
<entity-constraint name="parentTypeId" value="PROJECT_TEAM"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field entry-name="xx" name="fromDate"><date-time type="date"/></field>
<field entry-name="xx" name="thruDate"><date-time type="date"/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListProjectNotes" extends="ListWorkEffortNotes" extends-resource="component://workeffort/widget/WorkEffortForms.xml" type="list" paginate-target="EditWorkEffortNotes"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<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"><hidden/></field>
<field name="workEffortId"><hidden/></field>
<field name="noteParty" title="${uiLabelMap.CommonBy}"><display description="${bsh:org.ofbiz.party.party.PartyHelper.getPartyName(delegator, noteParty, true)} at ${bsh: org.ofbiz.base.util.UtilDateTime.timeStampToString(noteDateTime, &quot;dd-MM-yyyy HH:mm&quot;, TimeZone.getDefault(), context.get(&quot;locale&quot;))}"/></field>
</form>
<form name="listResourcesTasks" type="list" list-name="tasks" paginate-target="listResourcesTask" target="updateResourcesTaskAssigment"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<row-actions>
<service service-name="getProjectIdAndNameFromTask" result-map-name="resultProject">
<field-map field-name="taskId" env-name="workEffortId"/>
</service>
<service service-name="getProjectTask" result-map-name="result">
<field-map field-name="taskId" env-name="workEffortId"/>
</service>
<set field="currentStatusId" from-field="result.taskInfo.currentStatusId"/>
<set field="plannedHours" from-field="result.taskInfo.plannedHours"/>
<set field="actualHours" from-field="result.taskInfo.actualHours"/>
<set field="statusId" from-field="result.statusId"/>
</row-actions>
<field name="workEffortName" title="${uiLabelMap.ProjectMgrTaskName}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${workEffortName}" target="taskView?workEffortId=${workEffortId}"/>
</field>
<field name="phaseName" title="${uiLabelMap.ProjectMgrPhaseName}"><display description="${resultProject.phaseName}"/></field>
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}"><hyperlink target="projectView?projectId=${resultProject.projectId}" description="${resultProject.projectName}"/></field>
<field entry-name="currentStatusId" name="currentStatusId"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field entry-name="statusId" name="Status"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
<field name="workEffortId"><hidden value="${workEffortId}"/></field>
<field name="priority" title="${uiLabelMap.CommonPriority}" widget-area-style="centered">
<display description="${priority}"/>
</field>
<field name="estimatedStartDate" title="${uiLabelMap.WorkEffortEstimatedStartDate}" widget-area-style="centered"><display type="date"/></field>
<field name="estimatedCompletionDate" title="${uiLabelMap.WorkEffortEstimatedCompletionDate}" widget-area-style="centered"><display type="date"/></field>
<field name="actualStartDate" title="${uiLabelMap.ProjectMgrWorkEffortActualStartDate}" widget-area-style="centered"><display type="date"/></field>
<field name="actualCompletionDate" title="${uiLabelMap.ProjectMgrWorkEffortActualCompletionDate}" widget-area-style="centered"><display type="date"/></field>
<field name="plannedHours" widget-area-style="centered"><display/></field>
<field name="actualHours" widget-area-style="centered"><display/></field>
<field name="remove" title="${uiLabelMap.CommonRemove}"><hyperlink target="updateResourcesTaskAssigment?workEffortId=${workEffortId}&amp;partyId=${partyId}&amp;roleTypeId=${roleTypeId}&amp;fromDate=${fromDate}&amp;statusId=PAS_ENDED" description="${uiLabelMap.CommonRemove}"/></field>
<field name="toComplete" title="${uiLabelMap.CommonStatustoComplete}"><hyperlink target="updateResourcesTaskAssigment?workEffortId=${workEffortId}&amp;partyId=${partyId}&amp;roleTypeId=${roleTypeId}&amp;fromDate=${fromDate}&amp;statusId=PAS_COMPLETED" description="${uiLabelMap.CommonStatustoComplete}"/></field>
</form>
<form name="listResourcesProjects" type="list" list-name="parties"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<row-actions>
<service service-name="getProject" result-map-name="result">
<field-map field-name="projectId" env-name="workEffortId"/>
</service>
<set field="currentStatusId" from-field="result.projectInfo.currentStatusId"/>
<set field="Priority" from-field="result.projectInfo.priority"/>
<set field="plannedHours" from-field="result.projectInfo.plannedHours"/>
<set field="actualHours" from-field="result.projectInfo.actualHours"/>
<set field="CreatedStamp" from-field="result.projectInfo.createdStamp"/>
<set field="EstimatedStartDate" from-field="result.projectInfo.estimatedStartDate"/>
<set field="EstimatedCompletionDate" from-field="result.projectInfo.estimatedCompletionDate"/>
<set field="ActualStartDate" from-field="result.projectInfo.actualStartDate"/>
<set field="ActualCompletionDate" from-field="result.projectInfo.actualCompletionDate"/>
</row-actions>
<field entry-name="workEffortName" name="projectName" parameter-name="workEffortName" title="${uiLabelMap.CommonName}" widget-style="buttontext">
<hyperlink target="projectView?projectId=${workEffortId}" description="${workEffortName}[${workEffortId}]"/>
</field>
<field name="currentStatusId" title="${uiLabelMap.CommonStatus}">
<display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
</field>
<field name="priority" widget-area-style="centered"><display description="${Priority}"/></field>
<field name="estimatedStartDate" widget-area-style="centered"><display type="date"/></field>
<field name="estimatedCompletionDate" widget-area-style="centered"><display type="date"/></field>
<field name="actualStartDate" ><display type="date"/></field>
<field name="actualCompletionDate"><display type="date"/></field>
<field name="plannedHours" widget-area-style="centered"><display/></field>
<field name="actualHours" widget-area-style="centered"><display/></field>
<field name="createdStamp" ><display type="date"/></field>
</form>
<form name="AddResourceProjectParty" target="addWorkEffortPartyAssign" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<field name="projectId"><hidden/></field>
<field name="statusId"><hidden value="PRTYASGN_ASSIGNED"/></field>
<field name="workEffortId"><hidden value="${workEffortId}"/></field>
<field name="partyId"><hidden/></field>
<field use-when="workEffortId==projectId" name="workEffortId" entry-name="test" title="${uiLabelMap.ProjectMgrProjectName}"><!-- project level -->
<drop-down allow-empty="false">
<entity-options entity-name="WorkEffort" description="${workEffortName}" key-field-name="workEffortId">
<entity-constraint name="workEffortTypeId" value="PROJECT"/>
<entity-constraint name="workEffortId" operator="not-equals" env-name="projectId"/>
</entity-options>
</drop-down>
</field>
<field use-when="project==null" name="currentStatusId"><hidden value="_NA_"/></field>
<field entry-name="test" name="roleTypeId" title="${uiLabelMap.PartyRoleType}">
<drop-down>
<entity-options entity-name="RoleType" description="${description}">
<entity-constraint name="parentTypeId" value="PROJECT_TEAM"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field entry-name="test" name="fromDate"><date-time type="date"/></field>
<field entry-name="test" name="thruDate"><date-time type="date"/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="AddResourceTaskParty" target="addTaskPartyAssign" title="" type="single"
header-row-style="header-row" default-table-style="basic-table">
<field name="projectId"><hidden/></field>
<field name="statusId"><hidden value="PRTYASGN_ASSIGNED"/></field>
<field name="workEffortId"><hidden value="${workEffortId}"/></field>
<field name="partyId"><hidden/></field>
<field entry-name="test" name="workEffortId" title="${uiLabelMap.ProjectMgrTaskName}"><!-- task level -->
<drop-down allow-empty="false">
<entity-options entity-name="ProjectPartyAndPhaseAndTask" description="${workEffortName} (${phaseName}-${projectName})">
<entity-constraint name="partyId" env-name="parameters.partyId"/>
<entity-constraint name="workEffortTypeId" value="TASK"/>
<entity-constraint name="currentStatusId" operator="equals" value="PTS_CREATED"/>
</entity-options>
</drop-down>
</field>
<field entry-name="test" name="roleTypeId" title="${uiLabelMap.PartyRoleType}">
<drop-down>
<entity-options entity-name="RoleType" description="${description}">
<entity-constraint name="parentTypeId" value="PROJECT_TEAM"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field entry-name="test" name="fromDate"><date-time type="date"/></field>
<field entry-name="test" name="thruDate"><date-time type="date"/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
</forms>