git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@739849 13f79535-47bb-0310-9956-ffa450edef68
752 lines
57 KiB
XML
752 lines
57 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">
|
|
<actions>
|
|
<entity-one entity-name="PartyGroup" value-field="partyGroup">
|
|
<field-map field-name="partyId" from-field="partyId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<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="clientBillingPartyId"><lookup target-form-name="LookupPartyGroup"><sub-hyperlink target="viewprofile?partyId=${partyId}" description="${partyGroup.groupName}"/></lookup></field>
|
|
<field name="organizationPartyId">
|
|
<drop-down no-current-selected-key="defaultOrganizationPartyId">
|
|
<entity-options entity-name="PartyAcctgPrefAndGroup" description="${groupName}" key-field-name="partyId"/>
|
|
</drop-down>
|
|
</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-order-by field-name="description"/>
|
|
</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"
|
|
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="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>
|
|
<entity-condition entity-name="ProjectPhaseTaskAndTimeEntryTimeSheet" list="entryList">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="projectId" operator="equals" from-field="parameters.projectId"/>
|
|
<condition-expr field-name="invoiceId" operator="equals" from-field="nullField"/>
|
|
<condition-expr field-name="timesheetStatusId" operator="equals" value="TIMESHEET_COMPLETED"/>
|
|
<condition-expr field-name="fromDate" operator="less" from-field="parameters.thruDate" ignore-if-empty="true"/>
|
|
</condition-list>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<field name="workEffortName"><display/></field>
|
|
<field name="phaseName"><display/></field>
|
|
<field name="timesheetId"><hyperlink description="${timesheetId}" target="Timesheet?timesheetId=${timesheetId}"/></field>
|
|
<field name="hours"><display/></field>
|
|
<field name="partyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName}"/></field>
|
|
<field name="rateTypeId" title="${uiLabelMap.ProjectMgrRateTypeId}"><display-entity entity-name="RateType" description="${description}"/></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-list="listIt">
|
|
<field-map field-name="inputFields" from-field="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="resultProject">
|
|
<field-map field-name="projectId" value="${workEffortId}"/>
|
|
</service>
|
|
</row-actions>
|
|
<field name="projectName" map-name="resultProject.projectInfo" title="${uiLabelMap.ProjectMgrProjectName}" widget-style="buttontext">
|
|
<hyperlink description="${resultProject.projectInfo.projectName}" target="projectView?projectId=${resultProject.projectInfo.projectId}"/>
|
|
</field>
|
|
<field name="currentStatusId" map-name="resultProject.projectInfo" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field>
|
|
<field name="estimatedStartDate" map-name="resultProject.projectInfo" title="${uiLabelMap.FormFieldTitle_estimatedStartDate}"><display type="date"/></field>
|
|
<field name="estimatedCompletionDate" map-name="resultProject.projectInfo" title="${uiLabelMap.FormFieldTitle_estimatedCompletionDate}"><display type="date"/></field>
|
|
<field name="actualStartDate" map-name="resultProject.projectInfo" title="${uiLabelMap.FormFieldTitle_actualStartDate}"><display type="date"/></field>
|
|
<field name="actualCompletionDate" map-name="resultProject.projectInfo" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><display type="date"/></field>
|
|
<field name="plannedHours" map-name="resultProject.projectInfo" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
|
|
<field name="actualHours" map-name="resultProject.projectInfo" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
|
|
<field name="createdStamp" title="${uiLabelMap.FormFieldTitle_createdDate}"><display type="date"/></field>
|
|
</form>
|
|
<form name="ListCurrentProjects" type="list" list-name="projects" paginate-target="main"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ListCurrentProjects.groovy"/>
|
|
</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="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="actualNonBilledTotalHours" title="${uiLabelMap.ProjectMgrNonBilledActualHours}"><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" from-field="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"><display type="date"/></field>
|
|
<field name="estimatedCompletionDate"><display type="date"/></field>
|
|
<field name="actualStartDate"><display type="date"/></field>
|
|
<field name="actualCompletionDate"><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"><display type="date"/></field>
|
|
<field name="actualCompletionDate"><display type="date"/></field>
|
|
<field name="plannedHours"><display/></field>
|
|
<field name="actualHours"><display/></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-field="currentStatus">
|
|
<field-map field-name="statusId" from-field="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="result">
|
|
<field-map field-name="taskId" from-field="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-field="currentStatus">
|
|
<field-map field-name="statusId" from-field="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="ListProjectProviderParties" type="list" list-name="assigns"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="WorkEffortPartyAssignView" list="assigns" distinct="true">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="workEffortId" from-field="parameters.projectId" operator="equals"/>
|
|
<condition-expr field-name="roleTypeId" value="PROVIDER%" operator="like"/>
|
|
</condition-list>
|
|
<select-field field-name="partyId"/>
|
|
<select-field field-name="firstName"/>
|
|
<select-field field-name="lastName"/>
|
|
<select-field field-name="middleName"/>
|
|
<select-field field-name="groupName"/>
|
|
<select-field field-name="roleTypeId"/>
|
|
<order-by field-name="lastName"/>
|
|
<order-by field-name="firstName"/>
|
|
<order-by field-name="groupName"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<row-actions>
|
|
<service service-name="getProject" result-map="result">
|
|
<field-map field-name="projectId" from-field="parameters.projectId"/>
|
|
<field-map field-name="partyId" from-field="partyId"/>
|
|
</service>
|
|
</row-actions>
|
|
<field name="projectId"><hidden/></field>
|
|
<field name="partyName" title="${uiLabelMap.CommonName}">
|
|
<hyperlink target="viewprofile?partyId=${partyId}" description="${lastName}, ${firstName} ${middleName} ${groupName} [${partyId}]"/>
|
|
</field>
|
|
<field name="roleTypeId"><display-entity entity-name="RoleType" description="${description}"/></field>
|
|
<field name="actualHours" entry-name="actualHours" map-name="result.projectInfo"><display/></field>
|
|
<field name="nonBilledHours" entry-name="actualNonBilledHours" map-name="result.projectInfo"><display/></field>
|
|
</form>
|
|
<form name="ListProjectClientParties" type="list" list-name="clientAssigns"
|
|
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="${lastName}, ${firstName} ${middleName} ${groupName} [${partyId}]"/>
|
|
</field>
|
|
<field name="roleTypeId"><display-entity entity-name="RoleType" description="${description}"/></field>
|
|
</form>
|
|
<form name="ListProjectCompanyParties" type="list" list-name="companyAssigns"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<row-actions>
|
|
<entity-one entity-name="PartyAcctgPreference" value-field="orgParty"/>
|
|
<entity-one entity-name="Party" value-field="clientParty"/>
|
|
<set field="currencyUomId" value="${bsh:orgParty!=null&&orgParty.getString("baseCurrencyUomId")!=null?orgParty.getString("baseCurrencyUomId"):""}"/>
|
|
<set field="currencyUomId" value="${bsh:clientParty!=null&&clientParty.getString("preferredCurrencyUomId")!=null?clientParty.getString("preferredCurrencyUomId"):currencyUomId}"/>
|
|
</row-actions>
|
|
<field name="projectId"><hidden/></field>
|
|
<field name="partyName" title="${uiLabelMap.CommonName}">
|
|
<hyperlink target="viewprofile?partyId=${partyId}" description="${groupName} [${partyId}]"/>
|
|
</field>
|
|
<field name="roleTypeId"><display-entity entity-name="RoleType" description="${description}"/></field>
|
|
<field name="currencyUomId"><display-entity entity-name="Uom" key-field-name="uomId" description="${description}"></display-entity></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}&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" filter-by-date="true">
|
|
<condition-expr field-name="workEffortId" operator="equals" from-field="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">
|
|
<actions>
|
|
<entity-condition entity-name="PartyRoleDetailAndPartyDetail" distinct="true" list="projectResources">
|
|
<condition-expr field-name="parentTypeId" operator="equals" value="PROJECT_TEAM"/>
|
|
<select-field field-name="partyId"/>
|
|
<select-field field-name="lastName"/>
|
|
<select-field field-name="firstName"/>
|
|
<select-field field-name="groupName"/>
|
|
<order-by field-name="lastName"/>
|
|
<order-by field-name="firstName"/>
|
|
<order-by field-name="groupName"/>
|
|
</entity-condition>
|
|
<entity-condition entity-name="WorkEffortPartyAssignView" filter-by-date="true" distinct="true" list="taskResources">
|
|
<condition-expr field-name="workEffortId" from-field="projectId"/>
|
|
<select-field field-name="partyId"/>
|
|
<select-field field-name="lastName"/>
|
|
<select-field field-name="firstName"/>
|
|
<select-field field-name="groupName"/>
|
|
<order-by field-name="lastName"/>
|
|
<order-by field-name="firstName"/>
|
|
<order-by field-name="groupName"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<alt-target use-when="workEffortId==projectId && parameters.get("partyId")==null" target="ListWorkEffortPartyAssigns"/><!-- this used for project partyId not yet selected -->
|
|
<alt-target use-when="workEffortId!=projectId && parameters.get("partyId")==null" target="EditTaskPartyAssigns"/><!-- this used for tasks , partyId not yet selected-->
|
|
<alt-target use-when="workEffortId!=projectId && parameters.get("partyId")!=null" target="createTaskPartyAssign"/><!-- this used for tasks , partyId selected-->
|
|
<field name="projectId"><hidden/></field>
|
|
<field name="statusId"><hidden value="PRTYASGN_ASSIGNED"/></field>
|
|
<field name="workEffortId"><hidden value="${workEffortId}"/></field>
|
|
<field name="partyId" use-when="workEffortId==projectId && parameters.get("partyId")!=null"><!-- project level -->
|
|
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}[${partyId}]">
|
|
<sub-hyperlink target="ListWorkEffortPartyAssigns?projectId=${workEffortId}" description="${uiLabelMap.CommonChange}"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="partyId" use-when="workEffortId!=projectId && parameters.get("partyId")!=null"><!-- task level -->
|
|
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}[${partyId}]">
|
|
<sub-hyperlink target="EditTaskPartyAssigns?workEffortId=${workEffortId}" description="${uiLabelMap.CommonChange}"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="partyId" use-when="workEffortId==projectId && parameters.get("partyId")==null" event="onChange" action="javascript:document.AddWorkEffortPartyAssign.submit();"><!-- project level -->
|
|
<drop-down allow-empty="true" current="selected">
|
|
<list-options list-name="projectResources" key-name="partyId" description="${lastName} ${firstName} ${middleName} ${groupName}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="partyId" use-when="workEffortId!=projectId && parameters.get("partyId")==null" event="onChange" action="javascript:document.AddWorkEffortPartyAssign.submit();"><!-- task level -->
|
|
<drop-down allow-empty="true" current="selected">
|
|
<list-options list-name="taskResources" key-name="partyId" description="${lastName} ${firstName} ${middleName} ${groupName}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field entry-name="xx" name="roleTypeId" use-when="workEffortId==projectId && parameters.get("partyId")!=null" title="${uiLabelMap.PartyRoleType}">
|
|
<drop-down>
|
|
<entity-options entity-name="PartyRoleDetailAndPartyDetail" description="${description}">
|
|
<entity-constraint name="parentTypeId" value="PROJECT_TEAM"/>
|
|
<entity-constraint name="partyId" env-name="parameters.partyId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field entry-name="xx" name="roleTypeId" use-when="workEffortId!=projectId && parameters.get("partyId")!=null" title="${uiLabelMap.PartyRoleType}">
|
|
<drop-down>
|
|
<entity-options entity-name="WorkEffortPartyAssignAndRoleType" description="${description}">
|
|
<entity-constraint name="workEffortId" env-name="projectId"/>
|
|
<entity-constraint name="partyId" env-name="parameters.partyId"/>
|
|
</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" from-field="workEffortId"/>
|
|
<order-by field-name="noteId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<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, "dd-MM-yyyy HH:mm", TimeZone.getDefault(), context.get("locale"))}"/></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="resultProject">
|
|
<field-map field-name="taskId" from-field="workEffortId"/>
|
|
</service>
|
|
<service service-name="getProjectTask" result-map="result">
|
|
<field-map field-name="taskId" from-field="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.CommonActualStartDate}" 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}&partyId=${partyId}&roleTypeId=${roleTypeId}&fromDate=${fromDate}&statusId=PAS_ENDED" description="${uiLabelMap.CommonRemove}"/></field>
|
|
<field name="toComplete" title="${uiLabelMap.CommonStatustoComplete}"><hyperlink target="updateResourcesTaskAssigment?workEffortId=${workEffortId}&partyId=${partyId}&roleTypeId=${roleTypeId}&fromDate=${fromDate}&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="result">
|
|
<field-map field-name="projectId" from-field="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="${projectName} -- ${phaseName} -- ${workEffortName}">
|
|
<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>
|
|
<form name="AddProjectTimeToNewInvoice" target="addProjectTimeToNewInvoice" title="" type="single">
|
|
<actions>
|
|
<entity-and entity-name="WorkEffortPartyAssignment" list="assignOrg" filter-by-date="true">
|
|
<field-map field-name="workEffortId" from-field="parameters.projectId"/>
|
|
<field-map field-name="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
|
|
</entity-and>
|
|
<set field="partyIdFrom" value="${assignOrg[0].partyId}"/>
|
|
<entity-and entity-name="WorkEffortPartyAssignment" list="assignBilling" filter-by-date="true">
|
|
<field-map field-name="workEffortId" from-field="parameters.projectId"/>
|
|
<field-map field-name="roleTypeId" value="CLIENT_BILLING"/>
|
|
</entity-and>
|
|
<set field="partyId" value="${assignBilling[0].partyId}"/>
|
|
</actions>
|
|
<field name="projectId"><hidden value="${parameters.projectId}"/></field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.WorkEffortTimeBillFromParty}"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName}"/></field>
|
|
<field name="partyId" title="${uiLabelMap.WorkEffortTimeBillToParty}"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName}"/></field>
|
|
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><date-time type="timestamp"/></field>
|
|
<field name="invoiceId"><hidden/></field>
|
|
<field name="reCreate" position="1" title="re-create Invoice: ${invoiceId}" use-when="context.get("invoiceId")!=null">
|
|
<drop-down no-current-selected-key="N">
|
|
<option key="Y" description="Yes"/>
|
|
<option key="N" description="No"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.PageTitleAddProjectTimeToNewInvoice}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="ListContents" extends="ListWorkEffortContents" extends-resource="component://workeffort/widget/WorkEffortForms.xml">
|
|
<field name="contentId" use-when="headerItem.equals("EditProjectContents")">
|
|
<display-entity entity-name="Content" key-field-name="contentId" description="${contentName}" also-hidden="true">
|
|
<sub-hyperlink target="EditProjectContents?contentId=${contentId}&projectId=${projectId}&workEffortContentTypeId=${workEffortContentTypeId}" description="${contentId}" link-style="buttontext" target-type="inter-app"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="contentId" use-when="headerItem.equals("EditTaskContents")">
|
|
<display-entity entity-name="Content" key-field-name="contentId" description="${contentName}" also-hidden="true">
|
|
<sub-hyperlink target="EditTaskContents?contentId=${contentId}&workEffortId=${workEffortId}&workEffortContentTypeId=${workEffortContentTypeId}" description="${contentId}" link-style="buttontext" target-type="inter-app"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="thruDate"><ignored/></field>
|
|
<field name="submitButton"><ignored/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="headerItem.equals("EditProjectContents")">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteProjectContent?contentId=${contentId}&workEffortId=${workEffortId}&workEffortContentTypeId=${workEffortContentTypeId}&fromDate=${fromDate}"/>
|
|
</field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="headerItem.equals("EditTaskContents")">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteTaskContent?contentId=${contentId}&workEffortId=${workEffortId}&workEffortContentTypeId=${workEffortContentTypeId}&fromDate=${fromDate}"/>
|
|
</field>
|
|
</form>
|
|
<form name="UploadWorkEffortContent" type="upload" default-map-name="content"
|
|
focus-field-name="contentTypeId" header-row-style="header-row" default-table-style="basic-table" target="updateProjectContent">
|
|
<actions>
|
|
<set field="projectId" from-field="parameters.projectId" default-value="${parameters.workEffortId}"/>
|
|
<set field="workEffortId" from-field="parameters.workEffortId"/>
|
|
<entity-one entity-name="StatusItem" value-field="currentStatus" auto-field-map="false">
|
|
<field-map field-name="statusId" from-field="content.statusId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="DataResource" value-field="dataResource" auto-field-map="false">
|
|
<field-map field-name="dataResourceId" from-field="content.dataResourceId"/>
|
|
</entity-one>
|
|
</actions>
|
|
|
|
<alt-target use-when="content!=null&&headerItem.equals("EditTaskContents")" target="updateTaskContent"/>
|
|
<alt-target use-when="content==null&&headerItem.equals("EditProjectContents")" target="createProjectContent"/>
|
|
<alt-target use-when="content==null&&headerItem.equals("EditTaskContents")" target="createTaskContent"/>
|
|
|
|
<field name="workEffortId" map-name="parameters"><hidden/></field>
|
|
<field name="projectId" map-name="parameters"><hidden/></field>
|
|
<field use-when="content!=null" name="contentId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
|
<field name="workEffortContentTypeId">
|
|
<drop-down allow-empty="false">
|
|
<entity-options description="${description}" entity-name="WorkEffortContentType" key-field-name="workEffortContentTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<!-- note sure if these two are necessray, but they are kind of confusing in this context:
|
|
<field name="ownerContentId"><lookup target-form-name="LookupContent"/></field>
|
|
<field name="dataResourceId"><lookup target-form-name="LookupDataResource"/></field>
|
|
-->
|
|
<field name="contentTypeId">
|
|
<drop-down allow-empty="false" no-current-selected-key="DOCUMENT">
|
|
<entity-options description="${description}" entity-name="ContentType"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="statusId" use-when="content==null">
|
|
<drop-down allow-empty="false" no-current-selected-key="CTNT_AVAILABLE">
|
|
<entity-options description="${description}" entity-name="StatusItem" key-field-name="statusId">
|
|
<entity-constraint name="statusTypeId" value="CONTENT_STATUS"/>
|
|
<entity-order-by field-name="sequenceId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="statusId" use-when="content!=null">
|
|
<drop-down allow-empty="false" current-description="${currentStatus.description}" no-current-selected-key="CTNT_AVAILABLE">
|
|
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
|
|
<entity-constraint name="statusId" value="${content.statusId}"/>
|
|
<entity-order-by field-name="sequenceId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="mimeTypeId" >
|
|
<drop-down allow-empty="false">
|
|
<entity-options description="${description}" entity-name="MimeType" key-field-name="mimeTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="dataResourceName" title="${uiLabelMap.CommonUpload}"><file/></field>
|
|
<field name="dataCategoryId" use-when="dataResource==null">
|
|
<drop-down allow-empty="false">
|
|
<entity-options description="${categoryName}" entity-name="DataCategory" key-field-name="dataCategoryId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="dataCategoryId" use-when="dataResource!=null">
|
|
<drop-down allow-empty="false">
|
|
<entity-options description="${categoryName}" entity-name="DataCategory">
|
|
<entity-constraint name="dataCategoryId" value="${dataResource.dataCategoryId}"/>
|
|
<entity-order-by field-name="categoryName"/>
|
|
</entity-options>
|
|
<entity-options description="${categoryName}" entity-name="DataCategory" key-field-name="dataCategoryId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="createButton" use-when="content==null"><submit button-type="button"/></field>
|
|
<field name="updateButton" use-when="content!=null"><submit button-type="button"/></field>
|
|
</form>
|
|
</forms> |