Author: apatel
Date: Fri Jul 24 10:35:03 2009
New Revision: 797412
URL: http://svn.apache.org/viewvc?rev=797412&view=rev
Log:
First pass of Financial account main screen. Slowly we'll build quick view
Portlets to help user.
Modified:
ofbiz/trunk/applications/accounting/data/AccountingPortletData.xml
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml
ofbiz/trunk/applications/accounting/widget/Menus.xml
Modified: ofbiz/trunk/applications/accounting/data/AccountingPortletData.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/data/AccountingPortletData.xml?rev=797412&r1=797411&r2=797412&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/data/AccountingPortletData.xml
(original)
+++ ofbiz/trunk/applications/accounting/data/AccountingPortletData.xml Fri Jul
24 10:35:03 2009
@@ -28,4 +28,12 @@
securityServiceName="portalPermissionIsCustomer"
securityMainAction="VIEW"/>
<PortletPortletCategory portalPortletId="ListCustomerInvoices"
portletCategoryId="ACCOUNTING"/>
+ <PortalPortlet portalPortletId="ListBankAccount"
+ portletName="List bank account"
+ screenName="ListBankAccount"
+ screenLocation="component://accounting/widget/FinAccountScreens.xml"
+ description="List all financial account with type BANK_ACCOUNT"
securityServiceName="portalPermissionIsEmployee" securityMainAction="VIEW"/>
+ <PortalPage portalPageId="FinAccountPortalPage" sequenceNum="0"
portalPageName="Fin account portal page" description="Fin account main screen
using flexible portal technology" ownerUserLoginId="_NA_"/>
+ <PortalPageColumn portalPageId="FinAccountPortalPage" columnSeqId="00001"/>
+ <PortalPagePortlet portalPageId="FinAccountPortalPage"
portalPortletId="ListBankAccount" portletSeqId="00001" columnSeqId="00001"
sequenceNum="0"/>
</entity-engine-xml>
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml?rev=797412&r1=797411&r2=797412&view=diff
==============================================================================
---
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
(original)
+++
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
Fri Jul 24 10:35:03 2009
@@ -1825,6 +1825,10 @@
<response name="success" type="view" value="FindFinAccount"/>
<response name="error" type="view" value="FindFinAccount"/>
</request-map>
+ <request-map uri="FinAccountMain">
+ <security https="true" auth="true"/>
+ <response name="success" type="view" value="FinAccountMain"/>
+ </request-map>
<!-- Fin Account Roles -->
<request-map uri="EditFinAccountRoles">
<security https="true" auth="true"/>
@@ -2287,6 +2291,7 @@
<!-- FinAccount -->
<view-map name="FindFinAccount" type="screen"
page="component://accounting/widget/FinAccountScreens.xml#FindFinAccount"/>
+ <view-map name="FinAccountMain" type="screen"
page="component://accounting/widget/FinAccountScreens.xml#FinAccountMain"/>
<!-- TO BE REMOVED
<view-map name="ListFinAccount" type="screen"
page="component://accounting/widget/FinAccountScreens.xml#ListFinAccount"/>
Modified: ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml?rev=797412&r1=797411&r2=797412&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml Fri Jul 24
10:35:03 2009
@@ -42,6 +42,9 @@
<widgets>
<include-menu name="FinAccountTabBar"
location="component://accounting/widget/Menus.xml"/>
</widgets>
+ <fail-widgets>
+ <include-menu
name="FinAccountMainTabBar" location="component://accounting/widget/Menus.xml"/>
+ </fail-widgets>
</section>
</widgets>
<fail-widgets>
@@ -59,7 +62,7 @@
<section>
<actions>
<set field="titleProperty" value="PageTitleFindFinAccount"/>
- <set field="headerItem" value="FindFinAccount"/>
+ <set field="tabButtonItem" value="FindFinAccount"/>
<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="20"/>
</actions>
@@ -233,4 +236,39 @@
</widgets>
</section>
</screen>
+ <screen name="FinAccountMain">
+ <section>
+ <actions>
+ <set field="tabButtonItem" value="finAccountMain"/>
+ <set field="parameters.portalPageId"
value="FinAccountPortalPage"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonFinAccountDecorator"
location="${parameters.finAccountDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <actions>
+ <entity-one entity-name="PortalPage"
value-field="portalPage"/>
+ <get-related value-field="portalPage"
relation-name="PortalPageColumn" list="portalPageColumns"/>
+ <entity-and
entity-name="PortalPagePortletView" list="portalPagePortlets">
+ <field-map field-name="portalPageId"
from-field="portalPage.portalPageId"/>
+ </entity-and>
+ </actions>
+ <widgets>
+ <platform-specific><html><html-template
location="component://common/webcommon/portal/showPortalPage.ftl"/></html></platform-specific>
+ </widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ListBankAccount">
+ <section>
+ <widgets>
+ <screenlet title="${uiLabelMap.CommonList}
${uiLabelMap.AccountingBankAccount}">
+ <include-form name="ListFinAccounts"
location="component://accounting/widget/FinAccountForms.xml"/>
+ </screenlet>
+ </widgets>
+ </section>
+ </screen>
</screens>
\ No newline at end of file
Modified: ofbiz/trunk/applications/accounting/widget/Menus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/Menus.xml?rev=797412&r1=797411&r2=797412&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/Menus.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/Menus.xml Fri Jul 24 10:35:03
2009
@@ -1056,4 +1056,15 @@
<link target="FindPaymentGatewayConfigTypes"/>
</menu-item>
</menu>
+ <menu name="FinAccountMainTabBar" extends="CommonTabBarMenu"
extends-resource="component://common/widget/CommonMenus.xml">
+ <menu-item name="finAccountMain" title="${uiLabelMap.CommonMain}">
+ <link target="FinAccountMain">
+ <parameter param-name="finAccountTypeId" value="BANK_ACCOUNT"/>
+ <parameter param-name="organizationPartyId"
from-field="defaultOrganizationPartyId"/>
+ </link>
+ </menu-item>
+ <menu-item name="FindFinAccount"
title="${uiLabelMap.PageTitleFindFinAccount}">
+ <link target="FindFinAccount"/>
+ </menu-item>
+ </menu>
</menus>