Author: jacopoc
Date: Mon Aug 7 07:52:20 2006
New Revision: 429356
URL: http://svn.apache.org/viewvc?rev=429356&view=rev
Log:
Implemented printer friendly screen for the inventory level report.
Modified:
incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
incubator/ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml
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=429356&r1=429355&r2=429356&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:52:20 2006
@@ -194,6 +194,10 @@
<security https="true" auth="true"/>
<response name="success" type="view"
value="ViewFacilityInventoryByProduct"/>
</request-map>
+ <request-map uri="ViewFacilityInventoryByProductSimple">
+ <security https="true" auth="true"/>
+ <response name="success" type="view"
value="ViewFacilityInventoryByProductSimple"/>
+ </request-map>
<request-map uri="SearchInventoryItems">
<security https="true" auth="true"/>
<response name="success" type="view" value="SearchInventoryItems"/>
@@ -965,6 +969,7 @@
<view-map name="EditFacilityLocation" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#EditFacilityLocation"/>
<view-map name="EditFacilityInventoryItems" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#EditFacilityInventoryItems"/>
<view-map name="ViewFacilityInventoryByProduct" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#ViewFacilityInventoryByProduct"/>
+ <view-map name="ViewFacilityInventoryByProductSimple" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#ViewFacilityInventoryByProductSimple"/>
<view-map name="EditFacilityGroups" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#EditFacilityGroups"/>
<view-map name="EditFacilityRoles" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#EditFacilityRoles"/>
<view-map name="ViewContactMechs" type="screen"
page="component://product/widget/facility/FacilityScreens.xml#ViewContactMechs"/>
Modified:
incubator/ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml?rev=429356&r1=429355&r2=429356&view=diff
==============================================================================
---
incubator/ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml
(original)
+++
incubator/ofbiz/trunk/applications/product/webapp/facility/facility/FacilityForms.xml
Mon Aug 7 07:52:20 2006
@@ -19,7 +19,7 @@
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-form.xsd">
<form name="FindFacilityInventoryByProduct" type="single"
- target="ViewFacilityInventoryByProduct" title=""
+ target="${facilityInventoryByProductScreen}" title=""
default-title-style="tableheadtext"
default-widget-style="tabletext" default-tooltip-style="tabletext">
<field name="facilityId"><hidden/></field>
<field name="action"><hidden value="SEARCH"/></field>
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=429356&r1=429355&r2=429356&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:52:20 2006
@@ -204,6 +204,9 @@
<set field="viewIndex" from-field="parameters.VIEW_INDEX"
type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE"
type="Integer" default-value="50"/>
+ <!-- This is the target of the search form-->
+ <set field="facilityInventoryByProductScreen"
value="ViewFacilityInventoryByProduct"/>
+
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="productTypeId"
from-field="parameters.productTypeId"/>
<set field="searchInProductCategoryId"
from-field="parameters.searchInProductCategoryId"/>
@@ -221,7 +224,51 @@
<label style="head2">${facility.facilityName}
[${uiLabelMap.CommonId}:${facilityId}]</label>
</container>
<container>
- <link
target="EditFacilityInventoryItems?facilityId=${facilityId}"
text="[${uiLabelMap.ProductInventoryItems}]" style="buttontext"/>
+ <link
target="EditFacilityInventoryItems?facilityId=${facilityId}"
text="${uiLabelMap.ProductInventoryItems}" style="buttontext"/>
+ <link
target="ViewFacilityInventoryByProductSimple?facilityId=${facilityId}"
text="${uiLabelMap.CommonPrint}" style="buttontext"/>
+ </container>
+
+ <include-form name="FindFacilityInventoryByProduct"
location="component://product/webapp/facility/facility/FacilityForms.xml"/>
+ <include-form name="ListFacilityInventoryByProduct"
location="component://product/webapp/facility/facility/FacilityForms.xml"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+ <screen name="ViewFacilityInventoryByProductSimple">
+ <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"/>
+
+ <!-- This is the target of the search form-->
+ <set field="facilityInventoryByProductScreen"
value="ViewFacilityInventoryByProductSimple"/>
+
+ <set field="titleProperty"
value="PageTitleEditFacilityInventoryItems"/>
+ <set field="viewIndex" from-field="parameters.VIEW_INDEX"
type="Integer"/>
+ <set field="viewSize" from-field="parameters.VIEW_SIZE"
type="Integer" default-value="500"/>
+
+ <set field="facilityId" from-field="parameters.facilityId"/>
+ <set field="productTypeId"
from-field="parameters.productTypeId"/>
+ <set field="searchInProductCategoryId"
from-field="parameters.searchInProductCategoryId"/>
+ <set field="productSupplierId"
from-field="parameters.productSupplierId"/>
+ <set field="offsetQty" from-field="parameters.offsetQty"/>
+
+ <script
location="component://product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="SimpleDecorator"
location="component://common/widget/CommonScreens.xml">
+ <decorator-section name="body">
+
+ <container>
+ <label
style="head1">${uiLabelMap.PageTitleEditFacilityInventoryItems}
${uiLabelMap.CommonFor}:</label>
+ <label style="head2">${facility.facilityName}
[${uiLabelMap.CommonId}:${facilityId}]</label>
+ </container>
+ <container>
+ <link
target="ViewFacilityInventoryByProduct?facilityId=${facilityId}"
text="${uiLabelMap.CommonBack}" style="buttontext"/>
</container>
<include-form name="FindFacilityInventoryByProduct"
location="component://product/webapp/facility/facility/FacilityForms.xml"/>