git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@684394 13f79535-47bb-0310-9956-ffa450edef68
129 lines
9.1 KiB
XML
129 lines
9.1 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>
|
|
<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="${workEffortName} -- ${phaseName} -- ${projectName}">
|
|
<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="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>
|
|
</forms> |