svn commit: r452780 - /incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml

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

svn commit: r452780 - /incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml

jacopoc
Author: jacopoc
Date: Wed Oct  4 00:25:47 2006
New Revision: 452780

URL: http://svn.apache.org/viewvc?view=rev&rev=452780
Log:
Added pdf version of the "approved product requirements" (aka "purchase order requirements") screen: the link to call it is rendered using the new "genericLink" screen.

Modified:
    incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml

Modified: incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml?view=diff&rev=452780&r1=452779&r2=452780
==============================================================================
--- incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/order/widget/ordermgr/RequirementScreens.xml Wed Oct  4 00:25:47 2006
@@ -138,6 +138,18 @@
                     <decorator-section name="body">
                         <include-form name="FindApprovedProductRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
                         <section>
+                            <actions>
+                                <set field="genericLinkName" value="print"/>
+                                <set field="genericLinkText" value="${uiLabelMap.CommonPrint}"/>
+                                <set field="genericLinkTarget" value="ApprovedProductRequirementsReport"/>
+                                <set field="genericLinkStyle" value="buttontext"/>
+                                <set field="genericLinkWindow" value="reportWindow"/>
+                            </actions>
+                            <widgets>
+                                <include-screen name="genericLink" location="component://common/widget/CommonScreens.xml"/>
+                            </widgets>
+                        </section>
+                        <section>
                             <condition>
                                 <not><if-empty field-name="parameters.partyId"/></not>
                             </condition>
@@ -151,6 +163,25 @@
                                 <include-form name="ApprovedProductRequirementsList" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
                             </fail-widgets>
                         </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="ApprovedProductRequirementsReport">
+        <section>
+            <actions>
+                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
+                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
+                <set field="pageLayoutName" value="simple-landscape"/>
+                <set field="titleProperty" value="PageTitleApprovedProductRequirements"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="500"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="FoDecorator" location="component://common/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <include-form name="ApprovedProductRequirementsList" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
                     </decorator-section>
                 </decorator-screen>
             </widgets>