Author: hansbak
Date: Wed Nov 11 08:17:15 2009 New Revision: 834800 URL: http://svn.apache.org/viewvc?rev=834800&view=rev Log: add purchase orderlist portlet Modified: ofbiz/trunk/applications/order/data/OrderPortletData.xml ofbiz/trunk/applications/order/widget/ordermgr/OrderForms.xml ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml Modified: ofbiz/trunk/applications/order/data/OrderPortletData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/data/OrderPortletData.xml?rev=834800&r1=834799&r2=834800&view=diff ============================================================================== --- ofbiz/trunk/applications/order/data/OrderPortletData.xml (original) +++ ofbiz/trunk/applications/order/data/OrderPortletData.xml Wed Nov 11 08:17:15 2009 @@ -115,4 +115,11 @@ description=""/> <PortletPortletCategory portalPortletId="PurchByPaymMeth" portletCategoryId="REPORT"/> <PortalPagePortlet portalPageId="OrderReportPage" portalPortletId="PurchByPaymMeth" portletSeqId="00001" columnSeqId="00002" sequenceNum="4"/> + + <PortalPortlet portalPortletId="ListPurchaseOrders" + portletName="List Purchase Orders" + screenName="ListPurchaseOrders" + screenLocation="component://order/widget/ordermgr/OrderViewScreens.xml" + description="List Purchase Orders"/> + <PortletPortletCategory portalPortletId="ListPurchaseOrders" portletCategoryId="ORDERMGR"/> </entity-engine-xml> Modified: ofbiz/trunk/applications/order/widget/ordermgr/OrderForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/OrderForms.xml?rev=834800&r1=834799&r2=834800&view=diff ============================================================================== --- ofbiz/trunk/applications/order/widget/ordermgr/OrderForms.xml (original) +++ ofbiz/trunk/applications/order/widget/ordermgr/OrderForms.xml Wed Nov 11 08:17:15 2009 @@ -217,5 +217,34 @@ <field name="partyId" title="${uiLabelMap.PartyPartyId}"><display/></field> <field name="roleTypeId" title="${uiLabelMap.FormFieldTitle_roleTypeId}"><display/></field> </form> - + <form name="ListPurchaseOrders" type="list" target="" list-name="listIt" title="" odd-row-style="alternate-row" + header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <actions> + <entity-and entity-name="OrderHeaderAndRoles"> + <field-map field-name="partyId" from-field="partyId"/> + <field-map field-name="roleTypeId" from-field="roleTypeId"/> + <order-by field-name="orderDate DESC"/> + </entity-and> + </actions> + <field name="orderTypeId" title="${uiLabelMap.FormFieldTitle_orderTypeId}"> + <display-entity entity-name="OrderType" description="${description}"/> + </field> + <field name="orderId" title="${uiLabelMap.OrderOrderId}"> + <hyperlink target="orderview" description="${orderId}"> + <parameter param-name="orderId"/> + </hyperlink> + </field> + <field name="orderName" title="${uiLabelMap.OrderOrderName}"><display/></field> + <field name="remainingSubTotal" title="${uiLabelMap.FormFieldTitle_remainingSubTotal}"><display/></field> + <field name="grandTotal" title="${uiLabelMap.OrderGrandTotal}"><display/></field> + <field name="statusId"><display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/></field> + <field name="orderDate" title="${uiLabelMap.OrderOrderDate}"><display/></field> + <field name="partyId" title="${uiLabelMap.PartyPartyId}"> + <display-entity entity-name="PartyNameView" description="${groupName}"/> + </field> + <field name="roleTypeId" title="${uiLabelMap.FormFieldTitle_roleTypeId}"> + <display-entity entity-name="RoleType" description="${description}"/> + </field> + </form> + </forms> \ No newline at end of file Modified: ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml?rev=834800&r1=834799&r2=834800&view=diff ============================================================================== --- ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml (original) +++ ofbiz/trunk/applications/order/widget/ordermgr/OrderViewScreens.xml Wed Nov 11 08:17:15 2009 @@ -510,4 +510,28 @@ </section> </screen> + <screen name="ListPurchaseOrders"> + <section> + <actions> + <set field="partyId" from-field="userLogin.partyId"/> + <set field="roleTypeId" value="SUPPLIER_AGENT"/> + <script location="component://common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy"/> + </actions> + <widgets> + <section> + <condition> + <if-has-permission permission="ORDERMGR" action="_VIEW"/> + </condition> + <widgets> + <screenlet title="${uiLabelMap.OrderPurchaseOrder}(s)" navigation-form-name="ListPurchaseOrders" > + <include-form name="ListPurchaseOrders" location="component://order/widget/ordermgr/OrderForms.xml"/> + </screenlet> + </widgets> + <fail-widgets> + <label style="h3" text="${uiLabelMap.OrderViewPermissionError}"/> + </fail-widgets> + </section> + </widgets> + </section> + </screen> </screens> \ No newline at end of file |
Free forum by Nabble | Edit this page |