git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@696159 13f79535-47bb-0310-9956-ffa450edef68
213 lines
15 KiB
XML
213 lines
15 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="MyTasks" extends="MyTasks" extends-resource="component://projectmgr/widget/forms/TaskForms.xml">
|
|
<field name="donePage"><hidden value="${parameters.donePage}"/></field>
|
|
<field name="workEffortName" title="${uiLabelMap.ProjectMgrTaskName}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${workEffortName}" target="/projectmgr/control/taskView?workEffortId=${workEffortId}" target-type="inter-app" target-window="_BLANK"/>
|
|
</field>
|
|
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}"><hyperlink target="/projectmgr/control/projectView?projectId=${resultProject.projectId}" target-type="inter-app" target-window="_BLANK" description="${resultProject.projectName}"/></field>
|
|
<field name="roleTypeId" parameter-name="newRoleTypeId" title="${uiLabelMap.PartyRole}"><hidden value="${roleTypeId}"/></field>
|
|
<field name="remove" title="${uiLabelMap.CommonRemove}"><hyperlink target="updateTaskAssigment?workEffortId=${workEffortId}&partyId=${partyId}&roleTypeId=${roleTypeId}&fromDate=${fromDate}&statusId=PAS_ENDED&donePage=${parameters.donePage}" description="${uiLabelMap.CommonRemove}"/></field>
|
|
<!-- better set to complete on the timesheet -->
|
|
<!-- field name="toComplete" title="${uiLabelMap.CommonStatustoComplete}"><hyperlink target="updateTaskAssigment?workEffortId=${workEffortId}&partyId=${partyId}&roleTypeId=${roleTypeId}&fromDate=${fromDate}&statusId=PAS_COMPLETED&donePage=${parameters.donePage}" description="${uiLabelMap.CommonStatustoComplete}"/></field-->
|
|
</form>
|
|
|
|
<form name="EditWeekTimesheet" extends="EditWeekTimesheet" extends-resource="component://projectmgr/widget/forms/TimeSheetForms.xml">
|
|
<alt-target use-when="!headerItem.equals("main")" target="updateTimesheetKey"/>
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrTaskName}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="ProjectPartyAndPhaseAndTask" description="${projectName} -- ${phaseName} -- ${workEffortName}">
|
|
<entity-constraint name="workEffortTypeId" operator="not-equals" value="TASK_TEMPLATE"/>
|
|
<entity-constraint name="partyId" env-name="timesheet.partyId"/>
|
|
<entity-order-by field-name="projectName"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
<sub-hyperlink target="/projectmgr/control/taskView?workEffortId=${workEffortId}" target-type="inter-app" target-window="_BLANK" link-style="buttontext" description="${bsh:workEffortId != void && !workEffortId.equals("Totals") ? workEffortId : ""}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="updateButton"><submit/></field>
|
|
</form>
|
|
|
|
<form name="MyCompanyComms" type="list" list-name="events" target="deleteEvent" paginate-target="FindTask"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<set field="nowDate" value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString("yyyy-MM-dd HH:mm:ss.S")}" type="String"/>
|
|
<entity-condition entity-name="WorkEffort">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="workEffortTypeId" operator="equals" value="COMPANY_EVENT"/>
|
|
<condition-expr field-name="actualStartDate" operator="greater-equals" env-name="nowDate"/>
|
|
</condition-list>
|
|
<order-by field-name="actualStartDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<alt-target use-when="!headerItem.equals("main")" target="deleteEventKey"/>
|
|
<field name="workEffortId"><hidden/></field>
|
|
<field name="workEffortName" title="${uiLabelMap.WorkEffortEventName}"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
|
|
<field name="actualStartDate" title="Date"><display type="date"/></field>
|
|
<field name="delete"><submit button-type="text-link"/></field>
|
|
</form>
|
|
|
|
<form name="newEvent" type="single" target="createEvent">
|
|
<field name="donePage"><hidden/></field>
|
|
<field name="workEffortTypeId"><hidden value="COMPANY_EVENT"/></field>
|
|
<field name="currentStatusId"><hidden value="_NA_"/></field>
|
|
<field name="workEffortName" title="${uiLabelMap.WorkEffortEventName}"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="actualStartDate"><date-time type="date"/></field>
|
|
<field name="add"><submit/></field>
|
|
</form>
|
|
|
|
<form name="preferences" type="single" target="updatePreferences" default-map-name="preferences.userPrefMap">
|
|
<field name="userPrefGroupId"><hidden value="MyPage"/></field>
|
|
<field name="myCommunications"><check/></field>
|
|
<field name="otherCommunications"><check/></field>
|
|
<field name="myCompanyComms"><check/></field>
|
|
<field name="myTasks"><check/></field>
|
|
<field name="myTimesheet"><check/></field>
|
|
<field name="updateButton"><submit/></field>
|
|
</form>
|
|
|
|
<form name="custPreferences" type="single" target="updateCustPreferences" default-map-name="preferences.userPrefMap">
|
|
<field name="userPrefGroupId"><hidden value="MyPage"/></field>
|
|
<field name="sendCustRequestEmail" title="Send Email To Every Customer Request Change"><check/></field>
|
|
<field name="updateButton"><submit/></field>
|
|
</form>
|
|
|
|
<form name="ListPartyCommEvents" extends="ListCommEvents" extends-resource="component://party/webapp/partymgr/communication/CommForms.xml" type="list">
|
|
<row-actions>
|
|
<set field="toComplete" value="${bsh:"COM_ROLE_READ".equals(roleStatusId)?"->Complete":""}"/>
|
|
</row-actions>
|
|
<field name="donePage"><hidden/></field>
|
|
<field name="roleTypeId"><display-entity entity-name="RoleType" description="${description}"/></field>
|
|
<field name="removeLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="RemoveCommunicationEventRole?partyId=${partyId}&communicationEventId=${communicationEventId}&roleTypeId=${roleTypeId}&deleteCommEventIfLast=Y&delContentDataResource=Y&donePage=${parameters.donePage}"/>
|
|
</field>
|
|
<field name="subject" widget-style="buttontext" widget-area-style="fieldWidth300">
|
|
<hyperlink description="${subject} " target="ViewCommunicationEvent?communicationEventId=${communicationEventId}&partyId=${partyId}&roleTypeId=${roleTypeId}&donePage=${parameters.donePage}"/>
|
|
</field>
|
|
<field name="statusId" entry-name="roleStatusId" widget-style="buttontext" widget-area-style="fieldWidth300">
|
|
<display-entity entity-name="StatusItem" description="${description}">
|
|
<sub-hyperlink description="${uiLabelMap.${toComplete}}" target="setCommunicationEventRoleStatus?communicationEventId=${communicationEventId}&partyId=${partyId}&roleTypeId=${roleTypeId}&statusId=COM_ROLE_COMPLETED&donePage=${parameters.donePage}&VIEW_SIZE=${parameters.VIEWSIZE}&VIEW_INDEX=${parameters.VIEW_INDEX}"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="createdStamp" entry-name="entryDate"/>
|
|
</form>
|
|
<form name="ListMyUnknownPartyEmails" type="multi"
|
|
extends="ListMyUnknownPartyEmails" extends-resource="component://party/webapp/partymgr/communication/CommForms.xml" use-row-submit="true">
|
|
<field name="donePage"><hidden/></field>
|
|
<field name="subject" widget-style="buttontext" widget-area-style="fieldWidth300">
|
|
<hyperlink description="${subject}" target="ViewCommunicationEvent?communicationEventId=${communicationEventId}&donePage=${parameters.donePage}"/>
|
|
</field>
|
|
<field name="_rowSubmit" title="S">
|
|
<check />
|
|
</field>
|
|
<field name="deleteSelectedButton" widget-style="smallSubmit">
|
|
<submit />
|
|
</field>
|
|
</form>
|
|
<form name="ViewRequestWorkEfforts" extends="ViewRequestWorkEfforts" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
|
|
<field name="workEffortId">
|
|
<hyperlink target="/projectmgr/control/taskView?workEffortId=${workEffortId}" description="${workEffortName} [${workEffortId}]" target-type="inter-app"/>
|
|
</field>
|
|
</form>
|
|
<form name="ListCustRequests" type="list" list-name="custRequests" odd-row-style="alternate-row" default-table-style="basic-table hover-bar" target="updateRequest">
|
|
<row-actions>
|
|
<service service-name="getProjectTask" result-map-name="taskResult">
|
|
<field-map field-name="taskId" env-name="workEffortId"/>
|
|
</service>
|
|
</row-actions>
|
|
<field name="custRequestId"><hidden/></field>
|
|
<field name="custRequestName"><hyperlink description="${custRequestName} [${custRequestId}]" target="ViewRequest?custRequestId=${custRequestId}"/></field>
|
|
<field name="custRequestDate" title="Date"><display type="date"/></field>
|
|
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
|
<field name="priority">
|
|
<drop-down allow-empty="true">
|
|
<option key="9"/>
|
|
<option key="8"/>
|
|
<option key="7"/>
|
|
<option key="6"/>
|
|
<option key="5"/>
|
|
<option key="4"/>
|
|
<option key="3"/>
|
|
<option key="2"/>
|
|
<option key="1"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="updateButton" widget-style="smallSubmit"><submit /></field>
|
|
<field name="currentStatusId" map-name="taskResult.taskInfo" title="${uiLabelMap.TaskStatus}"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field>
|
|
<field name="estimatedStartDate" map-name="taskResult.taskInfo" title="${uiLabelMap.TaskPlanStartDate}"><display type="date"/></field>
|
|
<field name="estimatedCompletionDate" map-name="taskResult.taskInfo" title="${uiLabelMap.TaskPlanEndDate}"><display type="date"/></field>
|
|
<field name="actualStartDate" map-name="taskResult.taskInfo" title="${uiLabelMap.TaskActStartDate}"><display type="date"/></field>
|
|
<field name="actualCompletionDate" map-name="taskResult.taskInfo" title="${uiLabelMap.TaskActEndDate}"><display type="date"/></field>
|
|
<field name="plannedHours" map-name="taskResult.taskInfo"><display/></field>
|
|
<field name="actualHours" map-name="taskResult.taskInfo"><display/></field>
|
|
</form>
|
|
<form name="ListCustRequestsCompleted" extends="ListCustRequests" list-name="custRequestsCompleted">
|
|
<field name="priority"><display/></field>
|
|
<field name="updateButton"><ignored/></field>
|
|
</form>
|
|
|
|
<form name="ListOtherCompanyRequests" extends="ListCustRequestsCompleted" list-name="companyCustRequests">
|
|
<field name="fromPartyId">
|
|
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName} [${fromPartyId}])"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="EditCustRequest" extends="EditCustRequest" extends-resource="component://projectmgr/widget/forms/RequestForms.xml">
|
|
<field name="fromPartyId" title="${uiLabelMap.OrderRequestingParty}"><hidden value="${userLogin.partyId}"/></field>
|
|
<field name="custRequestDate"><ignored/></field>
|
|
</form>
|
|
|
|
<form name="ListInvoices" type="list" separate-columns="true" paginate-target="listInvoices" list-name="invoices"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<row-actions>
|
|
<service service-name="getPartyNameForDate" result-map-name="partyNameResultFrom">
|
|
<field-map field-name="partyId" env-name="partyIdFrom"/>
|
|
<field-map field-name="compareDate" env-name="invoiceDate"/>
|
|
<field-map field-name="lastNameFirst" value="Y"/>
|
|
</service>
|
|
<service service-name="getPartyNameForDate" result-map-name="partyNameResultTo">
|
|
<field-map field-name="partyId" env-name="partyId"/>
|
|
<field-map field-name="compareDate" env-name="invoiceDate"/>
|
|
<field-map field-name="lastNameFirst" value="Y"/>
|
|
</service>
|
|
<script location="component://mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy"/>
|
|
</row-actions>
|
|
<field name="invoiceId" widget-style="buttontext">
|
|
<hyperlink description="${invoiceId}" target="invoice.pdf?invoiceId=${invoiceId}&other=Y"/>
|
|
</field>
|
|
<field name="invoiceTypeId"><display-entity entity-name="InvoiceType" description="${description}"/></field>
|
|
<field name="invoiceDate"><display/></field>
|
|
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
|
<field name="description"><display/></field>
|
|
<field name="partyIdFrom"><display description="${partyNameResultFrom.fullName} [${partyIdFrom}]"/></field>
|
|
<field name="partyIdTo" parameter-name="partyId"><display description="${partyNameResultTo.fullName} [${partyId}]"/></field>
|
|
<field name="invoiceDate"><display description="${bsh:invoiceDate.toString().substring(0,10)}"/></field>
|
|
<field name="total" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
|
|
<field name="amountToApply" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
|
|
</form>
|
|
|
|
</forms> |