/* 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.utils.ObjectUtils;
import ro.emid.common.types.TipInstalatie;
import ro.emid.common.types.Fisa;
import ro.emid.common.types.Instalatie;
import ro.emid.common.utils.BrowseController;
import ro.emid.common.utils.BrowseData;

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

public class JEE_jsp_dc5ef961cb721889230e7c50bf47885e4a9ddcb7_getLiniiForBrowse_1471595257038 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-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(1,53);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(2,55);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(3,46);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(4,52);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(5,58);to=(6,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(6,52);to=(9,0)]
			out.print("\r\n\r\n<respmesg>\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(9,0);to=(19,2)]
			try{
    final Fisa fisa = BrowseController.getBrowseFisa(session);

    final BrowseData data = BrowseController.getBrowseData( session);
    final String codEmidStatie = ObjectUtils.getStringValue(request.getParameter("codEmidStatie"));
    
    Instalatie linii[] = new Instalatie[0];
    if( codEmidStatie.length() > 0){
        linii = data.getProvider().getLFByParentCodEmid(codEmidStatie, TipInstalatie.LINIE, data.getFilterCondition());
    }

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(19,2);to=(20,1)]
			out.print("\r\n[");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(20,1);to=(21,44)]
			 for (int i = 0; i < linii.length; i++) {
        final Instalatie linie = linii[i];
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(21,44);to=(23,22)]
			out.print("\r\n        {\r\n            codSap : \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(23,22);to=(23,79)]
			out.print(ro.emid.common.utils.Util.escapeToJs(linie.getCod()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(23,79);to=(24,23)]
			out.print("\",\r\n            codEmid : \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(24,23);to=(24,90)]
			out.print(ro.emid.common.utils.Util.escapeToJs(linie.getTipProducator()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(24,90);to=(25,24)]
			out.print("\",\r\n            denumire : \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(25,24);to=(25,82)]
			out.print(ro.emid.common.utils.Util.escapeToJs(linie.getNume()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(25,82);to=(26,23)]
			out.print("\",\r\n            checked  : ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(26,23);to=(26,61)]
			out.print(fisa.isLfChecked( linie.getCod()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(26,61);to=(27,21)]
			out.print(",\r\n            sters  : ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(27,21);to=(27,43)]
			out.print(linie.esteSters());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(27,43);to=(28,9)]
			out.print("\r\n        }");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(28,9);to=(28,48)]
			out.print(( i < linii.length - 1 ? "," : ""));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(28,48);to=(29,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(29,0);to=(29,7)]
			  }
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(29,7);to=(31,0)]
			out.print("\r\n]\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(31,0);to=(32,26)]
			}catch( Exception t){
    t.printStackTrace();
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(32,26);to=(33,4)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(33,4);to=(33,23)]
			out.print(t.getMessage());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(33,23);to=(34,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(34,0);to=(34,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/common/browse/instalatii/getLiniiForBrowse.jsp";from=(34,5);to=(35,11)]
			out.print("\r\n</respmesg>");
// 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);
		}
	}

}
