[OFBiz] SVN: r7824 - in trunk/applications/product: webapp/facility/WEB-INF webapp/facility/lookup widget/facility
jacopo@svn.ofbiz.org
jacopo at svn.ofbiz.org
Tue Jun 20 08:15:24 CDT 2006
Author: jacopo
Date: 2006-06-20 08:15:07 -0500 (Tue, 20 Jun 2006)
New Revision: 7824
Modified:
trunk/applications/product/webapp/facility/WEB-INF/controller.xml
trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml
trunk/applications/product/widget/facility/LookupScreens.xml
Log:
Implemented FacilityLocation lookup screen.
Modified: trunk/applications/product/webapp/facility/WEB-INF/controller.xml
===================================================================
--- trunk/applications/product/webapp/facility/WEB-INF/controller.xml 2006-06-20 05:40:50 UTC (rev 7823)
+++ trunk/applications/product/webapp/facility/WEB-INF/controller.xml 2006-06-20 13:15:07 UTC (rev 7824)
@@ -117,6 +117,10 @@
<security auth="true" https="true"/>
<response name="success" type="view" value="LookupVariantProduct"/>
</request-map>
+ <request-map uri="LookupFacilityLocation">
+ <security auth="true" https="true"/>
+ <response name="success" type="view" value="LookupFacilityLocation"/>
+ </request-map>
<!-- ================ Facility Requests ================= -->
<request-map uri="FindFacility">
@@ -955,6 +959,7 @@
<view-map name="LookupPurchaseOrderHeaderAndShipInfo" type="screen" page="component://order/widget/ordermgr/LookupScreens.xml#LookupPurchaseOrderHeaderAndShipInfo"/>
<view-map name="LookupProduct" page="component://product/widget/catalog/LookupScreens.xml#LookupProduct" type="screen"/>
<view-map name="LookupVariantProduct" page="component://product/widget/catalog/LookupScreens.xml#LookupVariantProduct" type="screen"/>
+ <view-map name="LookupFacilityLocation" page="component://product/widget/facility/LookupScreens.xml#LookupFacilityLocation" type="screen"/>
<view-map name="FindFacility" type="screen" page="component://product/widget/facility/FacilityScreens.xml#FindFacility"/>
<view-map name="EditFacility" type="screen" page="component://product/widget/facility/FacilityScreens.xml#EditFacility"/>
Modified: trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml
===================================================================
--- trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml 2006-06-20 05:40:50 UTC (rev 7823)
+++ trunk/applications/product/webapp/facility/lookup/FieldLookupForms.xml 2006-06-20 13:15:07 UTC (rev 7824)
@@ -56,4 +56,43 @@
<field name="facilityName"><display/></field>
<field name="facilityTypeId"><display/></field>
</form>
+ <form name="lookupFacilityLocation" target="LookupFacilityLocation" title="" type="single"
+ default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox">
+ <auto-fields-entity entity-name="FacilityLocation" default-field-type="find"/>
+ <field name="facilityId" widget-style="selectBox">
+ <drop-down allow-empty="false">
+ <entity-options entity-name="Facility" description="${facilityName}" key-field-name="facilityId">
+ <entity-order-by field-name="facilityName"/>
+ </entity-options>
+ </drop-down>
+ </field>
+ <field name="locationTypeEnumId" widget-style="selectBox">
+ <drop-down allow-empty="false">
+ <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
+ <entity-constraint name="enumTypeId" value="FACLOC_TYPE"/>
+ <entity-order-by field-name="sequenceId"/>
+ </entity-options>
+ </drop-down>
+ </field>
+ <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
+ <field name="submitButton" title="${uiLabelMap.CommonLookup}" widget-style="smallSubmit"><submit button-type="button"/></field>
+ </form>
+ <form name="listLookupFacilityLocation" list-name="listIt" paginate-target="LookupFacilityLocation" title="" type="list"
+ default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext">
+ <actions>
+ <service service-name="performFind" result-map-name="result" result-map-list-name="listIt">
+ <field-map field-name="inputFields" env-name="parameters"/>
+ <field-map field-name="entityName" value="FacilityLocation"/>
+ </service>
+ </actions>
+ <auto-fields-entity entity-name="FacilityLocation" default-field-type="display"/>
+ <field name="locationSeqId" title="" widget-style="buttontext">
+ <hyperlink also-hidden="false" target-type="plain" description="${locationSeqId}" target="javascript:set_value('${locationSeqId}')"/>
+ </field>
+ <field name="facilityId"><hidden/></field>
+ <field name="locationTypeEnumId">
+ <display-entity entity-name="Enumeration" description="${description}" key-field-name="enumId"/>
+ </field>
+ </form>
+
</forms>
Modified: trunk/applications/product/widget/facility/LookupScreens.xml
===================================================================
--- trunk/applications/product/widget/facility/LookupScreens.xml 2006-06-20 05:40:50 UTC (rev 7823)
+++ trunk/applications/product/widget/facility/LookupScreens.xml 2006-06-20 13:15:07 UTC (rev 7824)
@@ -28,7 +28,7 @@
<section>
<condition>
<or>
- <if-has-permission permission="CATALOG" action="_VIEW"/>
+ <if-has-permission permission="FACILITY" action="_VIEW"/>
</or>
</condition>
<actions>
@@ -48,4 +48,28 @@
</widgets>
</section>
</screen>
+ <screen name="LookupFacilityLocation">
+ <section>
+ <condition>
+ <or>
+ <if-has-permission permission="FACILITY" action="_VIEW"/>
+ </or>
+ </condition>
+ <actions>
+ <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+ <set field="title" value="${uiLabelMap.PageTitleLookupFacility}"/>
+ <set field="queryString" from-field="result.queryString"/>
+ <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+ <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
+ <decorator-section name="body">
+ <include-form name="lookupFacilityLocation" location="component://product/webapp/facility/lookup/FieldLookupForms.xml" />
+ <include-form name="listLookupFacilityLocation" location="component://product/webapp/facility/lookup/FieldLookupForms.xml" />
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
</screens>
More information about the Svn
mailing list