Author: apatel
Date: Sun Nov 23 22:07:28 2008 New Revision: 720118 URL: http://svn.apache.org/viewvc?rev=720118&view=rev Log: First version of application for tracking IS assets. Added: ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp (with props) ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp (with props) ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp (with props) ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp (with props) ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml (with props) ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml (with props) Modified: ofbiz/trunk/specialpurpose/assetmaint/ofbiz-component.xml Added: ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <property key="IsMgrApplication"> + <value xml:lang="en">Information Systems Management Application</value> + </property> + <property key="IsMgrCompanyName"> + <value xml:lang="en">OFBiz: Is Manager</value> + </property> + <property key="IsMgrCompanySubtitle"> + <value xml:lang="en">Information Systems Department</value> + </property> + + <property key="IsMgrComputerHardware"> + <value xml:lang="en">Hardware</value> + </property> + <property key="IsMgrComputerSoftware"> + <value xml:lang="en">Software</value> + </property> + + <property key="IsMgrNewComputerHardware"> + <value xml:lang="en">New Hardware</value> + </property> + <property key="IsMgrNewComputerSoftware"> + <value xml:lang="en">New Software</value> + </property> + <property key="IsMgrHardwareAccessories"> + <value xml:lang="en">Accessories</value> + </property> + <property key="IsMgrInstalledSoftware"> + <value xml:lang="en">Installed Software</value> + </property> + <property key="IsMgrFindComputerHardware"> + <value xml:lang="en">Find Hardware</value> + </property> + <property key="IsMgrFindComputerSoftware"> + <value xml:lang="en">Find Software</value> + </property> + <property key="PageTitleEditComputerHardware"> + <value xml:lang="en">Edit Hardware</value> + </property> + <property key="PageTitleEditComputerSoftware"> + <value xml:lang="en">Edit Software</value> + </property> +</resource> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/config/IsMgrUiLabels.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/specialpurpose/assetmaint/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/ofbiz-component.xml?rev=720118&r1=720117&r2=720118&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/ofbiz-component.xml (original) +++ ofbiz/trunk/specialpurpose/assetmaint/ofbiz-component.xml Sun Nov 23 22:07:28 2008 @@ -48,4 +48,12 @@ base-permission="ASSETMAINT" mount-point="/assetmaint" app-bar-display="true"/> + + <webapp name="ismgr" + title="IS Mgr" + server="default-server" + location="webapp/ismgr" + base-permission="OFBTOOLS,ASSETMAINT" + mount-point="/ismgr"/> + </ofbiz-component> Added: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd"> + <!-- Note: The order of the following include elements is important --> + <include location="component://workeffort/webapp/workeffort/WEB-INF/controller.xml"/> + <include location="component://product/webapp/catalog/WEB-INF/controller.xml"/> + <include location="component://product/webapp/facility/WEB-INF/controller.xml"/> + <include location="component://accounting/webapp/accounting/WEB-INF/controller.xml"/> + + <description>Information Systems Management Component Site Configuration File</description> + + <request-map uri="main"> + <security https="true" auth="true"/> + <response name="success" type="view" value="ListComputerHardware"/> + </request-map> + + <request-map uri="ListComputerHardware"> + <security https="true" auth="true"/> + <response name="success" type="view" value="ListComputerHardware"/> + </request-map> + + <request-map uri="ListComputerSoftware"> + <security https="true" auth="true"/> + <response name="success" type="view" value="ListComputerSoftware"/> + </request-map> + + <request-map uri="EditComputerHardware"><security https="true" auth="true"/><response name="success" type="view" value="EditComputerHardware"/></request-map> + <request-map uri="createComputerHardware"> + <security https="true" auth="true"/> + <event type="service" path="" invoke="createFixedAsset"/> + <response name="success" type="view" value="EditComputerHardware"/> + <response name="error" type="view" value="EditComputerHardware"/> + </request-map> + <request-map uri="updateComputerHardware"> + <security https="true" auth="true"/> + <event type="service" path="" invoke="updateFixedAsset"/> + <response name="success" type="view" value="EditComputerHardware"/> + <response name="error" type="view" value="EditComputerHardware"/> + </request-map> + + <request-map uri="EditComputerSoftware"><security https="true" auth="true"/><response name="success" type="view" value="EditComputerSoftware"/></request-map> + <request-map uri="createComputerSoftware"> + <security https="true" auth="true"/> + <event type="service" path="" invoke="createFixedAsset"/> + <response name="success" type="view" value="EditComputerSoftware"/> + <response name="error" type="view" value="EditComputerSoftware"/> + </request-map> + <request-map uri="updateComputerSoftware"> + <security https="true" auth="true"/> + <event type="service" path="" invoke="updateFixedAsset"/> + <response name="success" type="view" value="EditComputerSoftware"/> + <response name="error" type="view" value="EditComputerSoftware"/> + </request-map> + + <!-- List all children fixed assets of type ComputerHardware --> + <request-map uri="ListHardwareAccessories"><security https="true" auth="true"/><response name="success" type="view" value="ListHardwareAccessories"/></request-map> + <request-map uri="ListInstalledSoftware"><security https="true" auth="true"/><response name="success" type="view" value="ListInstalledSoftware"/></request-map> + + + <request-map uri="LookupComputerHardware"><security https="true" auth="true"/><response name="success" type="view" value="LookupComputerHardware"/></request-map> + <request-map uri="LookupComputerSoftware"><security https="true" auth="true"/><response name="success" type="view" value="LookupComputerSoftware"/></request-map> + <view-map name="LookupComputerHardware" type="screen" page="component://assetmaint/widget/ismgr/LookupScreens.xml#LookupComputerHardware"/> + <view-map name="LookupComputerSoftware" type="screen" page="component://assetmaint/widget/ismgr/LookupScreens.xml#LookupComputerSoftware"/> + + <view-map name="EditComputerHardware" type="screen" page="component://assetmaint/widget/ismgr/FixedAssetScreens.xml#EditComputerHardware"/> + <view-map name="ListComputerHardware" type="screen" page="component://assetmaint/widget/ismgr/FixedAssetScreens.xml#ListComputerHardware"/> + + <view-map name="EditComputerSoftware" type="screen" page="component://assetmaint/widget/ismgr/FixedAssetScreens.xml#EditComputerSoftware"/> + <view-map name="ListComputerSoftware" type="screen" page="component://assetmaint/widget/ismgr/FixedAssetScreens.xml#ListComputerSoftware"/> + + <view-map name="ListHardwareAccessories" type="screen" page="component://assetmaint/widget/ismgr/FixedAssetScreens.xml#ListHardwareAccessories"/> + <view-map name="ListInstalledSoftware" type="screen" page="component://assetmaint/widget/ismgr/FixedAssetScreens.xml#ListInstalledSoftware"/> + <!-- end of view mappings --> +</site-conf> + \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/controller.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<web-app> + <display-name>Open For Business - Information Systems</display-name> + <description>Information Systems Management application of the Open For Business Project</description> + + <context-param> + <param-name>entityDelegatorName</param-name> + <param-value>default</param-value> + <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description> + </context-param> + <context-param> + <param-name>localDispatcherName</param-name> + <param-value>ismgr</param-value> + <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description> + </context-param> + <context-param> + <param-name>mainDecoratorLocation</param-name> + <param-value>component://assetmaint/widget/ismgr/CommonScreens.xml</param-value> + <description>The location of the main-decorator screen to use for this webapp.</description> + </context-param> + <context-param> + <param-name>commonFacilityDecoratorLocation</param-name> + <param-value>component://assetmaint/widget/ismgr/CommonScreens.xml</param-value> + <description>The location of the CommonFacilityDecorator screen to use for this webapp.</description> + </context-param> + <context-param> + <param-name>fixedAssetDecoratorLocation</param-name> + <param-value>component://assetmaint/widget/ismgr/CommonScreens.xml</param-value> + <description>The location of the CommonFixedAssetDecorator screen to use for this webapp.</description> + </context-param> + <context-param> + <param-name>fixedAssetMaintDecoratorLocation</param-name> + <param-value>component://assetmaint/widget/ismgr/AssetmaintScreens.xml</param-value> + <description>The location of the CommonFixedAssetMaintDecorator screen to use for this webapp.</description> + </context-param> + + <filter> + <filter-name>ContextFilter</filter-name> + <display-name>ContextFilter</display-name> + <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> + <init-param> + <param-name>disableContextSecurity</param-name> + <param-value>N</param-value> + </init-param> + <init-param> + <param-name>allowedPaths</param-name> + <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value> + </init-param> + <init-param> + <param-name>errorCode</param-name> + <param-value>403</param-value> + </init-param> + <init-param> + <param-name>redirectPath</param-name> + <param-value>/control/main</param-value> + </init-param> + </filter> + <filter-mapping> + <filter-name>ContextFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> + <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> + <!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface --> + <!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> --> + + <servlet> + <servlet-name>ControlServlet</servlet-name> + <display-name>ControlServlet</display-name> + <description>Main Control Servlet</description> + <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>ControlServlet</servlet-name> + <url-pattern>/control/*</url-pattern> + </servlet-mapping> + + <session-config> + <session-timeout>60</session-timeout> <!-- in minutes --> + </session-config> + + <welcome-file-list> + <welcome-file>index.jsp</welcome-file> + <welcome-file>index.html</welcome-file> + <welcome-file>index.htm</welcome-file> + </welcome-file-list> +</web-app> Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp (added) +++ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp Sun Nov 23 22:07:28 2008 @@ -0,0 +1,53 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> + +<%@ page import="org.ofbiz.base.util.*" %> +<html> +<head> +<title>Open For Business Message</title> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +</head> + +<% String errorMsg = (String) request.getAttribute("_ERROR_MESSAGE_"); %> + +<body bgcolor="#FFFFFF"> +<div align="center"> + <br/> + <table width="100%" border="1" height="200"> + <tr> + <td> + <table width="100%" border="0" height="200"> + <tr bgcolor="#CC6666"> + <td height="45"> + <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="#FFFFFF"><b>:ERROR MESSAGE:</b></font></div> + </td> + </tr> + <tr> + <td> + <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=UtilFormatOut.replaceString(errorMsg, "\n", "<br/>")%></font></div> + </td> + </tr> + </table> + </td> + </tr> + </table> +</div> +<div align="center"></div> +</body> +</html> Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp (added) +++ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp Sun Nov 23 22:07:28 2008 @@ -0,0 +1,27 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> + +<html> +<head> +<title>ERROR!</title> +</head> +<body> +<h3>An Error 403 Happened: Access to resource Forbidden</h3> +</body> +</html> Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error403.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp (added) +++ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp Sun Nov 23 22:07:28 2008 @@ -0,0 +1,27 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> + +<html> +<head> +<title>ERROR!</title> +</head> +<body> +<h3>An Error 404 Happened: Request resource Not Found</h3> +</body> +</html> Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/error/error404.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp (added) +++ ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp Sun Nov 23 22:07:28 2008 @@ -0,0 +1,19 @@ +<%-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--%> +<%response.sendRedirect("control/main");%> Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/webapp/ismgr/index.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> + + <screen name="main-decorator"> + <section> + <actions> + <property-map resource="IsMgrUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="AssetMaintUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + <set field="activeApp" value="ismgr" global="true"/> + <set field="applicationMenuName" value="IsMgrAppBar" global="true"/> + <set field="applicationMenuLocation" value="component://assetmaint/widget/ismgr/Menus.xml" global="true"/> + <set field="layoutSettings.companyName" from-field="uiLabelMap.IsMgrCompanyName" global="true"/> + <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.IsMgrCompanySubtitle" global="true"/> + <!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set, + then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. --> + <!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>--> + </actions> + <widgets> + <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/> + </widgets> + </section> + </screen> + + <!-- Fixed Assets screens customized for Computer Hardware --> + <screen name="CommonFixedAssetDecorator"> + <section> + <actions> + <set field="headerItem" value="ComputerHardware"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="pre-body"> + <section> + <condition> + <not><if-empty field-name="fixedAssetId"/></not> + </condition> + <widgets> + <include-menu name="ComputerHardwareTabBar" location="component://assetmaint/widget/ismgr/Menus.xml"/> + </widgets> + </section> + <decorator-section-include name="pre-body"/> + </decorator-section> + <decorator-section name="body"> + <section> + <widgets> + <include-menu name="FixedAssetSubTabBar" location="component://assetmaint/widget/ismgr/Menus.xml"/> + </widgets> + </section> + <section> + <condition> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/> + </condition> + <widgets> + <section> + <condition> + <not><if-empty field-name="fixedAssetId"/></not> + </condition> + <widgets> + <container style="h1"><label text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor} ${fixedAsset.fixedAssetName} [${fixedAssetId}] ${${extraFunctionName}}"/></container> + </widgets> + <fail-widgets> + <container style="h1"><label text="${uiLabelMap.${titleProperty}}"/></container> + </fail-widgets> + </section> + <decorator-section-include name="body"/> + </widgets> + <fail-widgets> + <label style="h3" text="${uiLabelMap.AcccountingViewPermissionError}"/> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <!-- Fixed Assets screens customized for Computer Software --> + <screen name="CommonComputerSoftwareDecorator"> + <section> + <actions> + <set field="headerItem" value="ComputerSoftware"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <!-- + <decorator-section name="pre-body"> + <section> + <condition> + <not><if-empty field-name="fixedAssetId"/></not> + </condition> + <widgets> + <include-menu name="ComputerHardwareTabBar" location="component://assetmaint/widget/ismgr/Menus.xml"/> + </widgets> + </section> + <decorator-section-include name="pre-body"/> + </decorator-section> + --> + <decorator-section name="body"> + <section> + <widgets> + <include-menu name="FixedAssetSubTabBar" location="component://assetmaint/widget/ismgr/Menus.xml"/> + </widgets> + </section> + <section> + <condition> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/> + </condition> + <widgets> + <section> + <condition> + <not><if-empty field-name="fixedAssetId"/></not> + </condition> + <widgets> + <container style="h1"><label text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor} ${fixedAsset.fixedAssetName} [${fixedAssetId}] ${${extraFunctionName}}"/></container> + </widgets> + <fail-widgets> + <container style="h1"><label text="${uiLabelMap.${titleProperty}}"/></container> + </fail-widgets> + </section> + <decorator-section-include name="body"/> + </widgets> + <fail-widgets> + <label style="h3" text="${uiLabelMap.AcccountingViewPermissionError}"/> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> + \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/CommonScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> + + <form name="LookupComputerHardware" target="LookupComputerHardware" title="" type="single" + header-row-style="header-row" default-table-style="basic-table"> + <auto-fields-entity entity-name="FixedAsset" default-field-type="hidden"/> + <field name="fixedAssetId" title="${uiLabelMap.AccountingFixedAssetId}"><text-find/></field> + <field name="fixedAssetName" title="${uiLabelMap.AccountingFixedAssetName}"><text-find/></field> + <field name="fixedAssetTypeId"><hidden value="COMPUTER_HARDWARE"/></field> + <field name="classEnumId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId"> + <entity-constraint name="enumTypeId" operator="equals" value="FXAST_COMPU_HARDWARE"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> + <field name="submitButton" title="${uiLabelMap.CommonLookup}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <form name="ListLookupComputerHardware" list-name="listIt" title="" type="list" paginate-target="LookupComputerHardware" + odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="FixedAsset"/> + </service> + </actions> + <field name="fixedAssetId" title="${uiLabelMap.AccountingFixedAssetId}" widget-style="buttontext"> + <hyperlink also-hidden="false" target-type="plain" description="${fixedAssetId}" target="javascript:set_value('${fixedAssetId}')"/> + </field> + <field name="fixedAssetName" title="${uiLabelMap.CommonName}"><display/></field> + <field name="classEnumId"><display-entity entity-name="Enumeration" key-field-name="enumId"/></field> + </form> + + <form name="LookupComputerSoftware" target="LookupComputerSoftware" title="" type="single" + header-row-style="header-row" default-table-style="basic-table"> + <auto-fields-entity entity-name="FixedAsset" default-field-type="hidden"/> + <field name="fixedAssetId" title="${uiLabelMap.AccountingFixedAssetId}"><text-find/></field> + <field name="fixedAssetName" title="${uiLabelMap.AccountingFixedAssetName}"><text-find/></field> + <field name="fixedAssetTypeId"><hidden value="COMPUTER_SOFTWARE"/></field> + <field name="classEnumId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId"> + <entity-constraint name="enumTypeId" operator="equals" value="FXAST_COMPU_SOFTWARE"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> + <field name="submitButton" title="${uiLabelMap.CommonLookup}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <form name="ListLookupComputerSoftware" list-name="listIt" title="" type="list" paginate-target="LookupComputerSoftware" + odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="FixedAsset"/> + </service> + </actions> + <field name="fixedAssetId" title="${uiLabelMap.AccountingFixedAssetId}" widget-style="buttontext"> + <hyperlink also-hidden="false" target-type="plain" description="${fixedAssetId}" target="javascript:set_value('${fixedAssetId}')"/> + </field> + <field name="fixedAssetName" title="${uiLabelMap.CommonName}"><display/></field> + <field name="classEnumId"><display-entity entity-name="Enumeration" key-field-name="enumId"/></field> + </form> +</forms> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FieldLookupForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,178 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> + <!-- create and update a fixed asset of type Computer hardware. --> + <form name="EditComputerHardware" type="single" target="updateComputerHardware" title="" default-map-name="fixedAsset"> + <alt-target use-when="fixedAsset==null" target="createComputerHardware"/> + <auto-fields-service service-name="updateFixedAsset" map-name="fixedAsset"/> + + <field use-when="fixedAsset!=null" name="fixedAssetId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field> + <field use-when="fixedAsset==null&&fixedAssetId==null" name="fixedAssetId"><text size="20" maxlength="20"/></field> + <field use-when="fixedAsset==null&&fixedAssetId!=null" name="fixedAssetId" tooltip="${uiLabelMap.CommonCannotBeFound}:[${fixedAssetId}]"><text size="20" maxlength="20"/></field> + + <field name="fixedAssetTypeId"><hidden value="COMPUTER_HARDWARE"/></field> + <field name="instanceOfProductId"><lookup target-form-name="LookupProduct"/></field> + <field name="classEnumId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId"> + <entity-constraint name="enumTypeId" operator="equals" value="FXAST_COMPU_HARDWARE"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="partyId" title="${uiLabelMap.PartyPartyId}"> <hidden/> </field> + <field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}"><hidden/></field> + <field name="uomId" title="${uiLabelMap.CommonUom}"> + <drop-down allow-empty="true"> + <entity-options entity-name="UomAndType" description="[${typeDescription}] ${description}"> + <entity-order-by field-name="uomTypeId"/> + </entity-options> + </drop-down> + </field> + <!--<field name="calendarId"><hidden/></field>--> <!-- not show, can better be maintained by the system --> + <field name="calendarId"> + <drop-down allow-empty="true"> + <entity-options entity-name="TechDataCalendar" description="[${calendarId}] ${description}"> + <entity-order-by field-name="calendarId"/> + </entity-options> + </drop-down> + </field> + <field name="parentFixedAssetId"><lookup target-form-name="LookupComputerHardware"/></field> + <field name="locatedAtFacilityId"><lookup target-form-name="LookupFacility"/></field> + <field name="locatedAtLocationSeqId"><lookup target-form-name="LookupFacilityLocation"/></field> + + <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <form name="EditComputerSoftware" type="single" target="updateComputerSoftwareware" title="" default-map-name="fixedAsset"> + <alt-target use-when="fixedAsset==null" target="createComputerSoftware"/> + <auto-fields-service service-name="updateFixedAsset" map-name="fixedAsset"/> + + <field use-when="fixedAsset!=null" name="fixedAssetId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field> + <field use-when="fixedAsset==null&&fixedAssetId==null" name="fixedAssetId"><text size="20" maxlength="20"/></field> + <field use-when="fixedAsset==null&&fixedAssetId!=null" name="fixedAssetId" tooltip="${uiLabelMap.CommonCannotBeFound}:[${fixedAssetId}]"><text size="20" maxlength="20"/></field> + + <field name="fixedAssetTypeId"><hidden value="COMPUTER_SOFTWARE"/></field> + <field name="instanceOfProductId"><lookup target-form-name="LookupProduct"/></field> + <field name="classEnumId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId"> + <entity-constraint name="enumTypeId" operator="equals" value="FXAST_COMPU_SOFTWARE"/> + <entity-order-by field-name="description"/> + </entity-options> + </drop-down> + </field> + <field name="partyId" title="${uiLabelMap.PartyPartyId}"> <hidden/> </field> + <field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}"><hidden/></field> + <field name="uomId" title="${uiLabelMap.CommonUom}"> + <drop-down allow-empty="true"> + <entity-options entity-name="UomAndType" description="[${typeDescription}] ${description}"> + <entity-order-by field-name="uomTypeId"/> + </entity-options> + </drop-down> + </field> + <!--<field name="calendarId"><hidden/></field>--> <!-- not show, can better be maintained by the system --> + <field name="calendarId"> + <drop-down allow-empty="true"> + <entity-options entity-name="TechDataCalendar" description="[${calendarId}] ${description}"> + <entity-order-by field-name="calendarId"/> + </entity-options> + </drop-down> + </field> + <field name="parentFixedAssetId"><lookup target-form-name="LookupComputerHardware"/></field> + <field name="locatedAtFacilityId"><lookup target-form-name="LookupFacility"/></field> + <field name="locatedAtLocationSeqId"><lookup target-form-name="LookupFacilityLocation"/></field> + + <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <form name="FindComputerHardwareOptions" extends="LookupComputerHardware" extends-resource="component://assetmaint/widget/ismgr/FieldLookupForms.xml" target="ListComputerHardware"> + <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + <!-- list all Computer Hardware in a tabular format --> + <form name="ListComputerHardware" type="list" list-name="listIt" paginate-target="ListFixedAssets" + odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="FixedAsset"/> + </service> + </actions> + <field name="fixedAssetId" widget-style="linktext"> + <hyperlink also-hidden="false" description="${fixedAssetName} ${fixedAssetId}" target="EditComputerHardware?fixedAssetId=${fixedAssetId}"/> + </field> + <field name="fixedAssetTypeId"><hidden/></field> + <field name="classEnumId"><display-entity entity-name="Enumeration" key-field-name="enumId"/></field> + <field name="parentFixedAssetId"> + <display-entity entity-name="FixedAsset" key-field-name="fixedAssetId" description="${fixedAssetName}"> + <sub-hyperlink target="EditComputerHardware?fixedAssetId=${parentFixedAssetId}" description="${parentFixedAssetId}"/> + </display-entity> + </field> + <on-event-update-area event-type="paginate" area-id="search-results" area-target="FixedAssetSearchResults"/> + </form> + + <form name="FindComputerSoftwareOptions" extends="LookupComputerSoftware" extends-resource="component://assetmaint/widget/ismgr/FieldLookupForms.xml" target="ListComputerSoftware"> + <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <!-- list all Computer Software in a tabular format --> + <form name="ListComputerSoftware" type="list" list-name="listIt" paginate-target="ListFixedAssets" + odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="FixedAsset"/> + </service> + </actions> + <field name="fixedAssetId" widget-style="linktext"> + <hyperlink also-hidden="false" description="${fixedAssetName} ${fixedAssetId}" target="EditComputerSoftware?fixedAssetId=${fixedAssetId}"/> + </field> + <field name="fixedAssetTypeId"><hidden/></field> + <field name="classEnumId"><display-entity entity-name="Enumeration" key-field-name="enumId"/></field> + <field name="parentFixedAssetId"> + <display-entity entity-name="FixedAsset" key-field-name="fixedAssetId" description="${fixedAssetName}"> + <sub-hyperlink target="EditComputerSoftware?fixedAssetId=${parentFixedAssetId}" description="${parentFixedAssetId}"/> + </display-entity> + </field> + <on-event-update-area event-type="paginate" area-id="search-results" area-target="FixedAssetSearchResults"/> + </form> + + + <!-- list all children fixed assets in a tabular format --> + <form name="ChildrenFixedAssets" type="list" list-name="listIt" + odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <actions> + <entity-condition entity-name="FixedAsset" list-name="listIt"> + <condition-list combine="and"> + <condition-expr field-name="parentFixedAssetId" operator="equals" env-name="parameters.fixedAssetId"/> + <condition-expr field-name="fixedAssetTypeId" operator="equals" env-name="fixedAssetTypeId"/> + </condition-list> + </entity-condition> + </actions> + <field name="fixedAssetId" widget-style="linktext"> + <hyperlink also-hidden="false" description="${fixedAssetName} ${fixedAssetId}" target="EditComputerHardware?fixedAssetId=${fixedAssetId}"/> + </field> + <field name="fixedAssetTypeId"><hidden/></field> + <field name="classEnumId"><display-entity entity-name="Enumeration" key-field-name="enumId"/></field> + <on-event-update-area event-type="paginate" area-id="search-results" area-target="FixedAssetSearchResults"/> + </form> + +</forms> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,190 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> + <!-- create and/or update a Computer Hardware fixed asset --> + <screen name="EditComputerHardware"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditComputerHardware"/> + <set field="tabButtonItem" value="EditComputerHardware"/> + <set field="fixedAssetId" from-field="parameters.fixedAssetId"/> + <entity-one entity-name="FixedAsset" value-name="fixedAsset"/> + </actions> + <widgets> + <decorator-screen name="CommonFixedAssetDecorator" location="${parameters.fixedAssetDecoratorLocation}"> + <decorator-section name="body"> + <include-form name="EditComputerHardware" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <!-- list all assets in a tabular format --> + <screen name="ListComputerHardware"> + <section> + <actions> + <set field="titleProperty" value="IsMgrFindComputerHardware"/> + <set field="headerItem" value="ComputerHardware"/> + <set field="tabButtonItem" value="EditComputerHardware"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="menu-bar"> + <section> + <widgets> + <include-menu name="FixedAssetSubTabBar" location="component://assetmaint/widget/ismgr/Menus.xml"/> + </widgets> + </section> + </decorator-section> + <decorator-section name="search-options"> + <include-form name="FindComputerHardwareOptions" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </decorator-section> + <decorator-section name="search-results"> + <include-screen name="ComputerHardwareSearchResults"/> + </decorator-section> + </decorator-screen> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="EditComputerSoftware"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditComputerSoftware"/> + <set field="headerItem" value="ComputerSoftware"/> + <set field="fixedAssetId" from-field="parameters.fixedAssetId"/> + <entity-one entity-name="FixedAsset" value-name="fixedAsset"/> + </actions> + <widgets> + <decorator-screen name="CommonComputerSoftwareDecorator" location="${parameters.fixedAssetDecoratorLocation}"> + <decorator-section name="body"> + <include-form name="EditComputerSoftware" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <!-- list all computer Software in a tabular format --> + <screen name="ListComputerSoftware"> + <section> + <actions> + <set field="titleProperty" value="IsMgrFindComputerSoftware"/> + <set field="headerItem" value="ComputerSoftware"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="menu-bar"> + <section> + <widgets> + <include-menu name="FixedAssetSubTabBar" location="component://assetmaint/widget/ismgr/Menus.xml"/> + </widgets> + </section> + </decorator-section> + <decorator-section name="search-options"> + <include-form name="FindComputerSoftwareOptions" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </decorator-section> + <decorator-section name="search-results"> + <include-screen name="ComputerSoftwareSearchResults"/> + </decorator-section> + </decorator-screen> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="ComputerHardwareSearchResults"> + <section> + <condition> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/> + </condition> + <actions> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + </actions> + <widgets> + <include-form name="ListComputerHardware" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </widgets> + </section> + </screen> + + <screen name="ComputerSoftwareSearchResults"> + <section> + <condition> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/> + </condition> + <actions> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> + <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> + </actions> + <widgets> + <include-form name="ListComputerSoftware" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </widgets> + </section> + </screen> + + <screen name="ListHardwareAccessories"> + <section> + <actions> + <set field="titleProperty" value="IsMgrHardwareAccessories"/> + <set field="headerItem" value="ComputerHardware"/> + <set field="tabButtonItem" value="ListHardwareAccessories"/> + <set field="fixedAssetId" from-field="parameters.fixedAssetId"/> + <set field="fixedAssetTypeId" value="COMPUTER_HARDWARE"/> + </actions> + <widgets> + <decorator-screen name="CommonFixedAssetDecorator" location="${parameters.fixedAssetDecoratorLocation}"> + <decorator-section name="body"> + <include-form name="ChildrenFixedAssets" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ListInstalledSoftware"> + <section> + <actions> + <set field="titleProperty" value="IsMgrInstalledSoftware"/> + <set field="headerItem" value="ComputerHardware"/> + <set field="tabButtonItem" value="ListInstalledSoftware"/> + <set field="fixedAssetId" from-field="parameters.fixedAssetId"/> + <set field="fixedAssetTypeId" value="COMPUTER_SOFTWARE"/> + </actions> + <widgets> + <decorator-screen name="CommonFixedAssetDecorator" location="${parameters.fixedAssetDecoratorLocation}"> + <decorator-section name="body"> + <include-form name="ChildrenFixedAssets" location="component://assetmaint/widget/ismgr/FixedAssetForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> + \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/FixedAssetScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> + + <screen name="LookupComputerHardware"> + <section> + <condition> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/> + </condition> + <actions> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> + <set field="title" value="${uiLabelMap.PageTitleLookupComputerHardware}"/> + <set field="queryString" from-field="result.queryString"/> + <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> + <widgets> + <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="search-options"> + <include-form name="LookupComputerHardware" location="component://assetmaint/widget/ismgr/FieldLookupForms.xml" /> + </decorator-section> + <decorator-section name="search-results"> + <include-form name="ListLookupComputerHardware" location="component://assetmaint/widget/ismgr/FieldLookupForms.xml" /> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="LookupComputerSoftware"> + <section> + <condition> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/> + </condition> + <actions> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> + <set field="title" value="${uiLabelMap.PageTitleLookupComputerSoftware}"/> + <set field="queryString" from-field="result.queryString"/> + <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> + <widgets> + <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="search-options"> + <include-form name="LookupComputerSoftware" location="component://assetmaint/widget/ismgr/FieldLookupForms.xml" /> + </decorator-section> + <decorator-section name="search-results"> + <include-form name="ListLookupComputerSoftware" location="component://assetmaint/widget/ismgr/FieldLookupForms.xml" /> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + +</screens> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/LookupScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml?rev=720118&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml (added) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml Sun Nov 23 22:07:28 2008 @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd"> + + <menu name="IsMgrAppBar" title="${uiLabelMap.IsMgrApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <menu-item name="main" title="${uiLabelMap.CommonMain}"><link target="main"/></menu-item> + <menu-item name="ComputerHardware" title="${uiLabelMap.IsMgrComputerHardware}"><link target="ListComputerHardware"/></menu-item> + <menu-item name="ComputerSoftware" title="${uiLabelMap.IsMgrComputerSoftware}"><link target="ListComputerSoftware"/></menu-item> + </menu> + + + <menu name="FixedAssetSubTabBar" menu-container-style="button-bar button-style-2" default-selected-style="selected"> + <menu-item name="createNewComputerHardware" title="${uiLabelMap.IsMgrNewComputerHardware}" > + <condition> + <and> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="CREATE"/> + </and> + </condition> + <link target="EditComputerHardware"/> + </menu-item> + <menu-item name="createNewComputerSoftware" title="${uiLabelMap.IsMgrNewComputerSoftware}" > + <condition> + <and> + <if-service-permission service-name="fixedAssetPermissionCheck" main-action="CREATE"/> + </and> + </condition> + <link target="EditComputerSoftware"/> + </menu-item> + </menu> + + <menu name="ComputerHardwareTabBar" default-menu-item-name="EditComputerHardware" default-selected-style="selected" + menu-container-style="button-bar tab-bar" type="simple" selected-menuitem-context-field-name="tabButtonItem"> + <!-- Tab Bar customized for Fixed Assets of type Computer Hardware --> + <menu-item name="EditComputerHardware" title="${uiLabelMap.IsMgrComputerHardware}"> + <link target="EditComputerHardware?fixedAssetId=${fixedAssetId}"/> + </menu-item> + <menu-item name="ListHardwareAccessories" title="${uiLabelMap.IsMgrHardwareAccessories}"> + <link target="ListHardwareAccessories?fixedAssetId=${fixedAssetId}&trail=${fixedAssetId}"/> + </menu-item> + <menu-item name="ListInstalledSoftware" title="${uiLabelMap.IsMgrInstalledSoftware}"> + <link target="ListInstalledSoftware?fixedAssetId=${fixedAssetId}"/> + </menu-item> + <!-- Will add soon + <menu-item name="EditFaComputerHardwareStdCosts" title="${uiLabelMap.AccountingFixedAssetStdCosts}"> + <link target="EditFaComputerHardwareStdCosts?fixedAssetId=${fixedAssetId}"/> + </menu-item> + <menu-item name="EditFaComputerHardwareIdents" title="${uiLabelMap.AccountingFixedAssetIdents}"> + <link target="EditFaComputerHardwareIdents?fixedAssetId=${fixedAssetId}"/> + </menu-item> + <menu-item name="EditFaComputerHardwareRegistrations" title="${uiLabelMap.AccountingFixedAssetRegistrations}"> + <link target="EditFaComputerHardwareRegistrations?fixedAssetId=${fixedAssetId}"/> + </menu-item> + <menu-item name="ListFaComputerHardwareMaints" title="${uiLabelMap.AccountingFixedAssetMaints}"> + <link target="ListFaComputerHardwareMaints?fixedAssetId=${fixedAssetId}"/> + </menu-item> + <menu-item name="EditPartyFixedAssetAssignments" title="${uiLabelMap.AccountingPartyFixedAssetAssignments}"> + <link target="EditPartyFixedAssetAssignments?fixedAssetId=${fixedAssetId}"/> + </menu-item> + --> + </menu> + +</menus> + \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/assetmaint/widget/ismgr/Menus.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |