You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2006/08/10 12:42:53 UTC

svn commit: r430354 - in /incubator/ofbiz/trunk/applications/accounting: webapp/accounting/WEB-INF/controller.xml widget/AccountingScreens.xml

Author: jacopoc
Date: Thu Aug 10 03:42:52 2006
New Revision: 430354

URL: http://svn.apache.org/viewvc?rev=430354&view=rev
Log:
Widget pdf report of the chart of accounts list.
The generated reports still doesn't look so nice, but we can use this screen to improve the generated fo template.

Modified:
    incubator/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
    incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml

Modified: incubator/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml?rev=430354&r1=430353&r2=430354&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml (original)
+++ incubator/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml Thu Aug 10 03:42:52 2006
@@ -429,6 +429,10 @@
         <security https="true" auth="true"/>
         <response name="success" type="view" value="FindGlobalGlAccount"/>
     </request-map>
+    <request-map uri="ListGlAccountsReport">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="ListGlAccountsReport"/>
+    </request-map>
     <request-map uri="AddGlAccount">
         <security https="true" auth="true"/>
         <response name="success" type="view" value="AddGlAccount"/>
@@ -1217,6 +1221,7 @@
     <view-map name="AddGlAccount" type="screen" page="component://accounting/widget/AccountingScreens.xml#AddGlAccount"/>
     <view-map name="FindGlobalGlAccount" type="screen" page="component://accounting/widget/AccountingScreens.xml#ListGlAccounts"/>
     <view-map name="ListGlobalGlAccounts" type="screen" page="component://accounting/widget/AccountingScreens.xml#ListGlAccounts"/>
+    <view-map name="ListGlAccountsReport" type="screenfop" page="component://accounting/widget/AccountingScreens.xml#ListGlAccountsReport" content-type="application/pdf" encoding="none"/>
     <view-map name="ListGlAccountOrganization" type="screen" page="component://accounting/widget/AccountingScreens.xml#ListGlAccountOrganization"/>
     <view-map name="GlAccountNavigate" type="screen" page="component://accounting/widget/AccountingScreens.xml#GlAccountNavigate"/>
     <view-map name="AssignGlAccount" type="screen" page="component://accounting/widget/AccountingScreens.xml#AssignGlAccount"/>

Modified: incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml?rev=430354&r1=430353&r2=430354&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/accounting/widget/AccountingScreens.xml Thu Aug 10 03:42:52 2006
@@ -275,6 +275,25 @@
             <widgets>
                 <decorator-screen name="GenericDecorator">
                     <decorator-section name="body">
+                        <container>
+                            <link target="ListGlAccountsReport" text="${uiLabelMap.CommonPrint}" style="buttontext"/>
+                        </container>
+                        <include-form name="ListGlAccount" location="component://accounting/webapp/accounting/chartofaccounts/GlAccountForms.xml"/>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="ListGlAccountsReport">
+        <section>
+            <actions>                
+                <set field="titleProperty" value="PageTitleListAccounts"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="1000"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="FoDecorator" location="component://common/widget/CommonScreens.xml">
+                    <decorator-section name="body">
                         <include-form name="ListGlAccount" location="component://accounting/webapp/accounting/chartofaccounts/GlAccountForms.xml"/>
                     </decorator-section>
                 </decorator-screen>