svn commit: r429351 - in /incubator/ofbiz/trunk/applications/product: webapp/facility/WEB-INF/controller.xml webapp/facility/facility/PickMoveStock.ftl widget/facility/FacilityScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r429351 - in /incubator/ofbiz/trunk/applications/product: webapp/facility/WEB-INF/controller.xml webapp/facility/facility/PickMoveStock.ftl widget/facility/FacilityScreens.xml

jacopoc
Author: jacopoc
Date: Mon Aug  7 07:16:51 2006
New Revision: 429351

URL: http://svn.apache.org/viewvc?rev=429351&view=rev
Log:
Implemented printer friendly screen for the stock moves page: this is an example of how we can use the new SimpleDecorator.

Modified:
    incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
    incubator/ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl
    incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml

Modified: incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml?rev=429351&r1=429350&r2=429351&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml Mon Aug  7 07:16:51 2006
@@ -542,6 +542,10 @@
         <security https="true" auth="true"/>
         <response name="success" type="view" value="PickMoveStock"/>
     </request-map>
+    <request-map uri="PickMoveStockSimple">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="PickMoveStockSimple"/>
+    </request-map>
     <request-map uri="processPhysicalStockMove">
         <security https="true" auth="true"/>
         <event type="service-multi" path="" invoke="processPhysicalStockMove"/>
@@ -975,6 +979,7 @@
     <view-map name="PicklistOptions" type="screen" page="component://product/widget/facility/FacilityScreens.xml#PicklistOptions"/>
     <view-map name="PicklistManage" type="screen" page="component://product/widget/facility/FacilityScreens.xml#PicklistManage"/>
     <view-map name="PickMoveStock" type="screen" page="component://product/widget/facility/FacilityScreens.xml#PickMoveStock"/>
+    <view-map name="PickMoveStockSimple" type="screen" page="component://product/widget/facility/FacilityScreens.xml#PickMoveStockSimple"/>
     <view-map name="PicklistReport.pdf" type="screenfop" page="component://product/widget/facility/FacilityScreens.xml#PicklistReport.fo"/>
 
     <view-map name="FindFacilityGroup" type="screen" page="component://product/widget/facility/FacilityGroupScreens.xml#FindFacilityGroup"/>

Modified: incubator/ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl?rev=429351&r1=429350&r2=429351&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/facility/facility/PickMoveStock.ftl Mon Aug  7 07:16:51 2006
@@ -20,7 +20,8 @@
         <div class="simple-right-half">
             <a href="<@ofbizUrl>PicklistOptions?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="submenutext">${uiLabelMap.ProductPicklistOptions}</a>
             <a href="<@ofbizUrl>PicklistManage?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="submenutext">${uiLabelMap.ProductPicklistManage}</a>
-            <a href="<@ofbizUrl>PickMoveStock?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="submenutextright">${uiLabelMap.ProductStockMoves}</a>
+            <a href="<@ofbizUrl>PickMoveStock?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="submenutext">${uiLabelMap.ProductStockMoves}</a>
+            <a href="<@ofbizUrl>PickMoveStockSimple?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="submenutextright">${uiLabelMap.CommonPrint}</a>
         </div>
         <div class="boxhead">${uiLabelMap.ProductStockMovesNeeded}</div>
     </div>

Modified: incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml?rev=429351&r1=429350&r2=429351&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/product/widget/facility/FacilityScreens.xml Mon Aug  7 07:16:51 2006
@@ -521,6 +521,39 @@
             </widgets>
         </section>
     </screen>
+    <screen name="PickMoveStockSimple">
+        <section>
+            <actions>
+                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
+
+                <set field="layoutSettings.companyName" from-field="uiLabelMap.FacilityCompanyName" global="true"/>
+                <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.FacilityCompanySubtitle" global="true"/>
+
+                <set field="titleProperty" value="PageTitlePickingMoveStock"/>
+
+                <set field="facilityId" from-field="parameters.facilityId"/>
+                <service service-name="findStockMovesNeeded">
+                    <field-map field-name="facilityId"/>
+                </service>
+                <set field="oiirWarningMessageList" from-field="warningMessageList"/>
+                <service service-name="findStockMovesRecommended">
+                    <field-map field-name="facilityId"/>
+                    <field-map field-name="stockMoveHandled"/>
+                </service>
+                <set field="pflWarningMessageList" from-field="warningMessageList"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <platform-specific>
+                            <html><html-template location="component://product/webapp/facility/facility/PickMoveStock.ftl"/></html>
+                        </platform-specific>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+         </section>
+    </screen>
 
     <screen name="PicklistReport.fo">
         <section>