Author: apatel
Date: Thu Jul 30 14:29:46 2009
New Revision: 799283
URL: http://svn.apache.org/viewvc?rev=799283&view=rev
Log:
Adding lookup for internal organizations only.
Modified:
ofbiz/trunk/applications/party/config/PartyUiLabels.xml
ofbiz/trunk/applications/party/webapp/partymgr/lookup/LookupForms.xml
ofbiz/trunk/applications/party/widget/partymgr/LookupScreens.xml
Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.xml?rev=799283&r1=799282&r2=799283&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/trunk/applications/party/config/PartyUiLabels.xml Thu Jul 30 14:29:46
2009
@@ -5482,6 +5482,9 @@
<value
xml:lang="th">à¸à¹à¸à¸«à¸²à¸à¸²à¸£à¸à¸´à¸à¸à¹à¸à¸à¸µà¹à¹à¸«à¸¡à¸·à¸à¸à¸à¸±à¸</value>
<value xml:lang="zh">æ¥æ¾èç³»æ¹æ³</value>
</property>
+ <property key="PartyLookupInternalOrganization">
+ <value xml:lang="en">Lookup Internal Organization</value>
+ </property>
<property key="PartyLookupParty">
<value xml:lang="de">Akteur suchen</value>
<value xml:lang="en">Lookup Party</value>
Modified: ofbiz/trunk/applications/party/webapp/partymgr/lookup/LookupForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/lookup/LookupForms.xml?rev=799283&r1=799282&r2=799283&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/lookup/LookupForms.xml
(original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/lookup/LookupForms.xml Thu
Jul 30 14:29:46 2009
@@ -425,4 +425,12 @@
<field name="contactMechTypeId"><display-entity
entity-name="ContactMechType"/></field>
<field name="cmDetail"><display description="[${infoString}]
[${tnCountryCode}-${tnAreaCode}-${tnContactNumber}] [${paAddress1},
${paAddress2}, ${paCity}, ${paStateProvinceGeoId}, ${paPostalCode},
${paPostalCodeExt} ${paCountryGeoId}]" also-hidden="false"/></field>
</form>
+
+ <form name="LookupInternalOrganization" type="single"
target="LookupInternalOrganization" default-table-style="basic-table">
+ <field name="roleTypeId"><hidden value="INTERNAL_ORGANIZATIO"/></field>
+ <field name="partyId"><text-find/></field>
+ <field name="groupName"><text-find/></field>
+ <field name="noConditionFind"><hidden value="Y"/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonFind}"><submit
button-type="button"/></field>
+ </form>
</forms>
\ No newline at end of file
Modified: ofbiz/trunk/applications/party/widget/partymgr/LookupScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/LookupScreens.xml?rev=799283&r1=799282&r2=799283&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/LookupScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/LookupScreens.xml Thu Jul 30
14:29:46 2009
@@ -335,4 +335,28 @@
</widgets>
</section>
</screen>
+
+ <screen name="LookupInternalOrganization">
+ <section>
+ <condition>
+ <if-service-permission service-name="partyBasePermissionCheck"
main-action="VIEW"/>
+ </condition>
+ <actions>
+ <property-map resource="PartyUiLabels" map-name="uiLabelMap"
global="true"/>
+ <set field="title"
value="${uiLabelMap.PartyLookupInternalOrganization}"/>
+ <set field="entityName" value="PartyRoleAndPartyDetail"/>
+ <set field="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="LookupDecorator"
location="component://common/widget/CommonScreens.xml">
+ <decorator-section name="search-options">
+ <include-form name="LookupInternalOrganization"
location="component://party/webapp/partymgr/lookup/LookupForms.xml"/>
+ </decorator-section>
+ <decorator-section name="search-results">
+ <include-form name="listLookupPartyGroup"
location="component://party/webapp/partymgr/lookup/LookupForms.xml"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
</screens>