/* 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 ro.emid.common.types.Category;
import ro.emid.common.types.CategoryInfo;
import java.util.Map;

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

public class JEE_jsp_WEB_2d_INF_pagelet_lucrariProgramate_showSucursale_1557229275363 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/lucrariProgramate/showSucursale.jsp";from=(1,58);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/lucrariProgramate/showSucursale.jsp";from=(2,50);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/lucrariProgramate/showSucursale.jsp";from=(3,54);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/lucrariProgramate/showSucursale.jsp";from=(4,34);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/lucrariProgramate/showSucursale.jsp";from=(6,50);to=(8,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(8,0);to=(15,2)]
			
    /**
     * @see ro.emid.lpod.action.category.ShowSucursaleAction
     */
    final Category[] sucursale = (Category[]) request.getAttribute("sucursale");
    final Map<Long, CategoryInfo> categoryInfoMap = (Map<Long, CategoryInfo>) request.getAttribute("categoryInfoMap");
    final Long nrIncidenteTotal = (Long) request.getAttribute("nrIncidenteTotal");

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(15,2);to=(17,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(17,0);to=(17,35)]
			// TagBeginGenerator - start [emid:template-lp]
			/* ----  emid:template-lp ---- */
			web.tag_template_2d_lp_1875650_1618159820409 _jspx_th_emid_template_2d_lp_0 = new web.tag_template_2d_lp_1875650_1618159820409();
			_jspx_resourceInjector.inject(_jspx_th_emid_template_2d_lp_0);
			_jspx_th_emid_template_2d_lp_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_template_2d_lp_0.setParent(null);
			_jspx_th_emid_template_2d_lp_0.setTitle("Sucursale");
						out = _jspx_pageContext.pushBody();// Start _jspx_jspAttr0
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(18,37);to=(19,8)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(19,8);to=(19,29)]
			// CustomJspTag.action() - start
			if (_jspx_method_emid_localizare_2d_lp_0(_jspx_pageContext, null)) {
				return;
			}
			// CustomJspTag.action() - end
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(19,29);to=(20,4)]
// end
			String _jspx_jspAttr0 = ((javax.servlet.jsp.tagext.BodyContent)out).getString();
			_jspx_jspAttr0 = _jspx_jspAttr0.trim();
			out = _jspx_pageContext.popBody();// END _jspx_jspAttr0
			_jspx_th_emid_template_2d_lp_0.setBreadcrumb(_jspx_jspAttr0);
						out = _jspx_pageContext.pushBody();// Start _jspx_jspAttr1
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(21,31);to=(28,12)]
			out.print("\r\n        <table border=0 cellPadding=2 cellSpacing=1 width=\"100%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white\">\r\n            <tr>\r\n                <th class=\"gsapthead\" colSpan=2 height=25 noWrap>Sucursale Electrica:</th>\r\n                <th class=\"gsapthead\" noWrap width=80>Nr. lucr\u0103ri</th>\r\n                <th class=\"gsapthead\" noWrap width=150>Data ultimei edit\u0103ri</th>\r\n            </tr>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(28,12);to=(28,41)]
			 if (null == sucursale) {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(28,41);to=(34,12)]
			out.print("\r\n            <tr>\r\n                <td>\r\n                    Nu sunt centre definite ...\r\n                </td>\r\n            </tr>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(34,12);to=(35,60)]
			} else {
                for(int i=0; i < sucursale.length; i++) { 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(35,60);to=(36,20)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(36,20);to=(36,96)]
			 CategoryInfo categoryInfo = categoryInfoMap.get(sucursale[i].getId()); 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(36,96);to=(37,34)]
			out.print("\r\n                    <tr class=\"row");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(37,34);to=(37,42)]
			out.print(i%2);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(37,42);to=(41,41)]
			out.print("\">\r\n                        <td height=50 align=\"center\" valign=\"middle\">\r\n                            <img\r\n                                    height=25\r\n                                    src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(41,41);to=(41,105)]
			out.print(AppConstants.WEB_RESOURCE_PATH + "/images/folder_big.gif");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(41,105);to=(44,58)]
			out.print("\"\r\n                                    width=46></td>\r\n                        <td height=50 width=\"100%\">\r\n                            <span style=\"font-size: 12px\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,58);to=(44,108)]
			out.print(AppConstants.format(sucursale[i].getCodSap()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,108);to=(44,147)]
			out.print(" </span> - <A title=\"Centre exploatare ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,147);to=(44,174)]
			out.print(sucursale[i].getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,174);to=(44,195)]
			out.print("\" class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,195);to=(44,221)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,221);to=(44,252)]
			out.print("?action=showCentre&sucursalaId=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,252);to=(44,277)]
			out.print(sucursale[i].getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(44,277);to=(45,28)]
			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/lucrariProgramate/showSucursale.jsp";from=(45,28);to=(45,55)]
			out.print(sucursale[i].getName());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(45,55);to=(45,65)]
			out.print("</A>&nbsp;");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(45,65);to=(45,151)]
			out.print((sucursale[i].getDescription() == null) ? "": '-' + sucursale[i].getDescription());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(45,151);to=(46,67)]
			out.print("<BR>\r\n                                    <span style=\"font-size: 10px;\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(46,67);to=(47,89)]
			 final Category[] centre = categoryInfo.getChildren();
                                        if (centre != null) for (Category c : centre) {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(47,89);to=(48,44)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(48,44);to=(48,67)]
			out.print(c.getName() + ", ");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(48,67);to=(49,40)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(49,40);to=(49,45)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(49,45);to=(53,49)]
			out.print("\r\n                                    </span>\r\n                        </td>\r\n                        <td height=50 valign=\"middle\" align=\"center\">\r\n                            <span class=gensmall>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(53,49);to=(53,106)]
			out.print(AppConstants.format(categoryInfo.getCountFise(), ""));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(53,106);to=(56,49)]
			out.print("</span>\r\n                        </td>\r\n                        <td height=50 noWrap valign=\"middle\" align=\"center\">\r\n                            <span class=gensmall>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(56,49);to=(56,116)]
			out.print(AppConstants.formatZiSaptaminaData(categoryInfo.getLastDate()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(56,116);to=(59,16)]
			out.print("</span>\r\n                        </td>\r\n                    </tr>\r\n                ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(59,16);to=(59,21)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(59,21);to=(62,57)]
			out.print("\r\n                <tr style=\"font-weight:bold;\">\r\n                    <td class=\"gsapthead\" colspan=\"2\" align=\"right\">&nbsp;Total:&nbsp;</td>\r\n                    <td class=\"gsapthead\" align=\"center\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(62,57);to=(62,78)]
			out.print(nrIncidenteTotal);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(62,78);to=(65,12)]
			out.print("</td>\r\n                    <td class=\"gsapthead\">&nbsp;</td>\r\n                </tr>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(65,12);to=(65,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(65,17);to=(67,4)]
			out.print("\r\n        </table>\r\n    ");
// end
			String _jspx_jspAttr1 = ((javax.servlet.jsp.tagext.BodyContent)out).getString();
			_jspx_jspAttr1 = _jspx_jspAttr1.trim();
			out = _jspx_pageContext.popBody();// END _jspx_jspAttr1
			_jspx_th_emid_template_2d_lp_0.setBody(_jspx_jspAttr1);
			_jspx_th_emid_template_2d_lp_0.doTag();
			// TagBeginGenerator - end [emid:template-lp]
// end
				// TagEndGenerator - start[emid:template-lp]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_template_2d_lp_0);
				// TagEndGenerator - end [emid:template-lp]
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/pagelet/lucrariProgramate/showSucursale.jsp";from=(68,19);to=(69,0)]
// 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);
		}
	}


	// CustomJspTag.action() - start
	private boolean _jspx_method_emid_localizare_2d_lp_0(com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext, javax.servlet.jsp.tagext.JspTag _jspx_parent) throws Throwable {
		JspWriter out = _jspx_pageContext.getOut();
			// TagBeginGenerator - start [emid:localizare-lp]
			/* ----  emid:localizare-lp ---- */
			web.tag_localizare_2d_lp_1875650_1618159819121 _jspx_th_emid_localizare_2d_lp_0 = new web.tag_localizare_2d_lp_1875650_1618159819121();
			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();
			_jspx_resourceInjector.inject(_jspx_th_emid_localizare_2d_lp_0);
			_jspx_th_emid_localizare_2d_lp_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_localizare_2d_lp_0.doTag();
			// TagBeginGenerator - end [emid:localizare-lp]
				// TagEndGenerator - start[emid:localizare-lp]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_localizare_2d_lp_0);
		return false;
	}
				// TagEndGenerator - end [emid:localizare-lp]
	// CustomJspTag.action() - end

}
