[OFBiz] SVN: r5046 - in trunk/applications/manufacturing: webapp/manufacturing/WEB-INF webapp/manufacturing/WEB-INF/actions/bom webapp/manufacturing/bom widget/manufacturing

jacopo at svn.ofbiz.org jacopo at svn.ofbiz.org
Fri May 27 11:54:56 EDT 2005


Author: jacopo
Date: 2005-05-27 10:54:40 -0500 (Fri, 27 May 2005)
New Revision: 5046

Removed:
   trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/InitLowLevelCode.bsh
   trunk/applications/manufacturing/webapp/manufacturing/bom/InitLowLevelCode.ftl
Modified:
   trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml
   trunk/applications/manufacturing/webapp/manufacturing/bom/BomTabBar.ftl
   trunk/applications/manufacturing/widget/manufacturing/BomScreens.xml
Log:
Removed the InitLowLevelCode screen: that screen was there mainly for debug purposes.
It is much more reliable to run the initLowLevelCode from the Webtools application.

Deleted: trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/InitLowLevelCode.bsh
===================================================================
--- trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/InitLowLevelCode.bsh	2005-05-27 14:58:11 UTC (rev 5045)
+++ trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/bom/InitLowLevelCode.bsh	2005-05-27 15:54:40 UTC (rev 5046)
@@ -1,39 +0,0 @@
-/*
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     Jacopo Cappellato (tiz at sastau.it)
- *
- */
-
-import java.util.*;
-import org.ofbiz.entity.*;
-import org.ofbiz.base.util.*;
-import org.ofbiz.widget.html.*;
-
-security = request.getAttribute("security");
-delegator = request.getAttribute("delegator");
-dispatcher = request.getAttribute("dispatcher");
-
-String action = request.getParameter("ACTION");
-if (action != null && action.equals("INIT") && security.hasEntityPermission("MANUFACTURING", "_VIEW", session)) {
-    Map result = dispatcher.runSync("initLowLevelCode", new HashMap());
-    context.put("products", result.get("productLLCs"));
-}

Modified: trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml
===================================================================
--- trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml	2005-05-27 14:58:11 UTC (rev 5045)
+++ trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/controller.xml	2005-05-27 15:54:40 UTC (rev 5046)
@@ -353,10 +353,6 @@
         <response name="success" type="view" value="EditProductBom"/>
         <response name="error" type="view" value="EditProductBom"/>
     </request-map>
-    <request-map uri="InitLowLevelCode">
-        <security https="true" auth="true"/>
-        <response name="success" type="view" value="InitLowLevelCode"/>
-    </request-map>
 
     <request-map uri="EditProductManufacturingRules">
         <security https="true" auth="true"/>
@@ -588,7 +584,6 @@
     <!-- BOM view mappings -->
     <view-map name="EditProductBom" page="component://manufacturing/widget/manufacturing/BomScreens.xml#EditProductBom" type="screen"/>
     <view-map name="EditProductManufacturingRules" page="component://manufacturing/widget/manufacturing/BomScreens.xml#EditProductManufacturingRules" type="screen"/>
-    <view-map name="InitLowLevelCode" page="component://manufacturing/widget/manufacturing/BomScreens.xml#InitLowLevelCode" type="screen"/>
     <view-map name="BomSimulation" page="component://manufacturing/widget/manufacturing/BomScreens.xml#BomSimulation" type="screen"/>
     
     <!-- MRP view mappings -->

Modified: trunk/applications/manufacturing/webapp/manufacturing/bom/BomTabBar.ftl
===================================================================
--- trunk/applications/manufacturing/webapp/manufacturing/bom/BomTabBar.ftl	2005-05-27 14:58:11 UTC (rev 5045)
+++ trunk/applications/manufacturing/webapp/manufacturing/bom/BomTabBar.ftl	2005-05-27 15:54:40 UTC (rev 5046)
@@ -28,7 +28,6 @@
 <#assign selectedClassMap = {page.tabButtonItem?default("void") : "tabButtonSelected"}>
 
 <div class='tabContainer'>
-    <a href="<@ofbizUrl>/InitLowLevelCode</@ofbizUrl>" class="${selectedClassMap.ManufacturingLLCInit?default(unselectedClassName)}">${uiLabelMap.ManufacturingLLCInit}</a>
     <a href="<@ofbizUrl>/BomSimulation</@ofbizUrl>" class="${selectedClassMap.findBom?default(unselectedClassName)}">${uiLabelMap.ManufacturingBomSimulation}</a>
     <a href="<@ofbizUrl>/EditProductBom</@ofbizUrl>" class="${selectedClassMap.EditProductBom?default(unselectedClassName)}">${uiLabelMap.ManufacturingEditProductBom}</a>
     <a href="<@ofbizUrl>/EditProductManufacturingRules</@ofbizUrl>" class="${selectedClassMap.productManufacturingRules?default(unselectedClassName)}">${uiLabelMap.ManufacturingManufacturingRules}</a>

Deleted: trunk/applications/manufacturing/webapp/manufacturing/bom/InitLowLevelCode.ftl
===================================================================
--- trunk/applications/manufacturing/webapp/manufacturing/bom/InitLowLevelCode.ftl	2005-05-27 14:58:11 UTC (rev 5045)
+++ trunk/applications/manufacturing/webapp/manufacturing/bom/InitLowLevelCode.ftl	2005-05-27 15:54:40 UTC (rev 5046)
@@ -1,39 +0,0 @@
-<#--
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     Jacopo Cappellato (tiz at sastau.it)
- *@version    $Rev$
- *@since      2.2
--->
-
-    <div class="head1">${uiLabelMap.ManufacturingLLCInit}</div>
-    <br/>
-    <#if products?has_content>
-        <#list products as oneProduct>
-            ${oneProduct}<br/>
-        </#list>
-    </#if>
-    <br/>
-    <form name="searchbom" action="<@ofbizUrl>/InitLowLevelCode</@ofbizUrl>" method=PUT >
-        <input type="hidden" name="ACTION" value="INIT">
-        <input type="submit" value="${uiLabelMap.CommonRun}">
-    </form>
-    

Modified: trunk/applications/manufacturing/widget/manufacturing/BomScreens.xml
===================================================================
--- trunk/applications/manufacturing/widget/manufacturing/BomScreens.xml	2005-05-27 14:58:11 UTC (rev 5045)
+++ trunk/applications/manufacturing/widget/manufacturing/BomScreens.xml	2005-05-27 15:54:40 UTC (rev 5046)
@@ -103,28 +103,6 @@
             </widgets>
         </section>
     </screen>
-    <screen name="InitLowLevelCode">
-        <section>
-            <actions>
-                <set field="title" value="Initialize Low Level Codes"/>
-                <set field="titleProperty" value="ManufacturingLLCInit"/>
-                <set field="tabButtonItem" value="ManufacturingLLCInit"/>
-                <!--<set field="labelTitleProperty" value="ProductProductBom"/>-->
-                <set field="headerItem" value="bom"/>
-
-                <script location="component://manufacturing/webapp/manufacturing/WEB-INF/actions/bom/InitLowLevelCode.bsh"/>
-            </actions>
-            <widgets>
-                <decorator-screen name="CommonBomDecorator">
-                    <decorator-section name="body">
-                        <platform-specific>
-                            <html><html-template location="component://manufacturing/webapp/manufacturing/bom/InitLowLevelCode.ftl"/></html>
-                        </platform-specific>
-                    </decorator-section>
-                </decorator-screen>
-            </widgets>
-        </section>
-    </screen>
     <screen name="BomSimulation">
         <section>
             <actions>



More information about the Svn mailing list