/* Automatically generated.
 * Copyright (c) 2000-2006 by SAP AG, Walldorf.,
 * http://www.sap.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of SAP AG, Walldorf. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with SAP.
 * Do not edit.
 */

import ro.emid.common.constants.AppConstants;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class JEE_jsp_dc5ef961cb721889230e7c50bf47885e4a9ddcb7_browseInstalatii_1495030449164 extends com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase{

	public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
	{
		//isXml=false
		JspFactory  _jspFactory     = JspFactory.getDefaultFactory();
		PageContext pageContext = _jspFactory.getPageContext(this,request,response,null,true,32768,true);
		ServletConfig config = pageContext.getServletConfig();
		ServletContext application = pageContext.getServletContext();
		com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext = (com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl) pageContext;
		com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
		HttpSession session = pageContext.getSession();
		if (!response.isCommitted()) {
		response.setContentType("text/html;charset=UTF-8");
		}
		JspWriter   out     = pageContext.getOut();
		java.lang.Object page = this;
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(1,58);to=(4,17)]
			out.print("\r\n\r\n<style type=\"text/css\">\r\n    @import url(\'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(4,17);to=(4,52)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(4,52);to=(12,36)]
			out.print("/scripts/ext/resources/css/ext-all.css\');\r\n\r\n    fieldset{\r\n        width:100%;\r\n        padding: 15px 10px 10px;\r\n    }\r\n</style>\r\n\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(12,36);to=(12,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(12,71);to=(13,36)]
			out.print("/scripts/jquery/jquery.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(13,36);to=(13,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(13,71);to=(14,36)]
			out.print("/scripts/ext/adapter/ext/ext-base.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(14,36);to=(14,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(14,71);to=(15,36)]
			out.print("/scripts/ext/ext-all.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(15,36);to=(15,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(15,71);to=(16,36)]
			out.print("/scripts/ext/ux/treegrid/TreeGridSorter.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(16,36);to=(16,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(16,71);to=(17,36)]
			out.print("/scripts/ext/ux/treegrid/TreeGridColumnResizer.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(17,36);to=(17,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(17,71);to=(18,36)]
			out.print("/scripts/ext/ux/treegrid/TreeGridNodeUI.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(18,36);to=(18,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(18,71);to=(19,36)]
			out.print("/scripts/ext/ux/treegrid/TreeGridLoader.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(19,36);to=(19,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(19,71);to=(20,36)]
			out.print("/scripts/ext/ux/treegrid/TreeGridColumns.js\"></script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(20,36);to=(20,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(20,71);to=(40,27)]
			out.print("/scripts/ext/ux/treegrid/TreeGrid.js\"></script>\r\n\r\n<script type=\"text/javascript\">\r\n\r\n\r\n    //overwrite decode method\r\n    Ext.decode = function (respPage) {\r\n        var json = \"\";\r\n        var index1 = -1;\r\n        var index2 = -1;\r\n\r\n        if( respPage && ( index1 = respPage.indexOf(\"<respmesg>\")) > 0 && (index2 = respPage.indexOf(\"</respmesg>\")) > 0 ) {\r\n            json = respPage.substring( index1 + 10, index2);\r\n        }\r\n\r\n        return Ext.util.JSON.decode( json);\r\n    };\r\n\r\n\r\n    // Path to the blank image must point to a valid location on your server\r\n    Ext.BLANK_IMAGE_URL = \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(40,27);to=(40,75)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/scripts");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(40,75);to=(86,65)]
			out.print("/ext/resources/images/default/s.gif\';\r\n\r\n    var detaliiPanel = null;\r\n\r\n    var selectedFrame = null;\r\n\r\n    // Main application entry point\r\n    Ext.onReady(function() {\r\n\r\n        new Ext.Viewport({\r\n            layout: \'border\',\r\n            items: [\r\n                new Ext.BoxComponent({\r\n                    region: \'north\',\r\n                    height: 32, // give north and south regions a height\r\n                    autoEl: {\r\n                        tag: \'div\',\r\n                        html:\'<div style=\"font-size: 1.4rem; padding: 5px;\">Selec\u021bie instala\u021bii afectate:</div>\'\r\n                    },\r\n                    margins: \'5 5 0 5\'\r\n                }),\r\n\r\n                {\r\n                    region: \'west\',\r\n                    collapsible: false,\r\n                    //                        title: \'Browse Instalatii\',\r\n                    autoScroll: true,\r\n                    split: true,\r\n                    width: \"60%\",\r\n                    margins: \'0 0 0 5\',\r\n                    minSize: 300,\r\n                    maxSize: 1000,\r\n                    layout: \'fit\', // specify layout manager for items\r\n                    items:            // this TabPanel is wrapped by another Panel so the title will be applied\r\n                            new Ext.TabPanel({\r\n                                border: false, // already wrapped so don\'t add another border\r\n                                activeTab: 0, // second tab initially active\r\n                                tabPosition: \'top\',\r\n                                //bodyStyle : \"overflow:none\",\r\n                                items: [\r\n                                    {\r\n                                        html: \"<iframe id=\'treeModeFrame\' src=\'\' frameborder=\'0\' width=\'100%\' height=\'100%\' style=\'padding: 0px; background-color: #ffffff\'></iframe>\",\r\n                                        title: \'Mod Browse\',\r\n                                        autoScroll: false,\r\n                                        listeners: { activate: function(){\r\n                                            selectedFrame = document.getElementById(\"treeModeFrame\");\r\n                                            selectedFrame.src = \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(86,65);to=(86,91)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(86,91);to=(95,65)]
			out.print("?action=browseTree\";\r\n                                        }}\r\n                                    }\r\n                                    , {\r\n                                        html: \"<iframe id=\'searchModeFrame\' src=\'\' frameborder=\'0\' width=\'100%\' height=\'100%\'></iframe>\",\r\n                                        title: \'Mod Selec\u0163ie\',\r\n                                        autoScroll: false,\r\n                                        listeners: { activate: function(){\r\n                                            selectedFrame = document.getElementById(\"searchModeFrame\");\r\n                                            selectedFrame.src = \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(95,65);to=(95,91)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(95,91);to=(139,35)]
			out.print("?action=browseSearch\";\r\n                                        }}\r\n                                    }]\r\n                            })\r\n                },\r\n\r\n                detaliiPanel = new Ext.Panel({\r\n                    region : \'center\',\r\n                    cls: \"detaliiLF\",\r\n                    title: \'Detalii Instalatie\',\r\n                    //                        html : \"<iframe id=\'detaliiLF\' width=\'100%\' height=\'100%\' src=\'\' frameborder=\'0\'></iframe>\",\r\n                    margins : \'0 5 0 0\',\r\n                    autoScroll: true,\r\n                    bodyStyle : \"padding: 10px\",\r\n                    minSize: 300\r\n                }),\r\n\r\n                new Ext.BoxComponent({\r\n                    region : \'south\',\r\n                    height : 30, // give north and south regions a height\r\n                    margins : \'7 5 5 5\',\r\n                    html :\r\n                            \"<div><button onclick=\'BrowseWindow.onSave()\'>Salveaz\u0103</button>&nbsp;&nbsp;<button onclick=\'BrowseWindow.onRenunta()\'>Renun\u0163\u0103</button></div>\"\r\n                })\r\n            ]\r\n        });\r\n    });\r\n\r\n    var BrowseWindow = {\r\n\r\n        onSave : function(){\r\n            selectedFrame.contentWindow.save();\r\n        },\r\n\r\n        onRenunta : function (){\r\n            window.close();\r\n        },\r\n\r\n        prevCodInstalatie : null,\r\n\r\n        showDetaliiInstalatie : function ( codInstalatie, an){\r\n\r\n            if ( this.prevCodInstalatie != codInstalatie){\r\n                this.prevCodInstalatie = codInstalatie;\r\n                detaliiPanel.load(\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(139,35);to=(139,61)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/pagelet/common/browse/instalatii/browseInstalatii.jsp";from=(139,61);to=(145,0)]
			out.print("?action=getDetaliiInstalatie&codLF=\"+codInstalatie + \"&an=\" + an);\r\n            }\r\n        }\r\n    }\r\n\r\n</script>\r\n");
// end
		} catch (ThreadDeath tde) { throw tde;
		} catch (OutOfMemoryError ome) { throw ome;
		} catch (Throwable t) {
			if (!(t instanceof SkipPageException)) {
				try {
					out.clear();
				} catch(java.io.IOException _jspioex) {}
				_jspx_pageContext.handlePageException(t);
			}
		}finally{
			_jspFactory.releasePageContext(pageContext);
		}
	}

}
