git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606853 13f79535-47bb-0310-9956-ffa450edef68
405 lines
30 KiB
XML
405 lines
30 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">
|
|
<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}"><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("estimatedStartDate")!=null?project.get("estimatedStartDate").toString().substring(0,10):"";}"/></field>
|
|
<field use-when="project!=null" name="estimatedCompletionDate" title="${uiLabelMap.FormFieldTitle_estimatedCompletionDate}"><display description="${bsh:project.get("estimatedCompletionDate")!=null?project.get("estimatedCompletionDate").toString().substring(0,10):"";}"/></field>
|
|
<field use-when="project!=null" name="actualStartDate" title="${uiLabelMap.FormFieldTitle_actualStartDate}"><display description="${bsh:project.get("actualStartDate")!=null?project.get("actualStartDate").toString().substring(0,10):"";}"/></field>
|
|
<field use-when="project!=null" name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><display description="${bsh:project.get("actualCompletionDate")!=null?project.get("actualCompletionDate").toString().substring(0,10):"";}"/></field>
|
|
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
|
</form>
|
|
<form name="AddSubProject" type="single" target="AddSubProject">
|
|
<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">
|
|
<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">
|
|
<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="${personalTitle} ${lastName},${firstName} ${middleName} ${groupName}" target="viewprofile?partyId=${partyId}"/>
|
|
</field>
|
|
<field name="roleTypeId"><hidden/></field>
|
|
<field name="emailAddess"><hyperlink target="/partymgr/control/EditCommunicationEvent?partyIdFrom=${userLogin.partyId}&partyIdTo=${partyId}&communicationEventTypeId=EMAIL_COMMUNICATION&contactMechIdTo=${contactMechId}&contactMechTypeId=EMAIL_ADDRESS" description="${emailResult.emailAddress}" target-type="inter-app"/></field>
|
|
<field use-when="telResult.get("extension")!=null" name="telephone"><display description="${telResult.countryCode} ${telResult.areaCode} ${telResult.contactNumber} Ext:${telResult.extension}"/></field>
|
|
<field use-when="telResult.get("extension")==null" name="telephone"><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}&roleTypeId=${roleTypeId}" description="${uiLabelMap.CommonRemove}"/></field>
|
|
</form>
|
|
<form name="AddResource" type="single" target="addResource">
|
|
<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">
|
|
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><date-time type="date"/></field>
|
|
<field name="projectName" parameter-name="workEffortName" title="${uiLabelMap.ProjectMgrProjectName}"><text/></field>
|
|
<field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
|
|
</form>
|
|
<form name="hoursNotYetBilled" type="list" list-name="entryList">
|
|
<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="projects" paginate-target="FindProject">
|
|
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${projectName}" target="projectView?projectId=${projectId}"/>
|
|
</field>
|
|
<field name="statusDescription" title="${uiLabelMap.CommonStatus}"><display/></field>
|
|
<field name="priority" title="${uiLabelMap.CommonPriority}"><display/></field>
|
|
<field name="startDate" title="${uiLabelMap.WorkEffortStartDate}"><display type="date"/></field>
|
|
<field name="completionDate" title="${uiLabelMap.WorkEffortCompletionDate}"><display type="date"/></field>
|
|
<field name="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></field>
|
|
<field name="createdDate"><display type="date"/></field>
|
|
</form>
|
|
<form name="ProjectInfo" type="single" default-map-name="project" paginate-target="FindProject">
|
|
<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">
|
|
<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}" widget-style="selectBox" 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" paginate-target="FindTask">
|
|
<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"/>
|
|
</row-actions>
|
|
<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="workEffortId"><hidden value="${workEffortId}"/></field>
|
|
<field name="projectId"><hidden/></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}" widget-style="selectBox">
|
|
<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">
|
|
<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}" widget-style="selectBox" 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">
|
|
<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}"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
|
|
<field name="priority" title="${uiLabelMap.CommonPriority}"><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">
|
|
<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/></field>
|
|
<field name="completionDate"><display/></field>
|
|
<field name="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></field>
|
|
</form>
|
|
<form name="ListTaskInfo" type="list" list-name="tasks">
|
|
<field name="projectId"><hidden value="parameters.projectId"/></field>
|
|
<field name="phase"><hyperlink target="FindPhase?projectId=${projectId}" description="${phaseName}"/></field>
|
|
<field name="task"><hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffortName}"/></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/></field>
|
|
<field name="completionDate"><display/></field>
|
|
<field name="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></field>
|
|
</form>
|
|
<form name="ListProjectParties" type="list" list-name="parties">
|
|
<field name="projectId"><hidden/></field>
|
|
<field name="partyName" title="${uiLabelMap.CommonName}">
|
|
<hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" target-type="inter-app" 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="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></field>
|
|
</form>
|
|
<form name="ListProjectSkills" type="list" target="updateProjectSkillStandard" list-name="workEffortSkillStandardList" paginate-target="EditProjectSkills">
|
|
<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}&skillTypeId=${skillTypeId}"/>
|
|
</field>
|
|
</form>
|
|
<form name="EditWorkEffortPartyAssigns" target="deleteWorkEffortPartyAssign" title="" type="list" paginate-target="ListWorkEffortPartyAssigns">
|
|
<actions>
|
|
<entity-condition entity-name="WorkEffortPartyAssignment">
|
|
<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">
|
|
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}">
|
|
<sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyId}" target-type="inter-app" description="${partyId}" link-style="buttontext"/>
|
|
</display-entity>
|
|
</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">
|
|
<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="ListTimeEntries" type="list" list-name="timesheetEntries" target="updateTimeEntry" paginate-target="EditTimeEntries">
|
|
<actions>
|
|
<entity-condition entity-name="TimeEntry">
|
|
<condition-expr field-name="workEffortId" env-name="workEffortId"/>
|
|
<order-by field-name="timesheetId"/>
|
|
<order-by field-name="partyId"/>
|
|
<order-by field-name="rateTypeId"/>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateTimeEntry"/>
|
|
<field name="fixedAssetId"><hidden/></field>
|
|
<field name="maintHistSeqId"><hidden/></field>
|
|
<field name="timeEntryId"><hidden/></field>
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrWorkEffortId}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${workEffortId}" target="EditProject?workEffortId=${workEffortId}"/>
|
|
</field>
|
|
<field name="timesheetId">
|
|
<lookup size="10" target-form-name="LookupTimesheet">
|
|
<sub-hyperlink target="EditTimesheet?timesheetId=${timesheetId}" link-style="buttontext" description="TS:${timesheetId}"/>
|
|
</lookup>
|
|
</field>
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><lookup size="12" target-form-name="LookupPerson" default-value="${timesheet.partyId}"/></field>
|
|
<field name="rateTypeId" title="${uiLabelMap.TimesheetRateType}">
|
|
<drop-down>
|
|
<entity-options entity-name="RateType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="invoiceId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field>
|
|
<field name="invoiceItemSeqId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field>
|
|
<field name="invoiceInfo"><hidden/></field>
|
|
<field name="comments"><text size="60"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteTimeEntry?workEffortId=${workEffortId}&timeEntryId=${timeEntryId}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
|
|
</field>
|
|
</form>
|
|
<form name="ListProjectNotes" extends="ListWorkEffortNotes" extends-resource="component://workeffort/widget/WorkEffortForms.xml" type="list" list-name="projectNotes" paginate-target="EditWorkEffortNotes">
|
|
<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>
|
|
</form>
|
|
</forms>
|