You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2011/07/05 10:15:37 UTC
svn commit: r1142915 [22/28] - in /ofbiz/trunk/specialpurpose: ./ scrum/
scrum/config/ scrum/data/ scrum/data/helpdata/ scrum/data/hookscripts/
scrum/documents/ scrum/dtd/ scrum/entitydef/ scrum/lib/ scrum/patches/
scrum/script/ scrum/script/org/ scrum...
Added: ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml?rev=1142915&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml (added)
+++ ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml Tue Jul 5 08:15:32 2011
@@ -0,0 +1,101 @@
+<?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="listResourcesTasks" extends="MyTasks" extends-resource="component://scrum/widget/TaskForms.xml" paginate-target="listResourcesTask"
+ odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
+ <field name="UpdateButton"><ignored/> </field>
+ <field name="RemoveButton"><ignored/> </field>
+ <field name="taskName"><display description="${taskName} - [${taskId}] "/> </field>
+ <field name="planHours"><display description="${taskInfo.planHours}"/> </field>
+ </form>
+ <form name="AddResourceTaskParty" extends="assignTaskToMe" extends-resource="component://scrum/widget/TaskForms.xml" type="single" target="addTaskPartyAssign"
+ header-row-style="header-row" default-table-style="basic-table">
+ <field name="partyId"><hidden value="${parameters.partyId}"/></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.ScrumProjectName}"><!-- project level -->
+ <drop-down allow-empty="false">
+ <entity-options entity-name="WorkEffort" description="${workEffortName}" key-field-name="workEffortId">
+ <entity-constraint name="workEffortTypeId" value="SCRUM_PROJECT"/>
+ <entity-constraint name="currentStatusId" operator="equals" value="SPJ_ACTIVE"/>
+ <entity-order-by field-name="workEffortName"/>
+ </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="SCRUM_MEMBER"/>
+ <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="listResourcesProjects" type="list" list-name="parties" target="deleteProjectPartyAssign"
+ odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar" use-row-submit="true">
+ <row-actions>
+ <entity-one entity-name="WorkEffort" value-field="project">
+ <field-map field-name="workEffortId" from-field="workEffortId"/>
+ </entity-one>
+ <set field="currentStatusId" from-field="project.currentStatusId"/>
+ <set field="priority" from-field="project.priority"/>
+ <set field="plannedHours" value="${groovy: if (project.estimatedMilliSeconds != null) return project.estimatedMilliSeconds/3600000}"/>
+ <set field="actualHours" value="${groovy: if (project.actualMilliSeconds != null) return project.actualMilliSeconds/3600000}"/>
+ <set field="createdStamp" from-field="project.createdStamp" type="Timestamp"/>
+ <set field="estimatedStartDate" from-field="project.estimatedStartDate" type="Timestamp"/>
+ <set field="estimatedCompletionDate" from-field="rproject.estimatedCompletionDate" type="Timestamp"/>
+ <set field="actualStartDate" from-field="project.actualStartDate" type="Timestamp"/>
+ <set field="actualCompletionDate" from-field="project.actualCompletionDate" type="Timestamp"/>
+ </row-actions>
+ <field name="workEffortId" parameter-name="projectId"><hidden/></field>
+ <field name="partyId"><hidden value="${parameters.partyId}"/></field>
+ <field name="fromDate"><hidden/></field>
+ <field entry-name="workEffortName" name="projectName" parameter-name="workEffortName" title="${uiLabelMap.CommonName}" widget-style="buttontext">
+ <hyperlink target="viewScrumProject" description="${workEffortName}[${workEffortId}]">
+ <parameter param-name="projectId" from-field="workEffortId"/>
+ </hyperlink>
+ </field>
+ <field name="roleTypeId">
+ <display-entity entity-name="RoleType" key-field-name="roleTypeId" description="${description}"/>
+ </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>
+ <field name="removeButton" title="${uiLabelMap.CommonRemove}"><submit/></field>
+ </form>
+ </forms>
\ No newline at end of file
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ProjectForms.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml?rev=1142915&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml (added)
+++ ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml Tue Jul 5 08:15:32 2011
@@ -0,0 +1,412 @@
+<?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="FindResource" type="single" target="FindResource"
+ header-row-style="header-row" default-table-style="basic-table">
+ <field name="resourceName" parameter-name="partyId" title="${uiLabelMap.ScrumResourceName}"><text/></field>
+ <field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
+ </form>
+ <form name="FindMemberResource" type="single" target="FindResource">
+ <actions>
+ <entity-condition entity-name="SecurityGroup" list="securityGroupList">
+ <condition-list combine="or">
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_PRODUCT_OWNER"/>
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_MASTER"/>
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_TEAM"/>
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_STAKEHOLDER"/>
+ </condition-list>
+ <order-by field-name="description"/>
+ </entity-condition>
+ </actions>
+ <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
+ <!--<field name="partyId" title="${uiLabelMap.PartyPartyId}"><text-find/></field>-->
+ <field name="lastName" title="${uiLabelMap.ScrumLastName}"><text-find/></field>
+ <field name="firstName" title="${uiLabelMap.ScrumFirstName}"><text-find/></field>
+ <field name="middleName" title="${uiLabelMap.ScrumMiddleName}"><text-find/></field>
+ <field name="groupId">
+ <drop-down allow-empty="false">
+ <option key="" description=" "/>
+ <list-options list-name="securityGroupList" description="${description}" key-name="groupId"/>
+ </drop-down>
+ </field>
+ <field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
+ </form>
+ <form name="ListResources" type="list" list-name="listIt" paginate-target="FindResource"
+ odd-row-style="alternate-row" header-row-style="header-row" default-table-style="basic-table hover-bar">
+ <actions>
+ <script location="component://scrum/webapp/scrum/WEB-INF/actions/ListScrumResource.groovy"/>
+ <entity-one entity-name="UserLogin" value-field="systemUserLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ </actions>
+ <row-actions>
+ <entity-one entity-name="PartyNameView" value-field="partyNameView">
+ <field-map field-name="partyId" from-field="partyId"/>
+ </entity-one>
+ <entity-and entity-name="PartyRate" list="partyRateList">
+ <field-map field-name="partyId" from-field="partyId"/>
+ <field-map field-name="thruDate" value=""/>
+ </entity-and>
+ <set field="percentageUsed" from-field="partyRateList[0].percentageUsed"/>
+ <set field="rateTypeId" from-field="partyRateList[0].rateTypeId"/>
+ <set field="defaultRate" from-field="partyRateList[0].defaultRate"/>
+ <set field="fromDate" from-field="partyRateList[0].fromDate"/>
+ <set field="rateResult" value="${groovy: if (rateTypeId) rateResult = dispatcher.runSync("getRateAmount"
+ ,["partyId" : partyId, "rateTypeId" : rateTypeId,"userLogin" : systemUserLogin])}" type="List"/>
+ <set field="rateAmount" from-field="rateResult[0].rateAmount"/>
+ </row-actions>
+ <field name="lastName" parameter-name="partyId" title="${uiLabelMap.ScrumMember}" sort-field="true">
+ <hyperlink also-hidden="false" description="${partyNameView.lastName}, ${partyNameView.firstName} ${partyNameView.middleName} - [${partyId}]" target="viewprofile" link-type="hidden-form">
+ <parameter param-name="partyId"/>
+ </hyperlink>
+ </field>
+ <field name="userLoginId"><display/></field>
+ <field name="groupId" sort-field="true">
+ <display-entity entity-name="SecurityGroup" key-field-name="groupId" description="${description}"/>
+ </field>
+ <field name="rateTypeId" use-when="rateTypeId!=null"><display-entity entity-name="RateType" description="${description}" key-field-name="rateTypeId"/></field>
+ <field name="rateAmount" use-when="rateTypeId!=null"><display/></field>
+ <field name="percentageUsed" use-when="rateTypeId!=null"><display/></field>
+ <field name="update" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext" use-when="rateTypeId!=null">
+ <hyperlink target="QuickAddPartyRate" description="${uiLabelMap.CommonUpdate}" link-type="hidden-form">
+ <parameter param-name="partyId"/>
+ <parameter param-name="rateTypeId"/>
+ <parameter param-name="fromDate"/>
+ </hyperlink>
+ </field>
+ <field name="remove" title="${uiLabelMap.CommonRemove}" widget-style="buttontext">
+ <hyperlink target="removeResource" description="${uiLabelMap.CommonRemove}" link-type="hidden-form" confirmation-message="Are you sure to delete this person ?">
+ <parameter param-name="partyId"/>
+ <parameter param-name="groupId"/>
+ <parameter param-name="userLoginId"/>
+ </hyperlink>
+ </field>
+ </form>
+
+ <form name="ListResourcesNoAction" extends="ListResources">
+ <field name="remove"><hidden/></field>
+ </form>
+ <form name="ListResourcesForStakeholder" extends="ListResources">
+ <field name="remove"><hidden/></field>
+ <field name="lastName" parameter-name="partyId" title="${uiLabelMap.ScrumMember}" sort-field="true">
+ <display description="${partyNameView.lastName}, ${partyNameView.firstName} ${partyNameView.middleName} - [${partyId}]"/>
+ </field>
+ </form>
+ <form name="AddResource" type="single" target="addResource"
+ header-row-style="header-row" default-table-style="basic-table">
+ <actions>
+ <entity-condition entity-name="SecurityGroup" list="securityGroupList">
+ <condition-list combine="or">
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_PRODUCT_OWNER"/>
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_MASTER"/>
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_TEAM"/>
+ <condition-expr field-name="groupId" operator="equals" value="SCRUM_STAKEHOLDER"/>
+ </condition-list>
+ <order-by field-name="description"/>
+ </entity-condition>
+ <entity-condition entity-name="ScrumPersonAndCompany" distinct="true" list="listPerson">
+ <condition-list combine="and">
+ <condition-expr field-name="groupName" from-field="${nullField}" operator="not-equals"/>
+ <condition-expr field-name="statusId" value="PARTY_DISABLED" operator="not-equals"/>
+ </condition-list>
+ <select-field field-name="lastName"/>
+ <select-field field-name="firstName"/>
+ <select-field field-name="middleName"/>
+ <select-field field-name="userLoginId"/>
+ <select-field field-name="partyId"/>
+ <order-by field-name="lastName"/>
+ </entity-condition>
+ </actions>
+ <field name="userLoginIdDesc"><hidden/></field>
+ <field name="partyId" title="${uiLabelMap.Person}" tooltip="${uiLabelMap.CommonPerson} | User Login Id" event="onchange" action="javascript:document.AddResource.userLoginIdDesc.value=this.options[this.selectedIndex].text;" parameter-name="partyId">
+ <drop-down allow-empty="false">
+ <option key="" description="- ${uiLabelMap.CommonSelectOne} -"/>
+ <list-options key-name="partyId" list-name="listPerson" description="${lastName} ${firstName} ${middleName} |${userLoginId}"/>
+ </drop-down>
+ </field>
+ <field name="groupId">
+ <drop-down allow-empty="false">
+ <list-options list-name="securityGroupList" description="${description}" key-name="groupId"/>
+ </drop-down>
+ </field>
+ <field name="addButton" ><submit confirmation-message="Are you sure to add this person ?"/></field>
+ </form>
+ <form name="AddPartyRole" extends="AddPartyRole" extends-resource="component://party/widget/partymgr/PartyForms.xml">
+ <field name="roleTypeId">
+ <drop-down allow-empty="false">
+ <entity-options entity-name="RoleType" description="${description}">
+ <entity-constraint name="parentTypeId" operator="equals" value="SCRUM_MEMBER"/>
+ <entity-order-by field-name="description"/>
+ </entity-options>
+ </drop-down>
+ </field>
+ </form>
+ <form name="ListPreference" type="multi" target="updatePreference?partyId=${parameters.partyId}" list-name="userPreferenceList"
+ odd-row-style="alternate-row" default-table-style="basic-table hover-bar" separate-columns="true" use-row-submit="true" >
+ <row-actions>
+ <service service-name="getUserPreference" result-map="values">
+ <field-map field-name="userPrefTypeId" from-field="enumId"/>
+ </service>
+ <set field="userPrefValue" from-field="values.userPrefValue"/>
+ <entity-and entity-name="UserLogin" list="userLogins">
+ <field-map field-name="partyId" from-field="parameters.partyId"/>
+ </entity-and>
+ <set field="userLoginId" from-field="userLogins[0].userLoginId"/>
+ </row-actions>
+ <field name="_rowSubmit"><hidden value="Y"/></field>
+ <field name="enumId" parameter-name="userPrefTypeId"><hidden value="${enumId}"/></field>
+ <field name="enumTypeId" parameter-name="userPrefGroupTypeId"><hidden value="${enumTypeId}"/></field>
+ <field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
+ <field name="partyId"><hidden value="${parameters.partyId}"/></field>
+ <field name="userLoginId"><hidden/></field>
+ <field name="userPrefValue" title="Enable">
+ <drop-down>
+ <option key="N" description="No"/>
+ <option key="Y" description="Yes"/>
+ </drop-down>
+ </field>
+ <field name="submit" title="${uiLabelMap.CommonSubmit}"><submit/></field>
+ </form>
+ <form name="ListPreferenceNoAction" extends="ListPreference">
+ <field name="submit"><hidden/></field>
+ </form>
+ <form name="FindPartyRevision" type="single" target="findPartyRevision">
+ <field name="partyId"><hidden value="${parameters.partyId}"/></field>
+ <field name="contentName" title="${uiLabelMap.ScrumRevision}"><text/></field>
+ <field name="description" title="${uiLabelMap.CommonMessage}"><text/></field>
+ <field name="findButton" title="${uiLabelMap.CommonFind}"><submit/></field>
+ </form>
+ <form name="ListPartyRevisions" extends="ListTaskRevisions" extends-resource="component://scrum/widget/TaskForms.xml" paginate-target="findPartyRevision">
+ <actions>
+ <set field="parameters.workEffortTypeId" value="PROJECT"/>
+ <set field="fieldList[]" value="workEffortId"/>
+ <set field="fieldList[]" value="lastStatusUpdate"/>
+ <entity-condition list="contents" entity-name="ContentRole">
+ <condition-list>
+ <condition-expr field-name="partyId" from-field="parameters.partyId"/>
+ <condition-expr field-name="roleTypeId" value="OWNER"/>
+ </condition-list>
+ </entity-condition>
+ <set field="contentIds" value="${groovy:return org.ofbiz.entity.util.EntityUtil.getFieldListFromEntityList(contents, "contentId", true)}" type="List" />
+ <entity-condition list="listIt" entity-name="WorkEffortAndContentDataResource">
+ <condition-list>
+ <condition-expr field-name="contentName" operator="like" value="%${parameters.contentName}%" ignore-if-empty="true" ignore-case="true"/>
+ <condition-expr field-name="description" operator="like" value="%${parameters.description}%" ignore-if-empty="true" ignore-case="true"/>
+ <condition-expr field-name="workEffortContentTypeId" value="TASK_SUB_INFO"/>
+ <condition-expr field-name="contentId" operator="in" from-field="contentIds"/>
+ </condition-list>
+ <order-by field-name="fromDate"/>
+ </entity-condition>
+ </actions>
+ <field name="partyId"><hidden value="${parameters.partyId}"/></field>
+ </form>
+ <form name="AddPartyRate" extends="AddPartyRate" extends-resource="component://party/widget/partymgr/PartyForms.xml">
+ </form>
+ <form name="ListPartyRates" extends="ListPartyRates" extends-resource="component://party/widget/partymgr/PartyForms.xml">
+ <actions>
+ <entity-condition entity-name="PartyRate" filter-by-date="true">
+ <condition-expr field-name="partyId" from-field="partyId"/>
+ <order-by field-name="rateTypeId"/>
+ </entity-condition>
+ <entity-one entity-name="UserLogin" value-field="systemUserLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ </actions>
+ <row-actions>
+ <service service-name="getRateAmount" result-map="rateResult">
+ <field-map field-name="fromDate" from-field="fromDate"/>
+ <field-map field-name="partyId" from-field="partyId"/>
+ <field-map field-name="rateTypeId" from-field="rateTypeId"/>
+ <field-map field-name="userLogin" from-field="systemUserLogin"/>
+ </service>
+ <set field="rateDefaultAmount" from-field="rateResult.rateAmount"/>
+ <set field="periodTypeId" from-field="rateResult.periodTypeId"/>
+ <set field="rateCurrencyUomId" from-field="rateResult.rateCurrencyUomId"/>
+ <set field="rateLevel" from-field="rateResult.level"/>
+ <set field="rateAmountFromDate" from-field="rateResult.fromDate"/>
+ </row-actions>
+ </form>
+
+ <form name="QuickAddParty" type="single" target="createQuickAddParty">
+ <field name="firstName" title="${uiLabelMap.PartyFirstName}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <text/>
+ </field>
+ <field name="middleName" title="${uiLabelMap.PartyMiddleName}">
+ <text size="10"/>
+ </field>
+ <field name="lastName" title="${uiLabelMap.PartyLastName}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <text/>
+ </field>
+ <field name="emailAddress" title="${uiLabelMap.PartyEmailAddress}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <text size="50"/>
+ </field>
+ <field name="userLoginId" title="${uiLabelMap.CommonUsername}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <text/>
+ </field>
+ <field name="password" title="${uiLabelMap.CommonPassword}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <password/>
+ </field>
+ <field name="confirmPassword" title="${uiLabelMap.ScrumVerifyPassword}" widget-style="required" tooltip="${uiLabelMap.PartyRepeatPassword}">
+ <password/>
+ </field>
+ <field name="roleTypeId">
+ <drop-down allow-empty="false">
+ <entity-options description="${description}" entity-name="RoleType">
+ <entity-constraint name="parentTypeId" value="SCRUM_MEMBER"/>
+ <entity-order-by field-name="roleTypeId"/>
+ </entity-options>
+ </drop-down>
+ </field>
+ <field name="company" title="${uiLabelMap.ScrumCompanyNameShow}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <lookup target-form-name="LookupPartyGroup"></lookup>
+ </field>
+ <field name="createButton" title="${uiLabelMap.CommonCreate}"><submit/></field>
+ </form>
+ <form name="QuickAddPartyRelationship" type="single" target="createQuickAddPartyRelationship">
+ <field name="contactPartyId" title="${uiLabelMap.PartyPartyId}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <lookup target-form-name="LookupPerson"></lookup>
+ </field>
+ <field name="accountPartyId" title="${uiLabelMap.ScrumCompanyPartyId}" widget-style="required" tooltip="${uiLabelMap.CommonRequired}">
+ <lookup target-form-name="LookupPartyGroup"></lookup>
+ </field>
+ <field name="comments"><hidden/> </field>
+ <field name="createButton" title="${uiLabelMap.CommonCreate}"><submit/></field>
+ </form>
+ <form name="UpdateCompanyAndOwner" type="single" extends="EditProduct" extends-resource="component://scrum/widget/scrumForms.xml"
+ header-row-style="header-row" default-table-style="basic-table">
+ <alt-target use-when="product!=null" target="UpdateCompanyAndOwner"/>
+ <field name="partyId" title="${uiLabelMap.ScrumCompanyAndPerson}" tooltip="${uiLabelMap.ScrumCompanyNameShow} - ${uiLabelMap.ScrumProductName}" event="onchange" action="javascrip:document.UpdateCompanyAndOwner.partyCompany.value=this.options[this.selectedIndex].text;" parameter-name="partyId" use-when="companyCurrent!=null">
+ <drop-down allow-empty="false" current-description="${companyCurrentList[0].groupName}[${companyCurrentList[0].partyIdFrom}] - ${companyCurrentList[0].lastName} ${companyCurrentList[0].firstName} ${companyCurrentList[0].middleName}" >
+ <option key="${companyCurrentList[0].groupName}[${companyCurrentList[0].partyIdFrom}] - ${companyCurrentList[0].lastName} ${companyCurrentList[0].firstName} ${companyCurrentList[0].middleName}(${companyCurrentList[0].partyId})" description="${companyCurrentList[0].groupName}[${companyCurrentList[0].partyIdFrom}] - ${companyCurrentList[0].lastName} ${companyCurrentList[0].firstName} ${companyCurrentList[0].middleName}"/>
+ <option key="" description=""/>
+ <list-options list-name="scrumRolesPersonAndCompanyList" description="${groupName}[${partyIdFrom}] - ${lastName} ${firstName} ${middleName}" key-name="partyId"/>
+ </drop-down>
+ </field>
+ <field name="statusId"><hidden/></field>
+ <field name="internalName"><hidden/></field>
+ <field name="longDescription"><hidden/></field>
+ <field name="submitButton" title="${uiLabelMap.ScrumAssign}"><submit button-type="button"/></field>
+ </form>
+ <form name="AddProductMember" type="single" target="addProductMember"
+ header-row-style="header-row" default-table-style="basic-table">
+ <actions>
+ <entity-condition entity-name="ScrumMemberUserLoginAndSecurityGroup" distinct="true" list="listPerson">
+ <condition-list combine="and">
+ <condition-expr field-name="thruDate" value="" operator="equals" ignore-if-empty="true"/>
+ <condition-expr field-name="partyStatusId" value="PARTY_DISABLED" operator="not-equals"/>
+ <condition-expr field-name="groupId" value="SCRUM_TEAM" operator="not-equals"/>
+ <condition-expr field-name="groupId" value="SCRUM_PRODUCT_OWNER" operator="not-equals"/>
+ </condition-list>
+ <select-field field-name="lastName"/>
+ <select-field field-name="firstName"/>
+ <select-field field-name="middleName"/>
+ <select-field field-name="userLoginId"/>
+ <select-field field-name="partyId"/>
+ <order-by field-name="lastName"/>
+ </entity-condition>
+ </actions>
+ <field name="productId"><hidden value="${parameters.productId}"/></field>
+ <field name="memberId" parameter-name="partyId" title="${uiLabelMap.Person}" tooltip="${uiLabelMap.CommonPerson}">
+ <drop-down allow-empty="false">
+ <option key="" description="- ${uiLabelMap.CommonSelectOne} -"/>
+ <list-options key-name="partyId" list-name="listPerson" description="${lastName} ${firstName} ${middleName}"/>
+ </drop-down>
+ </field>
+ <field name="roleTypeId">
+ <drop-down current="first-in-list" allow-empty="false" >
+ <entity-options entity-name="RoleType" description="${description}">
+ <entity-constraint name="parentTypeId" operator="equals" value="SCRUM_MEMBER"/>
+ <entity-constraint name="roleTypeId" operator="not-equals" value="SCRUM_TEAM"/>
+ <entity-constraint name="roleTypeId" operator="not-equals" value="PRODUCT_OWNER_COMP"/>
+ <entity-constraint name="roleTypeId" operator="not-equals" value="PRODUCT_OWNER"/>
+ </entity-options>
+ </drop-down>
+ </field>
+ <field name="submitButton" title="${uiLabelMap.ScrumAssign}"><submit button-type="button"/></field>
+ </form>
+ <form name="ProductMemberList" type="list" list-name="productAndRoleList" paginate-target="ProductMember"
+ odd-row-style="alternate-row" header-row-style="header-row" default-table-style="basic-table hover-bar">
+ <actions>
+ <entity-condition entity-name="ProductAndRole" list="productAndRoleList">
+ <condition-list combine="and">
+ <condition-expr field-name="thruDate" value="" operator="equals"/>
+ <condition-expr field-name="productId" operator="equals" from-field="productId"/>
+ <condition-expr field-name="statusId" operator="equals" value="PRODUCT_ACTIVE"/>
+ <condition-list combine="or">
+ <condition-expr field-name="roleTypeId" value="SCRUM_TEAM" operator="not-equals"/>
+ <condition-expr field-name="roleTypeId" value="SCRUM_MASTER" operator="not-equals"/>
+ </condition-list>
+ </condition-list>
+ <order-by field-name="roleTypeId"/>
+ </entity-condition>
+ </actions>
+ <row-actions>
+ <entity-one entity-name="PartyNameView" value-field="partyNameView">
+ <field-map field-name="partyId" from-field="partyId"/>
+ </entity-one>
+ <set field="compCheck" value="${groovy: if (roleTypeId=="PRODUCT_OWNER_COMP" || roleTypeId=="PRODUCT_OWNER") compCheck = true; else compCheck = false;}" type="Boolean"/>
+ </row-actions>
+ <field name="lastName" parameter-name="partyId" title="${uiLabelMap.ScrumMember}" sort-field="true">
+ <hyperlink also-hidden="false" description="${partyNameView.lastName} ${partyNameView.middleName} ${partyNameView.firstName} ${partyNameView.groupName} - [${partyId}]" target="viewprofile" link-type="hidden-form">
+ <parameter param-name="partyId"/>
+ </hyperlink>
+ </field>
+ <field name="roleTypeId">
+ <display-entity entity-name="RoleType" key-field-name="roleTypeId" description="${description}"/>
+ </field>
+ <field name="fromDate" sort-field="true">
+ <display type="date"/>
+ </field>
+ <field name="remove" title="${uiLabelMap.CommonRemove}" widget-style="buttontext" use-when="!compCheck">
+ <hyperlink target="removeProductMember" description="${uiLabelMap.CommonRemove}" link-type="hidden-form">
+ <parameter param-name="productId" from-field="productId"/>
+ <parameter param-name="partyId"/>
+ <parameter param-name="roleTypeId"/>
+ <parameter param-name="fromDate"/>
+ </hyperlink>
+ </field>
+ </form>
+ <form name="ProductMemberInfo" extends="ProductMemberList">
+ <field name="remove" use-when="!compCheck"><ignored/></field>
+ </form>
+ <form name="QuickAddPartyRate" type="single" target="updateQuickAddPartyRate" default-map-name="partyRateMap"
+ header-row-style="header-row" default-table-style="basic-table">
+ <field name="periodTypeId"><hidden value="${periodTypeId}"/> </field>
+ <field name="rateCurrencyUomId"><hidden value="${rateCurrencyUomId}"/></field>
+ <field name="partyId"><display/></field>
+ <field name="rateTypeId" title="${uiLabelMap.WorkEffortTimesheetRateType}">
+ <drop-down allow-empty="false">
+ <entity-options entity-name="RateType" description="${description}" key-field-name="rateTypeId"></entity-options>
+ </drop-down>
+ </field>
+ <field name="defaultRate">
+ <drop-down no-current-selected-key="N">
+ <option key="N"/>
+ <option key="Y"/>
+ </drop-down>
+ </field>
+ <field name="rateAmount" tooltip="${uiLabelMap.PartyOverrideDefaultRateAmount}"><text size="10" default-value="${rateDefaultAmount}"/></field>
+ <field name="percentageUsed"><text size="10"/></field>
+ <field name="update" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext"><submit/></field>
+ </form>
+ <form name="PartyRevisions" extends="ListTaskRevisions" extends-resource="component://scrum/widget/TaskForms.xml" paginate-target="viewprofile" view-size="10">
+ </form>
+</forms>
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ResourceForms.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml?rev=1142915&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml Tue Jul 5 08:15:32 2011
@@ -0,0 +1,424 @@
+<?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.
+-->
+
+<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
+ <screen name="FindResource">
+ <section>
+ <actions>
+ <set field="headerItem" value="admin"/>
+ <set field="titleProperty" value="PageTitleScrumMember"/>
+ <set field="labelTitleProperty" value="scrumResourceName"/>
+ <set field="workEffortId" from-field="parameters.projectId"/>
+ <set field="tabButtonItem" value="ProjectMember"/>
+ <set field="parameters.sortField" from-field="parameters.sortField" default-value="lastName"/>
+ <set field="noConditionFind" value="Y"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <container style="button-bar">
+ <link text="${uiLabelMap.ScrumCreateNewParty}" target="quickAddParty" style="buttontext create"/>
+ <link text="${uiLabelMap.ScrumCreatePartyRelationship}" target="quickAddPartyRelationship" style="buttontext create"/>
+ </container>
+ <screenlet id="FindMemberResource" title="${uiLabelMap.ScrumFindScrumMember}" collapsible="true" initially-collapsed="true">
+ <include-form name="FindMemberResource" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ <section>
+ <condition>
+ <if-service-permission service-name="scrumPermissionCheck" main-action="CREATE" resource-description="MEMBER"/>
+ </condition>
+ <widgets>
+ <screenlet id="AddResourcePanel" title="${uiLabelMap.ScrumAddScrumMember}" collapsible="true">
+ <include-form name="AddResource" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </widgets>
+ </section>
+ <section>
+ <condition>
+ <if-service-permission service-name="scrumPermissionCheck" main-action="CREATE" resource-description="MEMBER"/>
+ </condition>
+ <widgets>
+ <screenlet id="listResources" title="${uiLabelMap.ScrumScrumMembersList}" collapsible="true">
+ <include-form name="ListResources" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </widgets>
+ <fail-widgets>
+ <section>
+ <condition>
+ <if-service-permission service-name="scrumPermissionCheck" main-action="VIEW" resource-description="PRODUCT"/>
+ </condition>
+ <widgets>
+ <screenlet id="listResourcesNoAction" title="${uiLabelMap.ScrumScrumMembersList}" collapsible="true">
+ <include-form name="ListResourcesNoAction" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </widgets>
+ <fail-widgets>
+ <screenlet id="listResourcesForStakeholder" title="${uiLabelMap.ScrumScrumMembersList}" collapsible="true">
+ <include-form name="ListResourcesForStakeholder" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </fail-widgets>
+ </section>
+
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="viewprofile">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleViewPartyProfile"/>
+ <set field="tabButtonItem" value="viewprofile"/>
+ <set field="labelTitleProperty" value="PartyTaxAuthInfos"/>
+ <set field="partyId" from-field="parameters.partyId"/>
+ <set field="layoutSettings.javaScripts[]" value="/images/prototypejs/prototype.js" global="true"/>
+ <set field="layoutSettings.javaScripts[]" value="/images/prototypejs/control.progress_bar.js" global="true"/>
+ <set field="layoutSettings.styleSheets[]" value="/images/prototypejs/progress_bar.css" global="true"/>
+ <set field="layoutSettings.javaScripts[]" value="/partymgr/js/PartyProfileContent.js" global="true"/>
+ <script location="component://party/webapp/partymgr/WEB-INF/actions/party/ViewProfile.groovy"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <and>
+ <if-empty field="partyId"/>
+ <not><if-empty field="parameters.telno"/></not>
+ </and>
+ </condition>
+ <actions>
+ <service service-name="findPartyFromTelephone" auto-field-map="true" result-map="telnoMap"/>
+ <entity-one entity-name="Party" value-field="party">
+ <field-map field-name="partyId" from-field="telnoMap.partyId"/>
+ </entity-one>
+ <set field="parameters.partyId" from-field="party.partyId"/>
+ </actions>
+ <widgets/>
+ </section>
+ <section>
+ <condition>
+ <and>
+ <if-empty field="partyId"/>
+ <not><if-empty field="parameters.email"/></not>
+ </and>
+ </condition>
+ <actions>
+ <service service-name="findPartyFromEmailAddress" result-map="emailMap">
+ <field-map field-name="address" from-field="parameters.email"/>
+ </service>
+ <entity-one entity-name="Party" value-field="party">
+ <field-map field-name="partyId" from-field="emailMap.partyId"/>
+ </entity-one>
+ <set field="parameters.partyId" from-field="party.partyId"/>
+ </actions>
+ <widgets/>
+ </section>
+ <section>
+ <condition>
+ <not><if-empty field="party"/></not>
+ </condition>
+ <widgets>
+ <section>
+ <condition>
+ <if-compare field="showOld" operator="equals" value="true" type="Boolean"/>
+ </condition>
+ <widgets>
+ <container style="button-bar button-style-2">
+ <link target="viewprofile" text="${uiLabelMap.PartyHideOld}">
+ <parameter param-name="partyId" from-field="party.partyId"/>
+ </link>
+ </container>
+ </widgets>
+ <fail-widgets>
+ <container style="button-bar button-style-2">
+ <link target="viewprofile" text="${uiLabelMap.PartyShowOld}">
+ <parameter param-name="partyId" from-field="party.partyId"/>
+ <parameter param-name="SHOW_OLD" value="true"/>
+ </link>
+ </container>
+ </fail-widgets>
+ </section>
+ <section>
+ <widgets>
+ <include-portal-page id="ScrumPartyProfile"/>
+ </widgets>
+ </section>
+ </widgets>
+ <fail-widgets>
+ <container>
+ <label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label>
+ </container>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="viewroles">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleViewPartyRole"/>
+ <set field="headerItem" value="find"/>
+ <set field="tabButtonItem" value="viewroles"/>
+ <set field="labelTitleProperty" value="PartyMemberRoles"/>
+ <entity-condition entity-name="RoleTypeAndParty" list="partyRoles">
+ <condition-list combine="and">
+ <condition-expr field-name="partyId" operator="equals" value="${parameters.partyId}"/>
+ <condition-expr field-name="roleTypeId" operator="not-equals" value="_NA_"/>
+ <condition-expr field-name="parentTypeId" operator="equals" value="SCRUM_MEMBER"/>
+ </condition-list>
+ </entity-condition>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.PartyMemberRoles}" navigation-form-name="ViewPartyRoles">
+ <include-form name="ViewPartyRoles" location="component://party/widget/partymgr/PartyForms.xml"/>
+ </screenlet>
+ <screenlet title="${uiLabelMap.PartyAddToRole}">
+ <include-form name="AddPartyRole" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="Preferences">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleViewPartyPreferences"/>
+ <set field="headerItem" value="projectMember"/>
+ <set field="tabButtonItem" value="preferences"/>
+ <set field="partyId" from-field="parameters.partyId"/>
+ <entity-and entity-name="Enumeration" list="userPreferenceList">
+ <field-map field-name="enumTypeId" value="SCRUM_PREFERENCE"/>
+ </entity-and>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <and>
+ <not><if-empty field="partyId"></if-empty></not>
+ <if-service-permission service-name="scrumPermissionCheck" main-action="CREATE" resource-description="MEMBER"/>
+ <if-compare-field field="partyId" operator="equals" to-field="userLogin.partyId"/>
+ </and>
+ </condition>
+ <widgets>
+ <screenlet title="${uiLabelMap.CommonPreferences}" >
+ <include-form name="ListPreference" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </widgets>
+ <fail-widgets>
+ <screenlet title="${uiLabelMap.CommonPreferences}" >
+ <include-form name="ListPreferenceNoAction" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="EditPartyRates">
+ <section>
+ <actions>
+ <set field="titleProperty" value="PageTitleEditPartyRates"/>
+ <set field="headerItem" value="find"/>
+ <set field="tabButtonItem" value="EditPartyRates"/>
+ <set field="labelTitleProperty" value="PageTitleEditPartyRates"/>
+ <set field="partyId" from-field="parameters.partyId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet id="AddPartyRatePanel" title="${uiLabelMap.PageTitleEditPartyRates}" collapsible="true">
+ <include-form name="AddPartyRate" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ <include-form name="ListPartyRates" location="component://scrum/widget/ResourceForms.xml"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="PartyRevisions">
+ <section>
+ <actions>
+ <set field="title" value="${uiLabelMap.ScrumRevisions}"/>
+ <set field="parameters.custRequestId" from-field="custRequestWorkEffort[0].custRequestId"/>
+ <set field="parameters.noConditionFind" value="Y"/>
+ <entity-condition list="contents" entity-name="ContentRole">
+ <condition-list>
+ <condition-expr field-name="partyId" from-field="parameters.partyId"/>
+ <condition-expr field-name="roleTypeId" value="OWNER"/>
+ </condition-list>
+ </entity-condition>
+ <set field="contentIds" value="${groovy:return org.ofbiz.entity.util.EntityUtil.getFieldListFromEntityList(contents, "contentId", true)}" type="List" />
+ <entity-condition list="listIt" entity-name="WorkEffortAndContentDataResource">
+ <condition-list>
+ <condition-expr field-name="workEffortContentTypeId" value="TASK_SUB_INFO"/>
+ <condition-expr field-name="contentId" operator="in" from-field="contentIds"/>
+ </condition-list>
+ <order-by field-name="fromDate"/>
+ </entity-condition>
+ </actions>
+ <widgets>
+ <screenlet title="${title}">
+ <include-form name="PartyRevisions" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="FindPartyRevision">
+ <section>
+ <actions>
+ <set field="titleProperty" value="ScrumRevisions"/>
+ <set field="tabButtonItem" value="findPartyRevision"/>
+ <set field="partyId" from-field="parameters.partyId"/>
+ <entity-and entity-name="Enumeration" list="userPreferenceList">
+ <field-map field-name="enumTypeId" value="SCRUM_PREFERENCE"/>
+ </entity-and>
+ <set field="permissionMap.partyId" from-field="parameters.partyId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet name="findPartyRevision" title="Find Revision">
+ <include-form location="component://scrum/widget/ResourceForms.xml" name="FindPartyRevision"/>
+ </screenlet>
+ <screenlet name="listPartyRevision" title="Revisions list">
+ <include-form location="component://scrum/widget/ResourceForms.xml" name="ListPartyRevisions"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="QuickAddParty">
+ <section>
+ <condition>
+ <if-has-permission permission="SCRUM" action="_ADMIN"/>
+ </condition>
+ <actions>
+ <set field="headerItem" value="admin"/>
+ <set field="titleProperty" value="PageTitleScrumMember"/>
+ <set field="tabButtonItem" value="ProjectMember"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.PartyEditPersonalInformation}">
+ <include-form location="component://scrum/widget/ResourceForms.xml" name="QuickAddParty"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="QuickAddPartyRelationship">
+ <section>
+ <condition>
+ <if-has-permission permission="SCRUM" action="_ADMIN"/>
+ </condition>
+ <actions>
+ <set field="headerItem" value="admin"/>
+ <set field="titleProperty" value="PageTitleScrumMember"/>
+ <set field="tabButtonItem" value="ProjectMember"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.ScrumPartyRelationship}">
+ <include-form location="component://scrum/widget/ResourceForms.xml" name="QuickAddPartyRelationship"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="QuickAddPartyRate">
+ <section>
+ <condition>
+ <if-has-permission permission="SCRUM" action="_ADMIN"/>
+ </condition>
+ <actions>
+ <set field="headerItem" value="admin"/>
+ <set field="titleProperty" value="PageTitleScrumMember"/>
+ <set field="tabButtonItem" value="ProjectMember"/>
+ <entity-one entity-name="PartyRate" value-field="partyRateMap"/>
+ <entity-one entity-name="UserLogin" value-field="systemUserLogin">
+ <field-map field-name="userLoginId" value="system"/>
+ </entity-one>
+ <service service-name="getRateAmount" result-map="rateResult" >
+ <field-map field-name="fromDate" from-field="partyRateMap.fromDate"/>
+ <field-map field-name="partyId" from-field="partyRateMap.partyId"/>
+ <field-map field-name="rateTypeId" from-field="partyRateMap.rateTypeId"/>
+ <field-map field-name="userLogin" from-field="systemUserLogin"/>
+ </service>
+ <set field="rateDefaultAmount" from-field="rateResult.rateAmount"/>
+ <set field="periodTypeId" from-field="rateResult.periodTypeId"/>
+ <set field="rateCurrencyUomId" from-field="rateResult.rateCurrencyUomId"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.PageTitleEditPartyRates}">
+ <include-form location="component://scrum/widget/ResourceForms.xml" name="QuickAddPartyRate"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ProductMember">
+ <section>
+ <actions>
+ <set field="headerItem" value="admin"/>
+ <set field="titleProperty" value="PageTitleScrumProductMembers"/>
+ <set field="productId" from-field="parameters.productId"/>
+ <set field="tabButtonItem" value="productMember"/>
+ <entity-one value-field="product" entity-name="Product"/>
+ <script location="component://scrum/webapp/scrum/WEB-INF/actions/ListScrumRolesPersonAndCompany.groovy"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonScrumProductDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet id="UpdateCompanyAndOwner" title="${uiLabelMap.ScrumAddCompanyAndProductOwner}" collapsible="true">
+ <include-form name="UpdateCompanyAndOwner" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ <screenlet id="AddResourcePanel" title="${uiLabelMap.ScrumAddProductMember}" collapsible="true">
+ <include-form name="AddProductMember" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ <screenlet id="listResources" title="${uiLabelMap.ScrumProductMembersList}" collapsible="true">
+ <include-form name="ProductMemberList" location="component://scrum/widget/ResourceForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+</screens>
\ No newline at end of file
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/specialpurpose/scrum/widget/ResourceScreens.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml