Slight change in Entity name in this commit. In the attached patch the name of entity was "CustomerRequestRole" but in this commit the name of new entity is "CustRequestParty"(Looked more close to the data model pattern). Thanks Bilgin for your valuable Input on this. I have also written the Migration service for providing the Backward compatibility. Special thanks to Ratnesh & Jacopo in discussing with me on this work. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@686731 13f79535-47bb-0310-9956-ffa450edef68
158 lines
8.7 KiB
XML
158 lines
8.7 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="ListRequests" type="list"
|
|
extends="ListRequestList" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
|
|
<field name="createTaskFromRequest" title="${uiLabelMap.ProjectMgrCreateTaskFromRequest}" widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.ProjectMgrCreateTaskFromRequest}" target="EditTaskFromRequest?custRequestId=${custRequestId}"/>
|
|
</field>
|
|
</form>
|
|
<form name="EditCustRequest" type="single" target="updaterequest" title="Request" default-map-name="custRequest">
|
|
<alt-target use-when="custRequest==null" target="createrequest"/>
|
|
<field name="custRequestId"><hidden/></field>
|
|
<field name="fromPartyId" title="${uiLabelMap.OrderRequestingParty}">
|
|
<lookup target-form-name="LookupPartyName"/>
|
|
</field>
|
|
<field name="custRequestName" title="${uiLabelMap.CommonTitle}"><text/></field>
|
|
<field name="description" parameter-name="story"><textarea cols="60" rows="12"/></field>
|
|
<field name="custRequestTypeId">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="CustRequestType" description="${description}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="statusId"><hidden value="CRQ_ACCEPTED"/></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="custRequestDate" title="${uiLabelMap.OrderRequestDate}"><date-time type="timestamp"/></field>
|
|
<field name="responseRequiredDate"><date-time type="timestamp"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="RequestInfo" type="single" default-entity-name="CustRequest" default-map-name="custRequest"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<actions>
|
|
<entity-one entity-name="WorkEffort" value-name="workEffort">
|
|
<field-map field-name="workEffortId" env-name="workEffortId"/>
|
|
</entity-one>
|
|
<service service-name="getProjectIdAndNameFromTask" result-map-name="result">
|
|
<field-map field-name="taskId" env-name="workEffortId"/>
|
|
</service>
|
|
<set field="projectId" from-field="result.projectId"/>
|
|
<set field="projectName" from-field="result.projectName"/>
|
|
</actions>
|
|
<field name="custRequestTypeId"><display-entity entity-name="CustRequestType" description="${description}"/></field>
|
|
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
|
<field name="fromPartyId">
|
|
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}" key-field-name="partyId">
|
|
<sub-hyperlink target="viewprofile?partyId=${fromPartyId}" description="[${fromPartyId}]"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="custRequestName"><display/></field>
|
|
<field name="description"><display/></field>
|
|
<field name="projectName" title="${uiLabelMap.ProjectMgrProjectName}">
|
|
<hyperlink also-hidden="false" description="${projectName}" target="projectView?projectId=${projectId}"/>
|
|
</field>
|
|
<field name="phaseName"><display description="${result.phaseName}"/></field>
|
|
<field name="taskName">
|
|
<hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffort.workEffortName}"/>
|
|
</field>
|
|
<field name="custRequestDate" title="${uiLabelMap.OrderRequestDate}"><display type="date"/></field>
|
|
<field name="createdDate"><display type="date"/></field>
|
|
<field name="lastModifiedDate"><display type="date"/></field>
|
|
</form>
|
|
<form name="RequestRolesInfo" type="list"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-and entity-name="CustRequestParty">
|
|
<field-map field-name="custRequestId" env-name="custRequestId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<row-actions>
|
|
<entity-one entity-name="Person" value-name="person">
|
|
<field-map field-name="partyId" env-name="partyId"/>
|
|
</entity-one>
|
|
</row-actions>
|
|
<field name="partyId" widget-style="buttontext">
|
|
<hyperlink description="${partyId}" target="viewprofile?partyId=${partyId}"/>
|
|
</field>
|
|
<field name="RequestTaker"><display description="${person.personalTitle} ${person.firstName} ${person.middleName} ${person.lastName}"/></field>
|
|
</form>
|
|
<form name="ListRequestsWorkEffortForm" type="list" use-row-submit="true" list-name="requests" paginate-target="requestlist"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-and entity-name="WorkEffortCustRequestView" list-name="requests">
|
|
<field-map field-name="statusId" value="CRQ_REVIEWED"/>
|
|
</entity-and>
|
|
</actions>
|
|
<row-actions>
|
|
<service service-name="getProjectIdAndNameFromTask" result-map-name="sResult">
|
|
<field-map field-name="taskId" env-name="workEffortId"/>
|
|
</service>
|
|
</row-actions>
|
|
<field name="custRequestId">
|
|
<hyperlink target="ViewRequest?custRequestId=${custRequestId}" description="${custRequestName} [${custRequestId}]"/>
|
|
</field>
|
|
<field name="projectId" map-name="sResult">
|
|
<hyperlink target="projectView?projectId=${sResult.projectId}" description="${sResult.projectName} [${sResult.projectId}]"/>
|
|
</field>
|
|
<field name="phaseId" map-name="sResult">
|
|
<display description="${sResult.phaseName} [${sResult.phaseId}]"/>
|
|
</field>
|
|
<field name="workEffortId">
|
|
<hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffortName} [${workEffortId}]"/>
|
|
</field>
|
|
<field name="priority"><display/></field>
|
|
<field name="createdDate"><display type="date"/></field>
|
|
<field name="fromPartyId">
|
|
<display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}" key-field-name="partyId">
|
|
<sub-hyperlink target="viewprofile?partyId=${fromPartyId}" description="[${fromPartyId}]"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="statusId">
|
|
<display-entity also-hidden="false" entity-name="StatusItem"/>
|
|
</field>
|
|
<field name="description"><display/></field>
|
|
</form>
|
|
<form name="ViewRequestWorkEfforts" extends="ViewRequestWorkEfforts" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
|
|
<field name="workEffortId">
|
|
<hyperlink target="taskView?workEffortId=${workEffortId}" description="${workEffortName} [${workEffortId}]"/>
|
|
</field>
|
|
</form>
|
|
<form name="OverviewRequestItems" extends="OverviewRequestItems" extends-resource="component://order/webapp/ordermgr/request/RequestForms.xml">
|
|
<field name="story" title="${uiLabelMap.CommonText}"><display/></field>
|
|
<field name="productId"><ignored/></field>
|
|
<field name="statusId"><ignored/></field>
|
|
<field name="quantity"><ignored/></field>
|
|
<field name="description"><ignored/></field>
|
|
<field name="custRequestItemSeqId"><ignored/></field>
|
|
</form>
|
|
</forms> |